CN107239309A - Patch generation method and device, update method, electronic equipment, storage medium - Google Patents

Patch generation method and device, update method, electronic equipment, storage medium Download PDF

Info

Publication number
CN107239309A
CN107239309A CN201710416863.0A CN201710416863A CN107239309A CN 107239309 A CN107239309 A CN 107239309A CN 201710416863 A CN201710416863 A CN 201710416863A CN 107239309 A CN107239309 A CN 107239309A
Authority
CN
China
Prior art keywords
patch
terminal
resource file
file
private resource
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
CN201710416863.0A
Other languages
Chinese (zh)
Other versions
CN107239309B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201710416863.0A priority Critical patent/CN107239309B/en
Publication of CN107239309A publication Critical patent/CN107239309A/en
Application granted granted Critical
Publication of CN107239309B publication Critical patent/CN107239309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

This disclosure relates to a kind of patch generation method and device, patch update method, electronic equipment and computer-readable recording medium, for generating patch for an application program.The patch generation method includes:Original resource file is encrypted and compresses to obtain standard resource file;Obtained from standard resource file and be common to the common source file of different terminals type and be configured under common source catalogue;For each terminal type, the private resource file suitable for the terminal type is obtained from standard resource file and is configured to should be under the private resource catalogue of terminal type;Wherein, the corresponding patch of any terminal type include common source file under common source catalogue and to should be under the private resource catalogue of terminal type private resource file.The disclosure is applicable to the application client of different terminals type, takes while patch generation can also be reduced and saves space-consuming.

Description

