CN112657196A - Resource updating method and device, computer equipment and readable storage medium - Google Patents

Resource updating method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN112657196A
CN112657196A CN202011516574.6A CN202011516574A CN112657196A CN 112657196 A CN112657196 A CN 112657196A CN 202011516574 A CN202011516574 A CN 202011516574A CN 112657196 A CN112657196 A CN 112657196A
Authority
CN
China
Prior art keywords
updated
resource
updating
update
data set
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
CN202011516574.6A
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.)
Beijing Pixel Software Technology Co Ltd
Original Assignee
Beijing Pixel Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Pixel Software Technology Co Ltd filed Critical Beijing Pixel Software Technology Co Ltd
Priority to CN202011516574.6A priority Critical patent/CN112657196A/en
Publication of CN112657196A publication Critical patent/CN112657196A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a resource updating method, a resource updating device, computer equipment and a readable storage medium, which relate to the technical field of game data processing, and the resource updating method comprises the following steps: receiving an updating request sent by terminal equipment, wherein the updating request comprises a current configuration file; comparing the difference between the current configuration file and the updated configuration file, and determining target updating data from the updated resource data; and sending the target updating data to the terminal equipment so that the terminal equipment updates resources according to the target updating data, and through the steps, the game resources can be updated conveniently.

Description

