CN112882733B - Application updating method and device, electronic equipment and storage medium - Google Patents
Application updating method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112882733B CN112882733B CN202110156223.7A CN202110156223A CN112882733B CN 112882733 B CN112882733 B CN 112882733B CN 202110156223 A CN202110156223 A CN 202110156223A CN 112882733 B CN112882733 B CN 112882733B
- Authority
- CN
- China
- Prior art keywords
- version number
- application
- updating
- preset
- current
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the application provides an application updating method and device, electronic equipment and storage medium, wherein the method comprises the following steps: responding to the starting operation of the application, and acquiring the current version information and preset updating information of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number; judging whether the current engine version number is lower than a preset engine version number or not, and whether the current resource version number is lower than a preset resource version number or not, so as to obtain a judging result; determining an updating mode of the application according to the judging result; the embodiment of the application not only can realize the maintenance of less patch total quantity, but also can realize the provision of an adaptive updating mode according to the classification of the user, and improves the experience effect of the user when updating the application.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application update method and apparatus, an electronic device, and a storage medium.
Background
With the development of computer technology, various application programs have also been rapidly developed. After release, applications often need to be updated to different extents in order to provide better service to users and to solve problems in some older version applications.
For common applications, the application update is generally performed by means of whole package update. However, for applications with frequent updating and large installation volume, if the whole package updating mode is adopted for each update, a large amount of resources are redundantly downloaded, and the influence on users with high application activity is more obvious. Thus, such applications typically implement updates by way of downloading patches (patches).
The patch contains an update file of the latest version installation package relative to the first version installation package. Taking a game application as an example, the process of downloading the patch update mode is as follows: the game application performs download replacement for the modified file by comparing the local file with the patch file. As shown in fig. 1, as time goes by, the number of updates of the game application increases, so that the total amount of patches to be maintained increases, which affects not only the patch generation speed, but also the time for comparing the patches by the game application, and further the user experience.
Disclosure of Invention
In view of the foregoing, the present application has been made to provide an application update method and apparatus, an electronic device, a storage medium, which overcome or at least partially solve the foregoing problems, including:
an application update method, the method comprising:
responding to the starting operation of the application, and acquiring the current version information and preset updating information of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number;
judging whether the current engine version number is lower than the preset engine version number or not and whether the current resource version number is lower than the preset resource version number or not to obtain a judging result;
and determining the updating mode of the application according to the judging result.
Optionally, the step of determining the update mode of the application according to the determination result includes:
when the current engine version number is lower than the preset engine version number, and when the current resource version number is lower than the preset resource version number, determining that the updating mode of the application is whole-packet updating;
and when the current engine version number is lower than the preset engine version number, and when the current resource version number is not lower than the preset resource version number, determining that the updating mode of the application is patch updating.
Optionally, the step of determining the update mode of the application according to the determination result further includes:
and when the current engine version number is not lower than the preset engine version number, determining that the updating mode of the application is patch updating.
Optionally, the method comprises:
when the updating mode is patch updating, acquiring the applied patch; the patch comprises an update file between the preset resource version number and the latest resource version number;
and updating the application according to the patch.
Optionally, the step of updating the application according to the patch includes:
obtaining a corresponding target update file from the patch according to the current resource version number
And updating the application according to the target update file.
Optionally, the method further comprises:
and when the updating mode is whole package updating, displaying updating prompt information on a display screen of the terminal equipment.
Optionally, the method further comprises:
receiving a downloading operation aiming at a new version application installation package, and acquiring the new version application installation package;
and adopting the new application installation cladding to cover the local installation package of the application.
An application updating apparatus, the apparatus comprising:
the first acquisition module is used for responding to the starting operation of the application and acquiring the current version information and preset updating information of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number;
the first judging module is used for judging whether the current engine version number is lower than the preset engine version number or not and whether the current resource version number is lower than the preset resource version number or not, so as to obtain a judging result;
and the first determining module is used for determining the updating mode of the application according to the judging result.
Optionally, the first determining module includes:
the first updating sub-module is used for determining that the updating mode of the application is whole-packet updating when the current engine version number is lower than the preset engine version number and when the current resource version number is lower than the preset resource version number;
and the second updating sub-module is used for determining that the updating mode of the application is patch updating when the current engine version number is lower than the preset engine version number and the current resource version number is not lower than the preset resource version number.
Optionally, the first determining module further includes:
and the third updating sub-module is used for determining that the updating mode of the application is patch updating when the current engine version number is not lower than the preset engine version number.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the applied patch when the updating mode is patch updating; the patch comprises an update file between the preset resource version number and the latest resource version number;
and the patch updating module is used for updating the application according to the patch.
Optionally, the patch update module includes:
the third acquisition module is used for acquiring a corresponding target update file from the patch according to the current resource version number;
and the updating file updating module is used for updating the application according to the target updating file.
Optionally, the apparatus further comprises:
and the updating prompt module is used for displaying updating prompt information on a display screen of the terminal equipment when the updating mode is whole package updating.
Optionally, the apparatus further comprises:
the installation package downloading module is used for receiving downloading operation aiming at a new version application installation package and obtaining the new version application installation package;
and the installation package updating module is used for installing and covering the local installation package of the application by adopting the new application.
An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements the steps of the application update method as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of an application update method as described above.
The application has the following advantages:
in the embodiment of the application, the current version information and the preset updating information of the application are acquired by responding to the starting operation of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number; the preset engine version number can be used as a judging basis of the new and old installation packages, whether the installation package of the application is the new installation package or the old installation package can be determined by judging whether the current engine version number is lower than the preset engine version, and further whether a user using the application is a new user or an old user can be determined; on the basis of determining that the applied user is an old user, a preset resource version number can be adopted as a judging basis of the activity of the old user, and whether the current resource version number is lower than the preset resource version number is judged; determining an updating mode of the application according to the judging result; the method can realize the application aiming at the old users, the corresponding updating mode is determined according to the activity, and the old users with high activity are not influenced by the application updating when the application is used by setting the proper updating mode, so that the loss of the old users can be effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a diagram illustrating the change of the total patch maintenance amount in the background art;
FIG. 2 is a flowchart illustrating steps of an update method according to an embodiment of the present application;
FIG. 3 is a flowchart of a specific example of an application update method according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a patch maintenance aggregate for a specific example of an embodiment of the present application;
fig. 5 is a block diagram of an application updating device according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 2, an application updating method according to an embodiment of the present application is shown, where the method may be applied to a terminal device, and the terminal device may be an electronic device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant. The system of the terminal equipment can be Android system, ISO system, windows Phone, windows, seban (Symbian), blackBerry (BlackBerry) and other operating systems. The embodiment of the application can be suitable for application update of any application installed in the terminal equipment.
In this embodiment, the method may specifically include the following steps:
step 101, responding to the starting operation of an application, and acquiring the current version information and preset updating information of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number.
Step 102, determining whether the current engine version number is lower than the preset engine version number and whether the current resource version number is lower than the preset resource version number, so as to obtain a determination result.
And step 103, determining the updating mode of the application according to the judging result.
According to the embodiment of the application, the current version information and the preset updating information of the application are obtained by responding to the starting operation of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number; the preset engine version number can be used as a judging basis of the new and old installation packages, whether the installation package of the application is the new installation package or the old installation package can be determined by judging whether the current engine version number is lower than the preset engine version number, and further whether a user using the application is a new user or an old user can be determined; on the basis of determining that the applied user is an old user, a preset resource version number can be adopted as a judging basis of the activity of the old user, and whether the current resource version number is lower than the preset resource version number is judged; determining an updating mode of the application according to the judging result; the method can realize the application aiming at the old users, the corresponding updating mode is determined according to the activity, and the old users with high activity are not influenced by the application updating when the application is used by setting the proper updating mode, so that the loss of the old users can be effectively reduced.
Next, the application updating method in the present exemplary embodiment will be further described.
In step 101, current version information and preset update information of an application are obtained in response to a starting operation of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number.
To facilitate an understanding of the application by those skilled in the art, embodiments of the application will be illustratively described with respect to gaming applications.
The installation package of the game application may be divided into an engine part and a resource part, wherein the engine part determines the infrastructure of the game application and the resource part determines the script of the game application. The current version information may refer to local version information of the game application at the terminal device. The current version information includes a current engine version number and a current resource version number. The current engine version number is determined by the installation package at the time of installation of the game application; the current resource version number is associated with the portion of the resource last time the gaming application was run.
When the game application is started, the local current version information and the preset updating information can be acquired. The preset update information may be obtained directly from the server. For example, when the game application is started, the terminal device may send a request for acquiring preset update information corresponding to the game application to the server, and the server may return the preset update information to the terminal device according to the request.
The preset update information is associated with the latest version of the game application in the server. The preset update information includes a preset engine version number and a preset resource version number. The preset engine version number may be considered as a basis for dividing users corresponding to the game application into new users and old users, and is higher than the initial engine version number, where the initial engine version number is the corresponding engine version number when the game application should be released for the first time. Specifically, which engine version number is used as the preset engine version number may be set by the game application developer, for example, the preset engine version may be the latest engine version number, which is the engine version number corresponding to the latest published application installation package, or may be the previous engine version number from the latest engine version number, and so on. The preset resource version number is not higher than the resource version number in the installation package corresponding to the preset engine version number. The preset resource version number is related to the latest patch of the game application, the patch comprises an update file of the latest resource version number and at least one prior resource version number, and the preset resource version number is the lowest resource version number corresponding to the update file of the patch.
In general, the resource portion of the gaming application is updated more frequently than the engine portion. The resource version number is generally not in one-to-one correspondence with the engine version number, but the engine version number is in one-to-one correspondence with the installation package version number. Each time the resource part of the game application is updated, a new resource version number and a new update file are obtained, the new resource version number is higher than the resource version number updated before, the new update file is a modification file of the new resource version number and the previous resource version number, and the new update file can be stored in the patch. The resource portion of the gaming application may be updated with the update file in the patch.
In the embodiment of the application, only the update file between the latest resource version number and the preset resource version number is reserved in the patch. Compared with the prior art, the patch needs to reserve the update file between the latest resource version number and the initial resource version number, the patch maintenance method and the device have the advantages that the total quantity of the patch to be maintained is small, the patch packing time can be reduced, the patch comparison time can be shortened when the patch is updated and applied, and further the working efficiency is improved. Particularly, in the scene that the update times of the resource version are more and/or the update files are larger each time, the advantages of the embodiment of the application are more remarkable.
In step 102, it is determined whether the current engine version number is lower than the preset engine version number, and whether the current resource version number is lower than the preset resource version number, so as to obtain a determination result.
In this embodiment, the preset engine version number is used as a basis for distinguishing new and old users, and the user category using the game application is determined by comparing the current engine version number with the preset engine version number, where the user expression includes the new user and the old user. Specifically, when the current engine version number is lower than the preset engine version number, the user category is determined to be an old user, and when the current engine version number is not lower than the preset engine version number, the user category is determined to be a new user. It should be noted that, along with the update iteration of the application version, the preset engine version number and the preset resource version number in the embodiment of the present application may be updated along with the latest engine version number and the latest resource version number. For example, a previous engine version number of the latest engine version number may be determined as the preset engine version number.
On the basis of determining that the user category is an old user, the preset resource version number can be used as a basis for judging the activity of the old user. In the embodiment of the application, the preset resource version number is not higher than the resource version number in the installation package corresponding to the preset engine version number, and optionally, the preset resource version number is higher than the initial resource version. The initial resource version number may refer to a resource version number when the application is first published, and optionally, the initial resource version number may also refer to a reference resource version number in an installation package corresponding to a lowest engine version number on which a latest resource version of the application depends. For convenience of description, defining a resource version number in an installation package corresponding to a preset engine version number as a reference resource version number; for example, when the latest resource version number is 10, the initial resource version number corresponds to 1, and the reference resource version number is 8, the preset resource version number may be any one of 2 to 8.
In order to reduce the total amount of maintenance of the patch, the number of engine versions between the preset engine version number and the latest engine version number may be specified to be within a first preset number, and the number between the preset resource version number and the reference resource version number may be specified to be within a second preset number. For example, the first preset number may be any one of 0 to 2; when the first preset number is 1, the preset engine version number is the engine version number corresponding to the last release of the installation package, and the user before the last release of the installation package can be considered to be an old user; the second preset number may be any one of 0 to 5; when the second preset number is 1, the preset resource version number is the previous resource version number of the reference resource version number, and the corresponding patch maintenance total amount is the update file between the latest resource version number and the previous resource version number of the reference resource version number.
In step 103, the update mode of the application is determined according to the determination result.
In the embodiment of the application, the activity of the game application corresponding to the user can be determined by comparing the current resource version number with the preset resource version number. Specifically, when the current resource version number is lower than the preset resource version number, the user can be considered that the game application is not normally used again after the lowest resource version number is released, and the activity of the user is further judged to be lower than the expected activity; when the current resource version number is not lower than the preset resource version number, the user can be considered to normally start the game application after the lowest resource version is released, and further the activity of the user is judged to reach the expected activity.
In order to achieve the purposes of less total patch maintenance and providing better application updating experience for old active users, the loss of the old users caused by application updating is reduced.
Specifically, when the current engine version number is lower than the preset engine version number, and when the current resource version number is lower than the preset resource version number, determining that the update mode of the application is whole-packet update;
and when the current engine version number is lower than the preset engine version number, and when the current resource version number is not lower than the preset resource version number, determining that the updating mode of the application is patch updating.
The whole package update is to download a new installation package of the application again and cover the local installation package for installation so as to update the application. Whereas patch updates update applications by downloading the difference file between the current version and the latest version of the application.
Specifically, when the updating mode is patch updating, acquiring an applied patch; the application is then updated according to the patch. The patch comprises an update file between a preset resource version number and a latest resource version number.
In a specific implementation, the terminal device may obtain a patch of the game application from the server, where the patch includes an update file between a preset resource version number and a latest resource version number. Because the current resource version number is not lower than the preset resource version number, the patch contains a target update file between the current resource version number and the latest resource version number.
Further, a target update file between the current resource version number and the latest resource version number can be obtained from the patch; updating the application according to the target update file.
In an alternative embodiment, the target update file may be determined by comparing the local file with the update file in the patch, and downloading the target update file to update the application. The updated resource part in the application is the same as the resource part corresponding to the latest resource version number, namely, the resource part in the application is updated to the latest version through patch updating.
In another alternative embodiment, the update files in the patch may be packaged according to the resource version numbers, respectively, and the target update file may be determined according to the current resource version number, and downloaded to update the application. As an example, when the latest resource version number is 100, the preset resource version number is 98, and the current resource version number is 99, where the patch includes a first update file between the resource version numbers 100 and 99, and includes a second update file between the resource version numbers 99 and 98; and determining the target update file as a first update file according to the current resource version number of 99, downloading the target update file, updating the application according to the target update file, and updating the resource part in the application to the latest version.
Further, when the update mode is whole package update, update prompt information is displayed on a display screen of the terminal device.
In a specific implementation, since the whole package update needs to re-download the installation package of the application, and the downloading of the installation package generally needs to obtain the authorization of the user, in this embodiment, when the update mode is the whole package update, the update prompt information may be displayed on the display screen to prompt the user to re-download the installation package of the application.
In general, when the update mode is the whole package update, the current application cannot normally provide services, and thus, when the update mode is the whole package update, the current application may also be terminated.
Receiving a downloading operation aiming at a new version application installation package, and acquiring the new version application installation package;
and adopting the new application installation cladding to cover the local installation package of the application.
In the embodiment of the application, the update prompt information can be a text for displaying and prompting the user to download the new version application installation package, for example, the update prompt information can be "please download the new version installation package"; furthermore, the update prompt information can also be a download address link of the new application installation package, so that the user can rapidly download the new application installation package by clicking the update prompt information.
When the user triggers the downloading operation of the new version application installation package according to the updating prompt information, the new version application installation package can be downloaded from the server, and the new version application is adopted to install the local installation package of the cladding cover application, so that the updating of the application is realized. Alternatively, the new version of the application installation package may be the last released installation package of the application.
It should be noted that, the resource version number corresponding to the last released installation package is not necessarily the latest resource version number, but the engine version number corresponding to the last released installation package is not necessarily lower than the preset engine version number, so in an alternative example, after the new version application installs the local installation package of the cladding cover application, the application may be restarted, and the step of returning to obtain the current version information and the preset update information of the application is continuously executed, where the current version information includes the engine version number and the resource version number corresponding to the new version application installation package. Or after the new version application installs the local installation package of the cladding application, the application can be restarted, and when the current resource version number is judged to be lower than the latest resource version number, the target update file is acquired from the patch for updating.
Further, when the current engine version number is not lower than the preset engine version number, determining that the updating mode of the application is patch updating.
In this embodiment, when the current engine version number is not lower than the preset engine version number, the user class corresponding to the application may be considered as a new user, and the update of the application for the new user may be performed according to the update file included in the patch. The specific procedure of patch updating in this embodiment can be seen from the above description.
According to the embodiment of the application, the current engine version number is compared with the preset engine version number, so that the corresponding users are divided into the new package user and the old package user, the new package user can be directly updated by adopting a patch updating mode, and the application updating experience effect is good. The old packet users can further compare the current resource version number with the preset resource version number, wherein the preset resource version number is the lowest resource version number corresponding to the update file of the application patch, the old packet users lower than the preset resource version number are subjected to application update in a whole packet update mode, and the time and the flow required by the whole packet update are smaller than those required by the patch update; and for old packet users not lower than the preset resource version number, the application update is carried out in a patch update mode, and for the users, the time and the flow required by the patch update are smaller than those required by the whole packet update. Because the preset engine version number and the preset resource version number can be updated correspondingly along with the update iteration of the application version, the embodiment of the application not only can realize the maintenance of less patch total quantity, but also can realize the provision of an adaptive update mode according to the classification of users, and improve the experience effect of the users when updating the application.
In order that those skilled in the art will better understand the present application, embodiments of the present application will be described below with reference to specific examples in fig. 3 and 4.
As shown in fig. 3, fig. 3 shows a specific example flowchart of an application update method according to an embodiment of the present application.
Step 301, reading a local engine version number and a local resource version number; when an application is started, a corresponding file under an application installation path can be read to obtain a local engine version number and a local resource version number, wherein the local engine version number is a version number corresponding to the local engine version, and the local resource version number is a version number corresponding to the local resource version; the local engine version number is determined by the release time of the application installation package, and the local resource version number is determined by the resource version of the application in the last normal running;
step 302, judging whether the local engine version number is lower than a preset engine version number; if yes, go to step 303; if not, go to step 305; the preset engine version number is a version number corresponding to the preset engine version and is used as a dividing basis of new and old users;
step 303, judging whether the local resource version number is lower than a preset resource version number; if yes, determining that the activity of the user of the application is low, and executing step 304; if not, determining that the activity of the user of the application is higher, and executing step 305; the preset resource version number is a version number corresponding to the preset resource version and is used as a division basis for judging whether the activity of the user accords with the expectations;
step 304, whole package updating;
in step 305, the patch is updated.
Fig. 4 is a schematic diagram of a patch maintenance total amount of a specific example of an application updating method according to an embodiment of the present application.
In the example shown in fig. 4, the latest resource version number is 219week; the default resource version number is 190week, the default engine version number is 198week, and the corresponding reference resource version number is 198week. The installation package A, B, C in fig. 4 shows a case where the application is distributed in the market, and it can be understood that the current engine version number corresponding to the application installed in the terminal device may be any of 138week, 186week, and 198week. According to the relation between the current engine version number and the preset engine version number, users corresponding to the application installation packages A and B can be divided into old package users, and users corresponding to the application installation package C can be divided into new package users; according to the preset resource version number, the users of the application can be divided into active users and inactive users, corresponding updating modes are determined according to different user classifications, and the following table 1 can be summarized in specific cases:
| installation bag | Current resource version | User classification | Results |
| Installation package A/B | 190week front | Old pack inactive users | Full package update |
| Installation package A/B | 190 week/after | Active user of old package | Patch update |
| Installation bag C | 198 week/after | New package active user | Patch update |
Table 1: application classification summary table for different installation packages in FIG. 4
In the embodiment of the application, the users of the application are divided into the new package user and the old package user through the preset engine version number, the users of the application are divided into the active user and the inactive user through the preset resource version number, the updating mode adopted for the old package active user is patch updating, the updating mode for the old package inactive user is whole package updating, the old package active user is not influenced by application updating when the application is used, the loss of the old user can be effectively reduced, the total patch maintenance amount can be effectively reduced, and further the patch packing time and the patch comparison time when the application is updated through patches are reduced. In the above example, the patch only needs to include the update files of 190week to 219week, and the maintenance content of 138week to 190week is reduced compared with the maintenance content required in the prior art (see fig. 1).
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the application.
Referring to fig. 5, there is shown a block diagram of an embodiment of an application updating apparatus according to the present application, in which the apparatus may specifically include the following modules:
a first obtaining module 501, configured to obtain current version information and preset update information of an application in response to a start operation of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number;
a first determining module 502, configured to determine whether the current engine version number is lower than the preset engine version number, and whether the current resource version number is lower than the preset resource version number, so as to obtain a determination result;
a first determining module 503, configured to determine an update manner of the application according to the determination result.
Optionally, the first determining module 503 includes:
the first updating sub-module is used for determining that the updating mode of the application is whole-packet updating when the current engine version number is lower than the preset engine version number and when the current resource version number is lower than the preset resource version number;
and the second updating sub-module is used for determining that the updating mode of the application is patch updating when the current engine version number is lower than the preset engine version number and the current resource version number is not lower than the preset resource version number.
Optionally, the first determining module 503 further includes:
and the third updating sub-module is used for determining that the updating mode of the application is patch updating when the current engine version number is not lower than the preset engine version number.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the applied patch when the updating mode is patch updating; the patch comprises an update file between the preset resource version number and the latest resource version number;
and the patch updating module is used for updating the application according to the patch.
Optionally, the patch update module includes:
the third acquisition module is used for acquiring a corresponding target update file from the patch according to the current resource version number;
and the updating file updating module is used for updating the application according to the target updating file.
Optionally, the apparatus further comprises:
and the updating prompt module is used for displaying updating prompt information on a display screen of the terminal equipment when the updating mode is whole package updating.
Optionally, the apparatus further comprises:
the installation package downloading module is used for receiving downloading operation aiming at a new version application installation package and obtaining the new version application installation package;
and the installation package updating module is used for installing and covering the local installation package of the application by adopting the new application.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the application also discloses an electronic device which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the steps of the application updating method when being executed by the processor.
Embodiments of the present application also disclose a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the application update method as described above.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail a method for updating applications, a device for updating applications, an electronic device and a storage medium, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, and the above examples are provided only to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.
Claims (9)
1. An application updating method, the method comprising:
responding to the starting operation of the application, and acquiring the current version information and preset updating information of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number;
judging whether the current engine version number is lower than the preset engine version number or not and whether the current resource version number is lower than the preset resource version number or not to obtain a judging result;
determining an updating mode of the application according to the judging result;
the step of determining the update mode of the application according to the judging result comprises the following steps:
when the current engine version number is lower than the preset engine version number, and when the current resource version number is lower than the preset resource version number, determining that the updating mode of the application is whole-packet updating;
and when the current engine version number is lower than the preset engine version number, and when the current resource version number is not lower than the preset resource version number, determining that the updating mode of the application is patch updating.
2. The method according to claim 1, wherein determining the update style of the application according to the determination result further comprises:
and when the current engine version number is not lower than the preset engine version number, determining that the updating mode of the application is patch updating.
3. The method according to claim 2, characterized in that the method comprises:
when the updating mode is patch updating, acquiring the applied patch; the patch comprises an update file between the preset resource version number and the latest resource version number;
and updating the application according to the patch.
4. A method according to claim 3, wherein the step of updating the application in accordance with the patch comprises:
obtaining a corresponding target update file from the patch according to the current resource version number
And updating the application according to the target update file.
5. The method according to claim 2, wherein the method further comprises:
and when the updating mode is whole package updating, displaying updating prompt information on a display screen of the terminal equipment.
6. The method of claim 5, wherein the method further comprises:
receiving a downloading operation aiming at a new version application installation package, and acquiring the new version application installation package;
and adopting the new application installation cladding to cover the local installation package of the application.
7. An application updating apparatus, the apparatus comprising:
the first acquisition module is used for responding to the starting operation of the application and acquiring the current version information and preset updating information of the application; the current version information comprises a current engine version number and a current resource version number, and the preset updating information comprises a preset engine version number and a preset resource version number;
the first judging module is used for judging whether the current engine version number is lower than the preset engine version number or not and whether the current resource version number is lower than the preset resource version number or not, so as to obtain a judging result;
the first determining module is used for determining the updating mode of the application according to the judging result;
the first determining module includes:
the first updating sub-module is used for determining that the updating mode of the application is whole-packet updating when the current engine version number is lower than the preset engine version number and when the current resource version number is lower than the preset resource version number;
and the second updating sub-module is used for determining that the updating mode of the application is patch updating when the current engine version number is lower than the preset engine version number and the current resource version number is not lower than the preset resource version number.
8. An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements the steps of the application updating method according to any of claims 1 to 6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the application updating method according to any of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110156223.7A CN112882733B (en) | 2021-02-04 | 2021-02-04 | Application updating method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110156223.7A CN112882733B (en) | 2021-02-04 | 2021-02-04 | Application updating method and device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112882733A CN112882733A (en) | 2021-06-01 |
| CN112882733B true CN112882733B (en) | 2023-09-08 |
Family
ID=76057200
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110156223.7A Active CN112882733B (en) | 2021-02-04 | 2021-02-04 | Application updating method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112882733B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114338533B (en) * | 2021-12-30 | 2024-05-28 | 广东明创软件科技有限公司 | Adjustment method, electronic equipment and computer storage medium |
Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103077054A (en) * | 2012-12-29 | 2013-05-01 | 百度在线网络技术(北京)有限公司 | Control method and device for version preview in cloud application engine |
| WO2014146256A1 (en) * | 2013-03-19 | 2014-09-25 | 华为技术有限公司 | Upgrade method, intelligent terminal, and upgrade system |
| CN104077160A (en) * | 2014-05-12 | 2014-10-01 | 联动优势电子商务有限公司 | Android software upgrading method, device and system |
| WO2016086692A1 (en) * | 2014-12-03 | 2016-06-09 | 中兴通讯股份有限公司 | Method, apparatus and system for performing update processing on service announcement file |
| WO2017028364A1 (en) * | 2015-08-19 | 2017-02-23 | 华为技术有限公司 | Reference signal assignment method and equipment |
| CN106708537A (en) * | 2017-01-22 | 2017-05-24 | 百度在线网络技术(北京)有限公司 | Application updating method and application updating device |
| CN107797817A (en) * | 2017-03-13 | 2018-03-13 | 平安科技(深圳)有限公司 | Using update method and device |
| CN108845816A (en) * | 2018-06-22 | 2018-11-20 | 平安科技(深圳)有限公司 | Application program update method, system, computer equipment and storage medium |
| CN110058873A (en) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | Application page update method, device, equipment and storage medium |
| CN110262827A (en) * | 2019-05-20 | 2019-09-20 | 北京三快在线科技有限公司 | Method, apparatus, storage medium and the electronic equipment of incremental update |
| CN111090444A (en) * | 2019-12-03 | 2020-05-01 | 航天信息股份有限公司 | Version upgrading method and device, storage medium and electronic equipment |
| WO2020087230A1 (en) * | 2018-10-29 | 2020-05-07 | 深圳市欢太科技有限公司 | Method for displaying game page and related product |
| CN111221559A (en) * | 2019-11-05 | 2020-06-02 | 北京达佳互联信息技术有限公司 | Application updating method and device, storage medium, terminal and server |
| CN111708566A (en) * | 2020-06-10 | 2020-09-25 | 深圳云之家网络有限公司 | Software increment updating method, device, system and computer readable storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060277209A1 (en) * | 2005-06-06 | 2006-12-07 | Javaground Usa, Inc. | Efficient and automatic software application development system for wireless devices |
| US9823917B2 (en) * | 2011-10-20 | 2017-11-21 | Facebook, Inc. | Update application user interfaces on client devices |
| US9575744B2 (en) * | 2014-09-26 | 2017-02-21 | Oracle International Corporation | Live updating of a shared plugin registry with no service loss for active users |
| CN108089879B (en) * | 2016-11-21 | 2021-11-26 | 阿里巴巴(中国)有限公司 | Incremental updating method, equipment and programmable equipment |
| CN107479933A (en) * | 2017-08-21 | 2017-12-15 | 惠州Tcl移动通信有限公司 | A kind of application program for mobile terminal upgrade method, storage device and mobile terminal |
-
2021
- 2021-02-04 CN CN202110156223.7A patent/CN112882733B/en active Active
Patent Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103077054A (en) * | 2012-12-29 | 2013-05-01 | 百度在线网络技术(北京)有限公司 | Control method and device for version preview in cloud application engine |
| WO2014146256A1 (en) * | 2013-03-19 | 2014-09-25 | 华为技术有限公司 | Upgrade method, intelligent terminal, and upgrade system |
| CN104077160A (en) * | 2014-05-12 | 2014-10-01 | 联动优势电子商务有限公司 | Android software upgrading method, device and system |
| WO2016086692A1 (en) * | 2014-12-03 | 2016-06-09 | 中兴通讯股份有限公司 | Method, apparatus and system for performing update processing on service announcement file |
| WO2017028364A1 (en) * | 2015-08-19 | 2017-02-23 | 华为技术有限公司 | Reference signal assignment method and equipment |
| CN106708537A (en) * | 2017-01-22 | 2017-05-24 | 百度在线网络技术(北京)有限公司 | Application updating method and application updating device |
| CN107797817A (en) * | 2017-03-13 | 2018-03-13 | 平安科技(深圳)有限公司 | Using update method and device |
| CN108845816A (en) * | 2018-06-22 | 2018-11-20 | 平安科技(深圳)有限公司 | Application program update method, system, computer equipment and storage medium |
| WO2020087230A1 (en) * | 2018-10-29 | 2020-05-07 | 深圳市欢太科技有限公司 | Method for displaying game page and related product |
| CN110058873A (en) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | Application page update method, device, equipment and storage medium |
| CN110262827A (en) * | 2019-05-20 | 2019-09-20 | 北京三快在线科技有限公司 | Method, apparatus, storage medium and the electronic equipment of incremental update |
| CN111221559A (en) * | 2019-11-05 | 2020-06-02 | 北京达佳互联信息技术有限公司 | Application updating method and device, storage medium, terminal and server |
| CN111090444A (en) * | 2019-12-03 | 2020-05-01 | 航天信息股份有限公司 | Version upgrading method and device, storage medium and electronic equipment |
| CN111708566A (en) * | 2020-06-10 | 2020-09-25 | 深圳云之家网络有限公司 | Software increment updating method, device, system and computer readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112882733A (en) | 2021-06-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11106446B2 (en) | Preinstalled application management method for mobile terminal and mobile terminal | |
| CN108027741B (en) | File processing method, device, terminal and storage medium based on patch upgrade | |
| KR100952251B1 (en) | A method of updating a software product by a service package, a computer-implemented method, a computer readable storage medium, and a service package | |
| CN105786538B (en) | software upgrading method and device based on android system | |
| CN108874437B (en) | Online cloud updating method for android application program | |
| US8667486B2 (en) | Automatic provisioning of a software platform to a device ecosystem | |
| CN108647032B (en) | Application loading method and apparatus, computer apparatus and computer-readable storage medium | |
| CN107220074B (en) | Method and device for accessing and upgrading supporting layer software function | |
| CN112463191A (en) | File updating method and device, equipment and storage medium | |
| US20150067668A1 (en) | Installation engine and package format | |
| CN115129348B (en) | Resource updating method, device and equipment of application program and readable storage medium | |
| CN110888658A (en) | Dynamic method and device for functional module in application program and storage medium | |
| CN108089873A (en) | A kind of method and terminal of application component immediate updating | |
| CN110908734A (en) | Application combination method and device based on plug-in, terminal equipment and storage medium | |
| CN110502251B (en) | Application installation method and device | |
| CN110825417A (en) | Application program updating method and system | |
| CN107729042A (en) | Mobile solution upgrade method and device, storage medium, electronic equipment | |
| CN112882733B (en) | Application updating method and device, electronic equipment and storage medium | |
| CN113377400A (en) | Software upgrading method and device, storage medium and electronic equipment | |
| CN107479923A (en) | Application program updating method, apparatus and display terminal | |
| CN116069366A (en) | Client application program updating method and device, storage medium and electronic equipment | |
| CN108595292A (en) | System optimization method, mobile terminal and computer storage medium | |
| CN114625404A (en) | Method and device for upgrading application program | |
| CN106502728A (en) | Management method and device for downloading application program and electronic equipment | |
| CN111708567B (en) | Application processing method and device |
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 |