CN109032638A - Hot update method, server and the mobile terminal of mobile application software - Google Patents

Hot update method, server and the mobile terminal of mobile application software Download PDF

Info

Publication number
CN109032638A
CN109032638A CN201810793097.4A CN201810793097A CN109032638A CN 109032638 A CN109032638 A CN 109032638A CN 201810793097 A CN201810793097 A CN 201810793097A CN 109032638 A CN109032638 A CN 109032638A
Authority
CN
China
Prior art keywords
jsbundle
file
client
server
application software
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.)
Withdrawn
Application number
CN201810793097.4A
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.)
Guangzhou Chenrui Software Technology Co Ltd
Original Assignee
Guangzhou Chenrui Software 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 Guangzhou Chenrui Software Technology Co Ltd filed Critical Guangzhou Chenrui Software Technology Co Ltd
Priority to CN201810793097.4A priority Critical patent/CN109032638A/en
Publication of CN109032638A publication Critical patent/CN109032638A/en
Withdrawn legal-status Critical Current

Links

Classifications

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

Landscapes

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

Abstract

The present invention relates to apply more frontier, the in particular to hot update method of a kind of mobile application software, comprising: server receives version information, JSBundle file and the picture resource compressed package for the application software that developer uploads;Server generates JSBundle patch and picture resource delta package;JSBundle patch and picture resource delta package are packaged and generate the delta package needed for application software updates by server;Server receives the update request of the client of application software on mobile terminal, when determining that client needs to update according to the version of client, issues delta package to client and completes heat update.The present invention also while proposing a kind of server and mobile terminal.The heat that the present invention is able to achieve mobile application software updates, it is installed without downloading complete installation kit, and since the small volume of delta package can quickly update the chance for reducing and updating and reporting an error, realizes that the application software in the case of user's unaware updates, improve the experience of user.

Description

