CN113094076A - Version iteration method, device, equipment and medium based on version control - Google Patents

Version iteration method, device, equipment and medium based on version control Download PDF

Info

Publication number
CN113094076A
CN113094076A CN202110282573.8A CN202110282573A CN113094076A CN 113094076 A CN113094076 A CN 113094076A CN 202110282573 A CN202110282573 A CN 202110282573A CN 113094076 A CN113094076 A CN 113094076A
Authority
CN
China
Prior art keywords
version
file
resource
information
client
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
CN202110282573.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.)
Hangzhou Electronic Soul Network Technology Co Ltd
Original Assignee
Hangzhou Electronic Soul 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 Hangzhou Electronic Soul Network Technology Co Ltd filed Critical Hangzhou Electronic Soul Network Technology Co Ltd
Priority to CN202110282573.8A priority Critical patent/CN113094076A/en
Publication of CN113094076A publication Critical patent/CN113094076A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/552Details of game data or player data management for downloading to client devices, e.g. using OS version, hardware or software profile of the client device

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)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a version iteration method and device based on version control, electronic equipment and a computer storage medium, relates to the technical field of computer application, and aims to improve version iteration efficiency. The method comprises the following steps: periodically pulling the changed resource file from the version control software according to a preset period, and generating a resource change information file; receiving an access request of a client, and checking the current version number of the client and the current version number of a server to obtain version difference information; traversing the resource change information file according to the version difference information to generate file information of the resource file to be updated; and returning the file information to the client, and downloading the resource file to be updated by the client according to the file information to perform hot update.

Description

Version iteration method, device, equipment and medium based on version control
Technical Field
The invention relates to the technical field of computer application, in particular to a version iteration method, a version iteration device, version iteration equipment and version iteration media based on version control.
Background
In the software development process, frequent version iteration updating is generally required. Particularly, for the development of game software, a fast and unattended version iteration method is needed to promote the development of games.
In the prior art, generally, version iteration updating is performed by a hot updating mode of packaging all resources for a client, but packaging a huge resource package is time-consuming and labor-consuming, if an operation is wrong, the packaging operation needs to be performed again, and a long time is needed for the client to download the resource package for updating.
Therefore, how to improve the version iteration efficiency is a problem that needs to be solved urgently at present.
Disclosure of Invention
The embodiment of the invention provides a version iteration method, a version iteration device, version iteration equipment and a version iteration medium based on version control, and aims to at least improve the version iteration efficiency.
In a first aspect, an embodiment of the present invention provides a version iteration method based on version control, including the following steps:
periodically pulling the changed resource file from the version control software according to a preset period, and generating a resource change information file;
receiving an access request of a client, and checking the current version number of the client and the current version number of a server to obtain version difference information;
traversing the resource change information file according to the version difference information, generating file information of the resource file to be updated, and returning the file information to the client;
and downloading the resource file to be updated by the client according to the file information for hot updating.
In some embodiments, before the periodically pulling the resource file that has changed from the version control software according to the preset period, the method includes:
storing, by the version control software, the hot updated resource file for each updated version.
In some embodiments, the periodically pulling the resource file that has changed from the version control software and generating the resource change information file further includes:
acquiring the current version number of the version control software, and naming the changed resource file by using the current version number of the version control software;
and uploading the changed resource file and the resource change information file to an FTP server.
In some embodiments, the traversing the resource change information file according to the version difference information to generate file information of a resource file to be updated includes:
traversing the resource change information file, and determining the changed resource file between the client version number and the current server version number;
and determining the resource file with the last change between the client version number and the current version number of the server as the resource file to be updated, and generating the file information of the resource file to be updated.
In some embodiments, after generating the file information of the resource file to be updated, the method further includes:
and generating MD5 information according to the file information of the resource file to be updated.
In some embodiments, the downloading, by the client, the resource file to be updated for hot update according to the file information includes:
and the client creates a downloading request according to the file information, accesses the FTP server, and downloads the resource file to be updated for hot updating.
In some embodiments, after downloading the resource file to be updated and performing the hot update, the method includes:
and updating the version number of the client.
In a second aspect, an embodiment of the present invention provides a version iteration apparatus based on version control, including:
the resource acquisition module is used for regularly pulling the changed resource file from the version control software according to a preset period and generating a resource change information file;
the version determining module is used for receiving an access request of the client, verifying the current version number of the client and the current version number of the server and obtaining version difference information;
the difference determining module is used for traversing the resource change information file according to the version difference information and generating file information of the resource file to be updated;
and the resource updating module is used for returning the file information to the client, and the client downloads the resource file to be updated for hot updating according to the file information.
In a third aspect, an embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor, when executing the computer program, implements the version iteration method based on version control as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the version iteration method based on version control as described in the first aspect above.
Compared with the prior art, the version iteration method, the version iteration device, the version iteration equipment and the version iteration medium based on version control are provided by the embodiment of the invention, and the version differentiation update is periodically and automatically carried out on the basis of the version control software, so that the requirement of high hot update frequency of the game software version is met, the quick iteration of the version is realized, and the version iteration efficiency is improved.
The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the invention.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a version iteration method based on version control of the present invention;
FIG. 2 is a flow chart illustrating an embodiment of a server for automatically monitoring resource updates;
FIG. 3 is a flowchart illustrating a client performing version iteration according to an embodiment of the present invention;
FIG. 4 is a block diagram of a version iterating apparatus based on version control according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the purpose and technical solution of the present invention more apparent, the present invention will be described and illustrated with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments provided by the present invention, belong to the protection scope of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Example 1
Based on the above principle, the present embodiment provides a version iteration method based on version control, and fig. 1 is a flowchart of the version iteration method based on version control according to the present invention.
As shown in fig. 1, the version iteration method based on version control, applied to a game client, includes the following steps:
s101, periodically pulling the changed resource file from the version control software according to a preset period, and generating a resource change information file.
The version iteration method based on version control is executed by the server, so that the problems of large workload and time consumption caused by frequent version iteration are solved. And the latest resource file which generates changes is regularly pulled by the server, and the resource with difference is automatically acquired, so that the subsequent version differentiation update is realized.
The changed resource file generally refers to a resource file in which data update, deletion, addition and the like occur. The preset period may be set according to actual conditions, for example, the preset period may be set to 10 minutes or 1 hour, and the resource file that changes is pulled once every 10 minutes or 1 hour.
The version control software mentioned in this embodiment includes, but is not limited to, a GIT, an SVN, and other tools providing a complete version management function.
S102, receiving an access request of the client, and checking the current version number of the client and the current version number of the server to obtain version difference information.
The client initiates an access request with its current version number (local version number) as a parameter to access the server. The server receives an access request of the client, can obtain the current version number of the client, and can determine whether the current version of the client and the current version of the server have difference by checking the current version number of the client and the current version number (latest version number) of the server, so as to obtain version difference information, wherein the version difference information refers to difference information when the version difference information comprises the current version number of the client and the current version number of the server, which are inconsistent.
It should be noted that, when the current version number of the client and the current version number of the server are checked, the current version number of the client and the current version number of the server are consistent, and in this case, the current version number of the server may be directly synchronized to the client without performing operations S103 and S104.
S103, traversing the resource change information file according to the version difference information, generating file information of the resource file to be updated, and returning the file information to the client.
According to the version difference information, the resource file difference of the two versions can be determined, so that resource files with difference are determined, namely the resource files to be updated of the client are determined, and the file information of the resource files to be updated is generated, wherein the file information comprises a resource file directory (list), the size and the like.
And S104, downloading the resource file to be updated by the client according to the file information for hot updating.
And downloading the corresponding resource file by the client according to the file information so as to complete the hot update of the resource.
In other embodiments of the present invention, the client may start the breakpoint resume function to download the resource file, thereby saving the version iteration time and increasing the resource download speed.
When the breakpoint resume function is implemented, two fields in the HTTP request may be specifically used: the Range in the client request header and the Content-Range in the server response header are realized, so that if downloading is stopped in the downloading process, the file can be continuously downloaded from the downloaded position when being downloaded again.
According to the version iteration method based on version control, the resource file of each version iteration is recorded based on version control software, the resource file and the resource change information which change are obtained at regular time through the server, the resource file difference between the client version and the server version is determined, the file information of the different resource file is obtained, and then the client downloads the resource file according to the file information and completes resource hot updating, so that automatic and rapid iteration of the version is achieved, the labor cost and time consumption of version iteration are reduced, and the iteration efficiency is improved.
Preferably, before the resource file that changes is periodically pulled from the version control software according to the preset period, the method includes:
the hot updated resource file for each updated version is stored by the version control software.
The development terminal can submit each updated version of the resource file for hot update to version control software (GIT, SVN) at any time. The development terminal can be a PC, a tablet computer, a smart phone, a PDA and the like of a software developer. The software developer only needs to pack the resource files modified each time into hot updated resource files and submit the hot updated resource files to the version control software through the development terminal, and then the updated version can be automatically generated, so that the management and the recording of the software version are realized.
The embodiment realizes the differentiated updating requirement of the software version automatically and regularly based on version control software such as GIT, SVN and the like, realizes the quick iteration version through the interaction of the client and the server, and improves the working efficiency of each software development department.
Preferably, the method for periodically pulling the resource file which changes from the version control software and generating the resource change information file further comprises:
acquiring the current version number of the version control software, and naming the changed resource file by taking the current version number of the version control software;
and uploading the changed resource file and the resource change information file to the FTP server.
When the server regularly pulls the latest resource file which changes, the current version number of the version control software is obtained, the resource file which changes and is pulled this time is named by the current version of the version control software, a resource folder which changes is established, and a resource change information file is generated and records the file information of the resource folder which changes. And finally, uploading the changed resource folder and the resource change information file to an FTP server for storage and management.
The server automatically monitors the version control software and periodically pulls the changed resource file, thereby realizing the monitoring of resource updating. As shown in fig. 2, it is continuously determined whether the pull time is reached, if the pull time is not reached, the monitoring is continued, if the pull time is reached, it is determined whether resource update exists in the version control software, and if the resource update does not exist, the monitoring is continued; and if the version control software is updated, generating the changed resource folder and the changed resource file information, continuously judging whether the monitoring program is interrupted, if not, continuously monitoring the resource updating, and if the monitoring program is interrupted, ending the monitoring of the version control software by the server.
Preferably, traversing the resource change information file according to the version difference information to generate file information of the resource file to be updated, including:
traversing the resource change information file, and determining the resource file which is positioned between the version number of the client and the current version number of the server and changes;
and determining the resource file with the last change between the version number of the client and the current version number of the server as the resource file to be updated, and generating the file information of the resource file to be updated.
Exemplarily, if the version number of the client is 1 and the version number of the server is 10, traversing the resource change information file, determining the resource change information between the version number 1 and the version number 10, determining the resource file which changes between the version 1 and the version 10, and if a plurality of update versions modify the same resource file, recording the information of the resource file which needs to be changed for the last time to the client, that is, determining the resource file which changes for the last time (the resource file of the last version) as the resource file to be updated in the resource file which will be changed, for example, both the version 5 and the version 6 modify the resource file a, and only recording the information of the resource file a of the version 6; if both version 5 and version 10 have modified resource file 8, then only the information of resource file B of version 10 needs to be recorded.
Preferably, downloading, by the client, the resource file to be updated for the hot update according to the file information, including:
and the client creates a downloading request according to the file information, accesses the FTP server, and downloads the resource file to be updated for hot updating.
Preferably, after downloading the resource file to be updated for hot update, the method includes:
and updating the version number of the client.
In practical application, when the version of the game is iterated, the version of the client is iterated through the interaction of the server and the client. As shown in fig. 3, the client starts up and initiates an access request to access a server version number (resource version number), and determines whether the version numbers are consistent, if so, the server version number is directly saved to the local to enter a game; if the resource file is inconsistent with the client version number, the server is requested to acquire the file information of the last version of the changed (modified) resource file, the server returns the resource file list and the file information which are changed between the client version and the service version, the client receives the resource file list and the file information, then a file downloading request list is established, a breakpoint resume function is started to download the resource file, the client updates the resource, the server version number is stored to the local part of the client, namely the server version number is updated to the version number of the client, so that the iterative update of the game version is completed, and the game is entered.
Preferably, after generating the file information of the resource file to be updated, the method further includes:
and generating MD5 information according to the file information of the resource file to be updated.
And generating MD5 information of the file information through an MD5 algorithm. The MD5 algorithm is MD5 message digest algorithm, which is a widely used cryptographic hash function that can generate a 128-bit hash value, i.e., the MD5 message, to ensure the integrity and consistency of message transmission.
And the generated MD5 information and the file information are merged and sent to the client, and when the client downloads the resource file according to the file information, the resource file is verified through the MD5 information, so that the accuracy of resource updating is ensured. In some embodiments, if the information verification fails through the MD5, the client repeatedly executes the file downloading operation until the number of verification failures reaches a preset threshold, ends the downloading operation, and reports an exception.
Example 2
The present embodiment provides a version iteration apparatus based on version control, which is used to implement the foregoing embodiments and preferred embodiment modes, and has been described without further description, and the terms "module", "unit", "subunit", and the like used below may be a combination of software and/or hardware that can implement a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a version iterating device based on version control according to an embodiment of the present invention, and as shown in fig. 4, the device includes:
the resource obtaining module 41 is configured to periodically pull the resource file that changes from the version control software according to a preset period, and generate a resource change information file;
the version determining module 42 is configured to receive an access request from a client, check a current version number of the client and a current version number of a server, and obtain version difference information;
a difference determining module 43, configured to traverse the resource change information file according to the version difference information, and generate file information of the resource file to be updated;
and the resource updating module 44 is configured to return file information to the client, and the client downloads the resource file to be updated according to the file information to perform hot update.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
Example 3
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, an electronic device is provided, and an internal structural diagram of the electronic device may be as shown in fig. 5. The electronic device comprises a processor, a memory, an input device and an output device; wherein the number of processors in the electronic device may be one or more, and one processor is taken as an example in fig. 5; the processor, memory, input devices and output devices in the electronic apparatus may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The memory, which is a computer-readable storage medium, may include a high-speed random access memory, a non-volatile memory, and the like, and may be used to store an operating system, a software program, a computer-executable program, and a database, such as program instructions/modules corresponding to the versioning-based versioning iteration method according to embodiment 1 of the present invention, and may further include a memory, which may be used to provide a running environment for the operating system and the computer program. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the electronic device through a network.
The processor, which is used to provide computing and control capabilities, may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of embodiments of the present Application. The processor executes various functional applications and data processing of the electronic device, that is, implements the version iteration method based on version control of embodiment 1, by running the computer-executable program, software program, instructions, and modules stored in the memory.
The output device of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
The electronic device may further include a network interface/communication interface, the network interface of the electronic device being for communicating with an external terminal through a network connection. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes in the version iteration method based on version control according to embodiment 1 can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Example 4
An embodiment of the present invention provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to implement a versioning-based version iteration method, the method including:
periodically pulling the changed resource file from the version control software according to a preset period, and generating a resource change information file;
receiving an access request of a client, and checking the current version number of the client and the current version number of a server to obtain version difference information;
traversing the resource change information file according to the version difference information to generate file information of the resource file to be updated;
and returning the file information to the client, and downloading the resource file to be updated by the client according to the file information to perform hot update.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the version iteration method based on version control according to the above-mentioned embodiment, and may also perform related operations in the version iteration method based on version control according to any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling an electronic device (which may be a mobile phone, a personal computer, a server, or a network device) to execute the version iteration method based on version control according to the embodiments of the present invention.
It should be noted that, in the embodiment of the version iteration method based on version control, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
Various other modifications and changes may be made by those skilled in the art based on the above-described technical solutions and concepts, and all such modifications and changes should fall within the scope of the claims of the present invention.

Claims (10)

1. A version iteration method based on version control is characterized by comprising the following steps:
periodically pulling the changed resource file from the version control software according to a preset period, and generating a resource change information file;
receiving an access request of a client, and checking the current version number of the client and the current version number of a server to obtain version difference information;
traversing the resource change information file according to the version difference information, generating file information of the resource file to be updated, and returning the file information to the client;
and downloading the resource file to be updated by the client according to the file information for hot updating.
2. The version iteration method based on version control as claimed in claim 1, wherein before periodically pulling the resource file which is changed from the version control software according to the preset period, the method comprises:
storing, by the version control software, the hot updated resource file for each updated version.
3. The versioning-based iteration method of claim 1, wherein the periodically pulling a resource file that changes from versioning software and generating a resource change information file, further comprises:
acquiring the current version number of the version control software, and naming the changed resource file by using the current version number of the version control software;
and uploading the changed resource file and the resource change information file to an FTP server.
4. The version iteration method based on version control as claimed in claim 3, wherein the step of traversing the resource change information file according to the version difference information to generate the file information of the resource file to be updated comprises:
traversing the resource change information file, and determining the changed resource file between the client version number and the current server version number;
and determining the resource file with the last change between the client version number and the current version number of the server as the resource file to be updated, and generating the file information of the resource file to be updated.
5. The version iteration method based on version control as claimed in claim 1, wherein after generating the file information of the resource file to be updated, further comprising:
and generating MD5 information according to the file information of the resource file to be updated.
6. The version iteration method based on version control as claimed in claim 3, wherein said downloading the resource file to be updated for hot update by the client according to the file information comprises:
and the client creates a downloading request according to the file information, accesses the FTP server, and downloads the resource file to be updated for hot updating.
7. The version iteration method based on version control as claimed in claim 1, wherein after downloading the resource file to be updated for hot update, the method comprises:
and updating the version number of the client.
8. A version iteration device based on version control is characterized by comprising:
the resource acquisition module is used for regularly pulling the changed resource file from the version control software according to a preset period and generating a resource change information file;
the version determining module is used for receiving an access request of the client, verifying the current version number of the client and the current version number of the server and obtaining version difference information;
the difference determining module is used for traversing the resource change information file according to the version difference information and generating file information of the resource file to be updated;
and the resource updating module is used for returning the file information to the client, and the client downloads the resource file to be updated for hot updating according to the file information.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the versioning-based versioning iteration method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the versioning-based versioning iteration method of any one of claims 1 to 7.
CN202110282573.8A 2021-03-16 2021-03-16 Version iteration method, device, equipment and medium based on version control Pending CN113094076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110282573.8A CN113094076A (en) 2021-03-16 2021-03-16 Version iteration method, device, equipment and medium based on version control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110282573.8A CN113094076A (en) 2021-03-16 2021-03-16 Version iteration method, device, equipment and medium based on version control

