CN106201577B - A kind of method and device updating Lua file - Google Patents

A kind of method and device updating Lua file Download PDF

Info

Publication number
CN106201577B
CN106201577B CN201610483633.1A CN201610483633A CN106201577B CN 106201577 B CN106201577 B CN 106201577B CN 201610483633 A CN201610483633 A CN 201610483633A CN 106201577 B CN106201577 B CN 106201577B
Authority
CN
China
Prior art keywords
file
lua
packet
update
lua 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.)
Active
Application number
CN201610483633.1A
Other languages
Chinese (zh)
Other versions
CN106201577A (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.)
World (beijing) Network Technology Co Ltd
Original Assignee
World (beijing) Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by World (beijing) Network Technology Co Ltd filed Critical World (beijing) Network Technology Co Ltd
Priority to CN201610483633.1A priority Critical patent/CN106201577B/en
Publication of CN106201577A publication Critical patent/CN106201577A/en
Application granted granted Critical
Publication of CN106201577B publication Critical patent/CN106201577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a kind of method and devices for updating Lua file.The method of update Lua file, comprising: the version number for the Lua file that detection client is currently installed;According to the version number, judge whether the Lua file that the client is currently installed needs to update;If it is, determining that the Lua file that the client is currently installed is updated to update packet required for the Lua file of latest edition;The update packet is obtained, the Lua file that the client is currently installed is updated to the Lua file of latest edition.The update of Lua file can be realized by updating packet in the method for update Lua file, and the file packet of downloading is smaller, and downloading is time-consuming short, saves flow, and user experience is good.

Description