Hot update method, server and the mobile terminal of mobile application software
Technical field
The present invention relates to applying more frontier, in particular to the hot update method of a kind of mobile application software, server and Mobile terminal.
Background technique
With the development of mobile internet, mobile terminal can realize powerful function by numerous APP.Tradition is mobile APP update when, be all the installation kit of entire application software is uploaded to these softwares of application shop distribution channel or On the server of application software developer oneself, and user is merely able to reinstall APP progress full dose when updating It updates.
Present this update mode in the case where installation kit volume is larger or network condition is poor, full dose update into Degree is slow and is easy error, and it is bad to ultimately cause user experience, and is also unfavorable for software users and carries out software deployment.
Summary of the invention
Embodiments of the present invention aim to solve at least one of the technical problems existing in the prior art.For this purpose, of the invention Embodiment need to provide hot update method, server and the mobile terminal of a kind of mobile application software.
A kind of hot update method of mobile application software of embodiment of the present invention characterized by comprising
Step 11, server receives version information, JSBundle file and the picture money for the application software that developer uploads Source compressed package;Wherein, JSBundle file and picture resource compressed package are by developer to using or comprising JavaScript language The application software developed, which is packaged, to be generated;
Step 12, server is generated according to received version information, JSBundle file and picture resource compressed package JSBundle patch and picture resource delta package;
Step 13, JSBundle patch and picture resource delta package are packaged and with the names of received version information by server Generate the delta package needed for application software updates;
Step 14, server receives the update request of the client of application software on mobile terminal, according to the version of client When this determination client needs to update, delta package is issued to client and completes heat update.
In a kind of embodiment, in step 11, JSBundle and picture resource compressed package by developer to use or comprising The application software that JavaScript language is developed is packaged to generate
Step 111, JS code non-in the application software for using or developing comprising JavaScript language is converted into JS code simultaneously compiles;
Step 112, code dependency analysis is carried out to JS code, finds out all JS files of dependence and is packaged into module;
Step 113, the JS code that step 111 compiles and the module that step 112 encapsulates are merged into JSBundle file;
Step 114, it obtains picture resource file and generates picture resource compressed package by original route compression.
In a kind of embodiment, step 12 includes:
Step 121, server unzips it received picture resource compressed package, then verifies new and old picture file MD5 signature, obtains the picture resource delta package of the picture file including newly-increased picture file and change;
Step 122, server by utilizing preset algorithm finds out the string content modified in JSBundle file, raw At the JSBundle patch comprising row filename to be updated and line number.
In a kind of embodiment, step 14 includes:
Step 141, server receives the update request of the client of application software on mobile terminal, and update request includes The current Release parameter of client;
Step 142, server compares newest Release parameter on client current Release parameter and server; If the current version of client is less than newest version on server end, return needs undated parameter to client;
Step 143, server receives the update confirmation of client, issues delta package to client and completes heat update.
Embodiment of the present invention also proposes the hot update method of another mobile application software characterized by comprising
Step 21, the user end to server of application software issues the request for checking and updating on mobile terminal, which asks Seek the Release parameter current including client;
Step 22, it determines that the current version of client is less than newest version on server end, receives server feedback Need undated parameter;
Step 23, according to undated parameter is needed, issuing to the user of mobile terminal includes being confirmed whether to carry out hot update Update prompt;
Step 24, the confirmation for agreeing to carry out hot update according to user issues to server and obtains the request for updating packet, obtains The delta package of corresponding version;Wherein, which is packaged JSBundle patch and picture resource delta package by server and is generated, The version information for the application software that JSBundle patch and picture resource delta package are uploaded by server according to received developer, JSBundle file and picture resource compressed package generate;
Step 25, delta package is decompressed and obtains JSBundle patch and picture resource, the text that will be modified in picture resource Part is moved to respective directories to realize the replacement of file to be modified, and newly-increased picture file is moved to respective file catalogue; The filename and line number of the JSBundle patch pressed out simultaneously according to solution, are inserted into the JSBundle file of client local, The full dose packet for generating JSBundle file, is supplied to client call.
Embodiment of the present invention proposes a kind of server characterized by comprising
Receiving module, version information, JSBundle file and the picture money of the application software for receiving developer's upload Source compressed package;Wherein, JSBundle file and picture resource compressed package are by developer to using or comprising JavaScript language The application software developed, which is packaged, to be generated;
First generation module, for generating according to received version information, JSBundle file and picture resource compressed package JSBundle patch and picture resource delta package;
Second generation module, for JSBundle patch and picture resource delta package to be packaged and with received version information Name generates the delta package needed for application software updates;
Delta package issues module, and the update for receiving the client of application software on mobile terminal is requested, according to client When the version at end determines that client needs to update, delta package is issued to client and completes heat update.
In a kind of embodiment, JSBundle and picture resource compressed package by developer using conversion compilation unit, rely on Analytical unit, combining unit and compression unit are packaged life to the application software for using or being developed comprising JavaScript language At;Wherein,
Convert compilation unit, non-JS generation in the application software for that will use or develop comprising JavaScript language Code is converted into JS code and compiles;
Dependency analysis unit is found out all JS files of dependence and is encapsulated for carrying out code dependency analysis to JS code At module;
Combining unit, the module for encapsulating the JS code and dependency analysis unit of converting compilation unit compiling are merged into JSBundle file;
Compression unit generates picture resource compressed package for obtaining picture resource file and compressing by original route.
In a kind of embodiment, the first generation module includes:
Then picture resource delta package unit verifies new and old for unziping it to received picture resource compressed package The MD5 of picture file signs, and obtains the picture resource delta package of the picture file including newly-increased picture file and change;
JSBundle patch unit, for utilizing preset algorithm, the string content that will be modified in JSBundle file It finds out, generates the JSBundle patch comprising row filename and line number to be updated.
In a kind of embodiment, delta package issues module and includes:
Receiving unit, the update for receiving the client of application software on mobile terminal are requested, and update request includes The current Release parameter of client;
Comparison unit, for comparing newest Release parameter on client current Release parameter and server; If the current version of client is less than newest version on server end, return needs undated parameter to client;
Issuance unit, the update for receiving client confirm, issue delta package to client and complete heat update.
Embodiment of the present invention proposes a kind of mobile terminal characterized by comprising
Request module, for issuing the request for checking and updating to server, update request includes the current version of client This parameter;
Receiving module receives server for determining that the current version of client is less than newest version on server end Feedback needs undated parameter;
Cue module includes being confirmed whether to carry out heat for being issued to the user of mobile terminal according to undated parameter is needed The update of update prompts;
Module is obtained, for agreeing to carry out the confirmation of hot update according to user, is obtained to server sending and updates asking for packet It asks, obtains the delta package of corresponding version;Wherein, which is beaten JSBundle patch and picture resource delta package by server The version for the application software that packet generation, JSBundle patch and picture resource delta package are uploaded by server according to received developer This information, JSBundle file and picture resource compressed package generate;
Update module obtains JSBundle patch and picture resource for decompressing to delta package, will modify in picture resource The file crossed is moved to respective directories to realize the replacement of file to be modified, and newly-increased picture file is moved to respective file Catalogue;The filename and line number of the JSBundle patch pressed out simultaneously according to solution, are inserted into the JSBundle of client local File generates the full dose packet of JSBundle file, is supplied to client call.
Hot update method, server and the mobile terminal of the mobile application software of embodiment of the present invention, can be realized shifting The heat of dynamic application software updates, and installs without the complete installation kit of downloading application software, and due to the volume of delta package compared with It is small quickly to update the chance for reducing and updating and reporting an error, it realizes that the application software in the case of user's unaware updates, improves user Experience.
The advantages of additional aspect of the invention, will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
The above-mentioned and/or additional aspect and advantage of embodiments of the present invention are from combination following accompanying drawings to embodiment It will be apparent and be readily appreciated that in description, in which:
Fig. 1 is a kind of flow diagram of the hot update method of mobile application software of embodiment of the present invention;
Fig. 2 is a kind of composition schematic diagram of server of embodiment of the present invention;
Fig. 3 is the flow diagram of the hot update method of another mobile application software of embodiment of the present invention;
Fig. 4 is a kind of composition schematic diagram of mobile terminal of embodiment of the present invention.
Specific embodiment
Embodiments of the present invention are described below in detail, the example of embodiment is shown in the accompanying drawings, wherein identical or class As label indicate same or similar element or element with the same or similar functions from beginning to end.Below with reference to attached The embodiment of figure description is exemplary, and can only be used to explain embodiments of the present invention, and should not be understood as to the present invention Embodiment limitation.
Embodiment 1
Referring to Fig. 1, a kind of hot update method of mobile application software of embodiment of the present invention, comprising:
Step 11, server receives version information, JSBundle file and the picture money for the application software that developer uploads Source compressed package;Wherein, JSBundle file and picture resource compressed package are by developer to using or comprising JavaScript language The application software developed, which is packaged, to be generated.JSBundle file is packaged on exploitation computer and generates JavaScript source code Bundle file, picture resource file are indicated using assets in the present embodiment.
Step 12, server is generated according to received version information, JSBundle file and picture resource compressed package JSBundle patch and picture resource delta package.
Step 13, JSBundle patch and picture resource delta package are packaged and with the names of received version information by server Generate the delta package needed for application software updates.
Step 14, server receives the update request of the client of application software on mobile terminal, according to the version of client When this determination client needs to update, delta package is issued to client and completes heat update.
Accordingly, as shown in Fig. 2, embodiment of the present invention also proposes a kind of server, comprising: receiving module, the first life Module is issued at module, the second generation module and delta package, wherein modules are described below:
Receiving module, version information, JSBundle file and the picture money of the application software for receiving developer's upload Source compressed package;Wherein, JSBundle file and picture resource compressed package are by developer to using or comprising JavaScript language The application software developed, which is packaged, to be generated.
First generation module, for generating according to received version information, JSBundle file and picture resource compressed package JSBundle patch and picture resource delta package.
Second generation module, for JSBundle patch and picture resource delta package to be packaged and with received version information Name generates the delta package needed for application software updates.
Delta package issues module, and the update for receiving the client of application software on mobile terminal is requested, according to client When the version at end determines that client needs to update, delta package is issued to client and completes heat update.
In a kind of hot update method of mobile application software of the present embodiment, using server as the execution pair of step As, or the execution object using the modules in server as step.Specifically, step 11 is using receiving module as step Execution object, execution object of the step 12 using the first generation module as step, step 13 using the second generation module as step Rapid execution object, step 14 issue module as the execution object of step using delta package.
The version information for the application software that in a step 11, the receiving module reception developer of server uploads, JSBundle file and picture resource compressed package;Wherein, JSBundle file and picture resource compressed package are by developer to using Or the application software developed comprising JavaScript language is packaged and generates.
It is as follows that JSBundle file and picture resource compressed package assets are packaged the process generated:
Step 111, JS code non-in the application software for using or developing comprising JavaScript language is converted into JS code simultaneously compiles.I.e. to using or comprising the application software that JavaScript language is developed, pass through parsing JavaScript code finds out ES6 code and JSX code, and using Babel compiler, ES6 code and JSX code are converted into JavaScript code simultaneously compiles.
Step 112, code dependency analysis is carried out to JS code, finds out all JS files of dependence and is packaged into module.I.e. To using or comprising the application software that JavaScript language is developed, analyze JavaScript code and rely on, and recurrence is looked for All JavaScript files relied on out, are encapsulated as individual module file.
Step 113, the JS code that step 111 compiles and the module that step 112 encapsulates are merged into JSBundle file.
Step 114, it obtains picture resource file assets and generates picture resource compressed package by original route compression.Pass through The picture resource file for obtaining different primary platforms, by script path compression and is named as assets.tar.
JSBundle and assets, which are packaged, at this time completes, and developer is by the version information, JSBundle and picture of packing Resource file assets compressed package calls as parameter and uploads file interface, upload onto the server.
Accordingly, the received JSBundle of server and picture resource compressed package by developer using conversion compilation unit, Dependency analysis unit, combining unit and compression unit beat the application software for using or being developed comprising JavaScript language Packet generates;Wherein, each unit is described below:
Convert compilation unit, non-JS generation in the application software for that will use or develop comprising JavaScript language Code is converted into JS code and compiles.I.e. conversion compilation unit to use or comprising JavaScript language developed using soft Part finds out ES6 code and JSX code, using Babel compiler, by ES6 code and JSX by parsing JavaScript code Code is converted into JavaScript code and compiles.ECMAScript 6.0 (hereinafter referred to as ES6) is JavaScript language Generation standard is formally issued in June, 2015.Its target is that JavaScript language is allowed to be used to compile Complicated large-scale application program is write, Enterprise Development language is become.JSX is the core component of React, it is marked using XML The mode of note goes directly to state interface, can be nested against one another between interface assembly.It can be understood as writing in JS similar with XML Language, a kind of grammer of the definition with attribute tree construction (DOM structure), its purpose is not meant in browser or engine real Existing, its purpose is the JS language that these labels are compiled into standard by various compilers.
Dependency analysis unit is found out all JS files of dependence and is encapsulated for carrying out code dependency analysis to JS code At module.That is dependency analysis unit is to using or comprising the application software that JavaScript language is developed, analysis JavaScript code relies on, and recurrence finds out all JavaScript files of dependence, is encapsulated as individual module File.
Combining unit, the module for encapsulating the JS code and dependency analysis unit of converting compilation unit compiling are merged into JSBundle file.
Compression unit generates picture resource compressed package for obtaining picture resource file and compressing by original route.Compress Unit by script path compression and is named as assets.tar by the picture resource file of the different primary platforms of acquisition.
JSBundle and assets, which are packaged, at this time completes, and developer is by the version information, JSBundle and picture of packing Resource file assets compressed package calls as parameter and uploads file interface, upload onto the server.
In step 12, the first generation module of server is provided according to received version information, JSBundle file and picture Source compressed package generates JSBundle patch and picture resource delta package.
Specifically, step 12 includes:
Step 121, server unzips it received picture resource compressed package, then verifies new and old picture file MD5 signature, obtains the picture resource delta package of the picture file including newly-increased picture file and change.Server obtains picture After resource assets compressed package, decompression obtains new picture resource file assets.For picture resource, verification is new The MD5 of old picture file signs, and obtains the picture file of newly-increased picture file and change.The content of its delta package is these Newly-increased and modification picture file.
Step 122, server by utilizing preset algorithm finds out the string content modified in JSBundle file, raw At the JSBundle patch comprising row filename to be updated and line number.For JSBundle file, JSBundle is in fact It is the plain text file comprising JavaScript source code.Using preset algorithm, such as diff algorithm, the character that will be modified String content is found out, and generates the patch comprising row filename and line number to be updated together with its contextual information, here it is The delta package of JSBundle file.
Accordingly, the first generation module of server includes:
Then picture resource delta package unit verifies new and old for unziping it to received picture resource compressed package The MD5 of picture file signs, and obtains the picture resource delta package of the picture file including newly-increased picture file and change;Picture After resource delta package unit obtains picture resource assets compressed package, decompression obtains new picture resource file assets.It is right For picture resource, the MD5 signature of new and old picture file is verified, the picture file of newly-increased picture file and change is obtained. The content of its delta package is these newly-increased and modification picture files.
JSBundle patch unit, for utilizing preset algorithm, the string content that will be modified in JSBundle file It finds out, generates the JSBundle patch comprising row filename and line number to be updated.For JSBundle file, JSBundle It is in fact exactly the plain text file comprising JavaScript source code.JSBundle patch unit utilizes preset algorithm, such as Diff algorithm finds out the string content modified, and generates one together with its contextual information and include row file to be updated The patch of name and line number, here it is the delta packages of JSBundle file.
In step 14, delta package issues the update request that module receives the client of application software on mobile terminal, according to When the version of client determines that client needs to update, delta package is issued to client and completes heat update.
Specifically, step 14 includes:
Step 141, server receives the update request of the client of application software on mobile terminal, and update request includes The current Release parameter of client.The interface updated to client inspection is provided on server, the interface client is quasi- The version information that standby heat updates is as parameter, the i.e. current Release parameter of client.Client can be by calling heat to update SDK requests to realize that heat updates, and the SDK which updates mainly includes that heat updates detection, hot to update delta package downloading and increment Include into full dose packet function.
Step 142, server compares newest Release parameter on client current Release parameter and server; If the current version of client is less than newest version on server end, return needs undated parameter to client.
Step 143, server receives the update confirmation of client, issues delta package to client and completes heat update.Client End calls heat update SDK downloading to update packet interface, issues to server and obtains more new package request, starts the increasing for downloading corresponding version Amount packet.After the completion of client downloads, delta package is decompressed, obtains picture resource and JSBundle file.Client provides picture The file modified in source is moved to respective directories, replacement file to be modified, and newly-increased picture file is moved to correspondence File directory;Meanwhile the JSBundle patch for pressing out solution is inserted into the local App according to its filename and line number JSBundle file generates the full dose packet of JSBundle file, is supplied to App calling.Finally, client deletes local increment Packet, the heat for updating the end App update version information, update detection for heat next time.At this point, completing primary heat updates operating process.
Accordingly, the delta package in server issues module and includes:
Receiving unit, the update for receiving the client of application software on mobile terminal are requested, and update request includes The current Release parameter of client.The interface updated to client inspection, the interface client are provided on receiving unit Prepare the version information of heat update as parameter, the i.e. current Release parameter of client.Client can be by calling heat to update SDK come realize heat update request, the heat update SDK mainly include heat update detection, heat update delta package downloading and increasing Amount inclusion is at full dose packet function.
Comparison unit, for comparing newest Release parameter on client current Release parameter and server; If the current version of client is less than newest version on server end, return needs undated parameter to client.
Issuance unit, the update for receiving client confirm, issue delta package to client and complete heat update.Client It calls heat to update SDK downloading and updates packet interface, issued to server and obtain more new package request, start the increment for downloading corresponding version Packet.After the completion of client downloads, delta package is decompressed, obtains picture resource and JSBundle file.Client is by picture resource In the file modified be moved to respective directories, replacement file to be modified, and newly-increased picture file is moved to corresponding text Part catalogue;Meanwhile the JSBundle patch for pressing out solution is inserted into the local App according to its filename and line number JSBundle file generates the full dose packet of JSBundle file, is supplied to App calling.Finally, client deletes local increment Packet, the heat for updating the end App update version information, update detection for heat next time.At this point, completing primary heat updates operating process.
The hot update method and server of the mobile application software of the present embodiment can be realized the heat of mobile application software more Newly, it installs without the complete installation kit of downloading application software, and subtracts since the small volume of delta package can quickly update It is small to update the chance to report an error, it realizes that the application software in the case of user's unaware updates, improves the experience of user.
Embodiment 2
As shown in figure 3, embodiment of the present invention also proposes a kind of hot update method of mobile application software, comprising:
Step 21, the user end to server of application software issues the request for checking and updating on mobile terminal, which asks Seek the Release parameter current including client.
Step 22, it determines that the current version of client is less than newest version on server end, receives server feedback Need undated parameter.
Step 23, according to undated parameter is needed, issuing to the user of mobile terminal includes being confirmed whether to carry out hot update Update prompt.
Step 24, the confirmation for agreeing to carry out hot update according to user issues to server and obtains the request for updating packet, obtains The delta package of corresponding version;Wherein, which is packaged JSBundle patch and picture resource delta package by server and is generated, The version information for the application software that JSBundle patch and picture resource delta package are uploaded by server according to received developer, JSBundle file and picture resource compressed package generate.
Step 25, delta package is decompressed and obtains JSBundle patch and picture resource, the text that will be modified in picture resource Part is moved to respective directories to realize the replacement of file to be modified, and newly-increased picture file is moved to respective file catalogue; The filename and line number of the JSBundle patch pressed out simultaneously according to solution, are inserted into the JSBundle file of client local, The full dose packet for generating JSBundle file, is supplied to client call.
As shown in figure 4, embodiment of the present invention also proposes a kind of mobile terminal, comprising: request module, mentions receiving module Show module, obtain module and update module.Wherein, modules are described below:
Request module, for issuing the request for checking and updating to server, update request includes the current version of client This parameter.
Receiving module receives server for determining that the current version of client is less than newest version on server end Feedback needs undated parameter.
Cue module includes being confirmed whether to carry out heat for being issued to the user of mobile terminal according to undated parameter is needed The update of update prompts.
Module is obtained, for agreeing to carry out the confirmation of hot update according to user, is obtained to server sending and updates asking for packet It asks, obtains the delta package of corresponding version;Wherein, which is beaten JSBundle patch and picture resource delta package by server The version for the application software that packet generation, JSBundle patch and picture resource delta package are uploaded by server according to received developer This information, JSBundle file and picture resource compressed package generate.Wherein, JSBundle file and picture resource compressed package generate Process and JSBundle patch and the packing process of picture resource delta package are described referring to the corresponding of embodiment 1, herein no longer It repeats.
Update module obtains JSBundle patch and picture resource for decompressing to delta package, will modify in picture resource The file crossed is moved to respective directories to realize the replacement of file to be modified, and newly-increased picture file is moved to respective file Catalogue;The filename and line number of the JSBundle patch pressed out simultaneously according to solution, are inserted into the JSBundle of client local File generates the full dose packet of JSBundle file, is supplied to client call.The update module of mobile terminal carries out hot update Process is referring to the corresponding description of embodiment 1, and details are not described herein.
In a kind of hot update method of mobile application software of the present embodiment, using mobile terminal as the execution pair of step As, or the execution object using the modules in mobile terminal as step.Specifically, step 21 is using request module as step Rapid execution object, execution object of the step 22 using receiving module as step, step 23 holding using cue module as step Row object, step 24 is to obtain module as the execution object of step, execution object of the step 25 using update module as step.
The hot update method mobile terminal of the mobile application software of the present embodiment can be realized the heat of mobile application software more Newly, it installs without the complete installation kit of downloading application software, and subtracts since the small volume of delta package can quickly update It is small to update the chance to report an error, it realizes that the application software in the case of user's unaware updates, improves the experience of user.
In the description of this specification, reference term " embodiment ", " some embodiments ", " schematically implementation The description of mode ", " example ", specific examples or " some examples " etc. means the tool described in conjunction with the embodiment or example Body characteristics, structure, material or feature are contained at least one embodiment or example of the invention.In the present specification, Schematic expression of the above terms are not necessarily referring to identical embodiment or example.Moreover, the specific features of description, knot Structure, material or feature can be combined in any suitable manner in any one or more embodiments or example.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processing module or other can be from instruction Execute system, device or equipment instruction fetch and the system that executes instruction) use, or combine these instruction execution systems, device or Equipment and use.For the purpose of this specification, " computer-readable medium " can be it is any may include, store, communicating, propagating or Transfer program uses for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment Device.The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of embodiments of the present invention can be with hardware, software, firmware or their combination come real It is existing.In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution system The software or firmware of execution is realized.For example, if realized with hardware, in another embodiment, ability can be used Any one of following technology or their combination well known to domain is realized: being had for realizing logic function to data-signal The discrete logic of logic gates, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
In addition, each functional unit in various embodiments of the present invention can integrate in a processing module, it can also To be that each unit physically exists alone, can also be integrated in two or more units in a module.It is above-mentioned integrated Module both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module If in the form of software function module realize and when sold or used as an independent product, also can store one calculating In machine read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of hot update method of mobile application software characterized by comprising
Step 11, server receives version information, JSBundle file and the picture resource pressure for the application software that developer uploads Contracting packet;Wherein, JSBundle file and picture resource compressed package are by developer to using or carry out comprising JavaScript language The application software of exploitation, which is packaged, to be generated;
Step 12, server generates JSBundle according to received version information, JSBundle file and picture resource compressed package Patch and picture resource delta package;
Step 13, JSBundle patch and picture resource delta package are packaged and are named with received version information and generated by server Application software updates required delta package;
Step 14, server receives the update request of the client of application software on mobile terminal, true according to the version of client When determining client and needing to update, issues delta package and complete heat to client and update.
2. the hot update method of mobile application software as described in claim 1, which is characterized in that in step 11, JSBundle and Picture resource compressed package is packaged the application software for using or being developed comprising JavaScript language by developer and generates packet It includes:
Step 111, JS code non-in the application software for using or developing comprising JavaScript language is converted into JS generation Code simultaneously compiles;
Step 112, code dependency analysis is carried out to JS code, finds out all JS files of dependence and is packaged into module;
Step 113, the JS code that step 111 compiles and the module that step 112 encapsulates are merged into JSBundle file;
Step 114, it obtains picture resource file and generates picture resource compressed package by original route compression.
3. the hot update method of mobile application software as described in claim 1, which is characterized in that step 12 includes:
Step 121, server unzips it received picture resource compressed package, then verifies the MD5 of new and old picture file Signature obtains the picture resource delta package of the picture file including newly-increased picture file and change;
Step 122, server by utilizing preset algorithm finds out the string content modified in JSBundle file, generates packet JSBundle patch containing row filename to be updated and line number.
4. the hot update method of mobile application software as described in claim 1, which is characterized in that step 14 includes:
Step 141, server receives the update request of the client of application software on mobile terminal, and update request includes client Hold current Release parameter;
Step 142, server compares newest Release parameter on client current Release parameter and server;If objective The current version in family end is less than newest version on server end, and return needs undated parameter to client;
Step 143, server receives the update confirmation of client, issues delta package to client and completes heat update.
5. a kind of hot update method of mobile application software characterized by comprising
Step 21, the user end to server of application software issues the request for checking and updating, the update request packet on mobile terminal Include the current Release parameter of client;
Step 22, it determines that the current version of client is less than newest version on server end, receives the needs of server feedback Undated parameter;
Step 23, according to undated parameter is needed, issuing to the user of mobile terminal includes the update for being confirmed whether to carry out hot update Prompt;
Step 24, the confirmation for agreeing to carry out hot update according to user issues to server and obtains the request for updating packet, obtains and correspond to The delta package of version;Wherein, which is packaged JSBundle patch and picture resource delta package by server and is generated, The version information for the application software that JSBundle patch and picture resource delta package are uploaded by server according to received developer, JSBundle file and picture resource compressed package generate;
Step 25, delta package is decompressed and obtains JSBundle patch and picture resource, the file modified in picture resource is moved Respective directories are moved to realize the replacement of file to be modified, and newly-increased picture file is moved to respective file catalogue;Simultaneously According to the filename and line number of the JSBundle patch that solution presses out, it is inserted into the JSBundle file of client local, is generated The full dose packet of JSBundle file, is supplied to client call.
6. a kind of server characterized by comprising
Receiving module, version information, JSBundle file and the picture resource pressure of the application software for receiving developer's upload Contracting packet;Wherein, JSBundle file and picture resource compressed package are by developer to using or carry out comprising JavaScript language The application software of exploitation, which is packaged, to be generated;
First generation module, for generating according to received version information, JSBundle file and picture resource compressed package JSBundle patch and picture resource delta package;
Second generation module, for JSBundle patch and picture resource delta package to be packaged and with the name of received version information Generate the delta package needed for application software updates;
Delta package issues module, and the update for receiving the client of application software on mobile terminal is requested, according to client When version determines that client needs to update, delta package is issued to client and completes heat update.
7. server as claimed in claim 6, which is characterized in that JSBundle and picture resource compressed package are utilized by developer Conversion compilation unit, dependency analysis unit, combining unit and compression unit are to using or open comprising JavaScript language The application software of hair, which is packaged, to be generated;Wherein,
Compilation unit is converted, non-JS code turns in the application software for that will use or develop comprising JavaScript language It changes JS code into and compiles;
Dependency analysis unit finds out all JS files of dependence and is packaged into mould for carrying out code dependency analysis to JS code Block;
Combining unit, the module for encapsulating the JS code and dependency analysis unit of converting compilation unit compiling are merged into JSBundle file;
Compression unit generates picture resource compressed package for obtaining picture resource file and compressing by original route.
8. server as claimed in claim 6, which is characterized in that the first generation module includes:
Then picture resource delta package unit verifies new and old picture for unziping it to received picture resource compressed package The MD5 of file signs, and obtains the picture resource delta package of the picture file including newly-increased picture file and change;
JSBundle patch unit, for using preset algorithm, the string content modified in JSBundle file to be found out, Generate the JSBundle patch comprising row filename and line number to be updated.
9. server as claimed in claim 6, which is characterized in that delta package issues module and includes:
Receiving unit, the update for receiving the client of application software on mobile terminal are requested, and update request includes client Hold current Release parameter;
Comparison unit, for comparing newest Release parameter on client current Release parameter and server;If objective The current version in family end is less than newest version on server end, and return needs undated parameter to client;
Issuance unit, the update for receiving client confirm, issue delta package to client and complete heat update.
10. a kind of mobile terminal characterized by comprising
Request module, for issuing the request for checking and updating to server, update request includes the current version ginseng of client Number;
Receiving module receives server feedback for determining that the current version of client is less than newest version on server end Need undated parameter;
Cue module, for according to undated parameter is needed, issuing to the user of mobile terminal to include being confirmed whether to carry out hot update Update prompt;
Module is obtained, for agreeing to carry out the confirmation of hot update according to user, is issued to server and obtains the request for updating packet, obtained Take the delta package of corresponding version;Wherein, which is packaged life for JSBundle patch and picture resource delta package by server The version of the application software uploaded by server according to received developer at, JSBundle patch and picture resource delta package is believed Breath, JSBundle file and picture resource compressed package generate;
Update module obtains JSBundle patch and picture resource for decompressing to delta package, by what is modified in picture resource File is moved to respective directories to realize the replacement of file to be modified, and newly-increased picture file is moved to respective file mesh Record;The filename and line number of the JSBundle patch pressed out simultaneously according to solution are inserted into the JSBundle text of client local Part generates the full dose packet of JSBundle file, is supplied to client call.
CN201810793097.4A 2018-07-18 2018-07-18 Hot update method, server and the mobile terminal of mobile application software Withdrawn CN109032638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810793097.4A CN109032638A (en) 2018-07-18 2018-07-18 Hot update method, server and the mobile terminal of mobile application software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810793097.4A CN109032638A (en) 2018-07-18 2018-07-18 Hot update method, server and the mobile terminal of mobile application software