Resource updating method and device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of game data processing technologies, and in particular, to a resource updating method, apparatus, computer device, and readable storage medium.
Background
At present, in the process of game operation, developers need to continuously update games to ensure the normal operation of the games. Updating the game mainly comprises the following steps: minor changes, such as repair of common problems, or major changes, such as severe problems, holiday activities. In the prior art, no matter how to change, all data are packaged and sent to the terminal equipment of a user by a developer and all original data files are replaced, so that the problems that the whole updating process involves more file data, a plurality of repeated files are replaced, and the whole process is long and easy to make mistakes are caused.
In view of this, how to provide a more convenient resource updating scheme is needed to be solved by those skilled in the art.
Disclosure of Invention
The application provides a resource updating method, a resource updating device, computer equipment and a readable storage medium.
The embodiment of the application can be realized as follows:
in a first aspect, the present application provides a resource updating method, which is applied to a computer device, where the computer device is in communication connection with a terminal device, the computer device stores an update resource package, the update resource package includes update resource data and an update configuration file, and the update configuration file is used to represent update configuration information of the update resource data;
the method comprises the following steps:
receiving an updating request sent by terminal equipment, wherein the updating request comprises a current configuration file;
comparing the difference between the current configuration file and the updated configuration file, and determining target updating data from the updated resource data;
and sending the target updating data to the terminal equipment so that the terminal equipment updates the resources according to the target updating data.
In an alternative embodiment, the update resource package is obtained by:
acquiring original resource information corresponding to an original resource packet, wherein the original resource information is used for recording file information of the original resource information;
acquiring resource information to be updated corresponding to the resource packet to be updated, wherein the resource information to be updated is used for recording file information of the resource information to be updated;
comparing the original resource information with the resource information to be updated to obtain an updating comparison result;
and updating the original resource packet according to the updating comparison result and the resource packet to be updated to obtain an updated resource packet.
In an optional embodiment, the original resource information includes a first update version, the resource information to be updated includes a second update version, the version type includes a normal update version and an emergency update version, the normal update version is used for updating normal data, and the emergency update version is used for updating patch data;
comparing the original resource information with the resource information to be updated to obtain an updating comparison result, wherein the updating comparison result comprises the following steps:
comparing the original resource information with the resource information to be updated to obtain a first comparison result, wherein the first comparison result is as follows: the type of the first updating version is a common updating version, and the type of the second updating version is a common updating version;
or comparing the original resource information with the resource information to be updated to obtain a second comparison result, wherein the second comparison result is as follows: the type of the first updating version is a common updating version, and the type of the second updating version is an emergency updating version;
or comparing the original resource information with the resource information to be updated to obtain a third comparison result, wherein the third comparison result is as follows: the type of the first updating version is an emergency updating version, and the type of the second updating version is a common updating version;
or comparing the original resource information with the resource information to be updated to obtain a fourth comparison result, wherein the fourth comparison result is as follows: the first update version is of an emergency update version, and the second update version is of an emergency update version.
In an optional embodiment, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set;
when the update comparison result is the first comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain an updated resource package, including:
writing unrepeated data in the original common data set in the common data set to be updated into the common data set to be updated;
taking the updated common data set as updated resource data;
obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set;
generating an update configuration file for updating the resource information;
and constructing an updating resource package according to the updating resource data and the updating configuration file.
In an optional embodiment, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set;
when the update comparison result is the second comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain an updated resource package, including:
deleting the original patch data set;
taking the patch data set to be updated as an update patch data set;
taking the update patch data set as update resource data;
obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set;
generating an update configuration file for updating the resource information;
and constructing an updating resource package according to the updating resource data and the updating configuration file.
In an optional embodiment, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set;
when the update comparison result is a third comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain an updated resource package, including:
writing the original patch data set into a common data set to be updated to obtain a data set to be determined;
writing data which is not repeated in the undetermined data set in the original common data set into the undetermined data set to obtain an updated patch data set;
taking the update patch data set as update resource data;
obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set;
generating an update configuration file for updating the resource information;
and constructing an updating resource package according to the updating resource data and the updating configuration file.
In an optional embodiment, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set;
when the update comparison result is the fourth comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain an updated resource package, including:
writing unrepeated data in the original patch data set in the patch data set to be updated into the patch data set to be updated to obtain a pending data set;
taking the undetermined data set and the original common data set as updated resource data;
obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set;
generating an update configuration file for updating the resource information;
and constructing an updating resource package according to the updating resource data and the updating configuration file.
In a second aspect, the present application provides a resource updating apparatus, which is applied to a computer device, where the computer device is in communication connection with a terminal device, the computer device stores an update resource package, the update resource package includes update resource data and an update configuration file, and the update configuration file is used to represent update configuration information of the update resource data;
the device comprises:
the terminal equipment comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving an updating request sent by the terminal equipment, and the updating request comprises a current configuration file;
the comparison module is used for comparing the difference between the current configuration file and the updated configuration file and determining target update data from the updated resource data;
and the updating module is used for sending the target updating data to the terminal equipment so as to enable the terminal equipment to update resources according to the target updating data.
In a third aspect, the present application provides a computer device, where the computer device includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device executes the resource updating method of any one of the foregoing embodiments.
In a fourth aspect, the present application provides a readable storage medium, where the readable storage medium includes a computer program, and the computer program controls a computer device in the readable storage medium to execute the resource updating method in any one of the foregoing embodiments when running.
The beneficial effects of the embodiment of the application include, for example: the embodiment of the application provides a resource updating method, a resource updating device, computer equipment and a readable storage medium, wherein an updating request sent by terminal equipment is received, wherein the updating request comprises a current configuration file; comparing the difference between the current configuration file and the updated configuration file, and determining target update data from the updated resource data; and finally, the target updating data is sent to the terminal equipment so that the terminal equipment updates resources according to the target updating data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is an interaction diagram of a resource updating system according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating steps of a resource updating method according to an embodiment of the present application;
fig. 3 is a schematic block diagram of a structure of a resource updating apparatus according to an embodiment of the present application;
fig. 4 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. are used for indicating the orientation or positional relationship based on the orientation or positional relationship shown in the drawings or the orientation or positional relationship which the present invention product is usually put into use, it is only for convenience of describing the present application and simplifying the description, but it is not intended to indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation and be operated, and thus, should not be construed as limiting the present application.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
At present, in the process of game operation, game updating is an important component of maintenance, and in the prior art, no matter small updating of common problems, serious problems or large updating of version iteration is adopted, all resources are updated, complete file data are sent to terminal equipment of a user for updating, then updating is carried out in a mode based on binary difference, the updating data amount designed in the whole updating process is huge, the number of files is numerous, errors are easy to occur, and the resources cannot be recovered after errors are reported, and only downloading and transmitting are carried out again.
Based on this, please refer to fig. 1, fig. 1 is an interaction diagram of a resource updating system provided in an embodiment of the present application, where the resource updating system includes a computer device 100 and a terminal device 200 communicatively connected to the computer device 100. In other embodiments of the present application, the resource update system may include more or fewer components. In the embodiment of the present application, the computer device 100 stores an update resource package, where the update resource package includes update resource data and an update configuration file, and the update configuration file is used to represent update configuration information of the update resource data.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating steps of a resource updating method according to an embodiment of the present application, where the resource updating method is implemented by the computer device 100 in fig. 1, and the resource updating method is described in detail below.
Step 201, receiving an update request sent by the terminal device 200.
Wherein the update request includes the current configuration file.
Step 202, comparing the difference between the current configuration file and the updated configuration file, and determining target update data from the updated resource data.
Step 203, sending the target update data to the terminal device 200, so that the terminal device 200 performs resource update according to the target update data.
In this embodiment of the present application, a configuration file may refer to a cfg (cofig, abbreviated as a computer system configuration) file, and the configuration file may be used to represent update configuration information of updated resource data, and optionally, the configuration file may include a resource path, a file name of an affiliated resource, and a file offset in the affiliated resource. The file offset in the resource is to re-read the information of the resource file every time the game starts to load the update package, so that the update file can be read more quickly.
Through the steps, compared with the updating based on all resources in the prior art, the scheme provided by the embodiment of the application can perform data comparison, namely, the difference between the current configuration file and the updated configuration file is compared, and then only the target update data with the difference is sent to the terminal device 200 of the user for updating, so that the volume of the update package and the number of the update related files can be greatly reduced, the updating efficiency is improved, and the error possibility is reduced.
In the embodiment of the present application, in order to describe the scheme in the present application more clearly, the embodiment of the present application further provides an example of how to obtain the update resource package, which can be specifically obtained through the following steps.
Step 301, obtaining original resource information corresponding to the original resource packet.
The original resource information is used for recording file information of the original resource information.
Step 302, obtaining the resource information to be updated corresponding to the resource packet to be updated.
And the resource information to be updated is used for recording the file information of the resource information to be updated.
Step 303, comparing the original resource information with the resource information to be updated to obtain an update comparison result.
And step 304, updating the original resource package according to the updating comparison result and the resource package to be updated to obtain an updated resource package.
In this embodiment of the present application, each resource package has corresponding resource information, where the resource information is used to record file information of original resource information, and may be understood as record file information, and optionally, the resource information may include an md5(Message-Digest Algorithm 5, abbreviated as a cryptographic hash function) value, a file path, a path in the resource package, and information of the resource package to which the resource package belongs. Wherein, the md5 value can be used to distinguish the update resource packages of various versions. In this embodiment of the application, the original resource may be a resource package after the previous update operation is completed, and the original resource is a resource package to be updated this time, and both of them may be stored in the computer device 100 in advance, or may be obtained from the outside, which is not limited herein.
On this basis, the original resource information includes a first update version, the resource information to be updated includes a second update version, the version type includes a normal update version and an emergency update version, the normal update version is used for updating the normal data, and the emergency update version is used for updating the patch data.
Substep 303-1, comparing the original resource information with the resource information to be updated to obtain a first comparison result, where the first comparison result is: the type of the first updating version is a common updating version, and the type of the second updating version is a common updating version.
Substep 303-2, or comparing the original resource information with the resource information to be updated to obtain a second comparison result, where the second comparison result is: the first updating version is a common updating version, and the second updating version is an emergency updating version.
Substep 303-3, or comparing the original resource information with the resource information to be updated to obtain a third comparison result, where the third comparison result is: the first updating version is an emergency updating version, and the second updating version is a common updating version.
Substep 303-4, or comparing the original resource information with the resource information to be updated to obtain a fourth comparison result, where the fourth comparison result is: the first update version is of an emergency update version, and the second update version is of an emergency update version.
It should be understood that the update of the game resource can be divided into a normal update version and an emergency update version, the normal update version has small changes but is more frequent, such as more routine activities in the game, bug fixes, etc., while the emergency update version has large changes, as long as the changes are needed or serious system vulnerabilities are found to be needed to be modified.
On the basis of the foregoing, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set, and when the update comparison result is the first comparison result, as an alternative specific implementation manner, the foregoing step 304 may be implemented by the following steps.
And a substep 304-1, writing the data which is not repeated in the common data set to be updated in the original common data set into the common data set to be updated.
Substep 304-2 will update the common data set as updated resource data.
And a substep 304-3 of obtaining updated resource information based on the updated resource data.
And the updating resource information is used for representing the file information of the updating common data set.
Substep 304-4 generates an update profile for updating the resource information.
Substep 304-5, an update resource package is constructed based on the update resource data and the update configuration file.
In this embodiment of the present application, the common data set and the patch data set included in the resource packet may be used to store corresponding update data, respectively, and it should be understood that the resource packet may have a unique version number, where the version number may be 4 bits, and is similar to a.b.c.d, and the version number may only increase from the front level to the rear level, and each level of the version number may only increase when the level of the version number is unchanged at the previous level. The common data set may be named according to the version number, and the patch data set may be named according to the special name of hotfix, alternatively, the resource package may be presented by the following form, for example, it has been updated to 1.2.30.5 now, 1.2.30.5 is common update, the previously updated version has 1.0.0.1 (common), 1.0.2.1 (urgent), 1.0.10.5 (common), then there are so many files in the update package: 1.0.0.1, 1.0.10.5, 1.2.30.5, hotfix, cfg.
Based on this, under the condition that the previous update is a common update version and the current update is also a common update version, the hot fix files (patch data sets) of the two files do not need to be changed, and only difference data between the original common data set and the common data set to be updated needs to be integrated.
On the basis of the foregoing, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set, and when the update comparison result is the second comparison result, as an alternative specific implementation manner, the foregoing step 304 may be implemented by the following steps.
Sub-step 304-6, the original patch data set is deleted.
And a substep 304-7 of using the patch data set to be updated as an update patch data set.
Substep 304-8, the set of update patch data is treated as update resource data.
And a substep 304-9 of obtaining updated resource information based on the updated resource data.
And the updating resource information is used for representing the file information of the updating common data set.
Substep 304-10, an update profile is generated that updates the resource information.
Substep 304-11, an update resource package is constructed from the update resource data and the update configuration file.
In the above situation, the previous update is a normal update version, and under the condition that the current update is a patch update version, the original patch data set (the hotfix file of the original resource package) needs to be deleted, the patch data set to be updated is directly used as the update patch data set without changing the original data set, and the update resource information for representing the file information of the update normal data set can be obtained based on the original normal data set and the update patch data set as the update resource data, and similarly, the subsequent update operation and the next update resource package can be made.
On the basis of the foregoing, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set, and when the update comparison result is the third comparison result, as an alternative specific implementation manner, the foregoing step 304 may be implemented by the following steps.
And a substep 304-12, writing the original patch data set into a common data set to be updated to obtain a pending data set.
And substep 304-13, writing the data which is not repeated in the undetermined data set in the original common data set into the undetermined data set to obtain an updated patch data set.
Substep 304-14, the set of update patch data is treated as update resource data.
And a substep 304-15 of obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set.
Substep 304-16, an update profile is generated that updates the resource information.
Substep 304-17, an update resource package is constructed from the update resource data and the update configuration file.
In the above situation, the update is performed for the emergency update version in the previous time, and under the condition that the update is performed for the ordinary update version in this time, the original patch data set (the hotfix file of the original resource package) needs to be written into the ordinary data set to be updated to obtain the pending data set, then the differentiated data of the original ordinary data set and the ordinary data set to be updated is compared and integrated to obtain the update patch data set, and the update patch data set is used as the update resource data to obtain the update configuration file of the update resource information, so as to obtain the update resource package.
On the basis of the foregoing, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, and the original resource package includes an original common data set and an original patch data set, and when the update comparison result is the fourth comparison result, as an alternative specific implementation manner, the foregoing step 304 may be implemented by the following steps.
And 304-18, writing the unrepeated data in the original patch data set in the patch data set to be updated into the patch data set to be updated to obtain a data set to be updated.
And step 304-19, taking the pending data set and the original common data set as updated resource data.
And step 304-20, obtaining updated resource information according to the updated resource data.
And the updating resource information is used for representing the file information of the updating common data set.
And step 304-21, generating an updating configuration file for updating the resource information.
And step 304-22, constructing an update resource package according to the update resource data and the update configuration file.
In the above situation, under the condition that the previous update is an emergency update version and the current update is also an emergency update version, the hotfix files of the two files need to be integrated, and the unrepeated data in the patch data set to be updated in the original patch data set is written into the patch data set to be updated to obtain the pending data set without changing the original common data set, so that the updated resource data and the updated resource information can be obtained, and finally the updated resource package can be obtained as described above.
Through the steps, the difference between the common update version and the emergency update version is skillfully utilized, so that the update resource package obtained by making can reduce the update size of each version, simultaneously the update stability and efficiency are ensured, meanwhile, the smaller update size can still be kept when a large number of emergency updates are inserted in the middle, the number of files is small, the update problem is convenient to search, and the problem of excessive handles of the files which possibly occur is prevented.
An embodiment of the present application provides a resource updating apparatus 110, which is applied to a computer device 100, where the computer device 100 is in communication connection with a terminal device 200, the computer device 100 stores an update resource package, the update resource package includes update resource data and an update configuration file, and the update configuration file is used to represent update configuration information of the update resource data, and as shown in fig. 3, the resource updating apparatus 110 includes:
a receiving module 1101, configured to receive an update request sent by the terminal device 200, where the update request includes a current configuration file.
A comparing module 1102, configured to compare a difference between the current configuration file and the updated configuration file, and determine target update data from the updated resource data.
An updating module 1103, configured to send the target update data to the terminal device 200, so that the terminal device 200 performs resource update according to the target update data.
Further, the apparatus includes a fabrication module 1104 for:
acquiring original resource information corresponding to an original resource packet, wherein the original resource information is used for recording file information of the original resource information; acquiring resource information to be updated corresponding to the resource packet to be updated, wherein the resource information to be updated is used for recording file information of the resource information to be updated; comparing the original resource information with the resource information to be updated to obtain an updating comparison result; and updating the original resource packet according to the updating comparison result and the resource packet to be updated to obtain an updated resource packet.
Further, the original resource information comprises a first updating version, the resource information to be updated comprises a second updating version, the version types comprise a common updating version and an emergency updating version, the common updating version is used for updating common data, and the emergency updating version is used for updating patch data;
the fabrication module 1104 is specifically configured to:
comparing the original resource information with the resource information to be updated to obtain a first comparison result, wherein the first comparison result is as follows: the type of the first updating version is a common updating version, and the type of the second updating version is a common updating version; or comparing the original resource information with the resource information to be updated to obtain a second comparison result, wherein the second comparison result is as follows: the type of the first updating version is a common updating version, and the type of the second updating version is an emergency updating version; or comparing the original resource information with the resource information to be updated to obtain a third comparison result, wherein the third comparison result is as follows: the type of the first updating version is an emergency updating version, and the type of the second updating version is a common updating version; or comparing the original resource information with the resource information to be updated to obtain a fourth comparison result, wherein the fourth comparison result is as follows: the first update version is of an emergency update version, and the second update version is of an emergency update version.
Further, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, the original resource package includes an original common data set and an original patch data set, and the making module 1104 is further specifically configured to:
writing unrepeated data in the original common data set in the common data set to be updated into the common data set to be updated; taking the updated common data set as updated resource data; obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set; generating an update configuration file for updating the resource information; and constructing an updating resource package according to the updating resource data and the updating configuration file.
Further, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, the original resource package includes an original common data set and an original patch data set, and the making module 1104 is further specifically configured to:
deleting the original patch data set; taking the patch data set to be updated as an update patch data set; taking the update patch data set as update resource data; obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set; generating an update configuration file for updating the resource information; and constructing an updating resource package according to the updating resource data and the updating configuration file.
Further, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, the original resource package includes an original common data set and an original patch data set, and the making module 1104 is further specifically configured to:
writing the original patch data set into a common data set to be updated to obtain a data set to be determined; writing data which is not repeated in the undetermined data set in the original common data set into the undetermined data set to obtain an updated patch data set; taking the update patch data set as update resource data; obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set; generating an update configuration file for updating the resource information; and constructing an updating resource package according to the updating resource data and the updating configuration file.
Further, the resource package to be updated includes a common data set to be updated and a patch data set to be updated, the original resource package includes an original common data set and an original patch data set, and the making module 1104 is further specifically configured to:
writing unrepeated data in the original patch data set in the patch data set to be updated into the patch data set to be updated to obtain a pending data set; taking the undetermined data set and the original common data set as updated resource data; obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set; generating an update configuration file for updating the resource information; and constructing an updating resource package according to the updating resource data and the updating configuration file.
The embodiment of the present application provides a computer device 100, where the computer device 100 includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device 100 executes the foregoing resource updating method. As shown in fig. 4, fig. 4 is a block diagram of a computer device 100 according to an embodiment of the present disclosure. The computer apparatus 100 includes a resource updating device 110, a memory 111, a processor 112, and a communication unit 113.
To facilitate the transfer or interaction of data, the elements of the memory 111, the processor 112 and the communication unit 113 are electrically connected to each other, directly or indirectly. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The resource updating apparatus 110 includes at least one software functional module which can be stored in the memory 111 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the computer device 100. The processor 112 is used for executing executable modules stored in the memory 111, such as software functional modules and computer programs included in the resource updating apparatus 110.
The embodiment of the present application provides a readable storage medium, where the readable storage medium includes a computer program, and when the computer program runs, the computer device 100 in which the readable storage medium is located is controlled to execute the foregoing resource updating method.
In summary, the embodiment of the present application provides a resource updating method, an apparatus, a computer device, and a readable storage medium, where an update request sent by a terminal device is received, where the update request includes a current configuration file; comparing the difference between the current configuration file and the updated configuration file, and determining target update data from the updated resource data; and finally, the target updating data is sent to the terminal equipment so that the terminal equipment updates resources according to the target updating data.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The resource updating method is applied to computer equipment which is in communication connection with terminal equipment, wherein the computer equipment stores an updating resource package, the updating resource package comprises updating resource data and an updating configuration file, and the updating configuration file is used for representing updating configuration information of the updating resource data;
the method comprises the following steps:
receiving an update request sent by the terminal equipment, wherein the update request comprises a current configuration file;
comparing the difference between the current configuration file and the updated configuration file, and determining target updating data from the updating resource data;
and sending the target updating data to the terminal equipment so that the terminal equipment updates resources according to the target updating data.
2. The method of claim 1, wherein the update resource package is obtained by:
acquiring original resource information corresponding to an original resource packet, wherein the original resource information is used for recording file information of the original resource information;
acquiring resource information to be updated corresponding to a resource packet to be updated, wherein the resource information to be updated is used for recording file information of the resource information to be updated;
comparing the original resource information with the resource information to be updated to obtain an updating comparison result;
and updating the original resource packet according to the updating comparison result and the resource packet to be updated to obtain the updated resource packet.
3. The method according to claim 2, wherein the original resource information comprises a first update version, the resource information to be updated comprises a second update version, the version type comprises a normal update version for updating normal data and an emergency update version for updating patch data;
the step of comparing the original resource information with the resource information to be updated to obtain an update comparison result includes:
comparing the original resource information with the resource information to be updated to obtain a first comparison result, wherein the first comparison result is as follows: the type of the first updating version is the common updating version, and the type of the second updating version is the common updating version;
or comparing the original resource information with the resource information to be updated to obtain a second comparison result, wherein the second comparison result is as follows: the type of the first updating version is the common updating version, and the type of the second updating version is the emergency updating version;
or comparing the original resource information with the resource information to be updated to obtain a third comparison result, wherein the third comparison result is as follows: the type of the first updating version is the emergency updating version, and the type of the second updating version is the common updating version;
or comparing the original resource information with the resource information to be updated to obtain a fourth comparison result, wherein the fourth comparison result is as follows: the type of the first update version is the emergency update version, and the type of the second update version is the emergency update version.
4. The method according to claim 3, wherein the resource package to be updated comprises a common data set to be updated and a patch data set to be updated, and the original resource package comprises an original common data set and an original patch data set;
when the update comparison result is the first comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain the update resource package, including:
writing the unrepeated data in the original common data set in the common data set to be updated into the common data set to be updated;
taking the updated common data set as the updated resource data;
obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set;
generating the update configuration file of the updated resource information;
and constructing the updating resource package according to the updating resource data and the updating configuration file.
5. The method according to claim 3, wherein the resource package to be updated comprises a common data set to be updated and a patch data set to be updated, and the original resource package comprises an original common data set and an original patch data set;
when the update comparison result is the second comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain the update resource package, including:
deleting the original patch data set;
taking the patch data set to be updated as an update patch data set;
taking the update patch data set as the update resource data;
obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set;
generating the update configuration file of the updated resource information;
and constructing the updating resource package according to the updating resource data and the updating configuration file.
6. The method according to claim 3, wherein the resource package to be updated comprises a common data set to be updated and a patch data set to be updated, and the original resource package comprises an original common data set and an original patch data set;
when the update comparison result is the third comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain the update resource package, including:
writing the original patch data set into the common data set to be updated to obtain a data set to be updated;
writing the data which is not repeated in the undetermined data set in the original common data set into the undetermined data set to obtain the updated patch data set;
taking the update patch data set as the update resource data;
obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set;
generating the update configuration file of the updated resource information;
and constructing the updating resource package according to the updating resource data and the updating configuration file.
7. The method according to claim 3, wherein the resource package to be updated comprises a common data set to be updated and a patch data set to be updated, and the original resource package comprises an original common data set and an original patch data set;
when the update comparison result is the fourth comparison result, updating the original resource package according to the update comparison result and the resource package to be updated to obtain the update resource package, including:
writing the unrepeated data in the original patch data set in the patch data set to be updated into the patch data set to be updated to obtain a pending data set;
taking the pending data set and the original common data set as the updated resource data;
obtaining updated resource information according to the updated resource data, wherein the updated resource information is used for representing file information of the updated common data set;
generating the update configuration file of the updated resource information;
and constructing the updating resource package according to the updating resource data and the updating configuration file.
8. The resource updating device is applied to a computer device, the computer device is in communication connection with a terminal device, the computer device stores an updating resource package, the updating resource package comprises updating resource data and an updating configuration file, and the updating configuration file is used for representing updating configuration information of the updating resource data;
the device comprises:
a receiving module, configured to receive an update request sent by the terminal device, where the update request includes a current configuration file;
the comparison module is used for comparing the difference between the current configuration file and the updated configuration file and determining target update data from the updated resource data;
and the updating module is used for sending the target updating data to the terminal equipment so as to enable the terminal equipment to update resources according to the target updating data.
9. A computer device comprising a processor and a non-volatile memory having computer instructions stored thereon, wherein when the computer instructions are executed by the processor, the computer device performs the resource update method of any one of claims 1-7.
10. A readable storage medium, characterized in that the readable storage medium comprises a computer program which, when running, controls a computer device on which the readable storage medium is located to perform the resource updating method of any one of claims 1-7.
CN202011516574.6A 2020-12-21 2020-12-21 Resource updating method and device, computer equipment and readable storage medium Pending CN112657196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011516574.6A CN112657196A (en) 2020-12-21 2020-12-21 Resource updating method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011516574.6A CN112657196A (en) 2020-12-21 2020-12-21 Resource updating method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112657196A true CN112657196A (en) 2021-04-16

Family

ID=75406679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011516574.6A Pending CN112657196A (en) 2020-12-21 2020-12-21 Resource updating method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112657196A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709549A (en) * 2023-08-04 2023-09-05 腾讯科技(深圳)有限公司 Resource sharing method and device, electronic equipment and readable storage medium

Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777867A (en) * 2003-12-15 2006-05-24 微软公司 System and method for updating files utilizing delta compression patching.
AU2013206556A1 (en) * 2006-07-31 2013-07-18 Acei Ab Information Updating Management in a Gaming System
CN103745158A (en) * 2014-01-26 2014-04-23 北京奇虎科技有限公司 Method and device for repairing system bugs
CN104539696A (en) * 2014-12-26 2015-04-22 北京像素软件科技股份有限公司 Client end incremental updating method and system
CN104539676A (en) * 2014-12-18 2015-04-22 深圳市腾讯计算机系统有限公司 Method, device and system for providing and obtaining application installation packets
CN104615470A (en) * 2015-03-04 2015-05-13 成都维远艾珏信息技术有限公司 Program updating method for embedded devices
CN104657170A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Data updating method, device and system
CN106371849A (en) * 2016-09-18 2017-02-01 网易(杭州)网络有限公司 Application data processing method and device
CN106528229A (en) * 2016-11-03 2017-03-22 北京像素软件科技股份有限公司 Game hot updating method and device
US20170090902A1 (en) * 2015-09-30 2017-03-30 Apple Inc. Software Updating
CN107341028A (en) * 2017-05-25 2017-11-10 北京金山安全管理系统技术有限公司 Update method and device, the storage medium and processor of patch
CN109445827A (en) * 2018-11-16 2019-03-08 网易(杭州)网络有限公司 A kind of method and device of game renewal, electronic equipment, storage medium
CN109522041A (en) * 2018-10-15 2019-03-26 网易(杭州)网络有限公司 Client resource update method, device, processor, server and terminal
CN109766114A (en) * 2019-01-15 2019-05-17 网易(杭州)网络有限公司 A kind for the treatment of method and apparatus of patch file
US20190155598A1 (en) * 2017-11-17 2019-05-23 Apple Inc. Techniques for updating a file using a multi-version patch file
CN110502276A (en) * 2019-08-21 2019-11-26 深圳市钱海网络技术有限公司 Service packs generation method, device, equipment and computer readable storage medium
CN110515647A (en) * 2019-08-28 2019-11-29 北京思维造物信息科技股份有限公司 A kind of static resource management method, device, equipment and storage medium
CN111008034A (en) * 2019-12-02 2020-04-14 网易(杭州)网络有限公司 Patch generation method and device
US20200125352A1 (en) * 2018-10-19 2020-04-23 Oracle International Corporation SYSTEMS AND METHODS FOR IMPLEMENTING GOLD IMAGE AS A SERVICE (GIaaS)
CN111316230A (en) * 2018-07-19 2020-06-19 华为技术有限公司 Method and equipment for generating patch package
CN111399895A (en) * 2020-04-13 2020-07-10 网易(杭州)网络有限公司 Client updating method and device, electronic equipment and computer readable medium
CN111562929A (en) * 2020-04-29 2020-08-21 米哈游科技(上海)有限公司 Method, device and equipment for generating patch file and storage medium
US20200326930A1 (en) * 2019-04-12 2020-10-15 Dell Products, Lp System and Method for Modular Patch based Firmware Update

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777867A (en) * 2003-12-15 2006-05-24 微软公司 System and method for updating files utilizing delta compression patching.
AU2013206556A1 (en) * 2006-07-31 2013-07-18 Acei Ab Information Updating Management in a Gaming System
CN104657170A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Data updating method, device and system
CN103745158A (en) * 2014-01-26 2014-04-23 北京奇虎科技有限公司 Method and device for repairing system bugs
CN104539676A (en) * 2014-12-18 2015-04-22 深圳市腾讯计算机系统有限公司 Method, device and system for providing and obtaining application installation packets
CN104539696A (en) * 2014-12-26 2015-04-22 北京像素软件科技股份有限公司 Client end incremental updating method and system
CN104615470A (en) * 2015-03-04 2015-05-13 成都维远艾珏信息技术有限公司 Program updating method for embedded devices
US20170090902A1 (en) * 2015-09-30 2017-03-30 Apple Inc. Software Updating
CN106371849A (en) * 2016-09-18 2017-02-01 网易(杭州)网络有限公司 Application data processing method and device
CN106528229A (en) * 2016-11-03 2017-03-22 北京像素软件科技股份有限公司 Game hot updating method and device
CN107341028A (en) * 2017-05-25 2017-11-10 北京金山安全管理系统技术有限公司 Update method and device, the storage medium and processor of patch
US20190155598A1 (en) * 2017-11-17 2019-05-23 Apple Inc. Techniques for updating a file using a multi-version patch file
CN111316230A (en) * 2018-07-19 2020-06-19 华为技术有限公司 Method and equipment for generating patch package
CN109522041A (en) * 2018-10-15 2019-03-26 网易(杭州)网络有限公司 Client resource update method, device, processor, server and terminal
US20200125352A1 (en) * 2018-10-19 2020-04-23 Oracle International Corporation SYSTEMS AND METHODS FOR IMPLEMENTING GOLD IMAGE AS A SERVICE (GIaaS)
CN109445827A (en) * 2018-11-16 2019-03-08 网易(杭州)网络有限公司 A kind of method and device of game renewal, electronic equipment, storage medium
CN109766114A (en) * 2019-01-15 2019-05-17 网易(杭州)网络有限公司 A kind for the treatment of method and apparatus of patch file
US20200326930A1 (en) * 2019-04-12 2020-10-15 Dell Products, Lp System and Method for Modular Patch based Firmware Update
CN110502276A (en) * 2019-08-21 2019-11-26 深圳市钱海网络技术有限公司 Service packs generation method, device, equipment and computer readable storage medium
CN110515647A (en) * 2019-08-28 2019-11-29 北京思维造物信息科技股份有限公司 A kind of static resource management method, device, equipment and storage medium
CN111008034A (en) * 2019-12-02 2020-04-14 网易(杭州)网络有限公司 Patch generation method and device
CN111399895A (en) * 2020-04-13 2020-07-10 网易(杭州)网络有限公司 Client updating method and device, electronic equipment and computer readable medium
CN111562929A (en) * 2020-04-29 2020-08-21 米哈游科技(上海)有限公司 Method, device and equipment for generating patch file and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张鑫: "Android热更新管理系统的研究与设计", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 2, 15 February 2019 (2019-02-15), pages 138 - 671 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709549A (en) * 2023-08-04 2023-09-05 腾讯科技(深圳)有限公司 Resource sharing method and device, electronic equipment and readable storage medium
CN116709549B (en) * 2023-08-04 2023-10-20 腾讯科技(深圳)有限公司 Resource sharing method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US10055216B2 (en) Minimizing image copying during partition updates
US10379951B2 (en) Hierarchic storage policy for distributed object storage systems
CN107577427B (en) data migration method, device and storage medium for blockchain system
CN110058873B (en) Application page updating method, device, equipment and storage medium
US20220179642A1 (en) Software code change method and apparatus
US20140143367A1 (en) Robustness in a scalable block storage system
CN106250192A (en) The method for upgrading software of host computer and system
CN111580884A (en) Configuration updating method and device, server and electronic equipment
CN112947983B (en) Application program updating method and device, electronic equipment and storage medium
CN109800005B (en) Client hot update method and device
CN112286565B (en) Embedded system differential upgrading method based on storage container
US20200379982A1 (en) Information processing system and method of controlling information processing system
CN108694049B (en) Method and equipment for updating software
CN113961226B (en) Software development kit repairing method, terminal, server and equipment
CN111507694A (en) Block chain cross-chain interaction method and system
CN112657196A (en) Resource updating method and device, computer equipment and readable storage medium
CN109298873A (en) A kind of method for upgrading system and device
US10127270B1 (en) Transaction processing using a key-value store
CN112579141A (en) Firmware updating method, device, equipment and storage medium of embedded system
US20120151005A1 (en) Image file download method
CN116069366A (en) Client application program updating method and device, storage medium and electronic equipment
CN116302328A (en) Intelligent contract data processing method and system
CN111629200A (en) Method and device for rapidly detecting differential packet reliability and readable storage medium
CN113312073B (en) Installation package file processing method and related device
CN114860202A (en) Project operation method, device, server 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