CN107239303A - The generation of application program update bag and method, the device of application program update - Google Patents

The generation of application program update bag and method, the device of application program update Download PDF

Info

Publication number
CN107239303A
CN107239303A CN201710330995.1A CN201710330995A CN107239303A CN 107239303 A CN107239303 A CN 107239303A CN 201710330995 A CN201710330995 A CN 201710330995A CN 107239303 A CN107239303 A CN 107239303A
Authority
CN
China
Prior art keywords
file
default configuration
configuration parameters
application program
updated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710330995.1A
Other languages
Chinese (zh)
Other versions
CN107239303B (en
Inventor
徐强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201710330995.1A priority Critical patent/CN107239303B/en
Publication of CN107239303A publication Critical patent/CN107239303A/en
Application granted granted Critical
Publication of CN107239303B publication Critical patent/CN107239303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides method, the device of a kind of application program update bag generation and application program update.The application program update bag generation method that the present invention is provided includes:Obtain the source file and default configuration parameters file corresponding with source file of application program to be updated;Wherein, default configuration parameters file includes the set of several default configuration parameters, and source file is at least used to indicate position of each default configuration parameters required during application program operation to be updated in default configuration parameters file;The default configuration parameters updated according to application program to be updated as required for current version is upgraded to latest edition, are updated to source file and/or default configuration parameters file;According to the source file after renewal and/or default configuration parameters file, generate for by the renewal bag of application program updating to be updated to latest edition.The generation of application program update bag and method, the device of application program update that the present invention is provided, generation update the efficiency high of bag.

Description

The generation of application program update bag and method, the device of application program update
Technical field
The present invention relates to the side of software engineering, more particularly to a kind of generation of application program update bag and application program update Method, device.
Background technology
Along with developing rapidly for types of applications program, unalterable interface can not meet user's request, Accordingly, it would be desirable to which developer is according to actual needs, the interface of application program is optimized or changed.It is common, can be with By way of the configuration parameter for changing interface, the renewal of interface is realized.In actual applications, the source file of application program In generally comprise the default configuration parameters at interface, to configure and loading application programs each interface.
Conventionally, as application program generally has multiple interfaces, the default configuration ginseng corresponding to different interfaces Number is at the diverse location in application program source file.When being updated at the different interfaces to application program, it is necessary to Developer one by one in manual modification application program source file each interface default configuration parameters.Because developer does not know Road default configuration parameters to be updated location in application program source file, it is therefore desirable to check application program source one by one The default configuration parameters of each position in file, and then determine whether the default configuration parameters are default configuration ginseng to be updated Number, if desired updates, then updates the default configuration parameters, then proceed to check the default configuration parameters of next position, until After each the default configuration parameters of position are checked in application program source file, the source file after renewal is compressed Obtain updating bag, so that intelligent terminal is updated the interface of application program according to the renewal bag.
It can be seen that, in the prior art, it is necessary to position in the manual application program source file of verification one by one of developer Default configuration parameters, update efficiency it is low.Also, easily there is the default configuration at interface caused by developer's operational error Parameter error, cause update fail, or even application crash phenomenon.
The content of the invention
The present invention provides method, the device of a kind of application program update bag generation and application program update, existing to overcome In technology in the renewal process of application program, application program renewal bag formation efficiency it is low and update failure technology ask Topic.
The present invention provides a kind of application program update bag generation method, including:
Obtain the source file and default configuration parameters file corresponding with the source file of application program to be updated;Wherein, The default configuration parameters file includes the set of several default configuration parameters, and the source file is at least described for indicating Position of the required each default configuration parameters in default configuration parameters file during application program operation to be updated;
The default configuration ginseng updated according to the application program to be updated as required for current version is upgraded to latest edition Number, is updated to the source file and/or default configuration parameters file, after the source file and/or renewal after being updated Default configuration parameters file;
According to the source file after renewal and/or the default configuration parameters file after renewal, generate for will be described to be updated Renewal bag of the application program updating to latest edition.
Method as described above, it is described according to the application program to be updated as needed for current version is upgraded to latest edition The default configuration parameters to be updated, are updated, the default configuration parameters after being updated to the default configuration parameters file File, including:
If there are default configuration parameters to be modified in the application program to be updated, modification and the application to be updated The default configuration parameters to be modified in the corresponding default configuration parameters file of source file of program, the acquiescence after being updated Configuration parameter file;
It is described to generate for by the renewal bag of the application program updating to be updated to latest edition, including:
According to the default configuration parameters file after the renewal, generating is used for the application program updating to be updated to most The renewal bag of redaction;
Or, it is described that the source file and default configuration parameters file are updated, including:
If desired in the application program to be updated increase newly default configuration parameters when, then with the application journey to be updated Increase default configuration parameters in the corresponding default configuration parameters file of source file of sequence, the default configuration parameters text after being updated Part;And increase in the source file of the application program to be updated for indicating newly-increased default configuration parameters after the renewal The configured information of position in default configuration parameters file, the source file after being updated;
It is described to generate for by the renewal bag of the application program updating to be updated to latest edition, including:
According to the source file after the renewal and the default configuration parameters file after renewal, generate for will be described to be updated Renewal bag of the application program updating to latest edition;
Or, it is described that the source file is updated, including:If existing in the application program to be updated to be deleted silent Recognize configuration parameter, then deleted in the source file of the application program to be updated for indicating the default configuration ginseng to be deleted The configured information of position of the number in default configuration parameters file corresponding with the source file of the application program to be updated, is obtained Source file after renewal;
It is described to generate for by the renewal bag of the application program updating to be updated to latest edition, including:
According to the source file after the renewal, generate for by the application program updating to be updated to latest edition more New bag;
Or, it is described that the source file and default configuration parameters file are updated, including:
If there are default configuration parameters to be deleted in the application program to be updated, with the application program to be updated The corresponding default configuration parameters file of source file in delete the default configuration parameters to be deleted, the acquiescence after being updated is matched somebody with somebody Put Parameter File, deleted in the source file of the application program for indicate the default configuration parameters to be deleted with it is described The configured information of position in the corresponding default configuration parameters file of source file of application program to be updated, the source after being updated File;
It is described to generate for by the renewal bag of the application program updating to be updated to latest edition, including:
According to the source file after the renewal and the default configuration parameters file after renewal, generate for will be described to be updated Renewal bag of the application program updating to latest edition.
In method as described above, the default configuration parameters file corresponding with the source file of application program to be updated The storage format of default configuration parameters is binary data storage form, silent in the default configuration parameters file after the renewal The storage format for recognizing configuration parameter is the binary data storage form.
Method as described above, corresponding update of application program for obtaining current version is wrapped, and is wrapped according to described update, and is obtained To source file and/or default configuration parameters file;The default configuration parameters file includes several default configuration parameters Set, the source file is at least used to indicate that each default configuration parameters required during the application program operation to be matched somebody with somebody in the acquiescence Put the position in Parameter File;
The application program of the current version is updated according to the source file and/or default configuration parameters file.
Method as described above, the application program to the current version is updated, including:
Wrapped when according to described update, when obtained file is default configuration parameters file, delete the current version application Original default configuration parameters file used in program operation, and the default configuration parameters text that bag is obtained will be updated according to described Original source file used in the application program operation of part and the current version is stored in same file destination, so that most The application program of redaction operationally accesses the file destination;
Or, wrapped when according to described update, when obtained file is source file and default configuration parameters file, delete described Original source file and default configuration parameters file used in the operation of current version application program, and will be wrapped according to described update Obtained source file and default configuration parameters file is stored in same file destination, so that the application program of latest edition is in fortune The file destination is accessed during row;
Or, wrapped when according to described update, when obtained file is source file, delete the current version application program fortune Original source file used in row, and the application program for obtained source file and the current version being wrapped according to the renewal Original default configuration parameters file used in operation is stored in same file destination, so that the application program of latest edition Operationally access the file destination.
Method as described above, if being wrapped according to described update, obtained file includes default configuration parameters file, then existed Before being updated according to the source file and/or default configuration parameters file to the application program of the current version, also wrap Include:The binary data storage form of the default configuration parameters in the default configuration parameters file is obtained, using with described two The corresponding data analysis mode of binary data storage format, the default configuration parameters document analysis is joined into target default configuration Number file, the target default configuration parameters file is the file of actual characters form;
It is described that the application program of the current version is carried out more according to the source file and/or default configuration parameters file Newly, including:
The application program of the current version is entered according to the source file and/or the target default configuration parameters file Row updates.
The present invention also provides a kind of generating means of application program update bag, including:
Acquisition module, source file and default configuration corresponding with source file ginseng for obtaining application program to be updated Number file;Wherein, the default configuration parameters file includes the set of several default configuration parameters, and the source file is at least For indicating each default configuration parameters required during the application program operation to be updated in the default configuration parameters file Position;
Update module, for being updated according to the application program to be updated as required for current version is upgraded to latest edition Default configuration parameters, the source file and/or default configuration parameters file are updated, the source file after being updated And/or the default configuration parameters file after updating;
Bag generation module is updated, it is raw for according to the source file after renewal and/or the default configuration parameters file after renewal Into for by the renewal bag of the application program updating to be updated to latest edition.
The present invention also provides a kind of device of application program update, including:
Bag acquisition module is updated, the application program for obtaining current version is corresponding to update bag, and is updated according to described Bag, obtains source file and/or default configuration parameters file;Wherein, described update at least includes source file and default configuration in bag Parameter File, the default configuration parameters file includes the set of several default configuration parameters, and the source file is at least used Position of the required each default configuration parameters in the default configuration parameters file when application program operation is indicated;
Update module, for the application according to the source file and/or default configuration parameters file to the current version Program is updated.
The present invention also provides a kind of application program update system, and the application program update system includes:As described above The device of application program update bag generating means and application program update as described above.
The present invention provides method, the device of a kind of application program update bag generation and application program update.The present invention's should Updating bag generation method with program includes:Obtain the source file and default configuration corresponding with source file ginseng of application program to be updated Number file;Wherein, default configuration parameters file includes the set of several default configuration parameters, and source file is at least used to indicate Position of the required each default configuration parameters in default configuration parameters file during application program operation to be updated;According to be updated The default configuration parameters that application program updates as required for current version is upgraded to latest edition, match somebody with somebody to source file and/or acquiescence Put Parameter File to be updated, the default configuration parameters file after source file and/or renewal after being updated;After renewal Source file and/or default configuration parameters file, generate for by the renewal bag of application program updating to be updated to latest edition. The generation of application program update bag and the method for application program update, device generation that the present invention is provided update the efficiency high of bag and obtained The renewal bag taken is not allowed error-prone, it is ensured that application program update success.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
A kind of possible system architecture diagram that Fig. 1 provides for the present invention;
The flow chart for the application program update bag generation method embodiment one that Fig. 2 provides for the present invention;
The default configuration parameters file and source file that Fig. 3 provides for the present invention obtain schematic diagram;
The flow chart for the application program update bag generation method embodiment two that Fig. 4 provides for the present invention;
The flow chart for the application program update bag generation method embodiment three that Fig. 5 provides for the present invention;
The flow chart for the application program update bag generation method example IV that Fig. 6 provides for the present invention;
The flow chart for the application program update bag generation method embodiment five that Fig. 7 provides for the present invention;
The flow chart of the embodiment of the method one for the application program update that Fig. 8 provides for the present invention;
The structural representation for the application program update bag generating means embodiment one that Fig. 9 provides for the present invention;
The structural representation of the device embodiment one for the application program update that Figure 10 provides for the present invention;
The structural representation of the device embodiment two for the application program update that Figure 11 provides for the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
A kind of possible system architecture diagram that Fig. 1 provides for the present invention.The system architecture provided referring to Fig. 1, the present embodiment Including server 11, user equipment 12.User equipment 12 for example can be mobile phone, flat board, apparatus such as computer.Wherein, server At least one application program, user equipment are installed in the 11 renewal bag for generating and storing application program, user equipment 12 12 obtain the renewal bag of corresponding application programs from server 11, and application program is updated.
When application program needs to update, it is necessary to first be generated by server 11 and stored the renewal bag of the application program, supply Called during application program update in user equipment 12.Wherein, the renewal bag that server 11 is generated includes source file and/or acquiescence Configuration parameter file, default configuration parameters file includes the set of several default configuration parameters, and source file is at least used to refer to Show position of each default configuration parameters required during application program operation in default configuration parameters file.
The generation of application program update bag and the method for application program update, device below to the present invention is carried out specifically It is bright.
By embodiment illustrated in fig. 2, application program update bag generation method is illustrated.Execution master in following Fig. 2 Body can for example think the server 11 in above-mentioned Fig. 1.
The flow chart for the application program update bag generation method embodiment one that Fig. 2 provides for the present invention, applied to server, As shown in Fig. 2 the method for the present embodiment can include:
Step S101, the source file and default configuration parameters file corresponding with source file for obtaining application program to be updated; Wherein, default configuration parameters file includes the set of several default configuration parameters, and source file is at least to be updated for indicating Position of the application program each default configuration parameters required when running in default configuration parameters file;
Step S102, matched somebody with somebody according to the acquiescence that application program to be updated updates as required for current version is upgraded to latest edition Parameter is put, source file and/or default configuration parameters file are updated, after the source file and/or renewal after being updated Default configuration parameters file.
Step S103, according to the source file after renewal and/or the default configuration parameters file after renewal, generate for will treat Application program updating is updated to the renewal bag of latest edition.
Specifically, when generating the renewal bag of application program to be updated, server obtains the source document of application program to be updated Part and default configuration parameters file corresponding with the source file.Wherein, acquiescence corresponding with the source file of application program to be updated The storage format of default configuration parameters in configuration parameter file is binary data storage form, such as can be JavaScript object representation (JavaScript Object Notation, abbreviation JSON) data memory format, Huo Zheke Extending mark language (Extensible Markup Language, abbreviation XML) data memory format.
From unlike source file of the prior art, source file in the present embodiment is at least used to indicate application to be updated Position of the program each default configuration parameters required when running in default configuration parameters file, that is to say, that in the present embodiment Do not include the default configuration parameters of application program to be updated in source file, including be to indicate default configuration parameters in default configuration It is silent that default configuration parameters in the configured information of position in Parameter File, i.e., source file of the prior art are replaced by instruction Recognize the configured information of position of the configuration parameter in default configuration parameters file.Therefore, application program to be updated not only includes source File, in addition to default configuration parameters file, default configuration parameters file include the set of several default configuration parameters.This Outside, it will be appreciated by those skilled in the art that, the source file and default configuration parameters file of the application program of each version are one One is corresponding.
The default configuration parameters file and source file that Fig. 3 provides for the present invention obtain schematic diagram.Referring to Fig. 3, acquisition methods Can be the version number that application program to be updated is inputted in the corresponding user interface 31 of server, server is according to the version received This number, inquiry obtains the corresponding source file of application program to be updated and default configuration parameters file.
The source file and default configuration parameters corresponding with source file text of application program to be updated are got in server After part, the default configuration parameters that can be updated according to application program to be updated as required for current version is upgraded to latest edition are right Source file and/or default configuration parameters file are updated, the default configuration ginseng after the source file and/or renewal after being updated Number file.
Specifically, the mode that default configuration parameters update is any of following several ways or its combination:(1) default configuration The modification of parameter;(2) deletion of default configuration parameters;(3) increase of default configuration parameters.
For the modification of default configuration parameters, due to position of the default configuration parameters in default configuration parameters file not Change, therefore, in source file be used for the finger for indicating position of the default configuration parameters in default configuration parameters file Show that information, without change, only need to change the default configuration parameters in default configuration parameters file, default configuration parameters file It is updated.
For the deletion of default configuration parameters, delete and indicate the default configuration parameters in default configuration parameters text in source file The configured information of position in part, source file is updated;In addition, for default configuration parameters file, default configuration can be deleted The default configuration parameters in Parameter File, default configuration parameters file is updated, and can not also delete default configuration parameters file In the default configuration parameters.
For the newly-increased of default configuration parameters, increase new default configuration parameters in default configuration parameters, updated Default configuration parameters file afterwards;In addition, for source file, increasing in source file for indicating that newly-increased default configuration parameters exist The configured information of the position in default configuration parameters file after renewal, source file is updated.
It will be appreciated by persons skilled in the art that have in application program to be updated and only default configuration parameters need more In new application scenarios, the source file of application program to be updated and the corresponding default configuration parameters file of the source file whether by Update, the mode updated by default configuration parameters is determined.There are default configuration parameters to need to update and go back in application program to be updated In the application scenarios that renewal is needed with other non-default configuration parameters, the source file of application program to be updated is updated, with Whether the corresponding default configuration parameters file of the source file is updated, and the mode updated by default configuration parameters is determined, wherein, pin Renewal to non-default configuration parameter can use method of the prior art, and the renewal for default configuration parameters is answered with to be updated Have with program and only default configuration parameters need the method in the application scenarios of renewal.Do not give tacit consent in application program to be updated Configuration parameter needs to update, only had in the application scenarios that other non-default configuration parameters needs update, with application journey to be updated The corresponding default configuration parameters file of source file of sequence is not updated, and the source file of application program to be updated is updated.
If in addition, default configuration parameters file corresponding with the source file of application program to be updated is updated, after renewal The storage format of default configuration parameters in default configuration parameters file is alternatively binary data storage form, such as can be JSON data memory formats, or can XML data storage format.
Server to the source file of application program to be updated and/or default configuration parameters file after updating, according to renewal Default configuration parameters file after rear source file and/or renewal be used for by application program updating to be updated to latest edition more New bag.Such as, if default configuration parameters file corresponding with the source file of application program to be updated updates, application program to be updated Source file do not have renewal, then according to after renewal default configuration parameters file generated update wrap;If the source of application program to be updated File updates with default configuration parameters file, then is given birth to according to the source file after the default configuration parameters file after renewal and renewal Wrapped into updating;If the source file of application program to be updated updates, default configuration corresponding with the source file of application program to be updated Parameter File does not update, then updates bag according to the source file generation after renewal.
Due to not being directly to include default configuration parameters in the source file of application program to be updated in the present embodiment, but bag Containing configured information, configured information is used to indicate default configuration parameters required during application program operation corresponding with the source file Position in default configuration parameters file.So, when application program needs to update default configuration parameters, without checking source one by one Default configuration parameters in file at each position to determine whether the default configuration parameters are default configuration parameters to be updated, If so, being then updated in source file to the default configuration parameters, but directly updated according to default configuration parameters to be updated Default configuration parameters file, and only newly-increased and/or when deleting in default configuration parameters, just need to carry out source file with The deletion of the newly-increased and/or configured information of the corresponding configured information of default configuration parameters, generation updates the efficiency high of bag and obtained The renewal bag taken is not allowed error-prone, it is ensured that subsequent applications program can be successfully updated.
The application program update bag generation method of the present embodiment includes:Obtain source file and and the source of application program to be updated The corresponding default configuration parameters file of file;Wherein, default configuration parameters file includes the collection of several default configuration parameters Close, source file is at least used to indicate each default configuration parameters required during application program operation to be updated in default configuration parameters text Position in part;The default configuration ginseng updated according to application program to be updated as required for current version is upgraded to latest edition Number, is updated, the acquiescence after source file and/or renewal after being updated to source file and/or default configuration parameters file Configuration parameter file;According to the source file after renewal and/or the default configuration parameters file after renewal, generate for will be to be updated Renewal bag of the application program updating to latest edition.The application program update bag generation method of the present embodiment, generation updates bag Efficiency high and obtain renewal bag do not allow it is error-prone, it is ensured that subsequent applications program can be successfully updated.
Specific embodiment, the mode of the renewal different to the default configuration parameters in a upper embodiment are used separately below Corresponding application program update bag generation method is described in detail.
First, default configuration parameters update mode is said for the application program update bag generation method corresponding to modification It is bright.
The flow chart for the application program update bag generation method embodiment two that Fig. 4 provides for the present invention, applied to server, As shown in figure 4, the method for the present embodiment can include:
Step S201, the source file and default configuration parameters file corresponding with source file for obtaining application program to be updated; Wherein, default configuration parameters file includes the set of several default configuration parameters, and source file is at least to be updated for indicating Position of the application program each default configuration parameters required when running in default configuration parameters file;
If there are default configuration parameters to be modified in step S202, application program to be updated, modification and application journey to be updated Default configuration parameters to be modified in the corresponding default configuration parameters file of source file of sequence, the default configuration ginseng after being updated Number file;
Step S203, according to the default configuration parameters file after renewal, generate for application program updating to be updated to be arrived The renewal bag of latest edition.
Specifically, the application scenarios of this implementation are that application program to be updated has and only default configuration parameters update.
For step S201, the ibid step S101 in an embodiment, the present embodiment is repeated no more.
For step S202, match somebody with somebody getting with the source file and acquiescence corresponding with the source file of application program to be updated Put after Parameter File, if there are default configuration parameters to be modified in application program to be updated, modification and application program to be updated The corresponding default configuration parameters file of source file in default configuration parameters to be modified, the default configuration parameters after being updated File;Concretely:Server receives the modification information of user's input, according to modification information, the default configuration after being updated Parameter File.
With reference to specific example, illustrate step S202.
Default configuration parameters file may include the corresponding default configuration ginseng of the mark and each mark of multiple default configuration parameters Default configuration parameters file in number, such as " Taobao " application program may include:Homepage:Interface IP address 1, my Taobao:Interface Address 2 etc., wherein " homepage ", the mark that " my Taobao " is default configuration parameters, " interface IP address 1 ", " interface IP address 2 " is silent Recognize configuration parameter.
Corresponding to the form of above-mentioned default configuration parameters file, when changing default configuration parameters, server receives user The modification information of input, modification information includes corresponding default configuration parameters after default configuration parameters to be modified modification;Then take Device be engaged according to modification information, a pair default configuration parameters file corresponding with the source file of application program to be updated is modified, and is obtained Default configuration parameters file after to renewal.
The interface IP address 1 of the homepage of application program such as to be updated needs to be changed into interface IP address 3, and user passes through server User input interface is corresponding with homepage mark in default configuration parameters file corresponding with the source file of application program to be updated Position at delete interface IP address 1, the interface IP address 3 of input, server receives the instruction for deleting interface IP address 1 and interface Location 3, interface IP address 3 is updated to by the interface IP address 1 of homepage, the default configuration parameters file after being updated.Wherein, deletion connects The interface IP address 3 of instruction and the input of port address 1 is modification information.
If it will be understood by those skilled in the art that default configuration corresponding with the source file of application program to be updated is joined Default configuration parameters in number file are binary data storage form, and server need to be used and the binary data storage form Corresponding data analysis mode, parses default configuration parameters file corresponding with the source file of application program to be updated, is solved Default configuration parameters file after analysis, then the default configuration parameters file after parsing is modified, after the parsing updated Default configuration parameters file, can again using the binary data storage form to after the parsing of renewal default configuration parameters text Part carries out data storage, the default configuration parameters file after being updated.
For step S203, after the default configuration parameters file after being updated, server is according to the acquiescence after renewal Configuration parameter file, is generated for by the renewal bag of application program updating to be updated to latest edition.
By changing the default configuration parameters to be modified in default configuration parameters file in the present embodiment, after being updated Default configuration parameters file, server according to after renewal default configuration parameters file generated update wrap, without checking one by one Default configuration parameters in source file at each position are to determine whether the default configuration parameters are that default configuration to be modified is joined Number.The application program update bag generation method of the present embodiment, the renewal bag that generation updates the efficiency high of bag and obtained is not easy It is wrong, it is ensured that subsequent applications program can be successfully updated.
Secondly, default configuration parameters update mode is said to increase corresponding application program update bag generation method newly It is bright.
The flow chart for the application program update bag generation method embodiment three that Fig. 5 provides for the present invention, applied to server, As shown in figure 5, the method for the present embodiment can include:
Step S301, the source file and default configuration parameters file corresponding with source file for obtaining application program to be updated; Wherein, default configuration parameters file includes the set of several default configuration parameters, and source file is at least to be updated for indicating Position of the application program each default configuration parameters required when running in default configuration parameters file;
Step S302, if desired in application program to be updated increase newly default configuration parameters when, in application program to be updated The corresponding default configuration parameters file of source file in increase default configuration parameters, default configuration parameters after being updated text Part;And increase in the source file of application program to be updated for indicating the newly-increased default configuration of default configuration parameters in the updated The configured information of position in Parameter File, the source file after being updated;
Step S303, the source file according to the default configuration parameters file after renewal and after updating, are generated for will treat more New application is upgraded to the renewal bag of latest edition.
Specifically, the application scenarios of this implementation are that application program to be updated has and only default configuration parameters update.
For step S301, with the step S101 in above-described embodiment, the present embodiment is repeated no more.
For step S302, default configuration parameters file corresponding with the source file of application program to be updated is being got Afterwards, when if desired increasing default configuration parameters newly in application program to be updated, then in the source file pair with application program to be updated Increase default configuration parameters in the default configuration parameters file answered, the default configuration parameters file after being updated;And treating more Increase in the source file of new application for indicating in the newly-increased default configuration parameters file of default configuration parameters in the updated Position configured information, the source file after being updated;Concretely:The first newly-added information of user's input is received, according to First newly-added information, the default configuration parameters file after being updated receives the second newly-added information of user's input, according to second Newly-added information, the source file after being updated.
With reference to specific example, illustrate step S302.
Default configuration parameters file may include the corresponding default configuration ginseng of the mark and each mark of multiple default configuration parameters Default configuration parameters file in number, such as " Taobao " application program may include:Homepage:Interface IP address 1, my Taobao:Interface Address 2 etc., wherein " homepage ", the mark that " my Taobao " is default configuration parameters, " interface IP address 1 ", " interface IP address 2 " is silent Recognize configuration parameter.
Correspondence and the form of above-mentioned default configuration parameters file, during to newly-increased default configuration parameters, server receives user First newly-added information of input, the first newly-added information includes the mark acquiescence corresponding with the mark of newly-increased default configuration parameters Configuration parameter;Then server is according to the first newly-added information, in default configuration corresponding with the source file of application program to be updated Increase the first newly-added information, the default configuration parameters file after being updated in Parameter File newly.
Newly-increased default configuration parameters a is needed in application program such as to be updated, it is designated a1, and user passes through server User input interface is silent in default configuration parameters file corresponding position corresponding with the source file of application program to be updated input Recognize configuration parameter a mark a1 and default configuration parameters a, the mark a1 and acquiescence that server receives default configuration parameters a match somebody with somebody Put after parameter a, increase newly and match somebody with somebody in the corresponding position of default configuration parameters file corresponding with the source file of application program to be updated Put parameter a mark a1 and default configuration parameters a, the default configuration parameters file after being updated.
Correspondingly, position of the server in newly-increased default configuration parameters default configuration parameters file in the updated Put, the relevant position in the source file of application program to be updated is newly-increased to indicate newly-increased default configuration parameters in the updated silent The configured information for the position recognized in configuration parameter file, the source file after being updated;Concretely:It is defeated that server receives user The second newly-added information entered, the second newly-added information includes indicating the default configuration parameters of newly-increased default configuration parameters in the updated The configured information of position in file, server is according to the second newly-added information, the source file after being updated.
If it will be understood by those skilled in the art that default configuration corresponding with the source file of application program to be updated is joined Default configuration parameters in number file are binary data storage form, and server need to be used and the binary data storage form Corresponding data analysis mode pair default configuration parameters file corresponding with the source file of application program to be updated is parsed, and is obtained Default configuration parameters file after to parsing, then the new of default configuration parameters is carried out to the default configuration parameters file after parsing Increase, the default configuration parameters file after the parsing updated, can be again using solution of the binary data storage form to renewal Default configuration parameters file after analysis carries out data storage, the default configuration parameters file after being updated.
For step S303, after the source file after the default configuration parameters file after being updated and renewal, server According to the source file after the default configuration parameters file after renewal and renewal, generating is used for application program updating to be updated to most The renewal bag of redaction.
It is silent after being updated by the newly-increased default configuration parameters in default configuration parameters file in the present embodiment Recognize configuration parameter file, pass through the writing from memory in the updated of the newly-increased default configuration parameters for indicating to increase newly in relevant position in source file The configured information for the position recognized in configuration parameter file, the source file after being updated, server can be according to the acquiescence after renewal Configuration parameter file and source file generation update bag.
Then, default configuration parameters update mode is said for the application program update bag generation method corresponding to deleting It is bright.
There are two kinds of possibility to delete corresponding application program update bag generation method to default configuration parameters update mode Implementation, the possible implementation of one of which is illustrated first below.
The flow chart for the application program update bag generation method example IV that Fig. 6 provides for the present invention, applied to server, As shown in fig. 6, the method for the present embodiment can include:
Step S401, the source file and default configuration parameters file corresponding with source file for obtaining application program to be updated; Wherein, default configuration parameters file includes the set of several default configuration parameters, and source file is at least to be updated for indicating Position of the application program each default configuration parameters required when running in default configuration parameters file;
If there are default configuration parameters to be deleted in step S402, application program to be updated, with application journey to be updated Default configuration parameters to be deleted are deleted in the corresponding default configuration parameters file of source file of sequence, the default configuration after being updated Parameter File, deleted in the source file of application program for indicate default configuration parameters to be deleted with application program to be updated The corresponding default configuration parameters file of source file in position configured information, the source file after being updated;
Step S403, according to the source file after renewal and the default configuration parameters file after renewal, generate for will treat more New application is upgraded to the renewal bag of latest edition.
Specifically, the application scenarios of this implementation are that application program to be updated has and only default configuration parameters update.
For step S401, with the step S101 in above-described embodiment, the present embodiment is repeated no more.
For step S402, default configuration parameters file corresponding with the source file of application program to be updated is being got Afterwards, if there are default configuration parameters to be deleted in application program to be updated, corresponding with the source file of application program to be updated Default configuration parameters file in delete default configuration parameters to be deleted, the default configuration parameters file after being updated, should With being deleted in the source file of program for indicating default configuration parameters to be deleted corresponding with the source file of application program to be updated Default configuration parameters file in position configured information, the source file after being updated;Concretely:Receive user's input First delete instruction, delete and instruct according to first, the default configuration parameters file after being updated receives user inputs the Two delete instruction, delete and instruct according to second, the source file after being updated.
With reference to specific example, illustrate step S402.
Default configuration parameters file may include the corresponding default configuration ginseng of the mark and each mark of multiple default configuration parameters Default configuration parameters file in number, such as " Taobao " application program may include:Homepage:Interface IP address 1, my Taobao:Interface Address 2 etc., wherein " homepage ", the mark that " my Taobao " is default configuration parameters, " interface IP address 1 ", " interface IP address 2 " is silent Recognize configuration parameter.
Correspondence and the form of above-mentioned default configuration parameters file, to deleting during default configuration parameters, server receives user The first of input deletes instruction, and first, which deletes instruction, is used to indicate that the mark of default configuration parameters to be deleted is corresponding with the mark Default configuration parameters;Then server is deleted according to first and instructed, and deletes corresponding with the source file of application program to be updated silent The mark and default configuration parameters to be deleted for the default configuration parameters to be deleted recognized in configuration parameter file, it is silent after being updated Recognize configuration parameter file.
Need to delete default configuration parameters b in application program such as to be updated, it is designated b1, and user passes through server User input interface in default configuration parameters file corresponding position corresponding with the source file of application program to be updated, delete by input Mark b1 and default configuration parameters b instruction except default configuration parameters b, the deletion default configuration that server is inputted according to user Parameter b mark b1 and default configuration parameters b instruction, delete default configuration parameters b mark b1 and default configuration parameters b, Default configuration parameters file after being updated.
Correspondingly, server, which is deleted in the source file of application program to be updated, indicates default configuration parameters to be deleted with treating The configured information of position in the corresponding default configuration parameters file of source file of more new application, the source document after being updated Part;Concretely:Server receives the second of user's input and deletes instruction, and the second deletion instruction is used to indicate to delete to be updated answer With the instruction default configuration parameters to be deleted in the source file of program in acquiescence corresponding with the source file of application program to be updated The configured information of position in configuration parameter file, server is deleted according to second and instructed, and deletes the source of application program to be updated Instruction default configuration parameters to be deleted in file are in default configuration parameters corresponding with the source file of application program to be updated text The configured information of position in part, the source file after being updated.
If it will be understood by those skilled in the art that default configuration corresponding with the source file of application program to be updated is joined Default configuration parameters in number file are binary data storage form, and server need to be used and the binary data storage form Corresponding data analysis mode pair default configuration parameters file corresponding with the source file of application program to be updated is parsed, and is obtained Default configuration parameters file after to parsing, then deleting for default configuration parameters is carried out to the default configuration parameters file after parsing Remove, the default configuration parameters file after the parsing updated, can be again using solution of the binary data storage form to renewal Default configuration parameters file after analysis carries out data storage, the default configuration parameters file after being updated.
For step S503, after the source file after the default configuration parameters file after being updated and renewal, server According to the source file after the default configuration parameters file after renewal and renewal, generating is used for application program updating to be updated to most The renewal bag of redaction.
It is silent after being updated by the default configuration parameters in default configuration parameters file is deleted in the present embodiment Configuration parameter file is recognized, by deleting the instruction default configuration parameters to be deleted in source file in default configuration parameters file The configured information of position, the source file after being updated, server can be according to the default configuration parameters file and source document after renewal Part generation updates bag.
It is again below the another of the corresponding application program update bag generation method of deletion to default configuration parameters update mode Possible implementation is planted to illustrate.
The flow chart for the application program update bag generation method embodiment five that Fig. 7 provides for the present invention, applied to server, As shown in fig. 7, the method for the present embodiment can include:
Step S501, the source file and default configuration parameters file corresponding with source file for obtaining application program to be updated; Wherein, default configuration parameters file includes the set of several default configuration parameters, and source file is at least to be updated for indicating Position of the application program each default configuration parameters required when running in default configuration parameters file;
If there are default configuration parameters to be deleted in step S502, application program to be updated, in the source document of application program Deleted in part for indicating that default configuration parameters to be deleted are joined in default configuration corresponding with the source file of application program to be updated The configured information of position in number file, the source file after being updated;
Step S503, according to the source file after renewal, generate for application program updating to be updated to be arrived into latest edition Update bag.
Specifically, the application scenarios of this implementation are that application program to be updated has and only default configuration parameters update.
If there are default configuration parameters to be deleted in the present embodiment in application program to be updated, source file is only updated, Update method is identical with the embodiment shown in Fig. 6, and the present embodiment is repeated no more
By deleting the default configuration parameters to be deleted of the instruction in source file in default configuration parameters file in the present embodiment In position configured information, the source file after being updated, server can according to update opisthogenesis file generated update wrap.
Adopt obtain with the aforedescribed process update bag after, used when being updated for user equipment to application program.
Specific embodiment is used below, and the application program update method to user equipment is described in detail.This area Technical staff is appreciated that the renewal bag is the renewal bag that above-described embodiment is generated;The executive agent of following examples can be Fig. 1 Shown in user equipment 12.
The flow chart for the application program update embodiment of the method one that Fig. 8 provides for the present invention, as shown in figure 8, the present embodiment Method can include:
Step S601, the corresponding renewal bag of application program for obtaining current version, and wrapped according to updating, obtain source file And/or default configuration parameters file;Default configuration parameters file includes the set of several default configuration parameters, and source file is extremely Few position for being used to indicate each default configuration parameters required during application program operation in default configuration parameters file;
Step S602, according to source file and/or default configuration parameters file the application program of current version is updated.
Specifically, the application program of the current version in the present embodiment in user equipment for users to use should Use program.
In user equipment side, after the application program of current version is activated, user equipment sends inquiry request to server, Inquiry request includes application program identification and the version information of current version, and inquiry request is used for whether indicating server lookup Update corresponding with the application program of current version that be stored with is wrapped;Server is received after inquiry request, according to current version The mark and version information of application program are inquired about, if server lookup is corresponding with the application program of current version to being stored with Renewal bag, then the bag that updates corresponding with the application program of current version is sent to user equipment, user equipment receives service The renewal bag corresponding with the application program of current version that device is sent, carries out follow-up renewal process.Service in the present embodiment Device can be the server in a upper embodiment.
The renewal bag that user equipment the reception server is sent, decompression updates bag, obtains source file and/or default configuration ginseng Number file, default configuration parameters file includes the set of several default configuration parameters, and source file is at least used to indicate application Position of the program each default configuration parameters required when running in default configuration parameters file.
User equipment is after source file and/or default configuration parameters file is got, then according to source file and/or acquiescence Configuration parameter file is updated to the application program of current version.
Specifically, when according to bag is updated, when obtained file is default configuration parameters file, current version application journey is deleted Original default configuration parameters file used in sort run, and by the default configuration parameters file obtained according to renewal bag and work as Preceding version application program operation used in original source file be stored in same file destination so that latest edition should With program operationally access target file;
Or, when according to bag is updated, when obtained file is source file and default configuration parameters file, delete current version Original source file and default configuration parameters file used in application program operation, and the source file that will be wrapped and obtain according to updating It is stored in default configuration parameters file in same file destination, so that the application program of latest edition operationally access target File;
Or, when according to bag is updated, when obtained file is source file, deletes the operation of current version application program and is used Original source file, and will be original according to used in the application program operation for updating the obtained source file of bag and current version Default configuration parameters file be stored in same file destination so that the application program of latest edition operationally access target File.
If in addition, being wrapped according to updating, obtained file includes default configuration parameters file, then according to source file with/ Or before default configuration parameters file is updated to the application program of current version, in addition to:Obtain default configuration parameters text The binary data storage form of default configuration parameters in part, is parsed using data corresponding with binary data storage form Mode, by default configuration parameters document analysis into target default configuration parameters file, target default configuration parameters file is actual The file of character style.
Wherein, for default configuration parameters file to be converted into the conversion method of target default configuration parameters file, if writing from memory The binary data storage form for recognizing configuration parameter file is JSON data memory formats, then using JSON data memory formats pair The analytic method answered, default configuration parameters file is converted into the target default configuration parameters file of actual characters form.If silent The binary data storage form for recognizing configuration parameter file is XML data storage format, then using XML data storage format correspondence Analytic method, default configuration parameters file is converted into the target default configuration parameters file of actual characters form.
Correspondingly, the application program of current version is updated according to source file and/or default configuration parameters file, wrapped Include:The application program of current version is updated according to source file and/or target default configuration parameters file.
Specifically, when according to bag is updated, when obtained file is default configuration parameters file, current version application journey is deleted Original default configuration parameters file used in sort run, and by the application of target default configuration parameters file and current version Original source file used in program operation is stored in same file destination, so that the application program of latest edition is in operation When access target file;
Or, when according to bag is updated, when obtained file is source file and default configuration parameters file, delete current version Original source file and default configuration parameters file used in application program operation, and the source file that will be wrapped and obtain according to updating It is stored in target default configuration parameters file in same file destination, so that the application program of latest edition is operationally accessed File destination.
The renewal bag for application program update obtained in the present embodiment includes source file and/or default configuration parameters text Part, default configuration parameters file includes the set of several default configuration parameters, and source file is at least used to indicate application program Position of the required each default configuration parameters in default configuration parameters file during operation, the formation efficiency of the renewal bag is high and raw Into renewal bag it is not error-prone, it is ensured that the normal renewal and operation of application program.
Corresponding update of application program that the method for the application program update of the present embodiment includes obtaining current version is wrapped, and According to bag is updated, source file and/or default configuration parameters file are obtained;Default configuration parameters file includes several acquiescences and matched somebody with somebody The set of parameter is put, source file is at least used to indicate that each default configuration parameters required during application program operation to be joined in default configuration Position in number file;The application program of current version is updated according to source file and/or default configuration parameters file.This The method of the application program update of embodiment, the formation efficiency of the renewal bag is high and renewal bag that generate is not error-prone, it is ensured that The normal renewal and operation of application program.
The structural representation for the application program update bag generating means embodiment one that Fig. 9 provides for the present invention, such as Fig. 9 institutes Show, the device of the present embodiment can include:Acquisition module 61, update module 62 and renewal bag generation module 63;Acquisition module 61, Source file and default configuration parameters file corresponding with source file for obtaining application program to be updated;Wherein, default configuration Parameter File includes the set of several default configuration parameters, when source file is at least used to indicate application program operation to be updated Position of the required each default configuration parameters in default configuration parameters file;Update module 62, for according to application to be updated The default configuration parameters that program updates as required for current version is upgraded to latest edition, join to source file and/or default configuration Number file is updated, the default configuration parameters file after source file and/or renewal after being updated;Update bag generation module 63, it is used for for according to the source file after renewal and/or the default configuration parameters file after renewal, generating by application journey to be updated Sequence is upgraded to the renewal bag of latest edition.
The device of the present embodiment, can be used for the technical scheme for performing above method embodiment, its realization principle and technology Effect is similar, and here is omitted.
The structural representation of the device embodiment one for the application program update that Figure 10 provides for the present invention, as shown in fig. 7, this The device of embodiment can include:Update bag acquisition module 71 and update module 72.Bag acquisition module 71 is updated for obtaining to work as The application program of preceding version is corresponding to update bag, and is wrapped according to updating, and obtains source file and/or default configuration parameters file;Its In, updating at least includes source file and default configuration parameters file in bag, default configuration parameters file includes several acquiescences The set of configuration parameter, source file is at least used to indicate each default configuration parameters required during application program operation in default configuration Position in Parameter File;Update module 72, for being answered according to source file and/or default configuration parameters file current version It is updated with program.
When according to bag is updated, when obtained file is default configuration parameters file, update module 72 is worked as specifically for deleting Original default configuration parameters file used in preceding version application program operation, and the default configuration that will be wrapped and obtain according to updating Original source file used in the application program operation of Parameter File and current version is stored in same file destination, so that The application program of latest edition operationally access target file.
When according to bag is updated, when obtained file is source file and default configuration parameters file, update module 72 is specifically used Used original source file and default configuration parameters file are run in deleting current version application program, and will be according to renewal Wrap obtained source file and default configuration parameters file is stored in same file destination, so that the application program of latest edition exists Access target file during operation.
When according to bag is updated, when obtained file is source file, update module 72 is specifically for deleting current version application Original source file used in program operation, and the application program for wrapping obtained source file and current version according to updating is transported Original default configuration parameters file used in row is stored in same file destination, so that the application program of latest edition exists Access target file during operation.
The device of the present embodiment, can be used for the technical scheme for performing above method embodiment, its realization principle and technology Effect is similar, and here is omitted.
The structural representation of the device embodiment two for the application program update that Figure 11 provides for the present invention, as shown in figure 11, The device of the present embodiment is on the basis of Figure 10 shown device structures, further, can also include:Parsing module 73, the solution If analysing module 73 is used to wrap according to updating, obtained file includes default configuration parameters file, then according to source file and/or Before default configuration parameters file is updated to the application program of current version, the acquiescence in default configuration parameters file is obtained The binary data storage form of configuration parameter, will be silent using data analysis mode corresponding with binary data storage form Configuration parameter document analysis is recognized into target default configuration parameters file, and target default configuration parameters file is actual characters form File.
Now, when according to bag is updated, when obtained file is default configuration parameters file, update module 72 is specifically for deleting Except current version application program run used in original default configuration parameters file, and by target default configuration parameters file It is stored in original source file used in the application program operation of current version in same file destination, so that latest edition Application program operationally access target file.
When according to bag is updated, when obtained file is source file and default configuration parameters file, update module 72 is specifically used Used original source file and default configuration parameters file are run in deleting current version application program, and will be according to renewal Wrap obtained source file and target default configuration parameters file is stored in same file destination, so that the application journey of latest edition Sequence operationally access target file.
The device of the present embodiment, can be used for the technical scheme for performing above method embodiment, its realization principle and technology Effect is similar, and here is omitted.
The present invention also provides a kind of application program update system, and the application program update system of the present embodiment includes Fig. 9 institutes The device of application program update shown in the generating means and Figure 10 or Figure 11 of the application program update bag shown.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (9)

1. a kind of application program update bag generation method, it is characterised in that including:
Obtain the source file and default configuration parameters file corresponding with the source file of application program to be updated;Wherein, it is described Default configuration parameters file includes the set of several default configuration parameters, and the source file is at least used to indicate described treat more Position of the new application each default configuration parameters required when running in the default configuration parameters file;
The default configuration parameters updated according to the application program to be updated as required for current version is upgraded to latest edition, it is right Source file and/or the default configuration parameters file is updated, and the acquiescence after source file and/or renewal after being updated is matched somebody with somebody Put Parameter File;
According to the source file after renewal and/or the default configuration parameters file after renewal, generating is used for the application to be updated Program is upgraded to the renewal bag of latest edition.
2. according to the method described in claim 1, it is characterised in that it is described according to the application program to be updated by current version The default configuration parameters updated required for latest edition are upgraded to, the default configuration parameters file is updated, obtained more Default configuration parameters file after new, including:
If there are default configuration parameters to be modified in the application program to be updated, modification and the application program to be updated The corresponding default configuration parameters file of source file in the default configuration parameters to be modified, the default configuration after being updated Parameter File;
It is described to generate for by the renewal bag of the application program updating to be updated to latest edition, including:
According to the default configuration parameters file after the renewal, generating is used for the application program updating to be updated to latest edition This renewal bag;
Or, it is described that the source file and default configuration parameters file are updated, including:
If desired in the application program to be updated increase newly default configuration parameters when, then with the application program to be updated Increase default configuration parameters in the corresponding default configuration parameters file of source file, the default configuration parameters file after being updated; And increase in the source file of the application program to be updated for indicating that newly-increased default configuration parameters are silent after the renewal The configured information for the position recognized in configuration parameter file, the source file after being updated;
It is described to generate for by the renewal bag of the application program updating to be updated to latest edition, including:
According to the source file after the renewal and the default configuration parameters file after renewal, generating is used for the application to be updated Program is upgraded to the renewal bag of latest edition;
Or, it is described that the source file is updated, including:If having acquiescence to be deleted in the application program to be updated to match somebody with somebody Parameter is put, then is deleted in the source file of the application program to be updated for indicating that the default configuration parameters to be deleted exist The configured information of position in default configuration parameters file corresponding with the source file of the application program to be updated, is updated Source file afterwards;
It is described to generate for by the renewal bag of the application program updating to be updated to latest edition, including:
According to the source file after the renewal, generate for by the renewal of the application program updating to be updated to latest edition Bag;
Or, it is described that the source file and default configuration parameters file are updated, including:
If there are default configuration parameters to be deleted in the application program to be updated, in the source with the application program to be updated The default configuration parameters to be deleted are deleted in the corresponding default configuration parameters file of file, the default configuration ginseng after being updated Number file, is deleted in the source file of the application program for indicating that the default configuration parameters to be deleted are treated more with described The configured information of position in the corresponding default configuration parameters file of source file of new application, the source document after being updated Part;
It is described to generate for by the renewal bag of the application program updating to be updated to latest edition, including:
According to the source file after the renewal and the default configuration parameters file after renewal, generating is used for the application to be updated Program is upgraded to the renewal bag of latest edition.
3. method according to claim 1 or 2, it is characterised in that
The storage of default configuration parameters in the default configuration parameters file corresponding with the source file of application program to be updated Form is binary data storage form, the storage lattice of the default configuration parameters in default configuration parameters file after the renewal Formula is the binary data storage form.
4. a kind of method of application program update, it is characterised in that including:
Corresponding update of application program for obtaining current version is wrapped, and is wrapped according to described update, and obtains source file and/or acquiescence is matched somebody with somebody Put Parameter File;The default configuration parameters file includes the set of several default configuration parameters, and the source file is at least For indicating position of each default configuration parameters required during application program operation in the default configuration parameters file;
The application program of the current version is updated according to the source file and/or default configuration parameters file.
5. method according to claim 4, it is characterised in that the application program to the current version is carried out more Newly, including:
Wrapped when according to described update, when obtained file is default configuration parameters file, delete the current version application program Original default configuration parameters file used in operation, and by according to it is described update default configuration parameters file that bag obtains and Original source file used in the application program operation of the current version is stored in same file destination, so that latest edition This application program operationally accesses the file destination;
Or, wrapped when according to described update, when obtained file is source file and default configuration parameters file, delete described current Original source file and default configuration parameters file used in the operation of version application program, and will be obtained according to the renewal bag Source file and default configuration parameters file be stored in same file destination so that the application program of latest edition is operationally Access the file destination;
Or, wrapped when according to described update, when obtained file is source file, delete the current version application program operation institute The original source file used, and by according to the application program operation for updating source file and the current version that bag is obtained Used original default configuration parameters file is stored in same file destination, so that the application program of latest edition is in fortune The file destination is accessed during row.
6. method according to claim 4, it is characterised in that if being wrapped according to described update, obtained file includes silent Recognize configuration parameter file, then according to the application journey of the source file and/or default configuration parameters file to the current version Before sequence is updated, in addition to:The binary data for obtaining the default configuration parameters in the default configuration parameters file is deposited Form is stored up, using data analysis mode corresponding with the binary data storage form, by the default configuration parameters file Target default configuration parameters file is parsed into, the target default configuration parameters file is the file of actual characters form;
It is described that the application program of the current version is updated according to the source file and/or default configuration parameters file, Including:
The application program of the current version is carried out more according to the source file and/or the target default configuration parameters file Newly.
7. a kind of application program update bag generating means, it is characterised in that including:
Acquisition module, source file and default configuration parameters corresponding with source file text for obtaining application program to be updated Part;Wherein, the default configuration parameters file includes the set of several default configuration parameters, and the source file is at least used for Indicate position of each default configuration parameters required during the application program operation to be updated in the default configuration parameters file Put;
Update module, it is silent for what is updated according to the application program to be updated as required for current version is upgraded to latest edition Recognize configuration parameter, the source file and/or default configuration parameters file be updated, source file after being updated and/or Default configuration parameters file after renewal;
Bag generation module is updated, for according to the source file after renewal and/or the default configuration parameters file after renewal, generation to be used In by the renewal bag of the application program updating to be updated to latest edition.
8. a kind of device of application program update, it is characterised in that including:
Bag acquisition module is updated, the application program for obtaining current version is corresponding to update bag, and is wrapped according to described update, and obtains To source file and/or default configuration parameters file;Wherein, described update at least includes source file and default configuration parameters text in bag Part, the default configuration parameters file includes the set of several default configuration parameters, and the source file is at least used to indicate Position of the required each default configuration parameters in the default configuration parameters file during application program operation;
Update module, for according to the application program of the source file and/or default configuration parameters file to the current version It is updated.
9. a kind of application program update system, it is characterised in that the application program update system includes:Described in claim 7 Application program update bag generating means and claim 8 described in application program update device.
CN201710330995.1A 2017-05-11 2017-05-11 Application program update package generation method and device and application program update method and device Active CN107239303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710330995.1A CN107239303B (en) 2017-05-11 2017-05-11 Application program update package generation method and device and application program update method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710330995.1A CN107239303B (en) 2017-05-11 2017-05-11 Application program update package generation method and device and application program update method and device

Publications (2)

Publication Number Publication Date
CN107239303A true CN107239303A (en) 2017-10-10
CN107239303B CN107239303B (en) 2021-04-13

Family

ID=59984399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710330995.1A Active CN107239303B (en) 2017-05-11 2017-05-11 Application program update package generation method and device and application program update method and device

Country Status (1)

Country Link
CN (1) CN107239303B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968294A (en) * 2021-02-26 2022-08-30 深圳怡化电脑科技有限公司 Firmware upgrading method and device for equipment, electronic equipment and storage medium
CN116069676A (en) * 2023-04-07 2023-05-05 中国空气动力研究与发展中心计算空气动力研究所 Version comparison method, device, terminal equipment and storage medium
CN116755713A (en) * 2023-08-16 2023-09-15 深圳传趣网络技术有限公司 Application program generation method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883226A (en) * 2010-05-31 2010-11-10 中山大学 Digital television updating method and digital television terminal
CN103186391A (en) * 2011-12-29 2013-07-03 腾讯科技(深圳)有限公司 Browser upgrading method and system and upgrading server
CN106095455A (en) * 2016-06-17 2016-11-09 北京小米移动软件有限公司 A kind of application update method and device
CN106201522A (en) * 2016-07-12 2016-12-07 杭州华三通信技术有限公司 A kind of packaging method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883226A (en) * 2010-05-31 2010-11-10 中山大学 Digital television updating method and digital television terminal
CN103186391A (en) * 2011-12-29 2013-07-03 腾讯科技(深圳)有限公司 Browser upgrading method and system and upgrading server
CN106095455A (en) * 2016-06-17 2016-11-09 北京小米移动软件有限公司 A kind of application update method and device
CN106201522A (en) * 2016-07-12 2016-12-07 杭州华三通信技术有限公司 A kind of packaging method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968294A (en) * 2021-02-26 2022-08-30 深圳怡化电脑科技有限公司 Firmware upgrading method and device for equipment, electronic equipment and storage medium
CN116069676A (en) * 2023-04-07 2023-05-05 中国空气动力研究与发展中心计算空气动力研究所 Version comparison method, device, terminal equipment and storage medium
CN116755713A (en) * 2023-08-16 2023-09-15 深圳传趣网络技术有限公司 Application program generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107239303B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN103365646B (en) Form user-defined, logical definition and processing method based on script engine
CN106571949A (en) Event tracking point processing method and apparatus
CN107682436A (en) A kind of method, apparatus and equipment of more new file
CN107329741A (en) A kind of software distribution upgrade method and device based on fingerprint recognition
US20080201333A1 (en) State transition controlled attributes
CN109636317A (en) Service control method, device, system and storage medium
CN112149109B (en) Modularized authority control management method and system
CN104461531B (en) A kind of implementation method of reporting system SQL
CN107563193A (en) Access and control strategy of database method and system based on SQL templates
CN108776756A (en) Access authorization for resource management method and device
US10289430B2 (en) Interactive user interface for metadata builder
KR20190095099A (en) Transaction system error detection method, apparatus, storage medium and computer device
CN107678748A (en) A kind of source code file Compilation Method and device
CN102970346A (en) Method for software downloading of browser and browser
CN107239303A (en) The generation of application program update bag and method, the device of application program update
CN109783802A (en) A kind of business rule processing method, server and computer readable storage medium
US20150074045A1 (en) Business Rule Management System
CN110175833B (en) Computer device, method, system and medium for binding bank card information
CN110727580A (en) Response data generation method, full-flow interface data processing method and related equipment
CN112565369A (en) Intelligent contract implementation method, application service node, storage medium and system
CN105122238A (en) Non-collaborative filters in a collaborative document
CN104572439A (en) Regression alert method and system
US9934216B2 (en) Schema validation for metadata builder
CN106612309B (en) The update method of configuration file, apparatus and system
CN104598661A (en) Method and device for change request analysis of project related to IT system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant