CN115412589A - Method for realizing upgrading in application without service end based on appointed mode - Google Patents

Method for realizing upgrading in application without service end based on appointed mode Download PDF

Info

Publication number
CN115412589A
CN115412589A CN202210817270.6A CN202210817270A CN115412589A CN 115412589 A CN115412589 A CN 115412589A CN 202210817270 A CN202210817270 A CN 202210817270A CN 115412589 A CN115412589 A CN 115412589A
Authority
CN
China
Prior art keywords
upgrading
program
downloading
application
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210817270.6A
Other languages
Chinese (zh)
Other versions
CN115412589B (en
Inventor
阳纯正
唐宏才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Yuyi Technology Co ltd
Original Assignee
Hunan Yuyi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Yuyi Technology Co ltd filed Critical Hunan Yuyi Technology Co ltd
Priority to CN202210817270.6A priority Critical patent/CN115412589B/en
Publication of CN115412589A publication Critical patent/CN115412589A/en
Application granted granted Critical
Publication of CN115412589B publication Critical patent/CN115412589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for realizing upgrading in application without a service end based on an appointed mode, and relates to the technical field of network services. The method for upgrading the application without the service end based on the appointed mode comprises the following steps: according to a preset downloading address coding rule of the upgrade package, when the APP is started, the upgrade package downloading address is formed by splicing directly according to the rule, the upgrade package downloading address is directly accessed for downloading, and if the downloading is successful, the upgrade operation is executed. The method provided by the invention reduces the network request operation of upgrading in the application by half, can effectively reduce the network request, and simultaneously improves the upgrading efficiency in the application, can be used for upgrading the application, can also be expanded to the noninductive upgrading of various contents such as functional modules, business logic, dynamic resources and the like required in the application, and can realize the effects of just-in-time downloading and upgrading speed improvement based on a cloud platform, thereby having excellent user application upgrading experience.

Description

Method for realizing upgrading in application without service end based on appointed mode
Technical Field
The invention relates to the technical field of network services, in particular to a method for realizing upgrading in application without a service end based on an appointed mode.
Background
The main process of upgrading in the application at present is to detect the version by connecting a server when the APP is started, if the version is updated, the server returns a download address of the new version, and the APP executes downloading and upgrading operations after receiving the address.
The advantage of this method is that the server can change the download address of the new version at any time, but the disadvantage is that it needs to buy and configure the server support, there are extra cost expenditure and post-maintenance work, and most APP has not much possibility to change the download address of the new version in its life cycle. Meanwhile, since there is a link of server detection in the process, once the server is inaccessible or changed, the upgrade operation cannot be completed.
Disclosure of Invention
Solves the technical problem
Aiming at the defects of the prior art, the invention provides a method for upgrading in the application without the service end based on an agreed mode, and solves the problems that the existing application upgrading needs to be supported by a purchase and configuration server, extra cost expenditure and later maintenance work exist, and most of APPs do not have too much possibility of needing to change a new version of download address in the life cycle. Meanwhile, because a link of detection of the server exists in the process, once the server is inaccessible or changed, the upgrading operation cannot be completed.
Technical scheme
In order to achieve the purpose, the invention is realized by the following technical scheme: the method for upgrading the application without the service end based on the appointed mode comprises the following steps:
s1: according to a preset downloading address coding rule of the upgrade package, directly splicing according to the rule to form an upgrade package downloading address when the APP is started, and storing the upgrade package by using a third-party cloud storage platform and providing access to the outside;
s2: directly accessing the download address of the upgrade package for downloading, accelerating the download process in a CDN mode, judging whether the download can be successful according to the download result, and entering the following conditional branch:
a: when the downloading is successful, indicating that upgrading requirements exist, and entering the next step;
b: and if the downloading is unsuccessful, the upgrading is not performed, and the process is directly ended.
S3: and executing an upgrading operation, decompressing a program upgrading package to a temporary directory, closing a currently running program, copying the program to be upgraded to a target directory, reading an upgrading configuration file in the upgrading package, finishing the parameter transmission operation of version detection and other additional service attributes by combining an OPTION method provided by third-party cloud storage, and finishing the flow after successful installation.
Preferably, the content of the rule agreed in S1) includes: program domain name, program root path, program product identification, and program version number.
Preferably, the engagement rules in S1) are arranged in priority, and include a first engagement rule and a second engagement rule, where the first engagement rule is that necessary programs take precedence, and the second engagement rule is that unnecessary programs take precedence.
Preferably, the application upgrade package in S1) includes an upgrade program, a program domain name, a program root path, a program product identifier, a program version number, and an upgrade configuration file, where path information of other files is saved in the upgrade configuration file.
Preferably, in S2), the upgrade package download address formed by the node server is placed at each location of the third-party cloud storage platform, and the CDN system redirects the access request to the service node closest to the access address in real time according to the network traffic, the connection of each node, the load condition, the distance to the access address, the response time, and other comprehensive information, so as to obtain the required content nearby and improve the response speed of the user in accessing the website.
Preferably, in S3), when the third-party cloud storage platform has a program upgrade package, the configuration file to be upgraded is copied to the target directory during the upgrade process, and the file with the version number saved is copied to the target directory at the same time.
Advantageous effects
The invention has the following beneficial effects: the method provided by the invention reduces the network request operation of upgrading in the application by half, can effectively reduce the network request, and simultaneously improves the upgrading efficiency in the application, can be used for upgrading the application, can also be expanded to the noninductive upgrading of various contents such as functional modules, service logics, dynamic resources and the like required in the application, and can realize the effects of near downloading and second upgrading on the basis of a cloud platform, thereby having excellent user application upgrading experience.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
In the description of the present invention, it is to be understood that the terms "opening," "upper," "lower," "thickness," "top," "middle," "length," "inner," "peripheral," and the like are used in an orientation or positional relationship that is merely for convenience in describing and simplifying the description, and do not indicate or imply that the referenced component or element must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be considered as limiting the present invention.
Referring to fig. 1, an embodiment of the present invention provides a technical solution: the method for upgrading the application without the service end based on the appointed mode comprises the following steps:
s1: according to a preset downloading address coding rule of the upgrade package, directly splicing according to the rule to form an upgrade package downloading address when the APP is started, and storing the upgrade package by using a third-party cloud storage platform and providing access to the outside;
s2: directly accessing the download address of the upgrade package for downloading, accelerating the download process in a CDN mode, judging whether the download can be successful according to the download result, and entering the following conditional branch:
a: when the downloading is successful, indicating that upgrading requirements exist, and entering the next step;
b: if the downloading is not successful, the upgrading is not performed, and the process is directly ended.
S3: and executing an upgrading operation, decompressing a program upgrading package to a temporary directory, closing a currently running program, copying the program to be upgraded to a target directory, reading an upgrading configuration file in the upgrading package, finishing the parameter transmission operation of version detection and other additional service attributes by combining an OPTION method provided by third-party cloud storage, and finishing the flow after successful installation.
Further, the content of the rule agreed in S1) includes: program domain name, program root path, program product identification, and program version number.
Further, the appointment rules in S1) are arranged in priority, and include a first appointment rule and a second appointment rule, where the first appointment rule is a priority for essential programs, and the second appointment rule is a priority for non-essential programs.
Further, the application upgrade package in S1) includes an upgrade program, a program domain name, a program root path, a program product identifier, a program version number, and an upgrade configuration file, where path information of other files is stored in the upgrade configuration file.
Further, in S2), an upgrade package download address formed by node servers is placed at each location of the third-party cloud storage platform, and the CDN system redirects the access request to the service node closest to the access address in real time according to the network traffic and the comprehensive information such as the connection of each node, the load condition, the distance to the access address, and the response time, so as to obtain the required content nearby and improve the response speed of the user in accessing the website.
Further, in the step S3), when a third-party cloud storage platform has a program upgrade package, copying a configuration file to be upgraded to a target directory during an upgrade process, and copying a file with a version number saved to the target directory
When the system is used (in work), according to a downloading address coding rule of an upgrade package agreed in advance, when an APP is started, the upgrade package downloading address is formed by splicing directly according to the rule, a third-party cloud storage platform is used for storing the upgrade package and providing access to the outside, the application upgrade package comprises an upgrade program, a program domain name, a program root path, a program product identifier, a program version number and an upgrade configuration file, and the upgrade configuration file stores path information of other files;
directly accessing the download address of the upgrade package for downloading, redirecting the access request to the service node closest to the access address through the CDN system in real time according to the network flow, the connection of each node, the load condition, the distance to the access address, the response time and other comprehensive information, acquiring the required content nearby and improving the response speed of the user for accessing the website;
judging whether the downloading is successful or not according to the downloading result, if the downloading is successful, indicating that an upgrading requirement exists, executing upgrading operation, decompressing a program upgrading package to a temporary directory, closing a currently running program, copying the program needing upgrading to a target directory, reading an upgrading configuration file in the upgrading package, combining an OPTION method provided by third-party cloud storage, finishing the parameter transmission operation of version detection and other additional service attributes, and finishing the flow after the installation is successful;
and if the downloading is unsuccessful, the upgrading is not performed, and the process is directly ended.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims (6)

1. The method for upgrading in the application without the service end based on the appointed mode is characterized in that: the method comprises the following steps:
s1: according to a preset downloading address coding rule of the upgrade package, directly splicing according to the rule to form an upgrade package downloading address when the APP is started, and storing the upgrade package by using a third-party cloud storage platform and providing access to the outside;
s2: directly accessing the download address of the upgrade package for downloading, accelerating the download process in a CDN mode, judging whether the download can be successful according to the download result, and entering the following conditional branch:
a: when the downloading is successful, indicating that upgrading requirements exist, and entering the next step;
b: if the downloading is not successful, the upgrading is not performed, and the process is directly ended.
S3: and executing an upgrading operation, decompressing the program upgrading packet to a temporary directory, closing the currently running program, copying the program to be upgraded to a target directory, reading an upgrading configuration file in the upgrading packet, finishing the parameter transmission operation of version detection and other additional service attributes by combining an OPTION method provided by a third-party cloud storage, and finishing the flow after successful installation.
2. The method for upgrading in a serverless application implemented on a contract-based basis as claimed in claim 1, wherein: the content of the convention rule in the S1) comprises the following steps: program domain name, program root path, program product identification, and program version number.
3. The method for upgrading in a serverless application implemented on a contract-based basis as claimed in claim 2, wherein: the appointment rules in S1) are arranged in priority mode and comprise a first appointment rule and a second appointment rule, the first appointment rule is that necessary programs take precedence, and the second appointment rule is that unnecessary programs take precedence.
4. The method for upgrading in a serverless application implemented on an agreed basis according to claim 1, wherein: the application upgrade package in S1) includes an upgrade program, a program domain name, a program root path, a program product identifier, a program version number, and an upgrade configuration file, where path information of other files is stored in the upgrade configuration file.
5. The method for upgrading in a serverless application implemented on a contract-based basis as claimed in claim 1, wherein: in the step S2), the upgrade package download address formed by the node server is placed at each position of the third-party cloud storage platform, the CDN system redirects the access request to the service node closest to the access address in real time according to the network flow, the connection of each node, the load condition, the distance to the access address, the response time and other comprehensive information, so as to obtain the required content nearby and improve the response speed of the user for accessing the website.
6. The method for upgrading in a serverless application implemented on a contract-based basis as claimed in claim 1, wherein: and in the S3), when the third-party cloud storage platform has the program upgrading package, copying the configuration file to be upgraded to the target directory in the upgrading process, and copying the file with the version number to the target directory.
CN202210817270.6A 2022-07-12 2022-07-12 Method for realizing upgrading in service-free end application based on appointed mode Active CN115412589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210817270.6A CN115412589B (en) 2022-07-12 2022-07-12 Method for realizing upgrading in service-free end application based on appointed mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210817270.6A CN115412589B (en) 2022-07-12 2022-07-12 Method for realizing upgrading in service-free end application based on appointed mode

