CN107239303B - Application program update package generation method and device and application program update method and device - Google Patents

Application program update package generation method and device and application program update method and device Download PDF

Info

Publication number
CN107239303B
CN107239303B CN201710330995.1A CN201710330995A CN107239303B CN 107239303 B CN107239303 B CN 107239303B CN 201710330995 A CN201710330995 A CN 201710330995A CN 107239303 B CN107239303 B CN 107239303B
Authority
CN
China
Prior art keywords
default configuration
updated
configuration parameter
file
application program
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.)
Active
Application number
CN201710330995.1A
Other languages
Chinese (zh)
Other versions
CN107239303A (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

Images

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

Abstract

The invention provides a method and a device for generating an application program update package and updating an application program. The method for generating the application program update package comprises the following steps: acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file; updating the source file and/or the default configuration parameter file according to the default configuration parameters required to be updated when the current version of the application program to be updated is upgraded to the latest version; and generating an updating package for upgrading the application program to be updated to the latest version according to the updated source file and/or the default configuration parameter file. The method and the device for generating the application program update package and updating the application program are high in efficiency of generating the update package.

Description

Application program update package generation method and device and application program update method and device
Technical Field
The present invention relates to software technologies, and in particular, to a method and an apparatus for generating an application update package and updating an application.
Background
With the rapid development of various application programs, the interface design which is unchanged cannot meet the user requirements, and therefore, developers are required to optimize or change the interface design of the application programs according to actual needs. Generally, the updating of the interface design can be realized by changing the configuration parameters of the interface. In practical applications, the source file of the application program generally includes default configuration parameters of the interface for configuring and loading each interface of the application program.
In the prior art, since an application usually has a plurality of interfaces, default configuration parameters corresponding to different interfaces are directly located at different positions in an application source file. When different interfaces of the application program are updated, developers need to manually modify default configuration parameters of each interface in the source file of the application program one by one. Since the developer does not know the position of the default configuration parameter to be updated in the application program source file, the default configuration parameter of each position in the application program source file needs to be checked one by one, and then whether the default configuration parameter is the default configuration parameter to be updated is determined, if the default configuration parameter needs to be updated, the default configuration parameter is updated, and then the default configuration parameter of the next position continues to be checked until the default configuration parameter of each position in the application program source file is checked, the updated source file is compressed to obtain an update package, so that the intelligent terminal updates the interface of the application program according to the update package.
Therefore, in the prior art, developers are required to manually check the default configuration parameters at each position in the application source file one by one, and the updating efficiency is low. Moreover, the default configuration parameters of the interface are likely to be wrong due to misoperation of developers, which may cause update failure and even crash of the application program.
Disclosure of Invention
The invention provides a method and a device for generating an application program update package and updating an application program, which are used for solving the technical problems of low generation efficiency and updating failure of the update package of the application program in the updating process of the application program in the prior art.
The invention provides a method for generating an application program update package, which comprises the following steps:
acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
updating the source file and/or the default configuration parameter file according to the default configuration parameter required to be updated when the current version of the application program to be updated is upgraded to the latest version, so as to obtain an updated source file and/or an updated default configuration parameter file;
and generating an updating package for upgrading the application program to be updated to the latest version according to the updated source file and/or the updated default configuration parameter file.
In the above method, the updating the default configuration parameter file according to the updated default configuration parameter required for the application program to be updated from the current version to the latest version to obtain the updated default configuration parameter file includes:
if the application program to be updated has default configuration parameters to be modified, modifying the default configuration parameters to be modified in a default configuration parameter file corresponding to a source file of the application program to be updated to obtain an updated default configuration parameter file;
the generating an update package for upgrading the application program to be updated to a latest version includes:
generating an updating package for updating the application program to be updated to the latest version according to the updated default configuration parameter file;
or, the updating the source file and the default configuration parameter file includes:
if the default configuration parameters need to be newly added in the application program to be updated, adding the default configuration parameters in a default configuration parameter file corresponding to a source file of the application program to be updated to obtain an updated default configuration parameter file; adding indication information for indicating the positions of the newly added default configuration parameters in the updated default configuration parameter file in the source file of the application program to be updated to obtain an updated source file;
the generating an update package for upgrading the application program to be updated to a latest version includes:
generating an updating package for updating the application program to be updated to the latest version according to the updated source file and the updated default configuration parameter file;
or, the updating the source file includes: if the application program to be updated has default configuration parameters to be deleted, deleting indication information for indicating the positions of the default configuration parameters to be deleted in a default configuration parameter file corresponding to the source file of the application program to be updated from the source file of the application program to be updated to obtain an updated source file;
the generating an update package for upgrading the application program to be updated to a latest version includes:
generating an update package for upgrading the application program to be updated to the latest version according to the updated source file;
or, the updating the source file and the default configuration parameter file includes:
if the application program to be updated has default configuration parameters to be deleted, deleting the default configuration parameters to be deleted from a default configuration parameter file corresponding to a source file of the application program to be updated to obtain an updated default configuration parameter file, and deleting indication information for indicating the position of the default configuration parameters to be deleted in the default configuration parameter file corresponding to the source file of the application program to be updated from the source file of the application program to obtain an updated source file;
the generating an update package for upgrading the application program to be updated to a latest version includes:
and generating an updating package for updating the application program to be updated to the latest version according to the updated source file and the updated default configuration parameter file.
According to the method, the storage format of the default configuration parameters in the default configuration parameter file corresponding to the source file of the application program to be updated is a binary data storage format, and the storage format of the default configuration parameters in the updated default configuration parameter file is the binary data storage format.
According to the method, the update package corresponding to the application program of the current version is obtained, and the source file and/or the default configuration parameter file are/is obtained according to the update package; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the positions of default configuration parameters required by the running of the application program in the default configuration parameter file;
and updating the current version of the application program according to the source file and/or the default configuration parameter file.
The method as described above, the updating the current version of the application program, including:
when the file obtained according to the updating package is a default configuration parameter file, deleting the original default configuration parameter file used by the operation of the current version application program, and storing the default configuration parameter file obtained according to the updating package and the original source file used by the operation of the current version application program in the same target file, so that the application program of the latest version accesses the target file during the operation;
or, when the files obtained according to the update package are the source file and the default configuration parameter file, deleting the original source file and the default configuration parameter file used by the current version application program to operate, and storing the source file and the default configuration parameter file obtained according to the update package in the same target file, so that the application program of the latest version accesses the target file when operating;
or, when the file obtained according to the update package is the source file, deleting the original source file used by the current version application program to operate, and storing the source file obtained according to the update package and the original default configuration parameter file used by the current version application program to operate in the same target file, so that the application program of the latest version accesses the target file when operating.
As described above, if the file obtained according to the update package includes the default configuration parameter file, before updating the current version of the application program according to the source file and/or the default configuration parameter file, the method further includes: acquiring a binary data storage format of default configuration parameters in the default configuration parameter file, and analyzing the default configuration parameter file into a target default configuration parameter file in a data analysis mode corresponding to the binary data storage format, wherein the target default configuration parameter file is a file in an actual character form;
the updating the current version of the application program according to the source file and/or the default configuration parameter file comprises:
and updating the current version of the application program according to the source file and/or the target default configuration parameter file.
The invention also provides a device for generating the application program update package, which comprises:
the device comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
the updating module is used for updating the source file and/or the default configuration parameter file according to the default configuration parameters which need to be updated when the current version of the application program to be updated is upgraded to the latest version, so as to obtain an updated source file and/or an updated default configuration parameter file;
and the update package generation module is used for generating an update package used for upgrading the application program to be updated to the latest version according to the updated source file and/or the updated default configuration parameter file.
The invention also provides a device for updating the application program, which comprises:
the update package acquisition module is used for acquiring an update package corresponding to the application program of the current version and obtaining a source file and/or a default configuration parameter file according to the update package; the updating package at least comprises a source file and a default configuration parameter file, the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program in the default configuration parameter file;
and the updating module is used for updating the application program of the current version according to the source file and/or the default configuration parameter file.
The present invention also provides an application program update system, including: the application update package generation apparatus as described above and the application update apparatus as described above.
The invention provides a method and a device for generating an application program update package and updating an application program. The method for generating the application program update package comprises the following steps: acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file; updating the source file and/or the default configuration parameter file according to the default configuration parameters to be updated when the current version of the application program to be updated is upgraded to the latest version, so as to obtain an updated source file and/or an updated default configuration parameter file; and generating an updating package for upgrading the application program to be updated to the latest version according to the updated source file and/or the default configuration parameter file. The method and the device for generating the application program update package and updating the application program have high efficiency of generating the update package, and the obtained update package is not easy to make mistakes, thereby ensuring the success of updating the application program.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram of one possible system architecture provided by the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for generating an application update package according to the present invention;
FIG. 3 is a schematic diagram of default configuration parameter files and source file acquisition provided by the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of a method for generating an application update package according to the present invention;
FIG. 5 is a flowchart illustrating a third embodiment of a method for generating an application update package according to the present invention;
FIG. 6 is a flowchart illustrating a fourth method for generating an application update package according to the present invention;
FIG. 7 is a flowchart of a fifth embodiment of a method for generating an application update package according to the present invention;
FIG. 8 is a flowchart of a first embodiment of a method for updating an application according to the present invention;
FIG. 9 is a schematic structural diagram illustrating a first apparatus for generating an application update package according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram illustrating a first apparatus for updating an application according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a second apparatus for updating an application according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a diagram of a possible system architecture provided by the present invention. Referring to fig. 1, the system architecture provided by the present embodiment includes a server 11 and a user device 12. The user device 12 may be, for example, a cell phone, tablet, computer, or the like. The server 11 is configured to generate and store an update package of an application, at least one application is installed in the user equipment 12, and the user equipment 12 obtains the update package of the corresponding application from the server 11 and updates the application.
When the application needs to be updated, the server 11 needs to generate and store an update package of the application for the application in the user equipment 12 to call when the application is updated. The update package generated by the server 11 includes a source file and/or a default configuration parameter file, where the default configuration parameter file includes a set of several default configuration parameters, and the source file is at least used to indicate a location of each default configuration parameter required by the application program during running in the default configuration parameter file.
The following describes in detail the method and apparatus for generating an application update package and updating an application according to the present invention.
The method for generating the application update package will be described with reference to the embodiment shown in fig. 2. The execution subject in fig. 2 described below may be, for example, the server 11 in fig. 1 described above.
Fig. 2 is a flowchart of a first embodiment of a method for generating an application update package, which is applied to a server, as shown in fig. 2, the method of this embodiment may include:
s101, acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
step S102, updating the source file and/or the default configuration parameter file according to the default configuration parameters which are required to be updated when the current version of the application program to be updated is upgraded to the latest version, and obtaining the updated source file and/or the updated default configuration parameter file.
Step S103, generating an updating package for updating the application program to be updated to the latest version according to the updated source file and/or the updated default configuration parameter file.
Specifically, when an update package of the application program to be updated is generated, the server acquires a source file of the application program to be updated and a default configuration parameter file corresponding to the source file. The storage format of the default configuration parameter in the default configuration parameter file corresponding to the source file of the application program to be updated is a binary data storage format, and may be, for example, a JavaScript Object Notation (JSON) data storage format or an Extensible Markup Language (XML) data storage format.
Different from the source file in the prior art, the source file in this embodiment is at least used to indicate the positions of the default configuration parameters required by the running of the application to be updated in the default configuration parameter file, that is, the source file in this embodiment does not include the default configuration parameters of the application to be updated, and includes indication information indicating the positions of the default configuration parameters in the default configuration parameter file, that is, the default configuration parameters in the source file in the prior art are replaced with the indication information indicating the positions of the default configuration parameters in the default configuration parameter file. Therefore, the application program to be updated not only comprises the source file, but also comprises a default configuration parameter file, and the default configuration parameter file comprises a plurality of sets of default configuration parameters. Further, it will be understood by those skilled in the art that the source files and default configuration parameter files for each version of the application are in a one-to-one correspondence.
FIG. 3 is a diagram illustrating default configuration parameter files and source file acquisition provided by the present invention. Referring to fig. 3, the obtaining method may be inputting a version number of the application program to be updated on the user interface 31 corresponding to the server, and the server queries a source file and a default configuration parameter file corresponding to the application program to be updated according to the received version number.
After the server acquires the source file of the application program to be updated and the default configuration parameter file corresponding to the source file, the source file and/or the default configuration parameter file can be updated according to the default configuration parameters to be updated when the application program to be updated is upgraded from the current version to the latest version, so that the updated source file and/or the updated default configuration parameter file are acquired.
Specifically, the default configuration parameter is updated in any one or a combination of the following ways: (1) modification of default configuration parameters; (2) deleting default configuration parameters; (3) and increasing the default configuration parameters.
For the modification of the default configuration parameters, because the positions of the default configuration parameters in the default configuration parameter file are not changed, the indication information in the source file for indicating the positions of the default configuration parameters in the default configuration parameter file does not need to be changed, only the default configuration parameters in the default configuration parameter file need to be modified, and the default configuration parameter file is updated.
Deleting indication information in the source file indicating the position of the default configuration parameter in the default configuration parameter file aiming at deletion of the default configuration parameter, and updating the source file; in addition, for the default configuration parameter file, the default configuration parameter in the default configuration parameter file may be deleted, the default configuration parameter file is updated, or the default configuration parameter in the default configuration parameter file may not be deleted.
Adding new default configuration parameters in the default configuration parameters aiming at the increase of the default configuration parameters to obtain an updated default configuration parameter file; in addition, for the source file, the indication information for indicating the position of the newly added default configuration parameter in the updated default configuration parameter file is added in the source file, and the source file is updated.
It can be understood by those skilled in the art that, in an application scenario where the application to be updated has and only needs to update the default configuration parameters, whether the source file of the application to be updated and the default configuration parameter file corresponding to the source file are updated is determined by the manner of updating the default configuration parameters. In an application scenario where an application to be updated has default configuration parameters to be updated and also has other non-default configuration parameters to be updated, a source file of the application to be updated is updated, whether a default configuration parameter file corresponding to the source file is updated is determined by a default configuration parameter updating method, wherein a method in the prior art can be adopted for updating the non-default configuration parameters, and a method in an application scenario where the application to be updated has the default configuration parameters and only the default configuration parameters need to be updated is adopted for updating the default configuration parameters. In an application scene where the application program to be updated does not have the default configuration parameters to be updated and only has other non-default configuration parameters to be updated, the default configuration parameter file corresponding to the source file of the application program to be updated is not updated, and the source file of the application program to be updated is updated.
In addition, if the default configuration parameter file corresponding to the source file of the application program to be updated is updated, the storage format of the default configuration parameters in the updated default configuration parameter file may also be a binary data storage format, for example, a JSON data storage format, or an XML data storage format.
And after the source file and/or the default configuration parameter file of the application program to be updated are updated, the server is used for upgrading the application program to be updated to the update package of the latest version according to the updated source file and/or the updated default configuration parameter file. For example, if the default configuration parameter file corresponding to the source file of the application program to be updated is updated and the source file of the application program to be updated is not updated, an update package is generated according to the updated default configuration parameter file; if the source file of the application program to be updated and the default configuration parameter file are updated, generating an update package according to the updated default configuration parameter file and the updated source file; and if the source file of the application program to be updated is updated and the default configuration parameter file corresponding to the source file of the application program to be updated is not updated, generating an update package according to the updated source file.
In this embodiment, the source file of the application program to be updated does not directly include the default configuration parameters, but includes indication information, where the indication information is used to indicate the location of the default configuration parameters required by the application program during running in the default configuration parameter file corresponding to the source file. Therefore, when the application program needs to update the default configuration parameters, the default configuration parameters at each position in the source file are not needed to be checked one by one to determine whether the default configuration parameters are the default configuration parameters to be updated, if so, the default configuration parameters are updated in the source file, but the default configuration parameter file is directly updated according to the default configuration parameters to be updated, only when the default configuration parameters are added and/or deleted, the source file needs to be added with the indication information corresponding to the default configuration parameters and/or deleted, the update package is generated efficiently, errors are not prone to occur in the obtained update package, and the follow-up application program can be successfully updated.
The method for generating the application update package of the embodiment includes: acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file; updating the source file and/or the default configuration parameter file according to the default configuration parameters to be updated when the current version of the application program to be updated is upgraded to the latest version, so as to obtain an updated source file and/or an updated default configuration parameter file; and generating an updating package for updating the application program to be updated to the latest version according to the updated source file and/or the updated default configuration parameter file. The method for generating the application program update package has high efficiency of generating the update package, and the obtained update package is not easy to make mistakes, thereby ensuring that the subsequent application program can be successfully updated.
The following describes in detail the application update package generation method corresponding to the update mode with different default configuration parameters in the previous embodiment, with specific embodiments.
First, a method for generating an application update package in which the default configuration parameter update mode is modified will be described.
Fig. 4 is a flowchart of a second embodiment of a method for generating an application update package, which is applied to a server, and as shown in fig. 4, the method of this embodiment may include:
step S201, obtaining a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
step S202, if the default configuration parameters to be modified exist in the application program to be updated, modifying the default configuration parameters to be modified in the default configuration parameter file corresponding to the source file of the application program to be updated to obtain an updated default configuration parameter file;
step S203, generating an update package for updating the application program to be updated to the latest version according to the updated default configuration parameter file.
Specifically, the application scenario of the present embodiment is that the application to be updated has and only has the default configuration parameters to be updated.
Step S201 is the same as step S101 in the previous embodiment, and details of this embodiment are not repeated.
For step S202, after acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file, if a default configuration parameter to be modified exists in the application program to be updated, modifying the default configuration parameter to be modified in the default configuration parameter file corresponding to the source file of the application program to be updated, and acquiring an updated default configuration parameter file; the method specifically comprises the following steps: and the server receives modification information input by the user and obtains an updated default configuration parameter file according to the modification information.
Step S202 is described below with reference to specific examples.
The default configuration parameter file may include a plurality of identifiers of default configuration parameters and default configuration parameters corresponding to the identifiers, for example, the default configuration parameter file in the "pan treasure" application may include: first page: interface address 1, my naobao: interface address 2, and the like, wherein "home page", "my panning" is an identifier of the default configuration parameter, and "interface address 1" and "interface address 2" are default configuration parameters.
Corresponding to the form of the default configuration parameter file, when the default configuration parameters are modified, the server receives modification information input by a user, wherein the modification information comprises the corresponding default configuration parameters after the default configuration parameters to be modified are modified; and then the server modifies the default configuration parameter file corresponding to the source file of the application program to be updated according to the modification information to obtain the updated default configuration parameter file.
For example, the interface address 1 of the home page of the application program to be updated needs to be changed into the interface address 3, the user deletes the interface address 1 and the input interface address 3 at the position corresponding to the home page identifier in the default configuration parameter file corresponding to the source file of the application program to be updated through the user input interface of the server, the server receives the instruction for deleting the interface address 1 and the interface address 3, the interface address 1 of the home page is updated to the interface address 3, and the updated default configuration parameter file is obtained. Wherein, the instruction for deleting the interface address 1 and the input interface address 3 are modification information.
It can be understood by those skilled in the art that if the default configuration parameter in the default configuration parameter file corresponding to the source file of the application program to be updated is in a binary data storage format, the server needs to analyze the default configuration parameter file corresponding to the source file of the application program to be updated in a data analysis manner corresponding to the binary data storage format to obtain an analyzed default configuration parameter file, modify the analyzed default configuration parameter file to obtain an updated analyzed default configuration parameter file, and store the updated analyzed default configuration parameter file in the binary data storage format to obtain an updated default configuration parameter file.
For step S203, after obtaining the updated default configuration parameter file, the server generates an update package for updating the application program to be updated to the latest version according to the updated default configuration parameter file.
In this embodiment, the default configuration parameter file to be modified in the default configuration parameter file is modified to obtain an updated default configuration parameter file, and the server generates an update package according to the updated default configuration parameter file without checking the default configuration parameters at each position in the source file one by one to determine whether the default configuration parameters are the default configuration parameters to be modified. The method for generating the application program update package has high efficiency of generating the update package, and the obtained update package is not easy to make mistakes, thereby ensuring that the subsequent application program can be successfully updated.
Next, a method for generating an application update package corresponding to the new default configuration parameter update mode will be described.
Fig. 5 is a flowchart of a third embodiment of a method for generating an application update package, which is applied to a server, and as shown in fig. 5, the method of this embodiment may include:
s301, acquiring a source file of the application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
step S302, if a default configuration parameter needs to be newly added to the application program to be updated, adding the default configuration parameter to a default configuration parameter file corresponding to a source file of the application program to be updated to obtain an updated default configuration parameter file; adding indication information for indicating the positions of the newly added default configuration parameters in the updated default configuration parameter file in a source file of the application program to be updated to obtain an updated source file;
step S303, generating an update package for updating the application program to be updated to the latest version according to the updated default configuration parameter file and the updated source file.
Specifically, the application scenario of the present embodiment is that the application to be updated has and only has the default configuration parameters to be updated.
Step S301 is the same as step S101 in the above embodiment, and the description of this embodiment is omitted.
For step S302, after acquiring the default configuration parameter file corresponding to the source file of the application program to be updated, if a new default configuration parameter needs to be added to the application program to be updated, adding the default configuration parameter to the default configuration parameter file corresponding to the source file of the application program to be updated, and acquiring an updated default configuration parameter file; adding indication information for indicating the positions of the newly added default configuration parameters in the updated default configuration parameter file in a source file of the application program to be updated to obtain an updated source file; the method specifically comprises the following steps: receiving first newly added information input by a user, obtaining an updated default configuration parameter file according to the first newly added information, receiving second newly added information input by the user, and obtaining an updated source file according to the second newly added information.
Step S302 is described below with reference to specific examples.
The default configuration parameter file may include a plurality of identifiers of default configuration parameters and default configuration parameters corresponding to the identifiers, for example, the default configuration parameter file in the "pan treasure" application may include: first page: interface address 1, my naobao: interface address 2, and the like, wherein "home page", "my panning" is an identifier of the default configuration parameter, and "interface address 1" and "interface address 2" are default configuration parameters.
When the default configuration parameters are newly added, the server receives first newly added information input by a user, wherein the first newly added information comprises an identifier of the newly added default configuration parameters and the default configuration parameters corresponding to the identifier; and then, the server adds the first newly added information in the default configuration parameter file corresponding to the source file of the application program to be updated according to the first newly added information to obtain the updated default configuration parameter file.
For example, a default configuration parameter a needs to be added to the application program to be updated, where the default configuration parameter a is identified as a1, a user inputs an identifier a1 and a default configuration parameter a of the default configuration parameter a at a corresponding position of a default configuration parameter file corresponding to a source file of the application program to be updated through a user input interface of the server, and after receiving the identifier a1 and the default configuration parameter a of the default configuration parameter a, the server adds an identifier a1 and a default configuration parameter a of the configuration parameter a at a corresponding position of the default configuration parameter file corresponding to the source file of the application program to be updated, so as to obtain an updated default configuration parameter file.
Correspondingly, the server adds indication information indicating the position of the newly added default configuration parameter in the updated default configuration parameter file at the corresponding position in the source file of the application program to be updated according to the position of the newly added default configuration parameter in the updated default configuration parameter file, so as to obtain an updated source file; the method specifically comprises the following steps: the server receives second newly-added information input by a user, the second newly-added information comprises indication information indicating the position of the newly-added default configuration parameter in the updated default configuration parameter file, and the server obtains an updated source file according to the second newly-added information.
It can be understood by those skilled in the art that if the default configuration parameter in the default configuration parameter file corresponding to the source file of the application program to be updated is in a binary data storage format, the server needs to parse the default configuration parameter file corresponding to the source file of the application program to be updated in a data parsing manner corresponding to the binary data storage format to obtain an parsed default configuration parameter file, then newly add the default configuration parameter to the parsed default configuration parameter file to obtain an updated parsed default configuration parameter file, and then perform data storage on the updated parsed default configuration parameter file in the binary data storage format to obtain an updated default configuration parameter file.
For step S303, after obtaining the updated default configuration parameter file and the updated source file, the server generates an update package for updating the application program to be updated to the latest version according to the updated default configuration parameter file and the updated source file.
In this embodiment, an updated default configuration parameter file is obtained by adding a default configuration parameter in the default configuration parameter file, an updated source file is obtained by adding indication information indicating a position of the added default configuration parameter in the updated default configuration parameter file at a corresponding position in the source file, and the server can generate an update package according to the updated default configuration parameter file and the source file.
Next, a method of generating an application update package in which the default configuration parameter update method is to delete the corresponding application will be described.
There are two possible implementation manners for the method for generating the application update package in which the default configuration parameter update manner is to delete the corresponding application update package, and one of the possible implementation manners is first described below.
Fig. 6 is a flowchart of a fourth embodiment of a method for generating an application update package, which is applied to a server, as shown in fig. 6, the method in this embodiment may include:
s401, acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
step S402, if the default configuration parameters to be deleted exist in the application program to be updated, deleting the default configuration parameters to be deleted from the default configuration parameter file corresponding to the source file of the application program to be updated to obtain an updated default configuration parameter file, and deleting indication information for indicating the position of the default configuration parameters to be deleted in the default configuration parameter file corresponding to the source file of the application program to be updated from the source file of the application program to obtain an updated source file;
step S403, according to the updated source file and the updated default configuration parameter file, generating an update package for updating the application program to be updated to the latest version.
Specifically, the application scenario of the present embodiment is that the application to be updated has and only has the default configuration parameters to be updated.
Step S401 is the same as step S101 in the above embodiment, and this embodiment is not described again.
For step S402, after acquiring the default configuration parameter file corresponding to the source file of the application program to be updated, if the default configuration parameter to be deleted exists in the application program to be updated, deleting the default configuration parameter to be deleted in the default configuration parameter file corresponding to the source file of the application program to be updated, to obtain an updated default configuration parameter file, deleting, in the source file of the application program, the indication information for indicating the position of the default configuration parameter to be deleted in the default configuration parameter file corresponding to the source file of the application program to be updated, to obtain an updated source file; the method specifically comprises the following steps: receiving a first deleting instruction input by a user, obtaining an updated default configuration parameter file according to the first deleting instruction, receiving a second deleting instruction input by the user, and obtaining an updated source file according to the second deleting instruction.
Step S402 will be described below with reference to specific examples.
The default configuration parameter file may include a plurality of identifiers of default configuration parameters and default configuration parameters corresponding to the identifiers, for example, the default configuration parameter file in the "pan treasure" application may include: first page: interface address 1, my naobao: interface address 2, and the like, wherein "home page", "my panning" is an identifier of the default configuration parameter, and "interface address 1" and "interface address 2" are default configuration parameters.
When deleting the default configuration parameters, the server receives a first deletion instruction input by a user, wherein the first deletion instruction is used for indicating an identifier of the default configuration parameters to be deleted and the default configuration parameters corresponding to the identifier; and then the server deletes the identifier of the default configuration parameter to be deleted and the default configuration parameter to be deleted in the default configuration parameter file corresponding to the source file of the application program to be updated according to the first deletion instruction to obtain the updated default configuration parameter file.
For example, the application program to be updated needs to delete the default configuration parameter b, which is identified as b1, the user inputs an instruction for deleting the identifier b1 and the default configuration parameter b of the default configuration parameter b at a corresponding position of the default configuration parameter file corresponding to the source file of the application program to be updated through a user input interface of the server, and the server deletes the identifier b1 and the default configuration parameter b of the default configuration parameter b according to the instruction for deleting the identifier b1 and the default configuration parameter b of the default configuration parameter b, which is input by the user, so as to obtain the updated default configuration parameter file.
Correspondingly, the server deletes the indication information indicating the position of the default configuration parameter to be deleted in the source file of the application program to be updated in the default configuration parameter file corresponding to the source file of the application program to be updated, so as to obtain the updated source file; the method specifically comprises the following steps: the server receives a second deleting instruction input by a user, wherein the second deleting instruction is used for indicating and deleting indication information of the position of the default configuration parameter to be deleted in the source file of the application program to be updated in the default configuration parameter file corresponding to the source file of the application program to be updated, and the server deletes the indication information of the position of the default configuration parameter to be deleted in the source file of the application program to be updated in the default configuration parameter file corresponding to the source file of the application program to be updated according to the second deleting instruction to obtain the updated source file.
It can be understood by those skilled in the art that if the default configuration parameter in the default configuration parameter file corresponding to the source file of the application program to be updated is in a binary data storage format, the server needs to parse the default configuration parameter file corresponding to the source file of the application program to be updated in a data parsing manner corresponding to the binary data storage format to obtain an parsed default configuration parameter file, delete the default configuration parameter from the parsed default configuration parameter file to obtain an updated parsed default configuration parameter file, and store the data of the updated parsed default configuration parameter file in the binary data storage format to obtain an updated default configuration parameter file.
For step S403, after obtaining the updated default configuration parameter file and the updated source file, the server generates an update package for updating the application program to be updated to the latest version according to the updated default configuration parameter file and the updated source file.
In this embodiment, the updated default configuration parameter file is obtained by deleting the default configuration parameter in the default configuration parameter file, the updated source file is obtained by deleting the indication information indicating the position of the default configuration parameter to be deleted in the default configuration parameter file in the source file, and the server may generate the update package according to the updated default configuration parameter file and the source file.
Another possible implementation manner that the default configuration parameter updating manner is a method for deleting the corresponding application update package generation method is described below.
Fig. 7 is a flowchart of a fifth embodiment of a method for generating an application update package, which is applied to a server, as shown in fig. 7, the method in this embodiment may include:
step S501, obtaining a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
step S502, if the default configuration parameters to be deleted exist in the application program to be updated, deleting indication information for indicating the positions of the default configuration parameters to be deleted in a default configuration parameter file corresponding to the source file of the application program to be updated in the source file of the application program to obtain an updated source file;
step S503, according to the updated source file, generating an update package for upgrading the application program to be updated to the latest version.
Specifically, the application scenario of the present embodiment is that the application to be updated has and only has the default configuration parameters to be updated.
In this embodiment, if the application program to be updated has the default configuration parameter to be deleted, only the source file needs to be updated, the updating method is the same as that in the embodiment shown in fig. 6, and this embodiment is not described again
In this embodiment, the updated source file is obtained by deleting the indication information indicating the position of the default configuration parameter to be deleted in the default configuration parameter file in the source file, and the server may generate the update package according to the updated source file.
After the update package is obtained by the method, the user equipment is used for updating the application program.
The following describes in detail an application update method of a user equipment by using a specific embodiment. Those skilled in the art will appreciate that the update package is the update package generated by the above embodiments; the execution body of the following embodiments may be the user equipment 12 shown in fig. 1.
Fig. 8 is a flowchart of a first embodiment of an application program updating method provided by the present invention, and as shown in fig. 8, the method of this embodiment may include:
step S601, obtaining an update package corresponding to the application program of the current version, and obtaining a source file and/or a default configuration parameter file according to the update package; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program in the default configuration parameter file;
step S602, updating the current version of the application program according to the source file and/or the default configuration parameter file.
Specifically, the application program of the current version in this embodiment is an application program installed in the user equipment for use by the user.
On the user equipment side, after the application program of the current version is started, the user equipment sends a query request to the server, wherein the query request comprises the application program identification and the version information of the current version, and the query request is used for indicating whether an update package corresponding to the application program of the current version is stored in the server for querying; and after receiving the query request, the server queries according to the identifier and the version information of the application program of the current version, if the server queries that the update package corresponding to the application program of the current version is stored, the server sends the update package corresponding to the application program of the current version to the user equipment, and the user equipment receives the update package corresponding to the application program of the current version sent by the server and carries out the subsequent update process. The server in this embodiment may be the server in the previous embodiment.
The user equipment receives an update package sent by the server, decompresses the update package, and obtains a source file and/or a default configuration parameter file, wherein the default configuration parameter file comprises a plurality of sets of default configuration parameters, and the source file is at least used for indicating the positions of the default configuration parameters required by the running of the application program in the default configuration parameter file.
After the user equipment acquires the source file and/or the default configuration parameter file, the current version of the application program is updated according to the source file and/or the default configuration parameter file.
Specifically, when the file obtained according to the update package is the default configuration parameter file, deleting the original default configuration parameter file used by the operation of the application program of the current version, and storing the default configuration parameter file obtained according to the update package and the original source file used by the operation of the application program of the current version in the same target file, so that the application program of the latest version accesses the target file during the operation;
or, when the files obtained according to the update package are the source file and the default configuration parameter file, deleting the original source file and the default configuration parameter file used by the current version application program in operation, and storing the source file and the default configuration parameter file obtained according to the update package in the same target file, so that the application program of the latest version accesses the target file in operation;
or, when the file obtained according to the update package is the source file, deleting the original source file used by the current version application program to operate, and storing the source file obtained according to the update package and the original default configuration parameter file used by the current version application program to operate in the same target file, so that the application program of the latest version accesses the target file during operation.
In addition, if the file obtained according to the update package includes the default configuration parameter file, before updating the current version of the application program according to the source file and/or the default configuration parameter file, the method further includes: acquiring a binary data storage format of default configuration parameters in the default configuration parameter file, and analyzing the default configuration parameter file into a target default configuration parameter file in a data analysis mode corresponding to the binary data storage format, wherein the target default configuration parameter file is a file in an actual character form.
If the binary data storage format of the default configuration parameter file is the JSON data storage format, adopting an analysis method corresponding to the JSON data storage format to convert the default configuration parameter file into the target default configuration parameter file in an actual character form. If the binary data storage format of the default configuration parameter file is an XML data storage format, the default configuration parameter file is converted into a target default configuration parameter file in an actual character form by adopting an analysis method corresponding to the XML data storage format.
Accordingly, updating the current version of the application program according to the source file and/or the default configuration parameter file comprises: and updating the current version of the application program according to the source file and/or the target default configuration parameter file.
Specifically, when the file obtained according to the update package is the default configuration parameter file, deleting the original default configuration parameter file used by the operation of the current version application program, and storing the target default configuration parameter file and the original source file used by the operation of the current version application program in the same target file, so that the application program of the latest version accesses the target file when operating;
or, when the files obtained according to the update package are the source file and the default configuration parameter file, deleting the original source file and the default configuration parameter file used by the current version application program in operation, and storing the source file and the target default configuration parameter file obtained according to the update package in the same target file, so that the application program of the latest version accesses the target file in operation.
The update package for updating the application program obtained in this embodiment includes a source file and/or a default configuration parameter file, the default configuration parameter file includes a set of a plurality of default configuration parameters, the source file is at least used to indicate positions of the default configuration parameters required by the running of the application program in the default configuration parameter file, the generation efficiency of the update package is high, the generated update package is not prone to errors, and normal updating and running of the application program are guaranteed.
The method for updating the application program comprises the steps of obtaining an update package corresponding to the application program of the current version, and obtaining a source file and/or a default configuration parameter file according to the update package; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program in the default configuration parameter file; and updating the current version of the application program according to the source file and/or the default configuration parameter file. According to the method for updating the application program, the generation efficiency of the update package is high, the generated update package is not prone to errors, and normal updating and running of the application program are guaranteed.
Fig. 9 is a schematic structural diagram of a first embodiment of an apparatus for generating an application update package according to the present invention, as shown in fig. 9, the apparatus of the present embodiment may include: an acquisition module 61, an update module 62 and an update package generation module 63; an obtaining module 61, configured to obtain a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file; the updating module 62 is configured to update the source file and/or the default configuration parameter file according to the default configuration parameter that needs to be updated when the current version of the application program to be updated is updated to the latest version, so as to obtain an updated source file and/or an updated default configuration parameter file; and the update package generating module 63 is configured to generate an update package for upgrading the application program to be updated to the latest version according to the updated source file and/or the updated default configuration parameter file.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a first embodiment of an apparatus for updating an application program, as shown in fig. 7, the apparatus of this embodiment may include: an update package acquisition module 71 and an update module 72. The update package obtaining module 71 is configured to obtain an update package corresponding to the application program of the current version, and obtain a source file and/or a default configuration parameter file according to the update package; the updating package at least comprises a source file and a default configuration parameter file, the default configuration parameter file comprises a plurality of default configuration parameter sets, and the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program in the default configuration parameter file; and the updating module 72 is used for updating the current version of the application program according to the source file and/or the default configuration parameter file.
When the file obtained according to the update package is the default configuration parameter file, the update module 72 is specifically configured to delete the original default configuration parameter file used for running the current version of the application program, and store the default configuration parameter file obtained according to the update package and the original source file used for running the current version of the application program in the same target file, so that the application program of the latest version accesses the target file during running.
When the files obtained according to the update package are the source file and the default configuration parameter file, the update module 72 is specifically configured to delete the original source file and the default configuration parameter file used by the current version of the application program in operation, and store the source file and the default configuration parameter file obtained according to the update package in the same destination file, so that the application program of the latest version accesses the destination file during operation.
When the file obtained according to the update package is the source file, the update module 72 is specifically configured to delete the original source file used by the current version of the application program to run, and store the source file obtained according to the update package and the original default configuration parameter file used by the current version of the application program to run in the same destination file, so that the application program of the latest version accesses the destination file when running.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of a second apparatus for updating an application according to the present invention, as shown in fig. 11, the apparatus of this embodiment may further include, on the basis of the apparatus structure shown in fig. 10: and the analysis module 73 is configured to, if the obtained file includes the default configuration parameter file according to the update package, obtain a binary data storage format of the default configuration parameter in the default configuration parameter file before updating the application program of the current version according to the source file and/or the default configuration parameter file, and analyze the default configuration parameter file into a target default configuration parameter file in a data analysis manner corresponding to the binary data storage format, where the target default configuration parameter file is a file in an actual character form.
At this time, when the file obtained according to the update package is the default configuration parameter file, the update module 72 is specifically configured to delete the original default configuration parameter file used by the current version of the application program to run, and store the target default configuration parameter file and the original source file used by the current version of the application program to run in the same target file, so that the application program of the latest version accesses the target file during running.
When the files obtained according to the update package are the source file and the default configuration parameter file, the update module 72 is specifically configured to delete the original source file and the default configuration parameter file used by the current version of the application program in operation, and store the source file and the target default configuration parameter file obtained according to the update package in the same target file, so that the application program of the latest version accesses the target file during operation.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
The present invention further provides an application updating system, where the application updating system of this embodiment includes an application update package generation apparatus shown in fig. 9 and an application update apparatus shown in fig. 10 or fig. 11.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for generating an application update package, comprising:
acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
updating the source file according to the default configuration parameters which need to be updated when the current version of the application program to be updated is upgraded to the latest version, so as to obtain an updated source file, and generating an update package for upgrading the application program to be updated to the latest version according to the updated source file;
or updating the source file and the default configuration parameter file according to the default configuration parameters which are required to be updated when the application program to be updated is updated from the current version to the latest version to obtain an updated source file and an updated default configuration parameter file, and generating an update package for updating the application program to be updated to the latest version according to the updated source file and the updated default configuration parameter file.
2. The method according to claim 1, wherein the updating the source file and the default configuration parameter file according to the default configuration parameters that need to be updated when the application program to be updated is upgraded from the current version to the latest version comprises:
if the default configuration parameters need to be newly added in the application program to be updated, adding the default configuration parameters in a default configuration parameter file corresponding to a source file of the application program to be updated to obtain an updated default configuration parameter file; adding indication information for indicating the positions of the newly added default configuration parameters in the updated default configuration parameter file in the source file of the application program to be updated to obtain an updated source file;
the generating an update package for upgrading the application program to be updated to a latest version includes:
generating an updating package for updating the application program to be updated to the latest version according to the updated source file and the updated default configuration parameter file;
or, the updating the source file includes: if the application program to be updated has default configuration parameters to be deleted, deleting indication information for indicating the positions of the default configuration parameters to be deleted in a default configuration parameter file corresponding to the source file of the application program to be updated from the source file of the application program to be updated to obtain an updated source file;
the generating an update package for upgrading the application program to be updated to a latest version includes:
generating an update package for upgrading the application program to be updated to the latest version according to the updated source file;
or, the updating the source file and the default configuration parameter file includes:
if the application program to be updated has default configuration parameters to be deleted, deleting the default configuration parameters to be deleted from a default configuration parameter file corresponding to a source file of the application program to be updated to obtain an updated default configuration parameter file, and deleting indication information for indicating the position of the default configuration parameters to be deleted in the default configuration parameter file corresponding to the source file of the application program to be updated from the source file of the application program to obtain an updated source file;
the generating an update package for upgrading the application program to be updated to a latest version includes:
and generating an updating package for updating the application program to be updated to the latest version according to the updated source file and the updated default configuration parameter file.
3. The method according to claim 1 or 2,
the storage format of the default configuration parameters in the default configuration parameter file corresponding to the source file of the application program to be updated is a binary data storage format, and the storage format of the default configuration parameters in the updated default configuration parameter file is the binary data storage format.
4. A method for application program update, comprising:
acquiring an update package corresponding to the application program of the current version, and obtaining a source file according to the update package; the update package is obtained according to the method for generating an application update package according to any one of claims 1 to 3, the default configuration parameter file includes a set of a plurality of default configuration parameters, the source file is at least used for indicating the position of each default configuration parameter required by the running of the application in the default configuration parameter file, and the current version of the application is updated according to the source file;
or acquiring an update package corresponding to the application program of the current version, and obtaining a source file and a default configuration parameter file according to the update package; the update package is obtained according to the method for generating an application update package according to any one of claims 1 to 3, the default configuration parameter file includes a set of a plurality of default configuration parameters, the source file is at least used for indicating the position of each default configuration parameter required by the running of the application in the default configuration parameter file, and the current version of the application is updated according to the source file and the default configuration parameter file.
5. The method of claim 4, wherein the updating the current version of the application comprises:
when the files obtained according to the update package are a source file and a default configuration parameter file, deleting the original source file and the default configuration parameter file used by the running of the current version application program, and storing the source file and the default configuration parameter file obtained according to the update package in the same target file, so that the application program of the latest version accesses the target file when running;
or, when the file obtained according to the update package is the source file, deleting the original source file used by the current version application program to operate, and storing the source file obtained according to the update package and the original default configuration parameter file used by the current version application program to operate in the same target file, so that the application program of the latest version accesses the target file when operating.
6. The method according to claim 4, wherein if the file obtained according to the update package includes a default configuration parameter file, before updating the current version of the application program according to the source file and the default configuration parameter file, the method further comprises: acquiring a binary data storage format of default configuration parameters in the default configuration parameter file, and analyzing the default configuration parameter file into a target default configuration parameter file in a data analysis mode corresponding to the binary data storage format, wherein the target default configuration parameter file is a file in an actual character form;
the updating the current version of the application program according to the source file and the default configuration parameter file comprises:
and updating the application program of the current version according to the source file and the target default configuration parameter file.
7. An application update package generation apparatus, comprising:
the device comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a source file of an application program to be updated and a default configuration parameter file corresponding to the source file; the source file is at least used for indicating the position of each default configuration parameter required by the running of the application program to be updated in the default configuration parameter file;
the updating module is used for updating the source file according to the default configuration parameters which need to be updated when the current version of the application program to be updated is updated to the latest version, so as to obtain an updated source file;
the update package generation module is used for generating an update package used for upgrading the application program to be updated to the latest version according to the updated source file and/or the updated default configuration parameter file;
or, the updating module is used for updating the source file and the default configuration parameter file according to the default configuration parameter required to be updated when the current version of the application program to be updated is upgraded to the latest version, so as to obtain an updated source file and an updated default configuration parameter file;
and the update package generation module is used for generating an update package used for upgrading the application program to be updated to the latest version according to the updated source file and the updated default configuration parameter file.
8. An apparatus for application update, comprising:
the update package acquisition module is used for acquiring an update package corresponding to the application program of the current version and obtaining a source file according to the update package; the update package is obtained according to the method for generating an application update package according to any one of claims 1 to 3, where the update package includes at least a source file and a default configuration parameter file, the default configuration parameter file includes a set of default configuration parameters, and the source file is at least used to indicate the location of each default configuration parameter required by the running of the application in the default configuration parameter file;
the updating module is used for updating the application program of the current version according to the source file;
or the update package acquisition module is used for acquiring an update package corresponding to the application program of the current version and obtaining a source file and a default configuration parameter file according to the update package; the update package is obtained according to the method for generating an application update package according to any one of claims 1 to 3, where the update package includes at least a source file and a default configuration parameter file, the default configuration parameter file includes a set of default configuration parameters, and the source file is at least used to indicate the location of each default configuration parameter required by the running of the application in the default configuration parameter file;
and the updating module is used for updating the application program of the current version according to the source file and the default configuration parameter file.
9. An application update system, comprising: an application update package generation apparatus as recited in claim 7 and an application update apparatus as recited in claim 8.
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 CN107239303A (en) 2017-10-10
CN107239303B true 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)

