CN114579167A - Method, device and storage medium for downloading application upgrade file - Google Patents

Method, device and storage medium for downloading application upgrade file Download PDF

Info

Publication number
CN114579167A
CN114579167A CN202011398585.9A CN202011398585A CN114579167A CN 114579167 A CN114579167 A CN 114579167A CN 202011398585 A CN202011398585 A CN 202011398585A CN 114579167 A CN114579167 A CN 114579167A
Authority
CN
China
Prior art keywords
upgrade
downloading
upgrading
download
target application
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.)
Pending
Application number
CN202011398585.9A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011398585.9A priority Critical patent/CN114579167A/en
Publication of CN114579167A publication Critical patent/CN114579167A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Abstract

The application provides a method, a device and a storage medium for downloading an application upgrade file, which are used for ensuring minimum granularity upgrade of an application and reducing the error rate of the application. When the target application is started, sending an upgrading request message to an upgrading server, wherein the upgrading request message at least carries current version information of the target application; receiving an upgrade response message returned by the upgrade server, wherein the upgrade response message is determined by the upgrade server according to a pre-configured upgrade strategy based on the current version information, and the upgrade response message comprises at least one piece of download related information, and each piece of download related information corresponds to a functional module to be upgraded in the target application; and respectively downloading the upgrade files associated with the corresponding functional modules based on the at least one piece of downloading related information. In the application upgrading process, the upgrading file of the functional module to be upgraded is downloaded, the application file is changed a little, the error rate of application is reduced, and the functional module mode is adopted for upgrading, so that the minimum granularity upgrading of the application is ensured.

Description