Publications (2)

Publication Number Publication Date
CN115412589A true CN115412589A (en) 2022-11-29
CN115412589B CN115412589B (en) 2023-10-31

Family

ID=84158000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210817270.6A Active CN115412589B (en) 2022-07-12 2022-07-12 Method for realizing upgrading in service-free end application based on appointed mode

Country Status (1)

Country Link
CN (1) CN115412589B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1300761A1 (en) * 2001-10-04 2003-04-09 Brendan Tschabold Methods for upgrading or updating data and software on computers
CN102387220A (en) * 2011-12-22 2012-03-21 乐视网信息技术(北京)股份有限公司 Offline downloading method and system based on cloud storage
CN107147750A (en) * 2017-07-21 2017-09-08 广州爱九游信息技术有限公司 Upload, packing apparatus and service platform, download server and distribution method
CN108076134A (en) * 2017-10-31 2018-05-25 努比亚技术有限公司 Record information acquisition method, terminal, server and computer readable storage medium
CN109257428A (en) * 2018-09-27 2019-01-22 火烈鸟网络(广州)股份有限公司 Using the distribution method of packet, device, storage medium and equipment
CN112312213A (en) * 2019-07-30 2021-02-02 青岛海信传媒网络技术有限公司 Upgrading method of digital television system and related device
CN114500510A (en) * 2022-01-28 2022-05-13 深圳市优必选科技股份有限公司 Request information response method, device, communication equipment and storage medium
CN114610357A (en) * 2022-03-31 2022-06-10 中国电子科技集团公司第三十研究所 Container mirror image and software system resource separate release, deployment and upgrade method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1300761A1 (en) * 2001-10-04 2003-04-09 Brendan Tschabold Methods for upgrading or updating data and software on computers
CN102387220A (en) * 2011-12-22 2012-03-21 乐视网信息技术(北京)股份有限公司 Offline downloading method and system based on cloud storage
CN107147750A (en) * 2017-07-21 2017-09-08 广州爱九游信息技术有限公司 Upload, packing apparatus and service platform, download server and distribution method
CN108076134A (en) * 2017-10-31 2018-05-25 努比亚技术有限公司 Record information acquisition method, terminal, server and computer readable storage medium
CN109257428A (en) * 2018-09-27 2019-01-22 火烈鸟网络(广州)股份有限公司 Using the distribution method of packet, device, storage medium and equipment
CN112312213A (en) * 2019-07-30 2021-02-02 青岛海信传媒网络技术有限公司 Upgrading method of digital television system and related device
CN114500510A (en) * 2022-01-28 2022-05-13 深圳市优必选科技股份有限公司 Request information response method, device, communication equipment and storage medium
CN114610357A (en) * 2022-03-31 2022-06-10 中国电子科技集团公司第三十研究所 Container mirror image and software system resource separate release, deployment and upgrade method