A kind of method and device updating Lua file
Technical field
The present invention relates to a kind of method and devices for updating Lua file.
Background technique
With the high speed development of mobile Internet, demand of the user to software is increasingly strong.Lua file is a kind of small and exquisite Scripting language is Rio de Daneiro, BRA Catholic University of America (Pontifical Catholic University of Rio de Janeiro) inner a research group, by Roberto Ierusalimschy, Waldemar Celes and Luiz Henrique de Figueiredo is formed and was developed in 1993.Since Lua scripting language can be embedded in application program, Flexible extension and customization function are provided for application program, is often used to realize dynamic modification function and service logic.
Since Lua script can be embedded in application program with dynamically load, do not need to compile in advance, under such user only needs Once mounting packet is carried, it is subsequent to achieve the purpose that more new function by updating Lua script, so that new function energy Enough clients for being published to user as early as possible, iteration rate with higher, to greatly strengthen the vitality and competitiveness of product. Client-based behavior is multifarious, and the old version issued before possibly all is present in the client of user, causes It is difficult to ensure that the updated file packet of all users all has integrality.
In the prior art, the update mode of Lua script mainly includes following two:
Mode one: being packaged with all Lua files, and all Lua files are downloaded in more new capital every time.Due to all File is packaged in same file packet and downloads, although can guarantee the consistency of version, since more new capital needs every time All Lua files are downloaded, so that backpack body is excessive, download time is longer, not only wastes client traffic, but also failed download Rate is also higher.
Mode two: individually calculating the condition code of each Lua file, summarize after communicated with server-side, server-side according to The condition code of client file judges whether newest file, is not, gives and update.Although which can guarantee that only downloading is more New file, flow consumption is less, but due to the condition code of All Files to be uploaded, the data volume of upload is very big, causes to spend Time is longer.Also, due to the downloading of each file be it is isolated, in mobile device network environment again it is more complicated, often go out Now intermittent situation, so that guaranteeing that the complexity of version consistency is very high.It is easy to appear and exists simultaneously new and old edition file, Client is caused some unpredictable problems occur, for example, interface can not find, dysfunction etc., and due to quantity of documents Various, downloading is time-consuming also longer, and user experience is poor.
Summary of the invention
The embodiment of the invention provides a kind of method and devices for updating Lua file, and Lua text can be realized by updating packet Part updates, and the file packet of downloading is smaller, and downloading is time-consuming short, saves flow, and user experience is good.
Technical solution provided in an embodiment of the present invention is as follows:
On the one hand, a kind of method for updating Lua file is provided, comprising:
The version number for the Lua file that detection client is currently installed;
According to the version number, judge whether the Lua file that the client is currently installed needs to update;
If it is, the Lua file for determining that the client is currently installed is updated to needed for the Lua file of latest edition The update packet wanted;
The update packet is obtained, the Lua file that the client is currently installed is updated to the Lua text of latest edition Part.
Preferably, before obtaining the update packet, the method also includes:
According to the difference between the Lua file of latest edition and the Lua file of last revision, differential file is generated;
The configuration file of the Lua file of the latest edition is generated, the configuration file includes at least: the latest edition The version number of Lua file, the All Files list of the latest edition Lua file, each file is corresponding in the listed files Condition code;
Obtain the Lua file of each version of history publication;
According to the differential file, the Lua file of the configuration file and each version, each version is generated Lua file update and update packet required for Lua file to the latest edition.
Preferably, after judging that Lua file that the client is currently installed needs to update, the method also includes:
Update notifying information is sent to client, the downloading of packet is updated required for including: in the update notifying information Address updates the size of packet, updates the version number of the identifying code of packet and the Lua file of latest edition.
It is preferably, described to obtain the update packet, comprising:
According to the update notifying information, is downloaded using http protocol and update packet;
Update packet downloading after the completion of, compare downloading update packet size, downloading update packet identifying code whether with The size of update packet in the update notifying information, the identifying code for updating packet are identical;
If it is, determining that the update packet downloading is completed, the acquisition for updating packet is completed.
Preferably, the Lua file that the client is currently installed is updated to the Lua file packet of latest edition It includes:
The update packet for decompressing downloading, by the upgrading catalogue for updating packet and covering client;
According to the Lua file for updating packet and current the installed Lua file generated latest edition of the client.
On the other hand, a kind of device for updating Lua file is provided, comprising:
Detection module, for detecting the version number for the Lua file that client is currently installed;
Judgment module, for according to the version number, whether the Lua file for judging that the client is currently installed to need It updates;
Determining module, the Lua file for judging that the client is currently installed in the judgment module need to update Afterwards, determine that the Lua file that the client is currently installed is updated to update packet required for the Lua file of latest edition;
First obtains module, for obtaining the update packet;
Update module, the Lua file for currently being installed the client are updated to the Lua file of latest edition.
Preferably, described device further include:
First generation module, for according to the difference between the Lua file of latest edition and the Lua file of last revision, Generate differential file;
Second generation module, the configuration file of the Lua file for generating the latest edition, the configuration file is at least It include: the version number of the latest edition Lua file, the All Files list of the latest edition Lua file, the file column The corresponding condition code of each file in table;
Second obtains module, the Lua file of each version for obtaining history publication;
Third generation module, for the Lua text according to the differential file, the configuration file and each version Part generates and updates packet required for Lua file of the Lua file update of each version to the latest edition.
Preferably, described device further include:
Sending module, for being sent out to client after judging that Lua file that the client is currently installed needs to update Update notifying information is sent, the download address of packet is updated required for including: in the update notifying information, updates the size of packet, Update the version number of the identifying code of packet and the Lua file of latest edition.
Preferably, the first acquisition module includes:
Download unit, for being downloaded using http protocol and updating packet according to the update notifying information;
Comparison unit is used for after the completion of update packet downloading, compares the update packet for updating the size wrapped, downloading of downloading Whether identifying code is identical as the size of the update packet in the update notifying information, the identifying code of update packet;
Determination unit, for after comparison unit comparison is identical, determining that the update packet downloading is completed, described in completion Update the acquisition of packet.
Preferably, the update module, comprising:
Decompression units, for decompressing the update packet of downloading;
Capping unit, for described update to be wrapped the upgrading catalogue for covering client;
Generation unit, for according to update packet and current the installed Lua file generated latest edition of the client Lua file.
The method and device provided in an embodiment of the present invention for updating Lua file is currently installed by detection client The version number of Lua file, to judge whether the Lua file that client is currently installed needs to update, after judgement needs to update, It determines that the Lua file that client is currently installed is updated to update packet required for the Lua file of latest edition, then obtains more The Lua file that client is currently installed, is updated to the Lua file of latest edition by new packet.The method of update Lua file and The update of Lua file can be realized by updating packet in device, and the file packet of downloading is smaller, and downloading is time-consuming short, saves flow, user It experiences.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only one recorded in the present invention A little embodiments are also possible to obtain other drawings based on these drawings for those of ordinary skill in the art.
Fig. 1 is a kind of flow chart of method for updating Lua file provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for another update Lua file provided in an embodiment of the present invention;
Fig. 3 is a kind of block diagram of device for updating Lua file provided in an embodiment of the present invention;
Fig. 4 is the block diagram of the device of another update Lua file provided in an embodiment of the present invention.
Specific embodiment
In order to make those skilled in the art more fully understand the scheme of the embodiment of the present invention, with reference to the accompanying drawing and embodiment party Formula is described in further detail the embodiment of the present invention.
Relational language involved in present patent application, paraphrase are as follows:
Lua file: being a kind of scripting language, can be embedded in dynamically load in application program, does not need to compile in advance, can Flexible extension and customization function are provided for application program, realizes dynamic modification function and service logic.
Version consistency: refer to that Lua file used in client should be same version, it is endless otherwise to will lead to function It is whole, the problems such as interface error.
Upgrade chain: updating using each as a node, from the version string of most initial to newest version, according to upgrading chain The difference between two versions can be found out.
As shown in Figure 1, including the following steps S101- for a kind of method for updating Lua file provided in an embodiment of the present invention 104:
Step S101: the version number for the Lua file that detection client is currently installed.
In order to distinguish the Lua file of different editions, when each Lua file distribution, it can all be distinguished, be led to by version number The version number for crossing the Lua file that detection client is currently installed is able to know that the related letter for the Lua file that client is installed Breath.
Step S102: according to version number, judge whether the Lua file that client is currently installed needs to update.
Version number by the version number for the Lua file that the client detected is installed, with the Lua file of latest edition It is whether consistent, to judge whether the Lua file being currently installed on needs to update, for example, the Lua file currently installed is V2.0, And the version number of the Lua file of latest edition is V3.0, i.e., the two is inconsistent, then it is assumed that needs to be updated Lua file.It is no It then waits or terminates.
Step S103: after judging that Lua file that client is currently installed needs to update, determine that client is currently pacified The Lua file of dress, which is updated to required for the Lua file of latest edition, updates packet.
Since the Lua FileVersion that client is currently installed may be different, for example, it may be possible to be V1.0, it is also possible to be V2.0 is wrapped then the Lua file for the different editions currently installed is updated to update required for the Lua file of latest edition May be different, for example, it is updated to V3.0 from V1.0, it is just different from update packet required for V3.0 is updated to from V2.0.For Lua File update it is important that, determine this update required for update packet, thus obtain correctly update packet carry out File updates.
Step S104: obtaining and update packet, and the Lua file that client is currently installed is updated to the Lua text of latest edition Part.
After determining the update packet needed in step s 103, the place for updating packet can be stored with from cloud, server etc., Downloading updates packet, and the Lua file that client is currently installed is updated to latest edition using the update packet.
The method provided in an embodiment of the present invention for updating Lua file, the Lua file currently installed by detecting client Version number, to judge whether the Lua file that client is currently installed needs to update, judgement need update after, determine visitor The Lua file that family end is currently installed, which is updated to required for the Lua file of latest edition, updates packet, then obtains and updates packet, The Lua file that client is currently installed is updated to the Lua file of latest edition.The method of update Lua file, by more The update of Lua file can be realized in new packet, and the file packet of downloading is smaller, and downloading is time-consuming short, saves flow, and user experience is good.
In another embodiment, as shown in Fig. 2, updating the method for Lua file, further comprising the steps of S201- S204:
Step S201: according to the difference between the Lua file of latest edition and the Lua file of last revision, difference is generated File.
It, can be by establishing corresponding project on Version, during exploitation for Lua file development File is managed, and every time after the completion of exploitation, the new edition Lua file after change can be submitted to Version, be passed through version This management is managed the version number of Lua file, and finds out the Lua file of latest edition and the Lua file of last revision Between difference, generate differential file, and extracted according to bibliographic structure.Wherein, Version can use GIT Or any Version such as SVN, the embodiment of the present invention are not specifically limited.
Step S202: the configuration file of the Lua file of latest edition is generated, wherein configuration file includes at least: latest edition The version number of this Lua file, the All Files list of latest edition Lua file, the corresponding feature of each file in listed files Code.
In one embodiment, the filename of configuration file can be arranged are as follows: ArchInfo.lua.
Step S203: the Lua file of each version of history publication is obtained.
Step S204: according to the Lua file of differential file, configuration file and each version, the Lua text of each version is generated Part updates and updates packet required for the Lua file to latest edition.
Specifically, the configuration file for the differential file, step S202 generation that step S201 is obtained can be uploaded to clothes Business device, the historical information after server-side receives newest update packet, and before, which is done, to be merged, and generates each old version to latest edition This update packet.
For example, specific generation method: decompression third version arrives from third version to the update packet of current latest edition The update packet of last time released version is to Tmp catalogue, then decompresses the update packet of S204 upload, and cover Tmp catalogue, in this way Identical differential file can be merged together, then check the listed files in ArchInfo.lua file, compare Tmp mesh Listed files under record, deletes the file not included in ArchInfo.lua.Finally Tmp catalogue is packaged and is saved, just Update packet of the available third version to current latest edition.Same operation is done to each old version, so that it may To each old version to the update packet of current latest edition.
In another embodiment, after judging that Lua file that client is currently installed needs to update, the above method Can also include further step S1:
Step S1: update notifying information is sent to client, wherein include: required update in update notifying information The download address of packet updates the size of packet, updates the version number of the identifying code of packet and the Lua file of latest edition.
In one embodiment of the invention, the acquisition in above-mentioned steps S104 updates packet, includes the following steps S2-S3:
Step S2: it according to update notifying information, is downloaded using http protocol and updates packet;
Step S3: after the completion of updating packet downloading, the identifying code of the size of the update packet of downloading, the update packet of downloading is compared It is whether identical as the size of the update packet in update notifying information, the identifying code of update packet;
Step S4: if identical, it is determined that update packet downloading and complete, complete the acquisition for updating packet.
The Lua text for currently being installed client in another embodiment of the presently claimed invention, in above-mentioned steps S104 The Lua file that part is updated to latest edition includes the following steps S11-S12:
Step S11: decompressing the update packet of downloading, wraps the upgrading catalogue for covering client for updating;
Step S12: according to the Lua file for updating packet and current the installed Lua file generated latest edition of client.
The embodiment of the present invention compares the Lua for the latest edition that current iteration will be issued by means of Version Difference file between file and the Lua file of last revision, compression are uploaded onto the server after being packaged.By server before Upgrade chain historical information and newest upload packaging file, generate each version to latest edition update packet.Each update Some version is contained to all difference files between latest edition.Which taken i.e. regardless of the client of version, in connection When business device request upgrading, it is only necessary to as soon as downloading a compressed package, can achieve the purpose that update to latest edition, due to only including to need The file to be updated, backpack body is smaller, and the flow for downloading consumption is small, and speed of download is fast, and user experience is good.
Renewal process is described in detail below:
Step S21: starting client.
Step S22: client reads local version number, and the message that upload request updates waits server-side to server-side Reply.
Step S23: the version number for extracting client upload after server-side receives the request of client and server-side are most New version number compares, and replies to client according to comparison result.If necessary to update, then comprising updating packet in reply content Download address, update packet size, update packet identifying code, latest edition number;If you do not need to updating, then these letters are not included Breath.
Step S24: after client receives reply, according to whether being updated comprising more new information to determine whether needing to download Packet.If necessary to update, then S25 is entered step, S28 is otherwise entered step
Step S25: if there is more new information in step S24, client starts to download according to more new information, with http protocol Update packet.
Step S26: after downloading terminates, according to the more new information in S24, comparing update packet size, the identifying code of downloading, Judge whether to download successfully.If downloaded successfully, S27 is entered step, S25 is otherwise entered step.
Step S27: the update packet of decompression S26 downloading covers the upgrading catalogue of client, updated before replacement Lua script file.
Step S28: renewal process terminates, and client can continue subsequent operation
Correspondingly, the embodiment of the present invention also provides a kind of device for updating Lua file, as shown in figure 3, including
Detection module 301, for detecting the version number for the Lua file that client is currently installed;
Judgment module 302, for judging whether the Lua file that client is currently installed needs to update according to version number;
Determining module 303, for after judgment module 302 judges that the Lua file that client currently installed needs to update, Determine that the Lua file that client is currently installed is updated to update packet required for the Lua file of latest edition;
First obtains module 304, updates packet for obtaining;
Update module 305, the Lua file for currently being installed client are updated to the Lua file of latest edition.
The device provided in an embodiment of the present invention for updating Lua file detects client by detection module and is currently installed Lua file version number, judge whether the Lua file that client is currently installed needs to update by judgment module, sentencing It is disconnected need to update after, determine that Lua file that client is currently installed is updated to the Lua file of latest edition by determining module Then required update packet obtains module by first and obtains update packet, then currently pacified client by update module The Lua file of dress is updated to the Lua file of latest edition.Lua can be realized by updating packet in the device of update Lua file File updates, and the file packet of downloading is smaller, and downloading is time-consuming short, saves flow, and user experience is good.
In another embodiment, as shown in figure 4, the device of above-mentioned update Lua file, further includes:
First generation module 401, for according to the difference between the Lua file of latest edition and the Lua file of last revision Not, differential file is generated;
Second generation module 402, the configuration file of the Lua file for generating latest edition, configuration file include at least: The version number of latest edition Lua file, the All Files list of latest edition Lua file, each file is corresponding in listed files Condition code;
Second obtains module 403, the Lua file of each version for obtaining history publication;
Third generation module 404 generates each for the Lua file according to differential file, configuration file and each version The Lua file of version updates and updates packet required for the Lua file to latest edition.
In another embodiment, the device of above-mentioned update Lua file, further includes:
Sending module, for being sent more to client after judging that Lua file that client is currently installed needs to update New prompting message updates the download address of packet, updates the size of packet, update packet required for including: in update notifying information The version number of identifying code and the Lua file of latest edition.
In one embodiment, the first acquisition module includes:
Download unit, for being downloaded using http protocol and updating packet according to update notifying information;
Comparison unit is used for after the completion of update packet downloading, compares the update packet for updating the size wrapped, downloading of downloading Whether identifying code is identical as the size of the update packet in update notifying information, the identifying code of update packet;
Determination unit, for after comparison unit comparison is identical, determining that updating packet downloading completes, and completes to update obtaining for packet It takes.
In another embodiment, the update module in the device of above-mentioned update Lua file, comprising:
Decompression units, for decompressing the update packet of downloading;
Capping unit covers the upgrading catalogue of client for that will update packet;
Generation unit, for according to the Lua text for updating packet and current the installed Lua file generated latest edition of client Part.
Method and apparatus provided by the above embodiment belong to same inventive concept, each module in device, the function of unit and Realization process can refer to the description in embodiment of the method, and which is not described herein again.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description Unit may or may not be physically separated, component shown as a unit may or may not be Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying In the case where creative work, it can understand and implement.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of method for updating Lua file characterized by comprising
The version number for the Lua file that detection client is currently installed;
According to the version number, judge whether the Lua file that the client is currently installed needs to update;
If it is, the Lua file for determining that the client is currently installed is updated to required for the Lua file of latest edition Update packet;
The update packet is obtained, the Lua file that the client is currently installed is updated to the Lua file of latest edition;
Before obtaining the update packet, the method also includes:
According to the difference between the Lua file of latest edition and the Lua file of last revision, differential file is generated;
Wherein generate differential file include: that corresponding project is established on Version, to the file during exploitation into New edition Lua file after change is submitted to Version, passes through version management pair by row management every time after the completion of exploitation The version number of Lua file is managed, and finds out the difference between the Lua file of latest edition and the Lua file of last revision, raw It is extracted at differential file, and according to bibliographic structure;
The configuration file of the Lua file of the latest edition is generated, the configuration file includes at least: the latest edition Lua The version number of file, the All Files list of the latest edition Lua file, the corresponding spy of each file in the listed files Levy code;
Obtain the Lua file of each version of history publication;
According to the differential file, the Lua file of the configuration file and each version, each version is generated Lua file updates and updates packet required for the Lua file to the latest edition.
2. the method according to claim 1 for updating Lua file, which is characterized in that judging the current institute of the client After the Lua file of installation needs to update, the method also includes:
Update notifying information is sent to client, the download address of packet is updated required for including: in the update notifying information, The size for updating packet, updates the version number of the identifying code of packet and the Lua file of latest edition.
3. the method according to claim 2 for updating Lua file, which is characterized in that described to obtain the update packet, packet It includes:
According to the update notifying information, is downloaded using http protocol and update packet;
Update packet downloading after the completion of, compare downloading update packet size, downloading update packet identifying code whether with it is described The size of update packet in update notifying information, the identifying code for updating packet are identical;
If it is, determining that the update packet downloading is completed, the acquisition for updating packet is completed.
4. the method according to claim 1 to 3 for updating Lua file, which is characterized in that described by the client The Lua file that the Lua file currently installed is updated to latest edition includes:
The update packet for decompressing downloading, by the upgrading catalogue for updating packet and covering client;
According to the Lua file for updating packet and current the installed Lua file generated latest edition of the client.
5. a kind of device for updating Lua file characterized by comprising
Detection module, for detecting the version number for the Lua file that client is currently installed;
Judgment module, for according to the version number, whether the Lua file for judging that the client is currently installed to need more Newly;
Determining module, for after the judgment module judges that the Lua file that the client currently installed needs to update, really The Lua file that the fixed client is currently installed, which is updated to required for the Lua file of latest edition, updates packet;
First obtains module, for obtaining the update packet;
Update module, the Lua file for currently being installed the client are updated to the Lua file of latest edition;
Described device further include:
First generation module, for generating according to the difference between the Lua file of latest edition and the Lua file of last revision Differential file;Corresponding project is established on Version, and the file during exploitation is managed, has been developed every time New edition Lua file after change can be submitted to Version, by version management to the version number of Lua file by Cheng Hou It is managed, and finds out the difference between the Lua file of latest edition and the Lua file of last revision, generate differential file, And it is extracted according to bibliographic structure;
Second generation module, the configuration file of the Lua file for generating the latest edition, the configuration file at least wrap It includes: the version number of the latest edition Lua file, the All Files list of the latest edition Lua file, the listed files In the corresponding condition code of each file;
Second obtains module, the Lua file of each version for obtaining history publication;
Third generation module, it is raw for the Lua file according to the differential file, the configuration file and each version It is updated at the Lua file of each version and updates packet required for the Lua file to the latest edition.
6. the device according to claim 5 for updating Lua file, which is characterized in that described device further include:
Sending module, for being sent more to client after judging that Lua file that the client is currently installed needs to update New prompting message updates the download address of packet, updates the size of packet, updates required for including: in the update notifying information The version number of the Lua file of the identifying code and latest edition of packet.
7. the device according to claim 6 for updating Lua file, which is characterized in that described first, which obtains module, includes:
Download unit, for being downloaded using http protocol and updating packet according to the update notifying information;
Comparison unit, the verifying of the size, the update packet of downloading of the update packet for after the completion of updating packet downloading, comparing downloading Whether code is identical as the size of the update packet in the update notifying information, the identifying code of update packet;
Determination unit completes the update for after comparison unit comparison is identical, determining that the update packet downloading is completed The acquisition of packet.
8. according to the device of any update Lua file of claim 5-7, which is characterized in that the update module, packet It includes:
Decompression units, for decompressing the update packet of downloading;
Capping unit, for described update to be wrapped the upgrading catalogue for covering client;
Generation unit, for according to the Lua for updating packet and current the installed Lua file generated latest edition of the client File.
CN201610483633.1A 2016-06-27 2016-06-27 A kind of method and device updating Lua file Active CN106201577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610483633.1A CN106201577B (en) 2016-06-27 2016-06-27 A kind of method and device updating Lua file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610483633.1A CN106201577B (en) 2016-06-27 2016-06-27 A kind of method and device updating Lua file

Publications (2)

Publication Number Publication Date
CN106201577A CN106201577A (en) 2016-12-07
CN106201577B true CN106201577B (en) 2019-06-14

Family

ID=57462142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610483633.1A Active CN106201577B (en) 2016-06-27 2016-06-27 A kind of method and device updating Lua file

Country Status (1)

Country Link
CN (1) CN106201577B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843914A (en) * 2017-03-31 2017-06-13 惠州华阳通用电子有限公司 A kind of software source code differential file extracting method
CN108540452B (en) * 2018-03-15 2020-07-03 北京雷石天地电子技术有限公司 Data updating method and system
CN109032641B (en) * 2018-07-24 2022-07-08 杭州安恒信息技术股份有限公司 Application version updating method and device
CN109144548A (en) * 2018-08-27 2019-01-04 杭州安恒信息技术股份有限公司 A kind of multicompartment software upgrade method, device and server realized based on git
CN111045947B (en) * 2019-12-13 2023-04-21 杭州安恒信息技术股份有限公司 Test environment construction method and device and related equipment thereof
CN113138781B (en) * 2020-01-19 2022-07-26 福建省天奕网络科技有限公司 CSV configuration updating method and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035800A (en) * 2014-06-19 2014-09-10 广州金山网络科技有限公司 Incremental packet generation method and device, version upgrade method and device, and version upgrade system
CN104317914A (en) * 2014-10-28 2015-01-28 小米科技有限责任公司 Data acquiring method and device
CN104978215A (en) * 2014-10-08 2015-10-14 腾讯科技(深圳)有限公司 File updating method, relevant equipment and system
CN105302587A (en) * 2014-06-30 2016-02-03 腾讯科技(深圳)有限公司 Data updating method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035800A (en) * 2014-06-19 2014-09-10 广州金山网络科技有限公司 Incremental packet generation method and device, version upgrade method and device, and version upgrade system
CN105302587A (en) * 2014-06-30 2016-02-03 腾讯科技(深圳)有限公司 Data updating method and apparatus
CN104978215A (en) * 2014-10-08 2015-10-14 腾讯科技(深圳)有限公司 File updating method, relevant equipment and system
CN104317914A (en) * 2014-10-28 2015-01-28 小米科技有限责任公司 Data acquiring method and device