Families Citing this family (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
CN116069676B (en) * 2023-04-07 2023-06-09 中国空气动力研究与发展中心计算空气动力研究所 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

Also Published As

Publication number Publication date
CN107239303A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
CN108829477B (en) Interface jump method, device, computer equipment and storage medium
CN106874281B (en) Method and device for realizing database read-write separation
US11599654B2 (en) Method and apparatus for authority control, computer device and storage medium
CN107066300B (en) Firmware upgrading method of storage device and storage device
CN112073994A (en) Method and device for over-the-air upgrading, electronic equipment and readable storage medium
CN107239303B (en) Application program update package generation method and device and application program update method and device
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
CN109445841B (en) Interface document management method, device, server and storage medium
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN109828830B (en) Method and apparatus for managing containers
CN114020840A (en) Data processing method, device, server, storage medium and product
CN112395339A (en) Method and device for checking data access between systems, computer equipment and storage medium
CN113138768A (en) Application package generation method and device, electronic equipment and readable storage medium
CN113779004A (en) Data verification method and device
CN109684611B (en) Dictionary transcoding method and device, storage medium and terminal
CN112416384A (en) Software upgrading method and device and computer equipment
CN115729590A (en) Service deployment method, device, equipment and computer readable storage medium
CN114721681A (en) Configuration file updating method, device, equipment and storage medium
CN112711602B (en) Method and device for running stored procedure, database system and storage medium
CN107493316B (en) Application operation management method, server and computer readable storage medium
CN109840156B (en) Data caching method and equipment, storage medium and terminal thereof
CN110995462A (en) Cloud host function expansion method, system, equipment and computer storage medium
EP3872630A2 (en) Request processing method and apparatus, electronic device, and computer storage medium
CN113626409B (en) Test data processing method, device, equipment and storage medium

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