Publications (1)

Publication Number Publication Date
CN109032638A true CN109032638A (en) 2018-12-18

Family

ID=64643434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810793097.4A Withdrawn CN109032638A (en) 2018-07-18 2018-07-18 Hot update method, server and the mobile terminal of mobile application software

Country Status (1)

Country Link
CN (1) CN109032638A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976786A (en) * 2019-03-11 2019-07-05 宸瑞普惠(广州)科技有限公司 Hot update method, server and the mobile terminal of mobile application software
CN110096295A (en) * 2019-05-08 2019-08-06 吉旗(成都)科技有限公司 The hot update method and system of multimode mobile application based on ReactNative
CN110162964A (en) * 2019-05-29 2019-08-23 中国银行股份有限公司 A kind of inspection method that file is distorted, apparatus and system
CN111416842A (en) * 2020-03-06 2020-07-14 科大讯飞股份有限公司 Automatic resource cluster distribution and hot update system and method
CN111538514A (en) * 2020-04-17 2020-08-14 北京三快在线科技有限公司 Enterprise application updating method and device, storage medium and electronic equipment
CN111770361A (en) * 2020-05-29 2020-10-13 北京沃东天骏信息技术有限公司 Picture processing method, device and equipment and computer readable storage medium
CN112306530A (en) * 2020-11-10 2021-02-02 珠海格力电器股份有限公司 Software update method, apparatus, electronic device, and computer-readable medium
CN112860300A (en) * 2020-12-31 2021-05-28 中国工商银行股份有限公司 Distributed SDK (software development kit) hot update processing method and application server cluster
CN113110865A (en) * 2021-04-21 2021-07-13 北京字跳网络技术有限公司 Server hot updating method and device
CN113434154A (en) * 2021-06-11 2021-09-24 青岛海尔科技有限公司 Android application packaging method and device, storage medium and electronic device
CN113448611A (en) * 2021-08-31 2021-09-28 中邮消费金融有限公司 Method and system for quickly and thermally updating application program
CN115865662A (en) * 2022-11-17 2023-03-28 四川启睿克科技有限公司 Smart factory APP updating method based on light application framework

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976786A (en) * 2019-03-11 2019-07-05 宸瑞普惠(广州)科技有限公司 Hot update method, server and the mobile terminal of mobile application software
CN110096295A (en) * 2019-05-08 2019-08-06 吉旗(成都)科技有限公司 The hot update method and system of multimode mobile application based on ReactNative
CN110096295B (en) * 2019-05-08 2023-08-08 吉旗(成都)科技有限公司 Multi-module mobile application thermal updating method and system based on reactivating
CN110162964A (en) * 2019-05-29 2019-08-23 中国银行股份有限公司 A kind of inspection method that file is distorted, apparatus and system
CN110162964B (en) * 2019-05-29 2021-09-24 中国银行股份有限公司 Method, device and system for checking file tampering
CN111416842A (en) * 2020-03-06 2020-07-14 科大讯飞股份有限公司 Automatic resource cluster distribution and hot update system and method
CN111538514A (en) * 2020-04-17 2020-08-14 北京三快在线科技有限公司 Enterprise application updating method and device, storage medium and electronic equipment
CN111770361A (en) * 2020-05-29 2020-10-13 北京沃东天骏信息技术有限公司 Picture processing method, device and equipment and computer readable storage medium
CN111770361B (en) * 2020-05-29 2023-03-07 北京沃东天骏信息技术有限公司 Picture processing method, device and equipment and computer readable storage medium
CN112306530B (en) * 2020-11-10 2022-07-15 珠海格力电器股份有限公司 Software update method, apparatus, electronic device, and computer-readable medium
CN112306530A (en) * 2020-11-10 2021-02-02 珠海格力电器股份有限公司 Software update method, apparatus, electronic device, and computer-readable medium
CN112860300A (en) * 2020-12-31 2021-05-28 中国工商银行股份有限公司 Distributed SDK (software development kit) hot update processing method and application server cluster
CN113110865A (en) * 2021-04-21 2021-07-13 北京字跳网络技术有限公司 Server hot updating method and device
CN113434154B (en) * 2021-06-11 2023-07-21 青岛海尔科技有限公司 Android application program packaging method and device, storage medium and electronic device
CN113434154A (en) * 2021-06-11 2021-09-24 青岛海尔科技有限公司 Android application packaging method and device, storage medium and electronic device
CN113448611B (en) * 2021-08-31 2021-11-30 中邮消费金融有限公司 Method and system for quickly and thermally updating application program
CN113448611A (en) * 2021-08-31 2021-09-28 中邮消费金融有限公司 Method and system for quickly and thermally updating application program
CN115865662A (en) * 2022-11-17 2023-03-28 四川启睿克科技有限公司 Smart factory APP updating method based on light application framework