Also Published As

Publication number Publication date
CN106201577A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106201577B (en) A kind of method and device updating Lua file
CN108111331B (en) Method, device, storage medium, processor and system for acquiring update data packet
US10979292B2 (en) Adaptive deployment of applications for mobile devices
CN107547239B (en) Configuration object updating method and device
CN102523268B (en) Client side upgrading method and system
CN106528086A (en) Method and system for upgrading Android software
CN103442026B (en) A kind of applied program processing method, device and system
CN102833350A (en) Processing method and processing device of WebApp updating
CN103476002A (en) Method and device for data interaction
CN104123149B (en) Method for upgrading software, device, client and system
CN102073512A (en) JAVA cluster application system code loading and upgrading device and method
CN106201607A (en) The upgrade method of a kind of software version and equipment
CN103699408A (en) Software updating method and equipment
CN104035783A (en) Platform integrating method and platform integrating system matched with third party web page in application program
CN106713423B (en) The processing method and processing device of distributed data in a kind of cloud access base site controller
CN101902439A (en) Method, system and device for updating business server information on client
CN105808278A (en) Client version upgrading method and device
CN106598678A (en) Method and device for supplying application installation packages to terminal equipment
CN105391763A (en) Method and server for reinforcing a plurality of apk files
CN102215480A (en) Differential on-air software upgrading method based on cloud computing
CN101656739A (en) Method, system and equipment for updating assembly
CN104052769A (en) Method, apparatus and system for updating resources contained by mobile terminal application
CN104023073A (en) Resource pushing method, system and device
CN106569843A (en) Method and device for generating OTA central package
CN105760183A (en) File processing method, device, and communication system

Legal Events

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