CN107797819A - Delta package generation method, computer-readable recording medium and server - Google Patents

Delta package generation method, computer-readable recording medium and server Download PDF

Info

Publication number
CN107797819A
CN107797819A CN201710437008.8A CN201710437008A CN107797819A CN 107797819 A CN107797819 A CN 107797819A CN 201710437008 A CN201710437008 A CN 201710437008A CN 107797819 A CN107797819 A CN 107797819A
Authority
CN
China
Prior art keywords
version
edition
delta package
source code
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710437008.8A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201710437008.8A priority Critical patent/CN107797819A/en
Publication of CN107797819A publication Critical patent/CN107797819A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The invention discloses a kind of delta package generation method, computer-readable recording medium and server, wherein, above-mentioned delta package generation method includes:The change of the source code file of source code file and the second edition based on first version, determine the differential file between the first version and the second edition, wherein, the first version and the second edition belong to the different editions of same software, and the first version is newly in the second edition;Based on the differential file between the first version and the second edition, the delta package between the first version and the second edition is generated.Technical scheme provided by the invention can save storage resource.

Description

Delta package generation method, computer-readable recording medium and server
Technical field
The present invention relates to software processing technology field, and in particular to a kind of delta package generation method, computer-readable storage Medium and server.
Background technology
Generally software (such as application software or operating system) will progressively show through use after a while Reveal some leaks and defect of itself, these leaks and defect can not meet growing software cause requirement, therefore, soft Part developer periodically or irregularly must be repaired and be corrected to software leak in itself and defect, and this process is also referred to as version This upgrading.
The method that client is typically generated by increment carries out the increment of the edition upgrading, i.e. client downloads software of software Bag, the delta package carry the original version mark and target version mark of the software, and client is using the delta package downloaded to current The software of the original version used is upgraded, wherein, delta package represent original version installation kit and target version installation kit it Between differential file.
In the prior art, the generating mode of delta package is as follows:The installation kit of latest edition is obtained, and by the peace of latest edition Installation package file in dress bag and the installation package file in the installation kit of old version are compared, and according to comparative result, are obtained Differential file between the installation kit of target version and the installation kit of the old version, and based on the differential file generation got Delta package comprising the differential file.
The installation of the installation package file and old version in the installation kit by target version is needed due to the generation of delta package Installation package file in bag is compared, and therefore, needs to store the installation kit of each old version in the prior art, for follow-up Delta package between generation and latest edition, and the installation kit of all old versions is stored, it is necessary to take larger storage resource.
The content of the invention
The present invention provides a kind of delta package generation method, computer-readable recording medium and server, is stored for saving Resource.
First aspect present invention provides a kind of delta package generation method, including:
The change of the source code file of source code file and the second edition based on first version, determines above-mentioned first version Differential file between the above-mentioned second edition, wherein, above-mentioned first version and the above-mentioned second edition belong to same software not Same version, and above-mentioned first version is newly in the above-mentioned second edition;
Based on the differential file between above-mentioned first version and the above-mentioned second edition, above-mentioned first version and above-mentioned are generated Delta package between two versions.
Second aspect of the present invention provides a kind of computer-readable recording medium, and above computer readable storage medium storing program for executing is stored with Delta package generates program, when above-mentioned delta package generates program by least one computing device, realizes following steps:
The change of the source code file of source code file and the second edition based on first version, determines above-mentioned first version Differential file between the above-mentioned second edition, wherein, above-mentioned first version and the above-mentioned second edition belong to same software not Same version, and above-mentioned first version is newly in the above-mentioned second edition;
Based on the differential file between above-mentioned first version and the above-mentioned second edition, above-mentioned first version and above-mentioned are generated Delta package between two versions.
Third aspect present invention provides a kind of server, and above-mentioned server includes memory, processor and is stored in above-mentioned On memory and the delta package generation program that can be run on above-mentioned processor, the above-mentioned delta package generation journey of above-mentioned computing device Following steps are realized during sequence:
The change of the source code file of source code file and the second edition based on first version, determines above-mentioned first version Differential file between the above-mentioned second edition, wherein, above-mentioned first version and the above-mentioned second edition belong to same software not Same version, and above-mentioned first version is newly in the above-mentioned second edition;
Based on the differential file between above-mentioned first version and the above-mentioned second edition, above-mentioned first version and above-mentioned are generated Delta package between two versions.
Therefore the change of the source code file of the different editions based on same software in the present invention program, generation is not With the delta package between version, because the source code file script of the different editions of software just needs to retain, accordingly, with respect to existing Technology, the present invention program and the source code file that other storage resource storage software need not be vacateed, further, since of the invention The process of schemes generation delta package need not use installation kit, therefore, on the basis of the present invention program, without storing each of software again The installation kit of individual old version, so as to effectively save the storage resource required for the installation kit of old version.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is delta package generation method one embodiment schematic flow sheet provided by the invention;
Fig. 2 is another embodiment schematic flow sheet of delta package generation method provided by the invention;
Fig. 3 is server one embodiment structural representation provided by the invention;
Fig. 4 is the functional module structure signal figure structure schematic representation that delta package provided by the invention generates program.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiment in the present invention, the common skill in this area The every other embodiment that art personnel are obtained under the premise of creative work is not made, belong to the model that the present invention protects Enclose.
Embodiment one
A kind of delta package generation method is described the embodiment of the present invention, referring to Fig. 1, the increasing in the embodiment of the present invention Amount bag generation method includes:
The change of the source code file of step 101, the source code file based on first version and the second edition, determine above-mentioned Differential file between first version and the above-mentioned second edition;
Wherein, above-mentioned first version and the above-mentioned second edition belong to the different editions of same software, and above-mentioned first version Newly in the above-mentioned second edition.
In the embodiment of the present invention, source code file refers to non-compiled according to certain programming language specification writing Text.
In the embodiment of the present invention, the type of differential file is including following several:Newly-increased file, the file of deletion and change File.The change of the source code file of source code file and the second edition based on first version, it may be determined that the above-mentioned first edition The file of this file increased newly relative to the above-mentioned second edition, the file of change and deletion, and then determine above-mentioned first Differential file between version and the above-mentioned second edition.
, can be when receiving the delta package downloading request message from client, in the increasing in a kind of application scenarios Under the instruction for measuring bag downloading request message, the source code text of above-mentioned source code file and the second edition based on first version is performed The change of part, the step of determining the differential file between above-mentioned first version and the above-mentioned second edition, to be subsequently based on the difference Different article part generates corresponding delta package and is sent to the client in real time.Then step 101 specifically can behave as:Come from when receiving During the delta package downloading request message of client, the source code file of source code file and the second edition based on first version Change, determines the differential file between above-mentioned first version and the above-mentioned second edition, wherein, in the delta package downloading request message The first mark and the second mark are carried, above-mentioned first is identified as the mark for indicating above-mentioned first version, and above-mentioned second is identified as Indicate the mark of the above-mentioned second edition.
In another application scenarios, it can also be generated when the delta package for receiving input generates instruction in the delta package Under the instruction of instruction, the change of the source code file of above-mentioned source code file and the second edition based on first version is performed, really The step of determining the differential file between above-mentioned first version and the above-mentioned second edition, to be subsequently based on differential file generation simultaneously Store corresponding delta package.Then step 101 specifically can behave as:When the delta package for receiving input generates instruction, based on the The change of the source code file of one version and the source code file of the second edition, determine above-mentioned first version and the above-mentioned second edition Between differential file, wherein, the delta package generation instruction in carries the first mark and second mark, above-mentioned first is identified as The mark of above-mentioned first version is indicated, above-mentioned second is identified as the mark for indicating the above-mentioned second edition.
, can also be when the redaction of software produce in another application scenarios, the source code file based on redaction With the change of the source code file of the old version of the software, the differential file between redaction and old version is determined, so as to Subsequently generated based on the differential file and store the delta package between different editions.Then step 101 specifically can behave as:When in the presence of During one version, the change of the source code file of source code file and the second edition based on above-mentioned first version, above-mentioned is determined Differential file between one version and the above-mentioned second edition, wherein, above-mentioned first version is new caused version.
Because the source code of software is by meeting source code tool management, Source code management instrument is a kind of record source code History is changed, and can unrestrictedly be recalled, is adapted to multiple programmers to develop the code management tools of cooperation.Usual source code instrument Possess following several functions:1st, a project can be followed the trail of from the process being born up to verdict;2nd, one project of record is all Content change, unrestricted backtracking;3rd, the recension of particular version is checked.Therefore, in a step 101, the source generation can be based on Code instrument determines the differential file between above-mentioned first version and the above-mentioned second edition, optionally, above-mentioned to be based on first version Source code file and the second edition source code file change, determine between above-mentioned first version and the above-mentioned second edition Differential file, including:According to the above-mentioned software of above-mentioned Source code management tool records from the above-mentioned second edition to the above-mentioned first edition This source code file change information, determines the differential file between above-mentioned first version and the above-mentioned second edition.Certainly, this hair In bright embodiment, " the source of above-mentioned source code file and the second edition based on first version can also be realized otherwise The change of code file, determine the differential file between above-mentioned first version and the above-mentioned second edition ", for example, above-mentioned be based on The change of the source code file of one version and the source code file of the second edition, determine above-mentioned first version and the above-mentioned second edition Between differential file may also comprise:The source code file of above-mentioned first version and the source code file of the second edition are obtained, it is right The source code file of above-mentioned first version and the source code file of the second edition got is compared, based on result of the comparison Determine the differential file between above-mentioned first version and the above-mentioned second edition.
Step 102, based on the differential file between above-mentioned first version and the above-mentioned second edition, generate above-mentioned first version Delta package between the above-mentioned second edition;
By the differential file that step 101 is determined, can to embody above-mentioned first version new relative to above-mentioned second edition institute File, the file of change and the file of deletion of increasing, therefore, in a step 102, based on above-mentioned first version and above-mentioned second Differential file between version, you can generate the delta package between above-mentioned first version and the above-mentioned second edition.Such as to above-mentioned Differential file between first version and the above-mentioned second edition generates above-mentioned first version and the above-mentioned second edition after being compiled Between delta package.
For example, setting certain software has version one and version two, version two is newly in version one, the source code text of version one Part includes:File x1, file x2 and file y, the source code file of version two include:File x1 ', file x2, file y ' and text Part d;Wherein, file xl ' is the file after file x1 changes, and file y ' is file y change file.Source then based on version one The change of code file and the source code file of version two, it may be determined that the differential file for going out version one and version two is:File X1 ', file y ' and file d, based on above-mentioned differential file can build version one and version two delta package, wrap in the delta package X1 containing file ', file y ' and file d.
Further, in order to prevent delta package to be maliciously tampered, after step 102, the delta package of generation can also be entered Row encryption.
Optionally, after step 102, store generation delta package or encryption after delta package, so as to follow-up The delta package can be called.It should be noted that the delta package can be identified when storing delta package, in order to identify the increasing Delta package of the amount bag between any two versions.
Optionally, if this delta package generation method is triggered by the delta package downloading request message from client (such as the first application scenarios referred in step 101), then after step 102, this hyposynchronization is sent to above-mentioned client Delta package after the delta package of rapid 102 generation or encrypted processing.
It should be noted that the delta package generation method in the embodiment of the present invention can be realized by delta package generating means, The delta package generating means can be specifically integrated in server, personal computer or miscellaneous equipment, be not construed as limiting herein.
Therefore the change of the source code file of the different editions based on same software in the embodiment of the present invention, generation Delta package between different editions, because the source code file script of the different editions of software just needs to retain, accordingly, with respect to Existing technology, the present invention program and the source code file that other storage resource storage software need not be vacateed, further, since this hair The process of bright schemes generation delta package need not use installation kit, therefore, on the basis of the present invention program, without storing software again The installation kit of each old version, so as to effectively save the storage resource required for the installation kit of old version.
Embodiment two
The difference of the embodiment of the present invention and embodiment one is, the embodiment of the present invention is by obtaining and comparing between different editions Source code file, to determine the differential file between different editions.Specifically, referring to Fig. 2, increment in the embodiment of the present invention Bag generation method includes:
The source code file of step 201, the source code file for obtaining first version and the second edition;
Wherein, above-mentioned first version and the above-mentioned second edition belong to the different editions of same software, and above-mentioned first version Newly in the above-mentioned second edition.
In the embodiment of the present invention, source code file refers to non-compiled according to certain programming language specification writing Text.
In a kind of application scenarios, phase can be obtained when receiving the delta package downloading request message from client The source code file of version is answered, so that subsequently the source code file based on respective version generates corresponding delta package and sent in real time Give the client.Then step 101 specifically can behave as:When receiving the delta package downloading request message from client, root According to the delta package downloading request message carry first mark and second mark respectively obtain first version source code file and The source code file of the second edition, wherein, above-mentioned first is identified as the mark for indicating above-mentioned first version, and above-mentioned second is identified as Indicate the mark of the above-mentioned second edition.
In another application scenarios, respective version can also be obtained when the delta package for receiving input generates instruction Source code file, so that subsequently the source code file based on respective version generates and stores corresponding delta package.Then step 101 has Body can behave as:When the delta package for receiving input generates instruction, the first mark of instruction carrying is generated according to the delta package The source code file of first version and the source code file of the second edition are obtained respectively with the second mark, wherein, above-mentioned first mark Know to indicate the mark of above-mentioned first version, above-mentioned second is identified as the mark for indicating the above-mentioned second edition.
In another application scenarios, the source code file of redaction when the redaction of software produces, can also be obtained With the source code file of the old version of the software, so that subsequently the source code file based on acquisition generates and stores different editions Between delta package.Then step 101 specifically can behave as:When first version be present, the source code text of above-mentioned first version is obtained The source code file of part and the second edition, wherein, above-mentioned first version is new caused version.
The source code file of step 202, the source code file of more above-mentioned first version and the above-mentioned second edition, based on than Compared with result determine differential file between above-mentioned first version and the above-mentioned second edition;
In the embodiment of the present invention, the type of differential file is including following several:Newly-increased file, the file of deletion and change File.The source code file of the first version got by comparison step 201 and the source code file of the second edition, you can Know the change (namely result of the comparison) of the source code file of above-mentioned first version and the source code file of the second edition, enter one The file walk and file that above-mentioned first version increase relative to the above-mentioned second edition can determine that based on result of the comparison, changed with And the file deleted, namely determine the differential file between above-mentioned first version and the above-mentioned second edition.
Step 203, based on the differential file between above-mentioned first version and the above-mentioned second edition, generate above-mentioned first version Delta package between the above-mentioned second edition;
By the differential file that step 203 is determined, can to embody above-mentioned first version new relative to above-mentioned second edition institute File, the file of change and the file of deletion of increasing, therefore, in step 203, based on above-mentioned first version and above-mentioned second Differential file between version, you can generate the delta package between above-mentioned first version and the above-mentioned second edition.
Further, in order to prevent delta package to be maliciously tampered, after step 203, the delta package of generation can also be entered Row encryption.
Optionally, after step 203, store generation delta package or encryption after delta package, so as to follow-up The delta package can be called.It should be noted that the delta package can be identified when storing delta package, in order to identify the increasing Delta package of the amount bag between any two versions.
Optionally, if this delta package generation method is triggered by the delta package downloading request message from client (such as the first application scenarios referred in step 201), then after step 203, this hyposynchronization is sent to above-mentioned client Delta package after the delta package of rapid 203 generation or encrypted processing.
It should be noted that the delta package generation method in the embodiment of the present invention can be realized by delta package generating means, The delta package generating means can be specifically integrated in server, personal computer or miscellaneous equipment, be not construed as limiting herein.
Therefore the change of the source code file of the different editions based on same software in the embodiment of the present invention, generation Delta package between different editions, because the source code file script of the different editions of software just needs to retain, accordingly, with respect to Existing technology, the present invention program and the source code file that other storage resource storage software need not be vacateed, further, since this hair The process of bright schemes generation delta package need not use installation kit, therefore, on the basis of the present invention program, without storing software again The installation kit of each old version, so as to effectively save the storage resource required for the installation kit of old version.
Embodiment three
Corresponding to the above-mentioned delta package generation method of embodiment one or embodiment two, Fig. 3 shows that the embodiment of the present invention carries The running environment schematic diagram of the delta package generation program related to above-mentioned delta package generation method supplied, for convenience of description, only Show the part related to the embodiment of the present invention.
In embodiments of the present invention, above-mentioned delta package generation program is installed and run in server.The server can wrap Include but be not limited only to one or more memories 31 (one is only shown in figure), one or more processors 32 (are only shown in figure One), above-mentioned memory 31 and processor 32 are connected by bus 33.Fig. 3 illustrate only the server with component 31-33, It should be understood that be not required for implementing all components shown, the more components of implementation that can substitute (such as display Deng) or less component.
Memory 31 can be the internal storage unit of server in certain embodiments, for example, the hard disk of the server or Internal memory.Memory 31 can also be in further embodiments the External memory equipment of server, such as be equipped with server Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, dodge Deposit card (Flash Card) etc..Further, memory 31 can also both include the internal storage unit of server or including outer Portion's storage device.Memory 31 is used to store the application software and Various types of data for being installed on server, such as the life of above-mentioned delta package Program code into program etc..Memory 31 can be also used for temporarily storing the data that has exported or will export.
Processor 32 can be in certain embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, for the program code or processing data stored in run memory 31, example Such as perform above-mentioned delta package generation program.
Further, on the basis of Fig. 3, referring to Fig. 4, Fig. 4 for it is provided in an embodiment of the present invention correspond to embodiment one or The functional block diagram of the delta package generation program of the above-mentioned delta package generation method of embodiment two.In embodiments of the present invention, on One or more modules can be divided into by stating delta package generation program, and said one or multiple modules are stored in memory In 31, and it is performed by one or more processors (the present embodiment is processor 32), to complete the present invention.For example, in Fig. 4 In, above-mentioned delta package generation program can be divided into determining module 41 and generation module 42.Module alleged by the present invention refers to The series of computation machine programmed instruction section of specific function can be completed, program is generated more suitable for describing above-mentioned delta package than program Implementation procedure in above-mentioned server.Describe specifically to introduce the function of determining module 41 and generation module 42 below.
Determining module 41, for the change of source code file and the source code file of the second edition based on first version, The differential file between above-mentioned first version and the above-mentioned second edition is determined, wherein, above-mentioned first version and the above-mentioned second edition Belong to the different editions of same software, and above-mentioned first version is newly in the above-mentioned second edition;
Generation module 42, between the above-mentioned first version determined based on determining module 41 and the above-mentioned second edition Differential file, generate the delta package between above-mentioned first version and the above-mentioned second edition.
Optionally, the source code of above-mentioned software is by Source code management tool management;Determining module 41 is specifically used for:According to upper The above-mentioned software for stating Source code management tool records changes letter from the above-mentioned second edition to the source code file of above-mentioned first version Breath, determines the differential file between above-mentioned first version and the above-mentioned second edition.
Optionally, determining module 41 is specifically used for:When receiving the delta package downloading request message from client, base In first version source code file and the second edition source code file change, determine above-mentioned first version and above-mentioned second Differential file between version;Wherein, the first mark and the second mark are carried in above-mentioned delta package downloading request message, above-mentioned the One is identified as the mark of instruction first version, and above-mentioned second is identified as the mark of the instruction second edition.Above-mentioned delta package generates journey Sequence also it is divisible go out:Sending module, for sending above-mentioned delta package to above-mentioned client.
Optionally, above-mentioned delta package generation program also it is divisible go out:Encrypting module, for the increasing generated to generation module 42 Amount bag is encrypted, and obtains the delta package after encryption.
Optionally, above-mentioned delta package generating means also include:Memory module, for storing after the processing of above-mentioned encrypting module Delta package or generation module 42 generate delta package.
It should be understood that the server in the embodiment of the present invention can be used for realizing whole technical sides in above method embodiment Case, the part for not being described in detail and referring in embodiments of the present invention, the description of above method embodiment is may refer to, herein no longer Repeat.
Therefore the change of the source code file of different editions of the server in the embodiment of the present invention based on same software Change, generate the delta package between different editions, because the source code file script of the different editions of software just needs to retain, because This, is relative to existing technology, the present invention program and the source code file that other storage resource storage software need not be vacateed, separately Outside, the process for delta package being generated due to the present invention program need not use installation kit, therefore, on the basis of the present invention program, without The installation kit of each old version of software is stored again, so as to effectively save the storage money required for the installation kit of old version Source.
For convenience of description and succinctly, only carried out with the division of above-mentioned each functional unit, module for example, actual should In, it can be completed as needed and by above-mentioned function distribution by different functional units, module, i.e., by the inside of described device Structure is divided into different functional units or module, to complete all or part of function described above.It is each in embodiment Functional unit, module can be integrated in a processing unit or unit is individually physically present, can also be two Or two or more unit is integrated in a unit, above-mentioned integrated unit can both be realized in the form of hardware, can also Realized in the form of SFU software functional unit.In addition, the specific name of each functional unit, module is also only to facilitate mutual area Divide, be not limited to the protection domain of the application.Unit, the specific work process of module in said system, before may be referred to The corresponding process in embodiment of the method is stated, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, system embodiment described above is only schematical, for example, the division of the module or unit, Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or Communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing module, can also That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention The part substantially to be contributed in other words to prior art or all or part of the technical scheme can be with software products Form embody, the computer software product is stored in a storage medium, including some instructions are causing one Computer equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform this hair The all or part of step of the bright each embodiment methods described of embodiment.And foregoing storage medium includes:USB flash disk, mobile hard disk, Read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic Dish or CD etc. are various can be with the medium of store program codes.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

  1. A kind of 1. delta package generation method, it is characterised in that including:
    The change of the source code file of source code file and the second edition based on first version, determines the first version and institute The differential file between the second edition is stated, wherein, the first version and the second edition belong to the different versions of same software This, and the first version is newly in the second edition;
    Based on the differential file between the first version and the second edition, the first version and the second edition are generated Delta package between this.
  2. 2. delta package generation method according to claim 1, it is characterised in that the source code of the software is by source code pipe Manage tool management;
    The change of the source code file of the source code file and the second edition based on first version, determines the first version Differential file between the second edition, including:
    According to the software of the Source code management tool records from the second edition to the source code of the first version File change information, determine the differential file between the first version and the second edition.
  3. 3. delta package generation method according to claim 1 or 2, it is characterised in that the source generation based on first version The change of the source code file of code file and the second edition, determine the difference text between the first version and the second edition Part, including:
    When receiving the delta package downloading request message from client, source code file and the second edition based on first version The change of this source code file, determines the differential file between the first version and the second edition;
    Wherein, the first mark and the second mark are carried in the delta package downloading request message, described first is identified as instruction the The mark of one version, described second is identified as the mark of the instruction second edition;
    The delta package generated between the first version and the second edition, also includes afterwards:
    The delta package is sent to the client.
  4. 4. delta package generation method according to claim 1 or 2, it is characterised in that the generation first version and Delta package between the second edition, also includes afterwards:
    The delta package of generation is encrypted, obtains the delta package after encryption.
  5. 5. delta package generation method according to claim 4, it is characterised in that described to obtain the increment after encryption Bag, also includes afterwards:
    Store the delta package after the encryption.
  6. 6. a kind of computer-readable recording medium, the computer-readable recording medium storage has delta package to generate program, and it is special Sign is, when the delta package generates program by least one computing device, realizes as any one of claim 1-5 Delta package generation method the step of.
  7. 7. a kind of server, it is characterised in that the server includes memory, processor and is stored on the memory simultaneously The delta package generation program that can be run on the processor, delta package described in the computing device are realized such as when generating program Lower step:
    The change of the source code file of source code file and the second edition based on first version, determines the first version and institute The differential file between the second edition is stated, wherein, the first version and the second edition belong to the different versions of same software This, and the first version is newly in the second edition;
    Based on the differential file between the first version and the second edition, the first version and the second edition are generated Delta package between this.
  8. 8. server according to claim 7, it is characterised in that the source code of the software is by Source code management tool pipe Reason;
    The change of the source code file of the source code file and the second edition based on first version, determines the first version Differential file between the second edition, including:
    According to the software of the Source code management tool records from the second edition to the source code of the first version File change information, determine the differential file between the first version and the second edition.
  9. 9. the server according to claim 7 or 8, it is characterised in that the source code file based on first version and The change of the source code file of the second edition, the differential file between the first version and the second edition is determined, including:
    When receiving the delta package downloading request message from client, source code file and the second edition based on first version The change of this source code file, determines the differential file between the first version and the second edition;
    Wherein, the first mark and the second mark are carried in the delta package downloading request message, described first is identified as instruction the The mark of one version, described second is identified as the mark of the instruction second edition;
    The delta package generated between the first version and the second edition, also includes afterwards:
    The delta package is sent to the client.
  10. 10. the server according to claim 7 or 8, it is characterised in that described to generate the first version and described second Delta package between version, also includes afterwards:
    The delta package of generation is encrypted, obtains the delta package after encryption.