Patch generation method and device, update method, electronic equipment, storage medium
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of patch generation method and device, patch update method, Electronic equipment and computer-readable recording medium.
Background technology
Patch (patch) technology refers to application client when updating application content, it is not necessary to re-download Client is installed, only the technology of the program code needed on local machine and program resource need to be updated.Patch technologies widely should For in the types of applications program such as online game of current main-stream application platform, application platform therein for example including iOS, The PC such as the mobile platforms such as Android and Windows (Personal Conputer, personal computer) platform.
Increment Patch and full dose Patch can be classified as according to Patch strategy.
So-called increment Patch refers to:Application client is downloaded install after application program first, and record is current to answer It is V with contents of program;Whenever needing application client to be updated application program, phase will be uploaded in server end For all changes content P of last revision, changing content P is increment Patch;According to increment Patch version number point Not Ji Lu changing content P1, changing content P2 ... and changing content Pn;When application client is being updated to newest , it is necessary to download all increment Patch one by one according to the order of version number during version, newest application content can be obtained Vn, i.e. Vn=V+P1+P2+ ...+Pn.Increment Patch can be supported Patch content compressions into one big file and uploaded to Server end, is locally decompressed in application client afterwards.
So-called full dose Patch refers to:When application client needs to be updated application program, in server end Upload newest application content Vn;Application client need to be only contrasted in local application program when downloading Patch Hold the difference between Vm and newest application content Vn, and download the part wherein changed, so that application client Application content update arrive latest edition.Full dose Patch requires the application between server end and application client Contents of program compares and is accurate to file-level, that is, whether each file for being required to compare in application content has renewal.
Current many applications engines all select full dose Patch when carrying out patch renewal, but it has space-consuming Larger and time-consuming more the problems such as.
It should be noted that information is only used for strengthening the reason of background of this disclosure disclosed in above-mentioned background section Solution, therefore can include not constituting the information to prior art known to persons of ordinary skill in the art.
The content of the invention
The purpose of the disclosure be to provide a kind of patch generation method and device, patch update method, electronic equipment and Computer-readable recording medium, and then at least overcome to a certain extent one caused by limitation and the defect due to correlation technique Individual or multiple problems.
Other characteristics and advantage of the disclosure will be apparent from by following detailed description, or partially by the disclosure Practice and acquistion.
According to an aspect of this disclosure there is provided a kind of patch generation method, for generating patch for an application program;Institute Stating patch generation method includes:
Original resource file is encrypted and compresses to obtain standard resource file;
Obtained from the standard resource file and be common to the common source file of different terminals type and be configured at shared Under Resource TOC;
For each terminal type, the special money suitable for the terminal type is obtained from the standard resource file Source file is simultaneously configured to should be under the private resource catalogue of terminal type;
Wherein, the corresponding patch of any terminal type include the common source catalogue under common source file with And to should be under the private resource catalogue of terminal type private resource file.
In a kind of exemplary embodiment of the disclosure, the different terminals type includes the first of the first application platform of correspondence The third terminal of terminal, the 3rd application platform of the second terminal of the second application platform of correspondence and correspondence;
Wherein, the private resource file suitable for the terminal type is obtained from the standard resource file and is configured at pair It should include under the private resource catalogue of terminal type:
Acquisition is applied to the first private resource file of the first terminal and by described in from the standard resource file First private resource file configuration is under the first private resource catalogue of the correspondence first terminal;
Acquisition is applied to the second private resource file of the second terminal and by described in from the standard resource file Second private resource file configuration is under the second private resource catalogue of the correspondence second terminal;
Acquisition is applied to the 3rd private resource file of the third terminal and by described in from the standard resource file 3rd private resource file configuration is under the 3rd private resource catalogue of the correspondence third terminal.
In a kind of exemplary embodiment of the disclosure, the first terminal is the terminal of operation iOS system, and described second eventually Hold to run the terminal of android system, the third terminal is the terminal of operation Windows systems.
In a kind of exemplary embodiment of the disclosure, the different terminals type includes the first of the first hardware configuration of correspondence The third terminal of terminal, the 3rd hardware configuration of the second terminal of the second hardware configuration of correspondence and correspondence;
Wherein, the private resource file suitable for the terminal type is obtained from the standard resource file and is configured at pair It should include under the private resource catalogue of terminal type:
Acquisition is applied to the first private resource file of the first terminal and by described in from the standard resource file First private resource file configuration is under the first private resource catalogue of the correspondence first terminal;
Acquisition is applied to the second private resource file of the second terminal and by described in from the standard resource file Second private resource file configuration is under the second private resource catalogue of the correspondence second terminal;
Acquisition is applied to the 3rd private resource file of the third terminal and by described in from the standard resource file 3rd private resource file configuration is under the 3rd private resource catalogue of the correspondence third terminal.
In a kind of exemplary embodiment of the disclosure, original resource file is encrypted and compresses to obtain standard resource File includes:
Script file, fine arts resource file and engine configuration file are encrypted and compressed according to reference format, with Obtain the standard resource file;
Wherein, the file format that the reference format is supported by the exploitation engine of the application program.
In a kind of exemplary embodiment of the disclosure, obtained from the standard resource file and be common to different terminals type Common source file include:
The script file, the engine configuration file and fine arts money are obtained from the standard resource file Document scene and bone motion file in source file.
In a kind of exemplary embodiment of the disclosure, the patch generation method also includes:
The history patch that the patch is stored with server end is contrasted, and is gone through with obtaining the patch relative to described The delta patch and same section of history patch;
The delta patch is uploaded to the server, and the server is pointed to for same section generation one Hold the record identification of the history patch of storage.
According to an aspect of this disclosure there is provided a kind of patch update method, the patch update method includes:
Obtain the patch generated according to above-mentioned patch generation method;
The patch got is contrasted with local content, to obtain content to be updated;
The content to be updated is downloaded in the delta patch of the history patch stored from the patch relative to server end It is part or all of;
When not including the content to be updated completely in the delta patch, stored according to the sensing server end The record identification of history patch downloads the remainder of the content to be updated from the history patch.
According to an aspect of this disclosure there is provided a kind of patch generating means, for generating patch for an application program;Institute Stating patch generating means includes:
Ciphered compressed module, for being encrypted and compressing to original resource file to obtain standard resource file;
Common source module, the common source of different terminals type is common to for being obtained from the standard resource file File is simultaneously configured under common source catalogue;
Specialized Resource Module SRM, for for each terminal type, obtaining and being applied to from the standard resource file The private resource file of the terminal type is simultaneously configured to should be under the private resource catalogue of terminal type;
Wherein, the corresponding patch of any terminal type include the common source catalogue under common source file with And to should be under the private resource catalogue of terminal type private resource file.
According to an aspect of this disclosure there is provided a kind of electronic equipment, including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor be configured to perform via the executable instruction is performed above-mentioned patch generation method or The above-mentioned patch update method of person.
According to an aspect of this disclosure there is provided a kind of computer-readable recording medium, computer program is stored thereon with, The computer program realizes above-mentioned patch generation method or above-mentioned patch update method when being executed by processor.
Patch generation method and device that disclosure illustrative embodiments are provided, patch update method, electronic equipment, And computer-readable recording medium, according to used in application program resource type difference and by the patch generated configure In under different Resource TOCs.So, money is shared by the way that each terminal type applicable resource file is configured at into one Under source directory, while the resource file for particular terminal type is configured under corresponding private resource catalogue, you can avoid Repeatedly generating for general class patch, the effect of space-consuming is taken and saves so as to reach and reduce patch generation;It is basic herein On, due to generating corresponding resource file for each terminal type, that is, correspond to each terminal type and generated correspondence Patch, therefore present embodiment can be applied to different terminal types simultaneously.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.It should be evident that drawings in the following description are only the disclosure Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 schematically shows the flow chart one of patch generation method in disclosure exemplary embodiment;
Fig. 2 schematically shows the Organization Chart of patch generation method in disclosure exemplary embodiment;
Fig. 3 schematically shows the schematic diagram of patch storage catalogue in disclosure exemplary embodiment;
Fig. 4 schematically shows the flowchart 2 of patch generation method in disclosure exemplary embodiment;
Fig. 5 schematically shows the schematic diagram of patch generation and update method in disclosure exemplary embodiment;
Fig. 6 schematically shows the flow chart of patch update method in disclosure exemplary embodiment;
Fig. 7 schematically shows the schematic block diagram of patch generating means in disclosure exemplary embodiment;
Fig. 8 schematically shows the module diagram of electronic equipment in disclosure exemplary embodiment;
Fig. 9 schematically shows the schematic diagram of disclosure exemplary embodiment Program product.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment those skilled in the art is comprehensively conveyed to.Described feature, knot Structure or characteristic can be combined in one or more embodiments in any suitable manner.
In addition, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical accompanying drawing mark in figure Note represents same or similar part, thus will omit repetition thereof.Some block diagrams shown in accompanying drawing are work( Can entity, not necessarily must be corresponding with physically or logically independent entity.These work(can be realized using software form Can entity, or realize in one or more hardware modules or integrated circuit these functional entitys, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
This example embodiment proposes a kind of patch generation method, for generating patch for an application program;Such as Fig. 1 institutes Show, the patch generation method can include:
S1, original resource file is encrypted and compresses to obtain standard resource file;
S2, from standard resource file obtain be common to different terminals type common source file and be configured at shared money Under source directory;
S3, for each terminal type, the private resource text suitable for the terminal type is obtained from standard resource file Part is simultaneously configured to should be under the private resource catalogue of terminal type.
Wherein, the corresponding patch of any terminal type includes common source file under common source catalogue and to should Private resource file under the private resource catalogue of terminal type.
It should be noted that:Application program in this example embodiment is specifically as follows software program or games Deng.
The patch generation method that disclosure illustrative embodiments are provided, the resource type according to used in application program Difference and the patch generated is configured under different Resource TOCs.So, by the way that each terminal type is fitted Resource file is configured at one and shared under Resource TOC, while the resource file for particular terminal type is configured at into correspondence Private resource catalogue under, you can repeatedly generating for general class patch is avoided, so as to reach that reduction patch generation is time-consuming and saves The about effect of space-consuming;On this basis, due to generating corresponding resource file for each terminal type, that is, correspond to Each terminal type has generated corresponding patch, therefore present embodiment can be applied to different terminal types simultaneously.
The patch generation method in this example embodiment is described in detail below in conjunction with the accompanying drawings.
In step sl, original resource file is encrypted and compresses to obtain standard resource file.
In this example embodiment, the original resource file refers to the resource file that application developer is provided, its It can specifically include:Script file, fine arts resource file and engine configuration file;Fine arts resource file therein can be wrapped Include:Model, textures, bone action, physics, scene, UI (User Interface, user interface), sound etc..The standard money Source file refers to the file supported using the exploitation engine that the resource file of reference format, the reference format is application program Form.
Based on this, original resource file is encrypted in this step and compressed specifically can be with to obtain standard resource file Including:Script file, fine arts resource file and engine configuration file are encrypted and compressed according to reference format, with To the standard resource file.
For example, the patch generation method in the present embodiment can be used for generating patch for an online game application program, Patch points can be different classifications, the Patch systems of such as Cocos engines by game engine according to used in game client The Patch systems of system and Unity3D engines, this is due to that different game engines use different scripts and file system Unite, provided with different interfaces and suitable for different gaming platforms, therefore Patch systems needs are to different game engines It is adapted to accordingly.
By taking a game engine as an example, as shown in Fig. 2 when needing generation patch, it is necessary first to which game developer is provided The original resource file such as script file, fine arts resource file and engine configuration file change into the game of the game engine Resource format and the file system distribution that client is supported, it can be by calling the game to draw on windows platform The Chef instruments held up carry out cook operations to the original resource file that game is used and realized.Wherein, Chef instruments refer to the trip Play engine provided dedicated for by script file used in the game engine and fine arts resource file according to specific The process of format compression and the instrument for being encrypted to the file format that game engine game can be supported, this compression and encryption As cook.For example, the process can control option during cook by inputting the parameter specified, for example " -- cook- Script=1 " is used for cook script files, " -- cook-package=1 " is used for cook fine arts resource files etc., so Script file, fine arts resource file and engine configuration file are encrypted and compressed respectively, to obtain the game engine The standard resource file for the resource format that game client is supported.
In step s 2, obtained from standard resource file and be common to the common source file of different terminals type and configure In under common source catalogue.
In this example embodiment, the terminal type can be classified according to the operating system of terminal operating, for example Run the terminal of iOS operating systems or run the terminal of Android operation system;Certainly, the terminal type can be with root Classified according to the system configuration of terminal, such as the terminal of the advanced configuration with iOS operating systems or with iOS operate be The terminal of the low-level configuration of system;The present embodiment be directed to terminal criteria for classification not limited to this, it is every may influence Patch generation with The factor of renewal, within the protection domain of the present embodiment.The common source file refers to that each type terminals can be with Applicable resource file, it can for example include the scene text in script file, engine configuration file and fine arts resource file Part and bone motion file etc..The common source catalogue refers to the catalogue that common source file is pointed in Patch catalogues.
Based on this, the common source text for being common to different terminals type is obtained in this step from the standard resource file Part can specifically include:The script file, the engine configuration file and described are obtained from the standard resource file Document scene and bone motion file in fine arts resource file.
For example, as shown in figure 3, after standard resource file is obtained by above-mentioned steps S1, difference can will be common to The script file of terminal type, engine configuration file and document scene and bone motion file in fine arts resource file etc. Common source file is positioned over one and shares the common common source mesh in resource folder and being configured in Patch catalogues Under record.
In step s3, for each terminal type, obtained from the standard resource file and be applied to the terminal The private resource file of type is simultaneously configured to should be under the private resource catalogue of terminal type.
In this example embodiment, the private resource file refers to only in the resource file of particular type terminal, It is such as can include the model in fine arts resource file, physics, UI, sound.The private resource catalogue refers to Patch mesh The catalogue of private resource file is pointed in record.
In the present embodiment, the terminal type can be classified according to the operating system of terminal operating.In this situation Under, the different terminals type can include the first terminal of the first application platform of correspondence, the second of the second application platform of correspondence The third terminal of the 3rd application platform of terminal and correspondence;Wherein, the first terminal can be the terminal of operation iOS system, The second terminal can be the terminal of operation android system, and the third terminal can be the end of operation Windows systems End.
Based on this, the private resource file suitable for the terminal type is obtained from the standard resource file and is configured at To that should can include under the private resource catalogue of terminal type:
The first private resource file suitable for first terminal is obtained from standard resource file and by the first private resource File configuration is under the first private resource catalogue of correspondence first terminal;
The second private resource file suitable for second terminal is obtained from standard resource file and by the second private resource File configuration is under the second private resource catalogue of correspondence second terminal;
The 3rd private resource file suitable for third terminal is obtained from standard resource file and by the 3rd private resource File configuration is under the 3rd private resource catalogue of correspondence third terminal.
In the present embodiment, the hardware configuration that the terminal type can also be used according to terminal is classified.In this feelings Under condition, the different terminals type can include the first terminal of the first hardware configuration of correspondence, the of the second hardware configuration of correspondence The third terminal of the 3rd hardware configuration of two terminals and correspondence;Wherein, the first terminal can be matched somebody with somebody using senior hardware Put, the second terminal can use rudimentary hardware configuration using intermediate hardware configuration, the third terminal.Here It is described it is senior, intermediate, rudimentary be a kind of relativeness, it can be according to CPU (Central Processing Unit, centre Reason device), the disposal ability of the processor such as GPU (Graphic Processing Unit, graphics processor) divided.
Based on this, the private resource file suitable for the terminal type is obtained from the standard resource file and is configured at To that should can include under the private resource catalogue of terminal type:
The first private resource file suitable for first terminal is obtained from standard resource file and by the first private resource File configuration is under the first private resource catalogue of correspondence first terminal;
The second private resource file suitable for second terminal is obtained from standard resource file and by the second private resource File configuration is under the second private resource catalogue of correspondence second terminal;
The 3rd private resource file suitable for third terminal is obtained from standard resource file and by the 3rd private resource File configuration is under the 3rd private resource catalogue of correspondence third terminal.
Based on the exemplary sorting technique of above two, different types of terminal can be according to specific criteria for classification for example It is divided into first terminal, second terminal and third terminal.But, the present embodiment is not excluded for other sorting techniques, does not also limit The quantity of the fixed terminal type divided according to specific classification method.
It should be noted that:Terminal sorting technique in this example embodiment can be used alone, such as according only to end The operating system of end operation is classified, and can now be obtained running the first terminal of iOS system, be run android system Second terminal and the third terminal for running Windows systems;Or the hardware configuration used according only to terminal is classified, First terminal, the second terminal using intermediate hardware configuration and the use that now can be utilized high-level hardware configuration are low The third terminal of level hardware configuration.Certainly, the terminal sorting technique in this example embodiment can also be used in combination, for example, tie Close the operating system of terminal operating and the hardware configuration of terminal use is classified, now resulting terminal can include operation Three kinds of terminals of iOS system, three kinds of terminals for running android system and the terminal for running Windows systems.
For example, with reference to shown in Fig. 3, after standard resource file is obtained by above-mentioned steps S1, iOS will can be applied to The private resource files such as model, physics, UI in the fine arts resource file of platform are positioned in a private resource file and will It is configured in Patch catalogues under the iOS-common private resource catalogues of correspondence iOS platforms, will be applied to Android platform Fine arts resource file in the private resource file such as model, physics, UI be positioned in a private resource file and matched somebody with somebody It is placed under the Android-common private resource catalogues of corresponding A ndroid platforms in Patch catalogues, and will be applied to The private resource files such as model, physics, UI in the fine arts resource file of windows platform are positioned over a private resource file In and be configured in Patch catalogues under the Windows-common private resource catalogues of correspondence windows platform.
On this basis, for the fine arts resource file suitable for iOS platforms or Android platform, not only including mould Type, physics, UI, sound etc. are this kind of to can be universally used in iOS platforms or the private resource file of Android platform, while also including This kind of private resource file suitable for different hardware configurations of textures.Now, the terminal of operation iOS platforms is directed to, can basis The height of its hardware configuration, a private resource file is positioned over by this kind of private resource file of textures in fine arts resource file In and be configured in Patch catalogues correspondence iOS platforms and hardware configuration different iOS-high, iOS-middle and Under iOS-low private resource catalogues;Similarly, the terminal of operation Android platform is directed to, can be according to the height of its hardware configuration It is low, this kind of private resource file of textures in fine arts resource file is positioned in a private resource file and is configured at In Patch catalogues corresponding A ndroid platforms and hardware configuration different Android-high, Android-middle and Under Android-low private resource catalogues;And the terminal of operation windows platform is directed to, it can be carried out according to aforesaid way Distribution, but it is also possible to which private resource file consolidation is only configured to the Windows- of correspondence windows platform in Patch catalogues Under normal private resource catalogues.
So, just can be from the common source mesh in step 2 when each Terminal Type needs to carry out game content renewal The to be updated of needs is obtained in common source file under record and the private resource file under the private resource catalogue in step 3 Patch.By taking the game client of the high-level hardware configuration of iOS platforms as an example, it needs the resource downloaded respectively from common mesh Obtained in record, iOS-common catalogues and iOS-high catalogues.
Based on said process, as shown in figure 4, the patch generation method can further include:
S4, the history patch for storing the patch generated and server end are contrasted, with obtain the patch relative to The delta patch and same section of history patch;
S5, delta patch is uploaded to the server, and one is generated for same section and point to server end storage The record identification of history patch.
Wherein, the history patch refers to have uploaded onto the server the patch at end.
The purpose of this example embodiment is to generate patch for application program, and the drawbacks of traditional patch system In:When needing the application client to be updated every time, it is required for uploading whole contents of program to server end, if journey Sequence content is larger, will cause server end space-consuming increase and upload the used time also increase.This is directed to, this example is implemented Mode is only uploaded according to comparing result and changed by the way that the patch being currently generated and the history patch that has uploaded are contrasted Delta patch without uploading unchanged same section, can so greatly reduce the quantity of documents for needing to upload so that Reach that reducing patch uploads time-consuming purpose.
For example, it is necessary to which the Game patches of generation is uploaded after Game patches is generated by above-mentioned steps S1-S3 To server end, download and update in order to game client.As shown in figure 5, being transmitted through a patch i.e. history patch on To server end, need to upload a new patch if game resource changes, can be by according to above-mentioned The patch of method generation is contrasted with history patch, to obtain occurring the delta patch and unchanged identical portions of more new change Point.The delta patch for occurring more new change is directed to, it is necessary to be uploaded to server end, and be directed to unchanged identical portions Point, then it can generate the record identification of the Patch catalogues that history patch is pointed to by delta patch.Still using above-mentioned game engine as Example, understands, the method provided using the present embodiment carries out the generation and upload of patch, can take Patch by test checking Space drops to 4G from 7G, effectively reduces by 42% space-consuming, generation is time-consuming can most to be dropped to 16 minutes from 40 minutes soon, had The generation that effect reduces 60% takes, and uploads and takes and can drop to from 120 minutes 10 minutes, and the upload for effectively reducing 91% takes. It follows that the patch generation method after the present embodiment optimization is effectively reduced Patch space-consumings, generation is time-consuming and uploads It is time-consuming.
A kind of patch update method is also provided in this example embodiment, as shown in fig. 6, the patch update method can be with Including:
The patch that S10, acquisition are generated according to above-mentioned patch generation method;
S20, the patch got and local content contrasted, to obtain content to be updated;
Content to be updated is downloaded in S30, the delta patch of the history patch stored from the patch relative to server end Partly or entirely;
S40, in delta patch not completely include content to be updated when, according to point to server end store history patch Record identification the remainder of content to be updated is downloaded from history patch.
For example, with reference to shown in Fig. 5, when game client needs to start, it can be carried out with the delta patch newly uploaded Contrast, to obtain the content for needing to update.After contrast, game client can be downloaded newly more from delta patch part first New content, and the content for not having in delta patch, game client can be then downloaded from history patch.
It follows that the patch downloading updating method that the present embodiment is provided is corresponding with above-mentioned patch generation method.Tool For body, in the generation of patch and upload procedure, the delta patch newly uploaded have a record identification point to before on The Patch catalogues of the patch of biography, and the game client of game engine can contrast local game resource first when needing to update With the difference of server end resource, then downloaded again from delta patch part and the history patch part uploaded before are front and rear respectively Need the resource updated.
So, when carrying out patch renewal, newest more new content just can be directly obtained from delta patch, is kept away Exempt from elder generation and download a patch from history patch, then under being repeated from delta patch to the content having downloaded and updated again Carry, so that having saved patch updates time-consuming.
A kind of patch generating means are also proposed in this example embodiment, for generating patch for an application program.Such as Shown in Fig. 7, the patch generating means can include:
Ciphered compressed module 10, for being encrypted and compressing to original resource file to obtain standard resource file;
Common source module 20, the shared money of different terminals type is common to for being obtained from the standard resource file Source file is simultaneously configured under common source catalogue;
Specialized Resource Module SRM 30, for for each terminal type, obtaining and being applicable from the standard resource file In the terminal type private resource file and be configured to should be under the private resource catalogue of terminal type;
Wherein, the corresponding patch of any terminal type include the common source catalogue under common source file with And to should be under the private resource catalogue of terminal type private resource file.
The patch generating means that disclosure illustrative embodiments are provided, the resource type according to used in application program Difference and the patch generated is configured under different Resource TOCs.So, by the way that each terminal type is fitted Resource file is configured at one and shared under Resource TOC, while the resource file for particular terminal type is configured at into correspondence Private resource catalogue under, you can repeatedly generating for general class patch is avoided, so as to reach that reduction patch generation is time-consuming and saves The about effect of space-consuming;On this basis, due to generating corresponding resource file for each terminal type, that is, correspond to Each terminal type has generated corresponding patch, therefore present embodiment can be applied to different terminal types simultaneously.
It should be noted that:The detail of each modular unit is given birth in corresponding patch in the patch generating means It is described in detail, repeats no more here into method.
Although it should be noted that being referred to some modules or list of the equipment for action executing in above-detailed Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be further divided into being embodied by multiple modules or unit.
In addition, although each step of method in the disclosure is described with particular order in the accompanying drawings, this does not really want These steps must be performed according to the particular order by asking or implying, or the step having to carry out shown in whole could be realized Desired result.It is additional or alternative, it is convenient to omit some steps, multiple steps are merged into a step and performed, and/ Or a step is decomposed into execution of multiple steps etc..
In an exemplary embodiment of the disclosure, additionally providing a kind of can realize the electronic equipment of the above method.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete Complete Software Implementation (including firmware, microcode etc.), or the embodiment combined in terms of hardware and software, it can unite here Referred to as " circuit ", " module " or " system ".
Electronic equipment 600 according to the embodiment of the invention is described referring to Fig. 8.Electronics in accompanying drawing is set Standby 600 be only an example, should not carry out any limitation to the function of the embodiment of the present invention and using range band.
As shown in figure 8, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can be wrapped Include but be not limited to:At least one above-mentioned processing unit 610, at least one above-mentioned memory cell 620, connection different system component The bus 630 of (including memory cell 620 and processing unit 610).
Wherein, the memory cell 620 has program stored therein code, and described program code can be by the processing unit 610 Perform so that the processing unit 610 performs various according to the present invention described in this specification above-mentioned example method part The step of illustrative embodiments.For example, the processing unit 610 can perform step S1 as shown in fig. 1, to original money Source file is encrypted and compresses to obtain standard resource file;Step S2, from standard resource file obtain be common to difference The common source file of terminal type is simultaneously configured under common source catalogue;Step S3, for each terminal type, from standard money In source file obtain suitable for the terminal type private resource file and be configured to should terminal type private resource mesh Under record.
Memory cell 620 can include the computer-readable recording medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Memory cell 620 can also include program/utility with one group of (at least one) program module 6205 6204, such program module 6205 includes but is not limited to:Operating system, one or more application program, other program moulds The realization of network environment is potentially included in each or certain combination in block and routine data, these examples.
Bus 630 can be to represent the one or more in a few class bus structures, including memory cell bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, the equipment communication interacted with the electronic equipment 600 can be also enabled a user to one or more, and/or with causing Any equipment (such as router, modulation /demodulation that the electronic equipment 600 can be communicated with one or more of the other computing device Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As illustrated, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600. It should be understood that although not shown in the drawings, can combine electronic equipment 600 does not use other hardware and/or software module, including but not It is limited to:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
In an exemplary embodiment of the disclosure, a kind of computer-readable recording medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product, it includes program code, when described program product is run on the terminal device, institute State program code be used for make the terminal device perform described in this specification above-mentioned example method part according to the present invention The step of various illustrative embodiments.
With reference to shown in Fig. 9, the program product for being used to realize the above method according to the embodiment of the present invention is described 800, it can be using portable compact disc read only memory (CD-ROM) and including program code, it is possible in terminal device, For example on PC run.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can be with Be it is any include or storage program tangible medium, the program can be commanded execution system, device or device use or It is in connection.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any combination above.The more specifically example of readable storage medium storing program for executing is (non exhaustive List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more wires, read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media can include in a base band or as carrier wave a part propagate data-signal, its In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie beyond readable storage medium storing program for executing Matter, the computer-readable recording medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code included on computer-readable recording medium can be transmitted with any appropriate medium, including but not limited to wirelessly, be had Line, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with any combination of one or more programming languages for performing the program that the present invention is operated Code, described program design language includes object oriented program language-Java, C++ etc., in addition to conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user Perform, partly perform on a user device on computing device, being performed as an independent software kit, partly in user's calculating Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to In the situation of journey computing device, remote computing device can pass through the network of any kind, including LAN (LAN) or wide area network (WAN) user calculating equipment, is connected to, or, it may be connected to external computing device (for example utilizes ISP Come by Internet connection).
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can be realized by software, can also be realized by way of software combines necessary hardware.Therefore, according to the disclosure The technical scheme of embodiment can be embodied in the form of software product, the software product can be stored in one it is non-volatile Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are to cause a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is performed according to disclosure embodiment Method.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by appended Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a kind of patch generation method, for generating patch for an application program;Characterized in that, the patch generation method bag Include:
Original resource file is encrypted and compresses to obtain standard resource file;
Obtained from the standard resource file and be common to the common source file of different terminals type and be configured at common source Under catalogue;
For each terminal type, the private resource text suitable for the terminal type is obtained from the standard resource file Part is simultaneously configured to should be under the private resource catalogue of terminal type;
Wherein, the corresponding patch of any terminal type includes the common source file and right under the common source catalogue Private resource file that should be under the private resource catalogue of terminal type.
2. patch generation method according to claim 1, it is characterised in that the different terminals type includes correspondence first First terminal, the third terminal of the 3rd application platform of the second terminal of the second application platform of correspondence and correspondence of application platform;
Wherein, the private resource file suitable for the terminal type is obtained from the standard resource file and is configured to should Include under the private resource catalogue of terminal type:
The first private resource file suitable for the first terminal is obtained from the standard resource file and by described first Private resource file configuration is under the first private resource catalogue of the correspondence first terminal;
The second private resource file suitable for the second terminal is obtained from the standard resource file and by described second Private resource file configuration is under the second private resource catalogue of the correspondence second terminal;
The 3rd private resource file suitable for the third terminal is obtained from the standard resource file and by the described 3rd Private resource file configuration is under the 3rd private resource catalogue of the correspondence third terminal.
3. patch generation method according to claim 2, it is characterised in that the first terminal is operation iOS system Terminal, the second terminal is the terminal of operation android system, and the third terminal is the terminal of operation Windows systems.
4. patch generation method according to claim 1, it is characterised in that the different terminals type includes correspondence first First terminal, the third terminal of the 3rd hardware configuration of the second terminal of the second hardware configuration of correspondence and correspondence of hardware configuration;
Wherein, the private resource file suitable for the terminal type is obtained from the standard resource file and is configured to should Include under the private resource catalogue of terminal type:
The first private resource file suitable for the first terminal is obtained from the standard resource file and by described first Private resource file configuration is under the first private resource catalogue of the correspondence first terminal;
The second private resource file suitable for the second terminal is obtained from the standard resource file and by described second Private resource file configuration is under the second private resource catalogue of the correspondence second terminal;
The 3rd private resource file suitable for the third terminal is obtained from the standard resource file and by the described 3rd Private resource file configuration is under the 3rd private resource catalogue of the correspondence third terminal.
5. patch generation method according to claim 1, it is characterised in that be encrypted and compress to original resource file Included with obtaining standard resource file:
Script file, fine arts resource file and engine configuration file are encrypted and compressed according to reference format, to obtain The standard resource file;
Wherein, the file format that the reference format is supported by the exploitation engine of the application program.
6. patch generation method according to claim 5, it is characterised in that obtain general from the standard resource file Include in the common source file of different terminals type:
The script file, the engine configuration file and fine arts resource text are obtained from the standard resource file Document scene and bone motion file in part.
7. the patch generation method according to claim any one of 1-6, it is characterised in that the patch generation method is also wrapped Include:
The history patch that the patch is stored with server end is contrasted, and is mended with obtaining the patch relative to the history The delta patch and same section of fourth;
The delta patch is uploaded to the server, and the server end is pointed to for same section generation one and is deposited The record identification of the history patch of storage.
8. a kind of patch update method, it is characterised in that the patch update method includes:
The patch for obtaining the patch generation method according to claim any one of 1-7 and generating;
The patch got is contrasted with local content, to obtain content to be updated;
The portion of the content to be updated is downloaded in the delta patch of the history patch stored from the patch relative to server end Divide or whole;
When not including the content to be updated completely in the delta patch, according to the history for pointing to the server end storage The record identification of patch downloads the remainder of the content to be updated from the history patch.
9. a kind of patch generating means, for generating patch for an application program;Characterized in that, the patch generating means bag Include:
Ciphered compressed module, for being encrypted and compressing to original resource file to obtain standard resource file;
Common source module, the common source file of different terminals type is common to for being obtained from the standard resource file And be configured under common source catalogue;
Specialized Resource Module SRM, for for each terminal type, being obtained from the standard resource file and being applied to the end Hold the private resource file of type and be configured to should be under the private resource catalogue of terminal type;
Wherein, the corresponding patch of any terminal type includes the common source file and right under the common source catalogue Private resource file that should be under the private resource catalogue of terminal type.
10. a kind of electronic equipment, it is characterised in that including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to come described in perform claim requirement any one of 1-7 via the execution executable instruction Patch update method described in patch generation method or claim 8.
11. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The patch described in the patch generation method or claim 8 described in claim any one of 1-7 is realized when being executed by processor Update method.
CN201710416863.0A 2017-06-06 2017-06-06 Patch generation method and device, updating method, electronic device and storage medium Active CN107239309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710416863.0A CN107239309B (en) 2017-06-06 2017-06-06 Patch generation method and device, updating method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710416863.0A CN107239309B (en) 2017-06-06 2017-06-06 Patch generation method and device, updating method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN107239309A true CN107239309A (en) 2017-10-10
CN107239309B CN107239309B (en) 2021-03-02

Family

ID=59985354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710416863.0A Active CN107239309B (en) 2017-06-06 2017-06-06 Patch generation method and device, updating method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN107239309B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861736A (en) * 2017-11-01 2018-03-30 网易(杭州)网络有限公司 Patch generates and update method and device, electronic equipment, storage medium
CN109446161A (en) * 2018-10-18 2019-03-08 网易(杭州)网络有限公司 Information monitoring method, device, electronic equipment and storage medium
CN109522041A (en) * 2018-10-15 2019-03-26 网易(杭州)网络有限公司 Client resource update method, device, processor, server and terminal
CN111008034A (en) * 2019-12-02 2020-04-14 网易(杭州)网络有限公司 Patch generation method and device
CN111399895A (en) * 2020-04-13 2020-07-10 网易(杭州)网络有限公司 Client updating method and device, electronic equipment and computer readable medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052703A1 (en) * 2005-01-03 2008-02-28 Panjwani Dileep K Universal patching machine
CN102402438A (en) * 2010-09-16 2012-04-04 金蝶软件(中国)有限公司 Method and device for automatically merging patch files and communication terminal
CN102831001A (en) * 2012-09-11 2012-12-19 北京百纳威尔科技有限公司 Method and device for manufacturing of software upgrading package and method and device for program upgrading
CN103399775A (en) * 2013-08-05 2013-11-20 北京华为数字技术有限公司 Hot patching method and hot patching equipment
CN103744709A (en) * 2014-01-23 2014-04-23 华为技术有限公司 Patch loading method and device
CN105487907A (en) * 2015-12-07 2016-04-13 青岛海信电器股份有限公司 Difference package manufacturing method and device
CN105824643A (en) * 2016-03-25 2016-08-03 浪潮通用软件有限公司 Method for multiversion API adaptation of enterprise management software
CN106354525A (en) * 2016-08-11 2017-01-25 深圳市宜搜科技发展有限公司 Difference storing method and system for application software installation package
CN106648766A (en) * 2016-12-07 2017-05-10 京信通信系统(中国)有限公司 Patch update package generation and differential upgrade method based on folder and device thereof
CN106658475A (en) * 2015-10-30 2017-05-10 上海中兴软件有限责任公司 Over-the-air technology upgrading method an over-the-air technology upgrading device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052703A1 (en) * 2005-01-03 2008-02-28 Panjwani Dileep K Universal patching machine
CN102402438A (en) * 2010-09-16 2012-04-04 金蝶软件(中国)有限公司 Method and device for automatically merging patch files and communication terminal
CN102831001A (en) * 2012-09-11 2012-12-19 北京百纳威尔科技有限公司 Method and device for manufacturing of software upgrading package and method and device for program upgrading
CN103399775A (en) * 2013-08-05 2013-11-20 北京华为数字技术有限公司 Hot patching method and hot patching equipment
CN103744709A (en) * 2014-01-23 2014-04-23 华为技术有限公司 Patch loading method and device
CN106658475A (en) * 2015-10-30 2017-05-10 上海中兴软件有限责任公司 Over-the-air technology upgrading method an over-the-air technology upgrading device
CN105487907A (en) * 2015-12-07 2016-04-13 青岛海信电器股份有限公司 Difference package manufacturing method and device
CN105824643A (en) * 2016-03-25 2016-08-03 浪潮通用软件有限公司 Method for multiversion API adaptation of enterprise management software
CN106354525A (en) * 2016-08-11 2017-01-25 深圳市宜搜科技发展有限公司 Difference storing method and system for application software installation package
CN106648766A (en) * 2016-12-07 2017-05-10 京信通信系统(中国)有限公司 Patch update package generation and differential upgrade method based on folder and device thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
BO-SHAU CHEN.ETC: ""Broadband circularly polarized stacked patch antenna for universal UHF RFID applications"", 《2014 INTERNATIONAL SYMPOSIUM ON ANTENNAS AND PROPAGATION CONFERENCE PROCEEDINGS》 *
MILOSH STOLIKJ.ETC: ""Patching a patch — Software updates using horizontal patching"", 《2013 IEEE INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS (ICCE)》 *
宋林: ""风险测试方法在补丁测试中的应用研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
尹茸: ""移动应用的实时增量更新"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861736A (en) * 2017-11-01 2018-03-30 网易(杭州)网络有限公司 Patch generates and update method and device, electronic equipment, storage medium
CN109522041A (en) * 2018-10-15 2019-03-26 网易(杭州)网络有限公司 Client resource update method, device, processor, server and terminal
CN109446161A (en) * 2018-10-18 2019-03-08 网易(杭州)网络有限公司 Information monitoring method, device, electronic equipment and storage medium
CN109446161B (en) * 2018-10-18 2021-12-28 网易(杭州)网络有限公司 Information monitoring method and device, electronic equipment and storage medium
CN111008034A (en) * 2019-12-02 2020-04-14 网易(杭州)网络有限公司 Patch generation method and device
CN111008034B (en) * 2019-12-02 2023-11-24 网易(杭州)网络有限公司 Patch generation method and device
CN111399895A (en) * 2020-04-13 2020-07-10 网易(杭州)网络有限公司 Client updating method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN107239309B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN107239309A (en) Patch generation method and device, update method, electronic equipment, storage medium
CN107450941B (en) Automatic packaging method, device, storage medium and computer equipment
CN105740016B (en) Increment issuing method and device, upgrading method and device of application program
CN108786112B (en) Application scene configuration method, device and storage medium
CN107491329A (en) Docker mirror images construction method, equipment, storage medium and electronic installation
CN105511911A (en) System firmware upgrade package generation method and device
US9542461B2 (en) Enhancing performance of extract, transform, and load (ETL) jobs
CN103123588A (en) Method and system for obtaining difference upgrade patch
CN109542459A (en) Application program packaging method and device, computer installation and computer storage medium
CN110515647A (en) A kind of static resource management method, device, equipment and storage medium
CN107861736A (en) Patch generates and update method and device, electronic equipment, storage medium
US20220334815A1 (en) Accelerating application and sub-package installations
CN105809028A (en) Apparatus and method for running multiple instances of same application in mobile devices
TW201440475A (en) Streaming ZIP
US20110321030A1 (en) Method and apparatus for updating a software image
CN102880478B (en) Oftware updating method
CN106325896A (en) Method and device for processing shared function library file of installation package
CN111522574A (en) Differential packet generation method and related equipment
CN109032617B (en) Control method and control device for automatically deleting installation package
CN110532016A (en) Method for edition management, method for updating edition and edition management system
CN113741954A (en) System software generation method and device, electronic equipment and storage medium
CN107092472A (en) A kind of dynamic publishing method and equipment
CN115203019A (en) Performance test method, device and equipment of GPU (graphics processing Unit) server and storage medium
CN115203674A (en) Automatic login method, system, device and storage medium for application program
CN108604226A (en) For the cross-platform system and method for keeping the comment to electronic document synchronous

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