Method, device and storage medium for downloading application upgrade file
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for downloading an application upgrade file, and a storage medium.
Background
With the development of science and technology, more and more functions are applied, and when the functions in the application are updated, a new version needs to be released for the application, that is, version upgrade is performed, so that the application needs to be upgraded frequently.
At present, in the application upgrading process, the whole upgrading file corresponding to the application needs to be downloaded, and the specific upgrading method is as follows:
when the application is started, an upgrading request is sent to an upgrading server; after determining that the upgrading strategy is hit according to the upgrading request, the upgrading server returns an upgrading response message containing upgrading configuration information such as an upgrading mode, a target downloading address corresponding to the whole upgrading file and the like; the application adopts an upgrading mode in the upgrading response message, and sends a downloading request to an upgrading file downloading server corresponding to the target downloading address to download the whole upgrading file corresponding to the application; the application checks the whole upgrade file after receiving the whole upgrade file, and installs the upgrade file after the check is passed.
In the application upgrading process, the whole upgrading file corresponding to the application needs to be installed, and the more the upgrading file is changed, the more the possibility of problems is.
Disclosure of Invention
The application provides a method, a device and a storage medium for downloading an application upgrade file, which are used for reducing file downloading, ensuring minimum granularity upgrade of an application and reducing the error rate of the application.
In a first aspect, an embodiment of the present application provides a method for downloading an application upgrade file, where the method includes:
when the target application is started, sending an upgrading request message to an upgrading server, wherein the upgrading request message at least carries current version information of the target application;
receiving an upgrade response message returned by the upgrade server, wherein the upgrade response message is determined by the upgrade server according to a pre-configured upgrade strategy based on the current version information, and the upgrade response message comprises at least one piece of download related information, and each piece of download related information corresponds to a functional module to be upgraded in the target application;
and respectively downloading the upgrade files associated with the corresponding functional modules based on the at least one piece of downloading related information.
In a second aspect, an embodiment of the present application provides a method for downloading an application upgrade file, where the method includes:
receiving an upgrade request message sent when a target application is started, wherein the upgrade request message at least carries current version information of the target application;
generating an upgrade response message comprising at least one piece of download-related information according to a pre-configured upgrade strategy based on the current version information of the target application carried in the upgrade request message, wherein each piece of download-related information corresponds to a functional module to be upgraded in the target application;
and returning an upgrade response message to the client corresponding to the target application so that the client corresponding to the target application downloads the upgrade files associated with the corresponding functional modules respectively based on at least one piece of download related information in the upgrade response message.
In a third aspect, an embodiment of the present application provides an apparatus for downloading an application upgrade file, where the apparatus includes:
the sending unit is used for sending an upgrading request message to the upgrading server when the target application is started, wherein the upgrading request message at least carries current version information of the target application;
the first receiving unit is used for receiving an upgrade response message returned by the upgrade server, wherein the upgrade response message comprises at least one piece of download related information, the download related information is determined by the upgrade server based on the current version information and according to a pre-configured upgrade strategy, and each piece of download related information corresponds to one function module to be upgraded in the target application;
and the downloading unit is used for respectively downloading the upgrading files related to the corresponding functional modules based on at least one piece of downloading related information.
In a possible implementation manner, the downloading unit is specifically configured to:
determining the priority order of at least one functional module to be upgraded corresponding to the downloading related information;
and respectively downloading the upgrading files associated with the corresponding functional modules according to the priority sequence.
In a possible implementation manner, the downloading unit is specifically configured to:
if any piece of downloading related information in the at least one piece of downloading related information is a first downloading address of the upgrading file related to the functional module, directly sending a downloading request for downloading the upgrading file to a first server corresponding to the first downloading address based on the first downloading address, and downloading the upgrading file related to the functional module from the first server;
if any download related information in the at least one download related information is a second download address of the configuration file associated with the function module, sending a download request for downloading the configuration file to a second server corresponding to the second download address based on the second download address; analyzing the configuration file returned by the second server to obtain a first download address of the upgrading file associated with the corresponding functional module; and based on the first download address, sending a download request for downloading the upgrade file to a first server corresponding to the first download address, and downloading the upgrade file associated with the functional module from the first server.
In a possible implementation manner, the downloading unit is further specifically configured to:
respectively downloading the upgrade files associated with the corresponding functional modules based on at least one piece of downloading related information, and then storing each obtained upgrade file and corresponding version information in a designated storage area;
and when the target application program is restarted, acquiring each upgrading file from the designated storage area, and upgrading the corresponding functional module in the target application according to each upgrading file.
In a fourth aspect, an embodiment of the present application provides an apparatus for downloading an application upgrade file, where the apparatus includes:
the second receiving module is used for receiving an upgrade request message sent when the target application is started, wherein the upgrade request message at least carries current version information of the target application;
the generation module is used for generating an upgrade response message comprising at least one piece of download related information based on the current version information of the target application carried in the upgrade request message and according to a pre-configured upgrade strategy, wherein each piece of download related information corresponds to a function module to be upgraded in the target application;
and the return module is used for returning the upgrade response message to the client corresponding to the target application so as to enable the client corresponding to the target application to respectively download the upgrade files associated with the corresponding functional modules based on at least one piece of download related information in the upgrade response message.
In a possible implementation manner, the generating module is specifically configured to:
traversing a pre-configured upgrading strategy;
when the upgrading strategy is determined to contain the current version information of the target application, the upgrading version information corresponding to the target application is obtained from the upgrading strategy;
when the matching of the functional module recorded in the upgrading version information and the functional module recorded in the current version information fails, taking at least one functional module which is recorded in the upgrading version information and fails in matching as at least one functional module to be upgraded;
acquiring downloading related information corresponding to at least one functional module to be upgraded based on downloading related information corresponding to each functional module recorded in upgrade version information configured in an upgrade strategy;
and configuring at least one piece of downloading related information into the upgrading response message.
In a possible implementation manner, the generating module is specifically configured to:
and configuring the downloading relevant information corresponding to the at least one functional module to be upgraded into the upgrade response message according to the priority sequence of the at least one functional module to be upgraded.
In a fifth aspect, an embodiment of the present application provides an apparatus for downloading an application upgrade file, including: a memory and a processor, wherein the memory is used for storing computer instructions; the processor is used for executing the computer instructions to implement the method for downloading the application upgrade file provided by the embodiment of the application.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where computer instructions are stored, and when executed by a processor, the computer instructions implement a method for downloading an application upgrade file, provided by an embodiment of the present application.
The beneficial effect of this application is as follows:
the application provides a method, a device and a storage medium for downloading an application upgrade file; in the application, when a target application is started, an upgrade request message carrying current version information of the target application is sent to an upgrade server, and an upgrade response message which is returned by the upgrade server and comprises at least one piece of download-related information is received, wherein the upgrade response message is determined by the upgrade server based on the current version information and according to a pre-configured upgrade strategy, each piece of download-related information corresponds to one function module to be upgraded in the target application, and further, based on at least one piece of download-related information, upgrade files related to the corresponding function modules are respectively downloaded. In the application, when the application is upgraded, the whole upgrade file corresponding to the target application does not need to be downloaded, only the upgrade file of the functional module to be upgraded is downloaded, so that file downloading is reduced, resources are saved, and the mode of configuring the functional modules in different ways is adopted, so that the minimum granularity upgrade of the application is ensured, and the error rate of the application is reduced.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for application upgrade in the related art;
fig. 2 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 3 is a flowchart of an overall method for downloading an application upgrade file according to an embodiment of the present disclosure;
fig. 4 is a management interface diagram for configuring an upgrade policy according to an embodiment of the present application;
fig. 5 is a method for generating an upgrade response message according to an embodiment of the present application;
fig. 6 is a flowchart of an overall method for downloading an application upgrade file according to an embodiment of the present disclosure;
FIG. 7 is a flowchart of a method for restarting a target application according to an embodiment of the present disclosure;
fig. 8 is a flowchart of a method for downloading an application upgrade file according to an embodiment of the present disclosure;
fig. 9 is a flowchart of another method for downloading an application upgrade file according to an embodiment of the present disclosure;
fig. 10 is a structural diagram of an apparatus for downloading an application upgrade file according to an embodiment of the present application;
fig. 11 is a block diagram of another apparatus for downloading an application upgrade file according to an embodiment of the present disclosure;
fig. 12 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution and advantages of the present application more clearly and clearly understood, the technical solution in the embodiments of the present application will be described below in detail and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
Some terms in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
1. The function module is a function corresponding to one function in the application, taking the instant messaging application as an example, the instant messaging application includes functions of voice communication, video communication, text input, position sharing and the like, and each function corresponds to one function module at this time.
2. A Web application (Webapp) is an application program accessed through a network, and may also refer to an application program that is loaded by computer software in a browser-supported environment or rendered by using a browser-supported language and relying on a Web browser, and is generally run in a television terminal, a television box, and a mobile phone terminal.
3. The gray level limit times are gray level on-line limit times, wherein the gray level on-line limit times are core requirements simply drawn out according to product requirement priorities, the upper limit is fast under the condition that basic requirements of users are met, product use is conducted through mechanisms such as flow limitation and white lists, opinions of the users are collected, potential requirements of the users are extracted, and a subsequent more targeted design scheme is formed. It is apparent that the number of times of the gradation limitation, and the number of times of updating the design solution according to the opinion of the user are limited.
4. Build is a software name, is mainly used for distinguishing versions in different periods on software release, is a version mark during compiling, and generally has an increasing sequence number. Build is therefore used primarily to identify the version of the software, Build within the version number, indicating that this version is the result of a few compilations, after which a number or date is usually set.
5. A Globally Unique Identifier (GUID) is an alphanumeric Identifier used to indicate Unique installation of an application for use in many popular software applications, such as Web browsers and media players.
6. Cloud technology refers to a hosting technology for unifying series of resources such as hardware, software, and network in a wide area network or a local area network to realize calculation, storage, processing, and sharing of data.
Cloud technology (Cloud technology) is based on a general term of network technology, information technology, integration technology, management platform technology, application technology and the like applied in a Cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. Cloud computing technology will become an important support. Background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture-like websites and more web portals. With the high development and application of the internet industry, each article may have its own identification mark and needs to be transmitted to a background system for logic processing, data in different levels are processed separately, and various industrial data need strong system background support and can only be realized through cloud computing.
The following briefly introduces the design concept of the embodiments of the present application.
Applications are used more and more widely in life of users, one application can include a plurality of functions, when any function in the application is updated, a new version needs to be released for the application, namely, the application needs to be upgraded every time one function is updated, and therefore frequent upgrading may be needed for one application.
In the related art, the method shown in fig. 1 is generally adopted for an upgrade scheme for an application. Fig. 1 exemplarily provides a method for application upgrade in the related art. Specifically, the method comprises the following steps:
when an application is started, a client corresponding to the application initiates an upgrade request message to an upgrade server, wherein the upgrade request carries application related information such as a user account, current version information of the application and the like;
the upgrading server judges whether the application hits an upgrading strategy or not according to the application related information carried in the upgrading request message;
after determining that the application hits the upgrade strategy, the upgrade server returns an upgrade response message containing upgrade configuration information to the client corresponding to the application, wherein the upgrade configuration information comprises: the method comprises the following steps of (1) a version number, a whole upgrade file downloading address, a whole upgrade file check code, an upgrade prompt mode and prompt information;
the corresponding client is applied to send a downloading request message to an upgrade file downloading server corresponding to the upgrade file downloading address in the upgrade response information;
in the related technology, before a client corresponding to an application sends a download request message to an upgrade file download server corresponding to an upgrade file download address in upgrade configuration information, whether a user needs to be prompted to perform application version upgrade is determined according to an upgrade prompting mode and prompting information in the upgrade configuration information;
if the user needs to be prompted to update the version, after an updating instruction triggered by the user is received, a downloading request message is sent to an updating file downloading server corresponding to an updating file downloading address in an updating response message;
and if the user does not need to be prompted to update the version, directly sending a downloading request message to an upgrade file downloading server corresponding to the upgrade file downloading address.
And after receiving the download request message, the upgrade file download server returns the latest whole upgrade file corresponding to the download address of the upgrade file to the client corresponding to the application, the client corresponding to the application checks the whole upgrade file through the upgrade file check code in the upgrade response message, after the check is passed, the application is upgraded and installed through the whole upgrade file, and after the upgrade installation is completed, the application is restarted.
At present, the application upgrading mode in the related art is suitable for upgrading the native application version. The following disadvantages are associated with webapp:
the upgrading and installing process is long: the entire upgrade file for the native application is large relative to the webapp and the file needs to be compiled. And the webapp can run directly on a static page without compiling.
Is unsafe: in the related art, when application upgrade is performed, the whole upgrade file of the application needs to be installed. The more online publication of the modified file is problematic, the greater the probability that it will cause a higher error rate for the application. And the problem is not only for webapp, but the same problem exists for native apps as well.
In view of this, the present application provides a method for downloading an application upgrade file, which is suitable for downloading the upgrade file in the upgrade process of the webapp and the native app. In the application, a configuration strategy of the sub-function modules is mainly adopted, the sub-function module configuration ensures application minimum granularity upgrade, and in the version upgrade process, only the upgrade file corresponding to the updated function module needs to be downloaded, namely, only the upgrade file corresponding to the updated function module is changed, so that the situation that the more the files are changed, the more the problem possibility is, is avoided, and the error rate of the application is reduced.
After the design idea of the embodiment of the present application is introduced, some simple descriptions are made below for application scenarios to which the technical solution of the embodiment of the present application can be applied. It should be noted that the following application scenarios are only used for illustrating the embodiments of the present application and are not limited thereto. In a specific implementation process, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Fig. 2 exemplarily provides a schematic diagram of an application scenario of the embodiment of the present application, where the application scenario includes a terminal device 20 and a server 21.
The terminal device 20 is an electronic device used by a user, and the electronic device may be a computer device having a certain computing capability and running instant messaging software and a website or social software and a website, such as a personal computer, a mobile phone, a tablet computer, a notebook, an electronic book reader, and the like; the terminal device 20 may also be a Television (TV) or a TV box, etc.
The server 21 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
In an alternative embodiment, the terminal device 20 and the server 21 may communicate with each other via a communication network. The communication network is a wired network or a wireless network. The terminal device 20 is indirectly connected to the server 21 through the wireless access point, or the terminal device 20 is directly connected to the server 21 through the internet, which is not limited herein.
In one possible implementation, the server 21 may include a background management server 211, an upgrade server 212, and an upgrade file download server 213; wherein:
and the background management server 211 is configured to provide an upgrade policy configuration interface and store the configured upgrade policy.
The background management server 211 is connected to the upgrade server 212, so that the upgrade server 212 obtains the upgrade policy in the background management server 211 from the upgrade background management server 211.
The upgrade server 212 is specifically configured to traverse an upgrade policy according to an upgrade request message sent by a client of a started target application, and determine whether to upgrade the target application; after determining to upgrade the target application, returning an upgrade response message including upgrade configuration information to the client of the target application;
the upgrade configuration information includes, but is not limited to, part or all of the following: and downloading related information of the functional module to be upgraded, upgrading the file check code and prompting the file.
The client of the target application sends a download request to the upgrade file download server 213 according to the download related information in the upgrade configuration information, so as to obtain the upgrade file of the functional module to be upgraded.
It should be noted that, the functions corresponding to the upgrade server 212 and the upgrade file download server 213 of the background management server 211 may be disposed in at least one server 21.
Taking the example that the functions corresponding to the background management server 211, the upgrade server 212, and the upgrade file download server 213 are set in the same server 21, that is, the functions of the background management server 211, the upgrade server 212, and the upgrade file download server 213 are implemented by one server 21. Of course, the present invention may also be disposed in different servers 21, and the present application is not limited herein.
In a possible implementation manner, the present application provides a service for the terminal device 20 in a cloud computing manner. Cloud computing (cloud computing) is a computing model that distributes computing tasks over a pool of resources made up of a large number of computers, each of which may act as a server, enabling various applications to obtain computing power, storage space, and information services as needed. The network that provides the resources is referred to as the "cloud". Resources in the "cloud" appear to the user as being infinitely expandable and available at any time, available on demand, expandable at any time, and paid for on-demand.
And storing the data in the server in a cloud storage mode. A distributed cloud storage system (hereinafter, referred to as a storage system) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of different types in a network through application software or application interfaces to cooperatively work by using functions such as cluster application, grid technology, and a distributed storage file system, and provides a data storage function and a service access function to the outside.
At present, a storage method of a storage system is as follows: logical volumes are created, and when created, each logical volume is allocated physical storage space, which may be the disk composition of a certain storage device or of several storage devices. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as data Identification (ID), the file system writes each object into a physical storage space of the logical volume, and the file system records storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.
The process of allocating physical storage space for the logical volume by the storage system specifically includes: physical storage space is divided in advance into stripes according to a group of capacity measures of objects stored in a logical volume (the measures often have a large margin with respect to the capacity of the actual objects to be stored) and Redundant Array of Independent Disks (RAID), and one logical volume can be understood as one stripe, thereby allocating physical storage space to the logical volume.
Based on the application scenario in fig. 2, a method for downloading an application upgrade file in the embodiment of the present application is described as an example.
Referring to fig. 3, fig. 3 exemplarily provides a method for downloading an application upgrade file in an embodiment of the present application, which is suitable for downloading the application upgrade file in an upgrade process of a native app and a webapp, and the method includes the following steps:
step S300, when the target application is started, the client corresponding to the target application sends an upgrade request message to the upgrade server, wherein the upgrade request message carries the relevant information of the target application.
In one possible implementation manner, when a user starts a target application, a client corresponding to the target application sends an upgrade request message to an upgrade server to determine whether a current version of the target application needs to be upgraded.
The upgrade request message carries relevant information of the target application, and the relevant information of the target application comprises the following steps: current version information of the target application, login account number, channel number, GUID, Media Access Control (MAC), and the like.
Step S301, after receiving the upgrade request message of the target application, the upgrade server generates an upgrade response message including at least one download-related information based on the related information of the target application carried in the upgrade request message and a pre-configured upgrade policy.
The at least one piece of downloading related information is one piece of upgrading configuration information, and is determined by the upgrading server according to the upgrading strategy, and each piece of downloading related information corresponds to one functional module to be upgraded in the target application.
In the present application, the upgrade configuration information includes information such as an upgrade file check code, a prompt document, and the like, in addition to at least one piece of download related information.
It should be noted that, in a possible implementation manner, the upgrade response message including the upgrade configuration information may also be generated based on the relevant information of the target application carried in the upgrade request message and the pre-configured upgrade policy; the upgrade configuration information comprises at least one piece of information such as download related information, an upgrade file check code, a prompt case and the like.
In the application, the functional module to be upgraded is formed by packaging and splitting a front-end code of a target application according to each function and code structure relation of the target application; at the moment, the target application is split into at least one functional module, the upgrading of a single functional module or a plurality of functional modules is supported, the configuration of the functional modules is divided, the minimum granularity upgrading is guaranteed, and the online release risk and the error rate of the target application are reduced.
In the present application, the upgrade policy is updated or configured by the backend management server. Fig. 4 exemplarily provides a management interface diagram for configuring an upgrade policy in an embodiment of the present application. The dimensions supported by the upgrade policy include, but are not limited to, part or all of the following:
the system comprises an upgrading mode, an operator, gray limit times, a target version and a corresponding target Build, a minimum version to be upgraded and a corresponding Build, a maximum version to be upgraded and a corresponding Build, an upgrading date range, an area, an upgrading file check code, a GUID black and white list, an MAC black and white list and a prompt document.
The target version is a version to which the target application needs to be upgraded;
the minimum version to be upgraded is used as a judgment condition for judging whether the target application needs to be upgraded or not;
the maximum version to be upgraded is consistent with the minimum version to be upgraded and is a judgment condition for judging whether the target application needs to be upgraded or not;
the minimum version to be upgraded and the maximum version to be upgraded form an interval range of the version to be upgraded, and when the current version of the target application is within the interval range of the version to be upgraded, the target application needs to be upgraded.
In the application, after receiving the upgrade request message, the upgrade server detects whether the target application needs to be upgraded or not based on the relevant information of the target application carried in the upgrade request message and a pre-configured upgrade strategy, and generates a corresponding response message according to a detection result. Fig. 5 exemplarily provides a method for generating an upgrade response message by an upgrade server in an embodiment of the present application, including the following steps:
step S500, the upgrade server traverses the pre-configured upgrade strategy.
Step S501, the upgrade server determines whether the upgrade policy includes the relevant information of the target application, if yes, step S502 is executed, otherwise step S503 is executed.
Step S502, the upgrade server determines that the target application needs to be upgraded, and generates an upgrade response message for indicating the upgrade of the target application.
Take the relevant information of the target application as the current version information of the target application as an example.
The upgrading server traverses a preconfigured upgrading strategy, determines whether a version-to-be-upgraded interval range formed by a minimum version to be upgraded and a maximum version to be upgraded in the upgrading strategy contains current version information of the target application, determines that the target application needs to be upgraded when the upgrading strategy contains the current version information of the target application, and searches upgrading version information corresponding to the target application in the upgrading strategy.
Further, matching the functional modules recorded in the upgrade version information with the functional modules recorded in the current version information, and when the matching is determined to fail, taking at least one functional module which is recorded in the upgrade version information and failed in matching as at least one functional module to be upgraded;
wherein, the matching failure condition is as follows: a certain function module is recorded in the upgrade version information, but the current version information is not recorded;
the function module is recorded in both the upgrade version information and the current version information, but the function module recorded in the upgrade version information is updated with respect to the function module recorded in the current version information.
And determining the downloading related information corresponding to the functional module to be upgraded in the downloading related information corresponding to each functional module recorded in the upgrade version information configured in the upgrade strategy, and then configuring the downloading related information corresponding to at least one functional module to be upgraded in the upgrade response message.
In a possible implementation manner, when the download related information corresponding to at least one functional module to be upgraded is configured in the upgrade response message:
because at least one functional module to be upgraded needs to be upgraded, in order to solve the dependency relationship between the functional modules, the priority order of the at least one functional module to be upgraded needs to be determined, and the download related information corresponding to the at least one functional module to be upgraded is configured into the upgrade response message according to the priority order of the at least one functional module to be upgraded.
It should be noted that, in the present application, the upgrade server may also return at least one to-be-upgraded function module and corresponding download related information in the form of an array, where the array specifies a priority order of the to-be-upgraded function modules, and thus, when obtaining the upgrade files of the to-be-upgraded function modules, the upgrade files of the to-be-upgraded function modules may be loaded preferentially according to the array order.
In the application, information such as the upgrade file check code and the prompt file configured in the upgrade strategy is also configured in the upgrade response message.
Therefore, the upgrade response message generated by the upgrade server carries the upgrade configuration information, and the upgrade configuration information includes at least one piece of download-related information, an upgrade file check code, a prompt file, and the like.
In step S503, the upgrade server determines whether the upgrade policy has been traversed, if so, step S505 is executed, otherwise, step S500 is executed.
In a possible implementation manner, the upgrade policy further includes information such as the number of grayscale limits, a login account, a GUID, and the like. And when determining that the current version information of the target application is not contained, continuously traversing the upgrading strategy, and determining whether the information comprises the information such as the login account number, the GUID and the like in the related information of the target application.
In step S504, the upgrade server determines that the target application does not need to be upgraded, and generates a response message indicating that the target application is not upgraded.
In the application, when the upgrading server determines that the target application needs to be upgraded, an upgrade response message for indicating the upgrading of the target application is generated, and the upgrade response message for indicating the upgrading of the target application carries upgrade configuration information such as downloading related information for acquiring at least one functional module to be upgraded;
the upgrading server returns an upgrading response message for indicating the upgrading of the target application to the client corresponding to the target application, namely, the upgrading response message comprising at least one piece of downloading related information is returned to the client corresponding to the target application; and the client corresponding to the target application downloads the upgrading file associated with the at least one functional module to be upgraded according to the downloading related information, and upgrades the functional module to be upgraded according to the downloaded at least one upgrading file, so as to realize the upgrading of the target application.
And after the upgrading server determines that the target application needs upgrading, generating a response message for indicating that the target application is not upgraded, and returning the response message to the client corresponding to the target application so as to normally start the target application.
Step S302, the upgrade server returns an upgrade response message including at least one piece of download related information to the client corresponding to the target application.
In a possible implementation manner, after the upgrade server determines that the target application does not need to be upgraded, a response message for indicating that the target application is not upgraded is generated, and at this time, the upgrade server returns the response message for indicating that the target application is not upgraded to the client corresponding to the target application, so that the client corresponding to the target application does not perform any processing after receiving the response message, and the program of the target application is normally executed.
In this application, any one of the at least one piece of download-related information may be a first download address of the upgrade file associated with the function module, and may also be a second download address of the configuration file associated with the function module. In the application, when the downloading related information is different, the modes of obtaining the upgrading file associated with the functional module to be upgraded are different.
If any one of the at least one piece of download-related information is the first download address of the upgrade file associated with the functional module, executing step S303 when the client corresponding to the target application acquires the upgrade file of the functional module to be upgraded according to the download-related information;
if any one of the at least one piece of download-related information is the second download address of the configuration file associated with the function module, the step S603 is executed when the client corresponding to the target application acquires the upgrade file of the function module to be upgraded according to the download-related information, which is specifically shown in the embodiment shown in fig. 6.
Step S303, the client corresponding to the target application sends a download request for downloading the upgrade file to the first server corresponding to the first download address according to the first download address of the upgrade file associated with the at least one functional module.
Because any piece of download-related information in the at least one piece of download-related information included in the upgrade response message acquired by the client corresponding to the target application is the first download address of the upgrade file associated with the functional module, when the client corresponding to the target application acquires the upgrade file associated with the functional module to be upgraded, the client corresponding to the target application can directly send a download request for downloading the upgrade file to the first server corresponding to the first download address based on the first download address, and download the upgrade file associated with the functional module from the first server.
In a possible implementation manner, when a download request for downloading an upgrade file is sent to a first server corresponding to a first download address according to the first download address of the upgrade file associated with at least one functional module:
determining the priority order of the functional modules to be upgraded corresponding to at least one first download address; after the priority order of the functional modules to be upgraded is determined, the upgrading files associated with the corresponding functional modules are downloaded according to the priority order, and the problem that the upgrading files downloaded by the functional modules depend on each other is solved.
Step S304, after the first server receives the download request for downloading the upgrade file, the upgrade file associated with the corresponding functional module to be upgraded is determined according to the first download address.
Step S305, the first server returns an upgrade file associated with each functional module to be upgraded to the client corresponding to the target application.
Step S306, the client corresponding to the target application checks each upgrade file, and after the check is passed, the obtained upgrade file and corresponding version information associated with each functional module to be upgraded are stored in the designated storage area.
In the method, after receiving the upgrade file of the functional module to be upgraded, the client corresponding to the target application verifies the upgrade file associated with each acquired functional module to be upgraded according to the upgrade file verification code carried in the upgrade response message;
and after the functional modules pass the checking, storing the obtained upgrading files and corresponding information associated with the functional modules to be upgraded in a specified storage area.
Note that the Storage area is designated as a Local Storage (Local Storage).
Referring to fig. 6, fig. 6 exemplarily provides another method for downloading an application upgrade file according to an embodiment of the present application, which is suitable for downloading the application upgrade file during the upgrade process of the native app and the webapp, and the method includes the following steps:
step S600, when the target application is started, the client corresponding to the target application sends an upgrade request message to the upgrade server, wherein the upgrade request message carries the relevant information of the target application.
Step S601, after receiving the upgrade request message of the target application, the upgrade server generates an upgrade response message including at least one download related information based on the related information of the target application carried in the upgrade request message and a pre-configured upgrade strategy.
Step S602, the upgrade server returns an upgrade response message including at least one piece of download-related information to the client corresponding to the target application.
It should be noted that, for the specific implementation of steps S600 to S602 and the implementation of steps S300 to S302, the specific implementation process may refer to the description of steps S300 to S302, and is not described herein again.
Step S603, the client corresponding to the target application sends a download request for downloading the configuration file to a second server corresponding to a second download address according to the second download address of the configuration file associated with at least one functional module in the at least one piece of download-related information.
Any one piece of downloading related information in the at least one piece of downloading related information included in the upgrade response message acquired by the client corresponding to the target application is the second downloading address of the configuration file associated with the function module, and does not include the first downloading address of the upgrade file associated with the function module.
Therefore, when the client corresponding to the target application acquires the upgrade file associated with the functional module to be upgraded, the client cannot directly acquire the upgrade file of the functional module to be upgraded from the first server corresponding to the first download address of the upgrade file.
At this time, a download request for downloading the configuration file needs to be sent to a second server corresponding to a second download address based on the second download address of the configuration file associated with the functional module to be upgraded to obtain the configuration file associated with the functional module to be upgraded;
further, after the client corresponding to the target application acquires the configuration file returned by the second server, the configuration file is analyzed, based on the first download address of the upgrade file associated with the functional module to be upgraded configured in the configuration file, a download request for downloading the upgrade file associated with the functional module to be upgraded is sent to the first server corresponding to the first download address, and the upgrade file associated with the functional module to be upgraded is downloaded from the first server.
In a possible implementation manner, when a download request for downloading the configuration file is sent to a second server corresponding to a second download address according to the second download address of the configuration file associated with at least one functional module to be upgraded:
determining the priority order of the functional modules to be upgraded corresponding to the at least one second download address;
after the priority order of the functional modules to be upgraded is determined, downloading the configuration files associated with the corresponding functional modules according to the priority order;
analyzing the configuration file according to the downloading sequence of the configuration file to obtain a first downloading address of an upgrading file associated with the functional module to be upgraded and configured in the configuration file;
and respectively downloading the upgrading files associated with the corresponding functional modules according to the first downloading addresses obtained in the analyzing sequence.
The upgrading files of the functional modules are loaded according to the priority order of the functional modules, and the problem that the upgrading files of the functional modules downloaded by the functional modules depend on each other is solved.
In step S604, after receiving the download request for downloading the configuration file, the second server determines the configuration file associated with the corresponding functional module to be upgraded according to the second download address.
Step S605, the second server returns the configuration file associated with each functional module to be upgraded to the client corresponding to the target application.
Step S606, the client corresponding to the target application parses the configuration file associated with each functional module to be upgraded, and obtains the first download address of the upgrade file associated with the functional module to be upgraded.
It should be noted that, in the parsing process, parsing is performed according to the priority order of the functional modules to be upgraded.
Step S607, the client corresponding to the target application sends a download request for downloading the upgrade file to the first server corresponding to the first download address according to the first download address obtained by the analysis.
Step S608, after receiving the download request for downloading the upgrade file, the first server determines the upgrade file associated with the corresponding functional module to be upgraded according to the first download address.
Step S609, the first server returns an upgrade file associated with each functional module to be upgraded to the client corresponding to the target application.
Step S610, the client corresponding to the target application checks each upgrade file, and after the check is passed, the obtained upgrade file and corresponding version information associated with each functional module to be upgraded are stored in the designated storage area.
It should be noted that, in the present application, the first server and the second server may be the same server and belong to the upgrade file download server.
In the application, after receiving the upgrade file of the functional module to be upgraded, the client corresponding to the target application verifies the obtained upgrade file associated with each functional module to be upgraded according to the upgrade file verification code carried in the upgrade response message, and after the verification is passed, the obtained upgrade file associated with each functional module to be upgraded and corresponding information are stored in the specified storage area.
Note that the Storage area is designated as a Local Storage (Local Storage).
In the application, after the obtained upgrade files and the corresponding version information are stored in the designated storage area, when the target application program is restarted, the upgrade files are obtained from the designated storage area, and the corresponding function modules in the target application are upgraded according to the upgrade files. Fig. 7 exemplarily provides a method of restarting the target application in the embodiment of the present application.
As can be seen from fig. 7, when the target application is started again, the version number of the target application in the local configuration file is obtained and compared with the version number of the target application stored in the designated storage area, where the local configuration file is a file corresponding to the current version information of the target application.
If the version number of the target application stored in the designated storage area is new, loading an upgrade file of the functional module to be upgraded from the designated storage area;
and if the version number of the target application in the local configuration file is new, loading an upgrade file of the functional module to be upgraded from the local configuration file.
In the application, after the upgrade file of the functional module to be upgraded is acquired, the upgrade file passing the verification is stored in the designated storage area, and the corresponding version number is stored in the designated storage area, so that when the target application is restarted, the upgrade file is loaded from the designated storage area to realize the upgrade of the target application, the application does not need to be restarted, the user does not perceive the upgrade of the target application, a silent upgrade mode is realized, and the upgrade time is prolonged.
Fig. 8 exemplarily provides a method for downloading an application upgrade file according to an embodiment of the present application, which is applied to a target application, and includes the following steps:
step S800, when the target application is started, sending an upgrade request message to an upgrade server, wherein the upgrade request message at least carries current version information of the target application;
step S801, receiving an upgrade response message returned by an upgrade server, wherein the upgrade response message is determined by the upgrade server according to a pre-configured upgrade strategy based on current version information, and the upgrade response message comprises at least one piece of download related information, and each piece of download related information corresponds to a function module to be upgraded in a target application;
step S802, based on at least one piece of downloading relevant information, respectively downloading the upgrade files associated with the corresponding functional modules.
In a possible implementation manner, the downloading the upgrade files associated with the corresponding function modules based on at least one piece of downloading related information respectively includes:
determining the priority order of at least one functional module to be upgraded corresponding to the downloading related information;
and respectively downloading the upgrading files associated with the corresponding functional modules according to the priority sequence.
In a possible implementation manner, the downloading the upgrade files associated with the corresponding function modules based on at least one piece of download related information includes:
if any piece of downloading related information in the at least one piece of downloading related information is a first downloading address of the upgrading file related to the functional module, directly sending a downloading request for downloading the upgrading file to a first server corresponding to the first downloading address based on the first downloading address, and downloading the upgrading file related to the functional module from the first server;
if any download related information in the at least one download related information is a second download address of the configuration file associated with the function module, sending a download request for downloading the configuration file to a second server corresponding to the second download address based on the second download address; analyzing the configuration file returned by the second server to obtain a first download address of the upgrading file associated with the corresponding functional module; and based on the first download address, sending a download request for downloading the upgrade file to a first server corresponding to the first download address, and downloading the upgrade file associated with the functional module from the first server.
In a possible implementation manner, after the upgrade files associated with the corresponding function modules are respectively downloaded based on at least one piece of download related information, the obtained upgrade files and corresponding version information are stored in a designated storage area;
and when the target application program is restarted, acquiring each upgrading file from the designated storage area, and upgrading the corresponding functional module in the target application according to each upgrading file.
Fig. 9 exemplarily provides another method for downloading an application upgrade file according to an embodiment of the present application, which is applied in an upgrade server, and includes the following steps:
step S900, receiving an upgrade request message sent when a target application is started, wherein the upgrade request message at least carries current version information of the target application;
step S901, generating an upgrade response message including at least one piece of download-related information according to a pre-configured upgrade policy based on the current version information of the target application carried in the upgrade request message, wherein each piece of download-related information corresponds to a function module to be upgraded in the target application;
step S902, an upgrade response message is returned to the target application, so that the target application downloads the upgrade files associated with the corresponding functional modules based on at least one piece of download related information in the upgrade response message.
In a possible implementation manner, generating an upgrade response message including at least one piece of download-related information according to a pre-configured upgrade policy based on current version information of a target application carried in an upgrade request message includes:
traversing a pre-configured upgrading strategy;
when the upgrading strategy is determined to contain the current version information of the target application, the upgrading version information corresponding to the target application is obtained from the upgrading strategy;
when the matching of the functional module recorded in the upgrading version information and the functional module recorded in the current version information fails, taking at least one functional module which is recorded in the upgrading version information and fails in matching as at least one functional module to be upgraded;
acquiring downloading related information corresponding to at least one functional module to be upgraded based on the downloading related information corresponding to each functional module recorded in the upgrade version information configured in the upgrade strategy;
and configuring at least one piece of downloading related information into the upgrading response message.
In one possible implementation manner, configuring at least one piece of download-related information into the upgrade response message includes:
and configuring the downloading relevant information corresponding to the at least one functional module to be upgraded into the upgrade response message according to the priority sequence of the at least one functional module to be upgraded.
Based on the same inventive concept, an embodiment of the present application further provides an apparatus 1000 for downloading an application upgrade file, as shown in fig. 10, where the apparatus 1000 includes:
a sending unit 1001, configured to send an upgrade request message to an upgrade server when a target application is started, where the upgrade request message at least carries current version information of the target application;
a first receiving unit 1002, configured to receive an upgrade response message returned by the upgrade server, where the upgrade response message includes at least one piece of download-related information, the download-related information is determined by the upgrade server according to a preconfigured upgrade policy based on the current version information, and each piece of download-related information corresponds to a function module to be upgraded in the target application;
a downloading unit 1003, configured to respectively download the upgrade files associated with the corresponding functional modules based on at least one piece of downloading related information.
In a possible implementation manner, the downloading unit 1003 is specifically configured to:
determining the priority order of the functional modules to be upgraded corresponding to at least one piece of downloading related information;
and respectively downloading the upgrading files associated with the corresponding functional modules according to the priority sequence.
In a possible implementation manner, the downloading unit 1003 is specifically configured to:
if any piece of downloading related information in the at least one piece of downloading related information is a first downloading address of the upgrading file related to the functional module, directly sending a downloading request for downloading the upgrading file to a first server corresponding to the first downloading address based on the first downloading address, and downloading the upgrading file related to the functional module from the first server;
if any download related information in the at least one download related information is a second download address of the configuration file associated with the function module, sending a download request for downloading the configuration file to a second server corresponding to the second download address based on the second download address; analyzing the configuration file returned by the second server to obtain a first download address of the upgrading file associated with the corresponding functional module; and based on the first download address, sending a download request for downloading the upgrade file to a first server corresponding to the first download address, and downloading the upgrade file associated with the functional module from the first server.
In a possible implementation manner, the downloading unit 1003 is specifically further configured to: respectively downloading the upgrade files associated with the corresponding functional modules based on at least one piece of downloading related information, and then storing each obtained upgrade file and corresponding version information in a designated storage area;
and when the target application program is restarted, acquiring each upgrading file from the designated storage area, and upgrading the corresponding functional module in the target application according to each upgrading file.
Based on the same inventive concept, an embodiment of the present application further provides an apparatus 1100 for downloading an application upgrade file, as shown in fig. 11, where the apparatus 1100 includes:
the second receiving module 1101 is configured to receive an upgrade request message sent when a target application is started, where the upgrade request message at least carries current version information of the target application;
a generating module 1102, configured to generate, based on current version information of the target application carried in the upgrade request message, an upgrade response message including at least one piece of download-related information according to a preconfigured upgrade policy, where each piece of download-related information corresponds to a function module to be upgraded in the target application;
a returning module 1103, configured to return an upgrade response message to the target application, so that the target application downloads, based on at least one piece of download-related information in the upgrade response message, the upgrade files associated with the corresponding function modules, respectively.
In a possible implementation manner, the generating module 1102 is specifically configured to:
traversing a pre-configured upgrading strategy;
when the upgrading strategy is determined to contain the current version information of the target application, the upgrading version information corresponding to the target application is obtained from the upgrading strategy;
when the matching of the functional module recorded in the upgrading version information and the functional module recorded in the current version information fails, taking at least one functional module which is recorded in the upgrading version information and fails in matching as at least one functional module to be upgraded;
acquiring downloading related information corresponding to at least one functional module to be upgraded based on the downloading related information corresponding to each functional module recorded in the upgrade version information configured in the upgrade strategy;
and configuring at least one piece of downloading related information into the upgrading response message.
In a possible implementation manner, the generating module 1102 is specifically configured to:
and configuring the downloading relevant information corresponding to the at least one functional module to be upgraded into the upgrade response message according to the priority sequence of the at least one functional module to be upgraded.
For convenience of description, the above parts are separately described as units (or modules) according to functional division. Of course, the functionality of the various elements (or modules) may be implemented in the same one or more pieces of software or hardware in the practice of the present application.
After the method and the apparatus for downloading an application upgrade file according to the exemplary embodiment of the present application are introduced, a computing device for downloading an application upgrade file according to another exemplary embodiment of the present application is introduced next.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In one possible implementation, a computing device for downloading an application upgrade file provided by an embodiment of the present application may include at least a processor and a memory. Wherein the memory stores program code which, when executed by the processor, causes the processor to perform any of the steps of the method of downloading an application upgrade file of various exemplary embodiments of the present application.
A computing device 1200 that downloads an application upgrade file according to this embodiment of the present application is described below with reference to fig. 12. The computing device 1200 of fig. 12 that downloads the application upgrade file is merely an example, and should not impose any limitations on the functionality or scope of use of embodiments of the present application.
As shown in fig. 12, components of computing device 1200 may include, but are not limited to: the at least one processor 1201, the at least one memory 1202, and the bus 1203 connecting the various system components (including the memory 1202 and the processor 1201).
Bus 1203 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The memory 1202 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)12021 and/or cache memory 12022, and may further include Read Only Memory (ROM) 12023.
Memory 1202 may also include programs/utilities 12025 having a set (at least one) of program modules 12024, such program modules 12024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Computing device 1200 can also communicate with one or more external devices 1204 (e.g., keyboard, pointing device, etc.), as well as with one or more devices that enable a user to interact with computing device 1200, and/or any devices (e.g., router, modem, etc.) that enable computing device 1200 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 1205. Moreover, computing device 1200 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through network adapter 1206. As shown in FIG. 12, the network adapter 1206 communicates with other modules for the computing device 1200 via the bus 1203. It should be understood that although not shown in fig. 12, other hardware and/or software modules may be used in conjunction with computing device 1200, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, various aspects of the method for downloading the application upgrade file provided by the present application may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of the method for downloading the application upgrade file according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for transmission control of a short message according to an embodiment of the present application may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be executed on a computing device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with a command execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method of downloading an application upgrade file, the method comprising:
when a target application is started, sending an upgrade request message to an upgrade server, wherein the upgrade request message at least carries current version information of the target application;
receiving an upgrade response message returned by the upgrade server, wherein the upgrade response message is determined by the upgrade server according to a preconfigured upgrade policy based on the current version information, and the upgrade response message includes at least one piece of download-related information, and each piece of download-related information corresponds to a function module to be upgraded in the target application;
and respectively downloading the upgrading files related to the corresponding functional modules based on the at least one piece of downloading related information.
2. The method of claim 1, wherein the downloading the upgrade files associated with the corresponding function modules based on the at least one download-related information, respectively, comprises:
determining the priority order of the functional modules to be upgraded corresponding to the at least one piece of downloading related information;
and respectively downloading the upgrading files associated with the corresponding functional modules according to the priority sequence.
3. The method according to claim 1 or 2, wherein the downloading the upgrade files associated with the corresponding function modules based on the at least one download-related information respectively comprises:
if any piece of downloading related information in the at least one piece of downloading related information is a first downloading address of an upgrading file related to a functional module, directly sending a downloading request for downloading the upgrading file to a first server corresponding to the first downloading address based on the first downloading address, and downloading the upgrading file related to the functional module from the first server;
if any download related information in the at least one download related information is a second download address of the configuration file associated with the functional module, sending a download request for downloading the configuration file to a second server corresponding to the second download address based on the second download address; analyzing the configuration file returned by the second server to obtain a first download address of the upgrading file associated with the corresponding functional module; and sending a downloading request for downloading the upgrading file to a first server corresponding to the first downloading address based on the first downloading address, and downloading the upgrading file associated with the functional module from the first server.
4. The method of claim 3, wherein after downloading the upgrade files associated with the corresponding functional modules based on the at least one piece of download-related information, respectively, the method further comprises:
storing each obtained upgrade file and corresponding version information in a designated storage area;
and when the target application program is restarted, acquiring each upgrading file from the designated storage area, and upgrading the corresponding functional module in the target application according to each upgrading file.
5. A method of downloading an application upgrade file, the method comprising:
receiving an upgrade request message sent when a target application is started, wherein the upgrade request message at least carries current version information of the target application;
generating an upgrade response message including at least one piece of download-related information according to a pre-configured upgrade strategy based on the current version information of the target application carried in the upgrade request message, wherein each piece of download-related information corresponds to a functional module to be upgraded in the target application;
and returning the upgrade response message to the client corresponding to the target application, so that the client corresponding to the target application downloads the upgrade files associated with the corresponding functional modules respectively based on at least one piece of download related information in the upgrade response message.
6. The method according to claim 5, wherein the generating an upgrade response message including at least one piece of download-related information according to a preconfigured upgrade policy based on the current version information of the target application carried in the upgrade request message comprises:
traversing a pre-configured upgrading strategy;
when the upgrading strategy is determined to contain the current version information of the target application, the upgrading version information corresponding to the target application is obtained from the upgrading strategy;
when the matching between the functional module recorded in the upgrade version information and the functional module recorded in the current version information fails, taking at least one functional module which is recorded in the upgrade version information and fails in matching as the at least one functional module to be upgraded;
acquiring downloading related information corresponding to at least one functional module to be upgraded based on the downloading related information corresponding to each functional module recorded in the upgrade version information configured in the upgrade strategy;
and configuring the at least one piece of downloading related information into the upgrading response message.
7. The method of claim 6, wherein said configuring said at least one download-related information into said upgrade response message comprises:
and configuring the downloading related information corresponding to the at least one functional module to be upgraded into the upgrade response message according to the priority order of the at least one functional module to be upgraded.
8. An apparatus for downloading an application upgrade file, the apparatus comprising:
the system comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending an upgrading request message to an upgrading server when a target application is started, and the upgrading request message at least carries current version information of the target application;
a first receiving unit, configured to receive an upgrade response message returned by the upgrade server, where the upgrade response message includes at least one piece of download-related information, the download-related information is determined by the upgrade server according to a preconfigured upgrade policy based on the current version information, and each piece of download-related information corresponds to a function module to be upgraded in the target application;
and the downloading unit is used for respectively downloading the upgrading files related to the corresponding functional modules based on the at least one piece of downloading related information.
9. An apparatus for downloading an application upgrade file, the apparatus comprising:
the second receiving module is used for receiving an upgrade request message sent when a target application is started, wherein the upgrade request message at least carries current version information of the target application;
a generating module, configured to generate, based on current version information of a target application carried in the upgrade request message, an upgrade response message including at least one piece of download-related information according to a preconfigured upgrade policy, where each piece of download-related information corresponds to a function module to be upgraded in the target application;
and the return module is used for returning the upgrade response message to the client corresponding to the target application so as to enable the client corresponding to the target application to respectively download the upgrade files associated with the corresponding functional modules based on at least one piece of download related information in the upgrade response message.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions which, when executed by a processor, implement the method of any one of claims 1-4 and implement the method of any one of claims 5-7.
CN202011398585.9A 2020-12-02 2020-12-02 Method, device and storage medium for downloading application upgrade file Pending CN114579167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011398585.9A CN114579167A (en) 2020-12-02 2020-12-02 Method, device and storage medium for downloading application upgrade file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011398585.9A CN114579167A (en) 2020-12-02 2020-12-02 Method, device and storage medium for downloading application upgrade file