Similar Documents

Publication Publication Date Title
CN109032638A (en) Hot update method, server and the mobile terminal of mobile application software
CN103019708B (en) For the system of releasing software
CN109491695B (en) Incremental updating method for integrated android application
CN108279902B (en) Lua script technology based multi-terminal sharing bottom layer framework generation and application method
US8539050B2 (en) Method for distributing update modules for computer software over a network
US8555245B2 (en) Automated application generation method and system
CN109491662A (en) Code packaging method, computer installation and computer readable storage medium, code packaging system
JP2021518619A (en) Systems and methods for connector development and integrated channel deployment
CN105335173A (en) Method, apparatus and system for initializing intelligent terminal device
CN110704064B (en) Method and device for compiling and executing intelligent contract
CN103064666A (en) Multi-channel method and system for issuing software
CN111399840B (en) Module development method and device
WO2017033441A1 (en) System construction assistance system and method, and storage medium
CN110321131A (en) Service Component packaging method, system and server
CN108132808B (en) Channel package generation method and device
CN109871241A (en) A kind of configuration method of Cross-environment application server
CN116719523A (en) Page rendering method and electronic device
CN101751258B (en) Intelligent card and developing method, system and deployment method for intelligent card application
CN112286543B (en) Application service deployment method and device
US20090282388A1 (en) Optimizing the handling of source code requests between a software configuration management (scm) system and a software integrated development environment (ide) using projected ancillary data
US9009666B1 (en) Systems and methods for testing software and for storing and tracking test assets with the software
CN109976786A (en) Hot update method, server and the mobile terminal of mobile application software
US9075619B2 (en) Method and apparatus for supporting multi-modal dialog applications
CN113535254A (en) Micro-service processing method, micro-service deployment method and related device
CN107463423A (en) Rely on verification method, storage medium, electronic equipment and the system of job contract tool

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20181218