Also Published As

Publication number Publication date
CN115412589B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN107948135B (en) Data processing method and device supporting multiple API protocols
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
CN110677462B (en) Access processing method, system, device and storage medium for multi-block chain network
CN106357738A (en) Automatic arrangement method for server cluster and device as well as system thereof
CN101216834A (en) File downloading method, system, device and server
CN109617780A (en) Access method, apparatus, terminal device and the machine readable storage medium of network
CN112615747B (en) Method and device for automatically deploying and configuring network equipment
CN104699499A (en) Heterogeneous terminal software upgrading method
CN114090033A (en) OTA (over the air) upgrading method and device, electronic equipment and readable medium
CN105556918B (en) A kind of resource downloading method and electronic equipment
CN115412589A (en) Method for realizing upgrading in application without service end based on appointed mode
CN109783092A (en) A kind of application program installation method and device
CN102904935B (en) Downloading method, downloading device and downloading system based on home gateway
CN113014626A (en) Data service management method and device, storage medium and electronic device
CN110069505B (en) Offline data processing method and offline data updating device
CN109697072A (en) Information processing method, device and equipment
CN111770487B (en) Access Point Name (APN) information configuration method, equipment and medium
CN115001889A (en) Device control method, electronic device, and storage medium
US20030174646A1 (en) Apparatus and method for scheduling of file transfers for wireless networks
CN115843073A (en) Network slice selection method, mobile management function entity and terminal
CN114816556A (en) Request processing method and device and server
CN113852846A (en) Route + IPTV fusion terminal and upgrading method thereof
CN102902564A (en) Method and device for installing patches
CN1186956C (en) Method of modifying setting and content of hand set through short message
CN114610346B (en) Software upgrading method, device, storage medium and electronic equipment

Legal Events

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