Publications (1)

Publication Number Publication Date
CN114579167A true CN114579167A (en) 2022-06-03

Family

ID=81770537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011398585.9A Pending CN114579167A (en) 2020-12-02 2020-12-02 Method, device and storage medium for downloading application upgrade file

Country Status (1)

Country Link
CN (1) CN114579167A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811413A (en) * 2022-07-15 2023-03-17 北京金朗维科技有限公司 Online upgrading method and device for wireless code scanning equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811413A (en) * 2022-07-15 2023-03-17 北京金朗维科技有限公司 Online upgrading method and device for wireless code scanning equipment
CN115811413B (en) * 2022-07-15 2023-07-25 北京金朗维科技有限公司 Online upgrading method and device for wireless code scanning equipment

Similar Documents

Publication Publication Date Title
US11032140B2 (en) Using a template to update a stack of resources
US9489227B2 (en) Apparatus and method for virtual desktop service
US20200322284A1 (en) Tracking costs for a deployable instance
US11010215B2 (en) Recommending applications based on call requests between applications
US20210173665A1 (en) Bootstrapping Profile-Guided Compilation and Verification
US9990214B2 (en) Dynamic agent delivery
CN110825479A (en) Page processing method and device, terminal equipment, server and storage medium
US9590859B2 (en) Discovering resources of a distributed computing environment
US20180146072A1 (en) Creation of a binding based on a description associated with a server
US8856365B2 (en) Computer-implemented method, computer system and computer readable medium
US20090210871A1 (en) System and method for software application migration
US10404568B2 (en) Agent manager for distributed transaction monitoring system
KR20070008619A (en) Execution of unverified programs in a wireless device operating environment
CN111880826A (en) Cloud service application upgrading method and device, electronic equipment and storage medium
US20160371071A1 (en) Account-based software upgrades in a multi-tenant ecosystem
CN112769706B (en) Componentized routing method and system
CN107800779B (en) Method and system for optimizing load balance
CN114579167A (en) Method, device and storage medium for downloading application upgrade file
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN116069366A (en) Client application program updating method and device, storage medium and electronic equipment
CN114610446B (en) Method, device and system for automatically injecting probe
US20180246860A1 (en) Dynamic cognitive optimization of web applications
CN114490124A (en) Method, device, equipment and medium for calling Application Programming Interface (API)
CN115552369A (en) Compiling method, compiling device, compiling system, storage medium and electronic device
CN113449216A (en) File processing method and device 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