CN201710437008.8A 2017-06-12 2017-06-12 Delta package generation method, computer-readable recording medium and server Pending CN107797819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710437008.8A CN107797819A (en) 2017-06-12 2017-06-12 Delta package generation method, computer-readable recording medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710437008.8A CN107797819A (en) 2017-06-12 2017-06-12 Delta package generation method, computer-readable recording medium and server

Publications (1)

Publication Number Publication Date
CN107797819A true CN107797819A (en) 2018-03-13

Family

ID=61531127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710437008.8A Pending CN107797819A (en) 2017-06-12 2017-06-12 Delta package generation method, computer-readable recording medium and server

Country Status (1)

Country Link
CN (1) CN107797819A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874406A (en) * 2018-06-28 2018-11-23 郑州云海信息技术有限公司 A kind of upgrade package production method and device
CN112346772A (en) * 2020-10-27 2021-02-09 北京微步在线科技有限公司 Incremental updating method, device and storage medium
CN112579126A (en) * 2020-12-21 2021-03-30 杭州米络星科技(集团)有限公司 Software development platform and software development method
CN113094076A (en) * 2021-03-16 2021-07-09 杭州电魂网络科技股份有限公司 Version iteration method, device, equipment and medium based on version control
CN113360178A (en) * 2021-05-31 2021-09-07 东风商用车有限公司 Software unique identification code generation method, device, equipment and readable storage medium
CN113778510A (en) * 2021-08-17 2021-12-10 珠海西山居移动游戏科技有限公司 Multi-version maintenance method and device for application program and readable storage medium
CN114189512A (en) * 2021-12-14 2022-03-15 南京欧珀软件科技有限公司 Baseline code downloading method and device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5204960A (en) * 1990-01-08 1993-04-20 Microsoft Corporation Incremental compiler
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package
CN103973475A (en) * 2013-02-05 2014-08-06 腾讯科技(深圳)有限公司 Difference service pack generating method, difference service pack downloading method, server and client-side
CN105893093A (en) * 2016-03-31 2016-08-24 北京奇艺世纪科技有限公司 Application program upgrading method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5204960A (en) * 1990-01-08 1993-04-20 Microsoft Corporation Incremental compiler
CN103973475A (en) * 2013-02-05 2014-08-06 腾讯科技(深圳)有限公司 Difference service pack generating method, difference service pack downloading method, server and client-side
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package
CN105893093A (en) * 2016-03-31 2016-08-24 北京奇艺世纪科技有限公司 Application program upgrading method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙更新等: "《Java程序开发大全-基于MyEclipse平台+Struts+Hibernate+Spring主流框架开发》", 31 August 2010 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874406A (en) * 2018-06-28 2018-11-23 郑州云海信息技术有限公司 A kind of upgrade package production method and device
CN112346772A (en) * 2020-10-27 2021-02-09 北京微步在线科技有限公司 Incremental updating method, device and storage medium
CN112579126A (en) * 2020-12-21 2021-03-30 杭州米络星科技(集团)有限公司 Software development platform and software development method
CN113094076A (en) * 2021-03-16 2021-07-09 杭州电魂网络科技股份有限公司 Version iteration method, device, equipment and medium based on version control
CN113360178A (en) * 2021-05-31 2021-09-07 东风商用车有限公司 Software unique identification code generation method, device, equipment and readable storage medium
CN113778510A (en) * 2021-08-17 2021-12-10 珠海西山居移动游戏科技有限公司 Multi-version maintenance method and device for application program and readable storage medium
CN114189512A (en) * 2021-12-14 2022-03-15 南京欧珀软件科技有限公司 Baseline code downloading method and device, terminal equipment and storage medium
CN114189512B (en) * 2021-12-14 2023-07-14 南京欧珀软件科技有限公司 Baseline code downloading method, device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107797819A (en) Delta package generation method, computer-readable recording medium and server
CN107678951A (en) Test exemple automation management method, device, equipment and storage medium
US20170235661A1 (en) Integration of Software Systems via Incremental Verification
CN105117431A (en) Dynamic configuration method and system for external imported data
CN108363564A (en) Entry modularization implementation method, device, terminal device and storage medium
CN110264137A (en) A kind of cost BOM generation method, computer and storage medium
CN108255702A (en) A kind of test case creation method, apparatus, equipment and storage medium
CN107122364A (en) Data manipulation method and data management server
CN104133699B (en) Device system software upgrade method and system
CN113826070A (en) Workflow engine tool
CN106599629A (en) Strengthening method and apparatus for Android application program
CN110471694A (en) Annotation information processing method, device, computer equipment and storage medium
CN103810099B (en) Code tracing method and code tracing system
CN110764839A (en) Business processing flow configuration method, business request processing method and device
CN105095263A (en) Generation method for card number and apparatus thereof
CN101739276A (en) System updating method and device
CN108399025A (en) A kind of method, apparatus and terminal device for correcting identification deviation
CN110134596A (en) The generation method and terminal device of test document
US8935657B2 (en) Model-to-model transformation by kind
CN111125067A (en) Data maintenance method and device
CN107621963A (en) A kind of software deployment method, software deployment system and electronic equipment
CN105677427A (en) Module upgrading method and device
WO2020211395A1 (en) Code data management method and system, and storage medium
CN111680023A (en) Migration data checking method and device
CN111105277A (en) Block chain state change transaction tracing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180313