Publications (1)

Publication Number Publication Date
CN113094076A true CN113094076A (en) 2021-07-09

Family

ID=76668107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110282573.8A Pending CN113094076A (en) 2021-03-16 2021-03-16 Version iteration method, device, equipment and medium based on version control

Country Status (1)

Country Link
CN (1) CN113094076A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114221952A (en) * 2021-11-16 2022-03-22 杭州电魂网络科技股份有限公司 Game resource packaging and releasing system and method, electronic equipment and storage medium
CN114265634A (en) * 2021-12-22 2022-04-01 中国农业银行股份有限公司 File submission method and device based on centralized version control system
CN114637527A (en) * 2022-05-18 2022-06-17 海马云(天津)信息技术有限公司 Hot update resource extraction and update method and device for cloud application
CN114900478A (en) * 2022-06-08 2022-08-12 珠海金山数字网络科技有限公司 Resource processing system and method
CN115202708A (en) * 2022-07-14 2022-10-18 小米汽车科技有限公司 Updating method, device, medium and vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7665081B1 (en) * 2006-05-06 2010-02-16 Kaspersky Lab, Zao System and method for difference-based software updating
CN105302587A (en) * 2014-06-30 2016-02-03 腾讯科技(深圳)有限公司 Data updating method and apparatus
CN107205057A (en) * 2017-08-02 2017-09-26 无锡江南影视传播有限公司 A kind of game resource update method, device and client
CN107797818A (en) * 2017-03-28 2018-03-13 平安壹钱包电子商务有限公司 Application program updating method and device
CN107797819A (en) * 2017-06-12 2018-03-13 平安普惠企业管理有限公司 Delta package generation method, computer-readable recording medium and server
CN112346772A (en) * 2020-10-27 2021-02-09 北京微步在线科技有限公司 Incremental updating method, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7665081B1 (en) * 2006-05-06 2010-02-16 Kaspersky Lab, Zao System and method for difference-based software updating
CN105302587A (en) * 2014-06-30 2016-02-03 腾讯科技(深圳)有限公司 Data updating method and apparatus
CN107797818A (en) * 2017-03-28 2018-03-13 平安壹钱包电子商务有限公司 Application program updating method and device
CN107797819A (en) * 2017-06-12 2018-03-13 平安普惠企业管理有限公司 Delta package generation method, computer-readable recording medium and server
CN107205057A (en) * 2017-08-02 2017-09-26 无锡江南影视传播有限公司 A kind of game resource update method, device and client
CN112346772A (en) * 2020-10-27 2021-02-09 北京微步在线科技有限公司 Incremental updating method, device and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114221952A (en) * 2021-11-16 2022-03-22 杭州电魂网络科技股份有限公司 Game resource packaging and releasing system and method, electronic equipment and storage medium
CN114265634A (en) * 2021-12-22 2022-04-01 中国农业银行股份有限公司 File submission method and device based on centralized version control system
CN114637527A (en) * 2022-05-18 2022-06-17 海马云(天津)信息技术有限公司 Hot update resource extraction and update method and device for cloud application
CN114900478A (en) * 2022-06-08 2022-08-12 珠海金山数字网络科技有限公司 Resource processing system and method
CN114900478B (en) * 2022-06-08 2024-03-26 珠海金山数字网络科技有限公司 Resource processing system and method
CN115202708A (en) * 2022-07-14 2022-10-18 小米汽车科技有限公司 Updating method, device, medium and vehicle

Similar Documents

Publication Publication Date Title
CN113094076A (en) Version iteration method, device, equipment and medium based on version control
US10694353B2 (en) Updating web resources
CN113568884B (en) File management method and device, electronic equipment and storage medium
CN110263275A (en) A kind of method, apparatus, mobile terminal and storage medium accessing webpage
US20100235321A1 (en) Programming model for synchronizing browser caches across devices and web services
CN109766349B (en) Task duplicate prevention method, device, computer equipment and storage medium
CN109240727A (en) Application program update method, apparatus, computer equipment and storage medium
CN110968331B (en) Method and device for running application program
WO2022222438A1 (en) Profile state synchronization method and apparatus, terminal, server, and storage medium
CN111881150A (en) Web application program offline data processing method and device
CN112632375B (en) Session information processing method, server and storage medium
CN112256989A (en) Page loading method and device based on offline package, terminal equipment and storage medium
CN111177121A (en) Order data feedback method and device, computer equipment and storage medium
CN114328097A (en) File monitoring method and device, electronic equipment and storage medium
CN113886496A (en) Data synchronization method and device of block chain, computer equipment and storage medium
CN113608742A (en) Detection method, code packet processing method, operation control method and computing device
CN110096295B (en) Multi-module mobile application thermal updating method and system based on reactivating
CN114756261B (en) Container cluster upgrading method and system, electronic equipment and medium
CN113590994A (en) Data processing method, data processing device, computer equipment and storage medium
CN112783866A (en) Data reading method and device, computer equipment and storage medium
CN112163178A (en) Page data display method and device, storage medium and electronic device
CN116339767B (en) Application resource allocation method, device, computer equipment and storage medium
CN114637528B (en) Resource updating method, apparatus, computer device, storage medium, and program product
CN114518946A (en) Method, system, device and medium for dynamically scheduling server resources
CN114327909A (en) Data processing method, data processing device, computer equipment and storage medium

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