CN112925559B - Resource packaging method, device, medium and electronic equipment - Google Patents
Resource packaging method, device, medium and electronic equipment Download PDFInfo
- Publication number
- CN112925559B CN112925559B CN202110382172.XA CN202110382172A CN112925559B CN 112925559 B CN112925559 B CN 112925559B CN 202110382172 A CN202110382172 A CN 202110382172A CN 112925559 B CN112925559 B CN 112925559B
- Authority
- CN
- China
- Prior art keywords
- file
- resource
- updated
- online
- project
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present disclosure relates to the field of computers, and in particular, to a method and an apparatus for packaging resources, a computer readable storage medium, and an electronic device, where the method includes: acquiring project file path information; acquiring a resource file to be updated, and acquiring an online resource package corresponding to the resource file to be updated according to the resource file to be updated and project file path information; determining a local resource file corresponding to the second online resource file; and packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain a resource package to be updated. Through the technical scheme of the embodiment of the disclosure, the problem that the total packaging time is long can be solved.
Description
Technical Field
The present disclosure relates to the field of computers, and in particular, to a resource packaging method, a resource packaging apparatus, a computer readable storage medium, and an electronic device.
Background
With the rapid development of the internet, more and more users start to use intelligent terminals, the dependence degree of the users on terminal equipment is higher and higher, and the users can realize a lot of things in learning, living and working through various application programs.
As the demands of users are increasing, simple and single applications have not been able to meet the current demands, users need richer functionality and better interactive experience. As applications add to the content, the project files involved increase. In the prior art, when the project files related to update of an application program need to be uploaded, all the project files need to be packaged.
However, since the number of project files of the application program is large, the time period used in the packaging process is long, and thus the development period and the test period of the project are greatly affected.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a resource packaging method, a resource packaging device, a computer readable storage medium and electronic equipment, which can solve the problem of long total packaging time.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a resource packaging method, including: acquiring project file path information; acquiring a resource file to be updated, and acquiring an online resource package corresponding to the resource file to be updated according to the resource file to be updated and project file path information; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file; determining a local resource file corresponding to the second online resource file; and packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain a resource package to be updated.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the acquiring the project file path information includes: acquiring an identification mark of the project file, and acquiring a file list corresponding to the project file according to the identification mark; and generating the project file path information according to the file list.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the identifying identifier includes an online resource file name, and the obtaining, according to the identifying identifier, a file list corresponding to the project file includes: traversing a plurality of online resource packages in the project file, and acquiring online resource package names corresponding to the online resource packages; when the online resource packet name accords with a preset format, determining the online resource packet as a target online resource packet; and determining a file list corresponding to the project file according to the resource packages on the multiple target lines.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, after the packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain a resource package to be updated, the method further includes: acquiring a history configuration file corresponding to the online resource package, and acquiring an update configuration file corresponding to the resource package to be updated; and merging the history configuration files and updating the configuration files to obtain an overall configuration file.
In an exemplary embodiment of the disclosure, based on the foregoing solution, the merging the history profile and the local profile to obtain the overall profile includes: deleting an online configuration file corresponding to the updated configuration file in the history configuration file to obtain a configuration file to be updated; and merging the configuration file to be updated and the update configuration file to obtain an overall configuration file.
In one exemplary embodiment of the present disclosure, based on the foregoing scheme, monitoring an update progress of an online resource package in the project file; and regenerating the project file path information according to the updating progress.
In an exemplary embodiment of the disclosure, based on the foregoing solution, the monitoring the update progress of the online resource file in the project file includes: monitoring the deleting state of an online resource package in the project file; monitoring the increasing state of an online resource package in the project file; and determining the update progress of the project file according to the deletion state and/or the addition state.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, after the packaging the resource file to be updated and the second online resource file to obtain a resource package to be updated, the method further includes: and deleting the online resource package, and uploading the resource package to be updated.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, a preconfigured local check packet is obtained; the local verification package comprises the resource file to be updated and the second online resource file; and carrying out MD5 verification on the local verification packet and the resource packet to be updated.
According to a second aspect of the present disclosure, there is provided a resource packaging apparatus, the apparatus comprising: the path information acquisition module is used for acquiring path information of the project file; the online resource package acquisition module is used for acquiring a resource file to be updated and acquiring an online resource package corresponding to the resource file to be updated according to the path information of the resource file to be updated and the project file; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file; the local file determining module is used for determining a local resource file corresponding to the second online resource file; and the resource packaging module is used for packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain a resource package to be updated.
According to a third aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a resource packaging method as described in the first aspect of the above embodiments.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising:
a processor; and
and a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the resource packaging method as described in the first aspect of the embodiments above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the resource packaging method provided by the embodiment of the disclosure, when acquiring path information of a project file, acquiring a resource file to be updated, and acquiring an online resource package corresponding to the resource file to be updated according to the resource file to be updated and the path information of the project file; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file, determining a local resource file corresponding to the second online resource file, and packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain the resource package to be updated.
According to the embodiment of the disclosure, only the files related to updating can be updated, all project files do not need to be packaged, and the packaging time is reduced. On the one hand, for a developer, the packing time can be greatly reduced, and the project file can be updated, so that the development period and the test period are shortened, the development cost is reduced, and the development efficiency is further improved. On the other hand, for the user, the updating period is reduced, so that new content in the application program can be experienced rapidly, and the use experience of the user is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort. In the drawings:
FIG. 1 schematically illustrates a schematic diagram of an exemplary system architecture of a resource packaging method in an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of resource packaging in an exemplary embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of generating project file path information from a file list in an exemplary embodiment of the present disclosure;
fig. 4 schematically illustrates a flowchart of determining an online resource file as a target online resource file and determining a file list corresponding to the item file according to a plurality of target online resource files when the format of the online resource file name is the same as a preset format in an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow chart of merging historical profiles and updating profiles to obtain an overall profile in an exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a flowchart of merging a configuration file to be updated with an update configuration file to obtain an overall configuration file in an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a flowchart for regenerating project file path information according to an update progress in an exemplary embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow chart for determining the update progress of a project file according to a delete status and/or an add status in an exemplary embodiment of the present disclosure;
FIG. 9 schematically illustrates a flow chart of MD5 checking a local check packet and an update resource packet in an exemplary embodiment of the present disclosure;
FIG. 10 schematically illustrates a flowchart of comparing a resource package to be updated with all online resource packages and uploading a resource package with a difference to a resource server in an exemplary embodiment of the present disclosure;
FIG. 11 schematically illustrates a flow chart of another method of resource packaging in an exemplary embodiment of the present disclosure;
FIG. 12 schematically illustrates a schematic composition of a resource packaging apparatus in an exemplary embodiment of the present disclosure;
fig. 13 schematically shows a schematic of a computer system suitable for use in implementing the electronic device of the exemplary embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the disclosed aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known structures, methods, devices, implementations, materials, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more software-hardened modules, or in different networks and/or processor devices and/or microcontroller devices.
With the rapid development of software and hardware, users are no longer satisfied with single, simple functions, but more abundant content and play are required. The developer can update the application program according to the requirement of the user, after the development is completed, the project file needs to be uploaded to the server for the user to download, and before the uploading is performed, the project file needs to be packaged, for example, a packaging function is provided in a Unity platform, the resource file can be packaged in an assetbond, and a decompression method is also provided. As project files increase, more and more files need to be packaged, resulting in a significant increase in the length of time required for packaging. Thus, the development period and the test period of the project are greatly affected.
FIG. 1 illustrates a schematic diagram of an exemplary system architecture to which the resource packaging method of embodiments of the present disclosure may be applied.
As shown in fig. 1, system architecture 1000 may include one or more of terminal devices 1001, 1002, 1003, a network 1004, and a server 1005. The network 1004 serves as a medium for providing a communication link between the terminal apparatuses 1001, 1002, 1003 and the server 1005. The network 1004 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server 1005 may be a server cluster formed by a plurality of servers.
A user can interact with a server 1005 via a network 1004 using terminal apparatuses 1001, 1002, 1003 to receive or transmit messages or the like. The terminal devices 1001, 1002, 1003 may be various electronic devices having a display screen including, but not limited to, smartphones, tablet computers, portable computers, desktop computers, and the like. In addition, the server 1005 may be a server providing various services.
In one embodiment, an execution body of the resource packaging method of the present disclosure may be a server 1005, where the server 1005 may acquire project file path information sent by the terminal devices 1001, 1002, 1003, acquire a resource file to be updated, and acquire an online resource package corresponding to the resource file to be updated according to the resource file to be updated and the project file path information; the resource package includes a first online resource file corresponding to the resource file to be updated and a second online resource file except the first online resource file, the resource file to be updated is used for performing iterative updating on the first online resource file, determining a local resource file corresponding to the second online resource file, packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain a resource package to be updated, and then returning the resource package to be updated obtained after processing to the terminal device 1001, 1002 and 1003. In addition, the resource packaging method of the present disclosure may also be executed by the terminal devices 1001, 1002, 1003, etc. to implement a process of obtaining a resource package to be updated according to the project file path information and the resource file to be updated.
In addition, the implementation procedure of the resource packaging method of the present disclosure may also be implemented jointly by the terminal apparatuses 1001, 1002, 1003 and the server 1005. For example, the terminal devices 1001, 1002, 1003 may acquire project file path information, acquire a resource file to be updated, and acquire an online resource package corresponding to the resource file to be updated according to the resource file to be updated and the project file path information; the resource package includes a first online resource file corresponding to the resource file to be updated and a second online resource file other than the first online resource file, where the resource file to be updated is used to iteratively update the first online resource file, determine a local resource file corresponding to the second online resource file, and send the determined local resource file corresponding to the second online resource file to the server 1005, so that the server 1005 may package the local resource file corresponding to the resource file to be updated and the second online resource file to obtain the resource package to be updated.
According to the resource packaging method provided by the exemplary embodiment, project file path information is acquired, a resource file to be updated is acquired, and an online resource package corresponding to the resource file to be updated is acquired according to the resource file to be updated and the project file path information; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file, determining a local resource file corresponding to the second online resource file, and packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain the resource package to be updated. As shown in fig. 2, the resource packaging method may include the steps of:
Step S210, acquiring project file path information;
step S220, obtaining a resource file to be updated, and obtaining an online resource package corresponding to the resource file to be updated according to the resource file to be updated and the project file path information; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file;
step S230, determining a local resource file corresponding to the second online resource file;
step S240, packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain the resource package to be updated.
In the resource packaging method provided by the present exemplary embodiment, project file path information may be obtained, a resource file to be updated is obtained, and an online resource package corresponding to the resource file to be updated is obtained according to the resource file to be updated and the project file path information; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file, determining a local resource file corresponding to the second online resource file, and packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain the resource package to be updated.
Embodiments of the present disclosure. Only the files related to the update can be updated, and all project files do not need to be packaged, so that the packaging time is reduced. On the one hand, for a developer, the packing time can be greatly reduced, and the project file can be updated, so that the development period and the test period are shortened, the development cost is reduced, and the development efficiency is further improved. On the other hand, for the user, the updating period is reduced, so that new content in the application program can be experienced rapidly, and the use experience of the user is further improved.
Next, steps S210 to S240 of resource packaging in the present exemplary embodiment will be described in more detail with reference to the drawings and embodiments.
Step S210, acquiring project file path information;
in one example embodiment of the present disclosure, the project file is a file based on various applications used by the terminal device. Various programming languages that may be used by a particular IDE developer, as well as programming applications in various programming languages. The terminal equipment can comprise a mobile phone, a tablet personal computer, a computer and the like. The application program may include software installed on the terminal device and run based on a corresponding system, including a cell phone operating system and a computer operating system. The mobile phone operating system can comprise an ios system, an Android system, a windows mobile system, a Symbian system, a BlackBerry OS system and the like; the computer operating system comprises a Windows system, a MacOS system and a Google Chrome OS system. The type of terminal device and the system to be mounted are not particularly limited in the present disclosure.
In one example embodiment of the present disclosure, the applications may include office applications, internet applications, multimedia applications, data analysis applications, work collaboration applications, business applications. It should be noted that the present disclosure does not limit the type of application program in particular. It should be noted that, the present disclosure is not limited to a design language of the application device.
In one example embodiment of the present disclosure, path information of a project file may be obtained. Specifically, the path information of the project file may include a storage structure of various files in the project file. For example, the project file may be in a tree structure, and the project file may be divided into primary, secondary and tertiary directories according to different modules in the project file. The specific storage position of a certain file can be searched according to the project file path information. The path information of the project file can be obtained in real time, the path information of the project file can be constructed in advance, the path information of the project file is stored in the terminal equipment or the server, and when the path information of the project file needs to be used, the path information of the project file can be called from the terminal equipment or the server.
Further, the project file path information may be stored as json format files. The json format is a lightweight data exchange format, and the json format uses an array, and has the advantage of faster reading and writing. When the project file path information needs to be acquired, the project file path information in json format can be rapidly processed.
Further, when the path information of the project file is acquired, the path information may be generated manually. Specifically, a project file structure specification can be formulated, and when a project is developed, the project can be built according to the project file structure specification. The project file structure specification refers to the project being constructed according to a certain format, for example, the project file can be divided into modules such as a model, a picture, an atlas, a UI preform, an audio-visual, and the like, and the files related to the modules can be set in the corresponding modules. When the project file is constructed according to the project file structure specification, the path information of the project file can be determined according to the current project file, and when the project file is changed (added or deleted), the path information of the project file can be maintained according to the content of the current change. The path information may be generated automatically, and the path information of the project file may be generated by project file path information generating software. Specifically, the project file path information generating software may automatically acquire the structure of the project file and generate project file path information.
In an example embodiment of the present disclosure, an identification of a project file may be obtained, a file list corresponding to the project file may be obtained according to the identification, and then project file path information may be generated according to the file list. Referring to fig. 3, generating item file path information from a file list may include the following steps S310 to S320:
step S310, acquiring an identification mark of the project file, and acquiring a file list corresponding to the project file according to the identification mark;
in an example embodiment of the present disclosure, an identification of a project file may be obtained, and a file list corresponding to the project file may be obtained according to the identification. Specifically, the identification mark may include a specific format, a specific name, specific content, etc. of the project file, all files with the identification mark in the project may be determined according to the identification mark, and a file list corresponding to the project file may be determined according to the files with the identification mark. For example, the format of the project file is an XML file, and at this time, all the XML files in the whole project can be obtained, and the XML file is used to obtain a file list corresponding to the project file. Further, the file list may present the project files in a list form.
Step S320, generating project file path information according to the file list.
In one example embodiment of the present disclosure, after acquiring a file corresponding to a project file, path information of the project file may be generated according to a file list. For example, the file list includes a first online resource package a, which includes online resource files a, b, and c; the second online resource package B comprises online resource files d, e and f; and a third online resource packet C, which comprises online resource files g, h and i. At this time, path information of the project file can be generated from the online resource packages.
Through the steps S310 to S320, the identification of the project file can be obtained, the file list corresponding to the project file can be obtained according to the identification, and then the project file path information can be generated according to the file list.
In an example embodiment of the present disclosure, a plurality of online resource packages in a project file may be traversed, online resource package names corresponding to the plurality of online resource files may be obtained, when the online resource package names conform to a preset format, the online resource package is determined to be a target online resource package, and a file list corresponding to the project file is determined according to the plurality of target online resource packages. Referring to fig. 4, when the online resource package name conforms to the preset format, determining the online resource package as the target online resource package, and determining the file list corresponding to the project file according to the plurality of target online resource packages may include the following steps S410 to S430:
Step S410, traversing a plurality of online resource packages in the project file, and obtaining online resource package names corresponding to the online resource files;
in one example embodiment of the present disclosure, a plurality of online resource packages in a project file may be traversed first and names of the online resource packages are obtained. Specifically, the identification identifier may include an online resource package name, and when path information of the project file needs to be obtained according to the online resource name, the online resource package in the project file may be traversed first. When traversing all files in the project file, all resource packages in the project file can be acquired, and names of all resource packages are recorded.
Specifically, the project file may include a plurality of online resource packages, where an online resource package refers to a resource package existing in a current server, and a user may directly download and use the online resource package. The online resource package comprises at least one online resource file, and the online resource file has specific functions. For example, for a social application, a picture online resource package may be included, and a plurality of picture online resource files may be included in the picture online resource package.
Step S420, when the name of the online resource packet accords with a preset format, determining the online resource packet as a target online resource packet;
In an example embodiment of the present disclosure, after the name of the online resource packet is obtained through the above steps, it may be determined whether the online resource packet name conforms to a preset format, and the online resource packet conforming to the preset format is determined as a target online resource packet, where the target online resource packet represents a resource packet that currently exists in the server and can be found through the preset format. Specifically, when creating a resource file, a name having a specific format may be set to a resource package. Further, the online resource package name which accords with the preset format can be found out from all the online resource packages through software, and the online resource package corresponding to the online resource name is determined to be the target online resource package. For example, unity is a real-time 3D interactive content authoring and running platform that provides an interface that can acquire all resource packages with assetb undlename and determine these resource packages with assetb undlename as target online resource packages.
Step S430, determining a file list corresponding to the project file according to the resource packages on the multiple target lines.
Through the steps S410 to S430, a plurality of online resource packages in the project file can be traversed, online resource package names corresponding to the plurality of online resource files are obtained, when the online resource package names conform to a preset format, the online resource package is determined as a target online resource package, and a file list corresponding to the project file is determined according to the plurality of target online resource packages.
Step S220, obtaining a resource file to be updated, and obtaining an online resource package corresponding to the resource file to be updated according to the resource file to be updated and the project file path information; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file;
in one example embodiment of the present disclosure, the resource file to be updated may include a file that needs to be replaced with the online resource file, that is, the corresponding online resource file needs to be updated using the resource file to be updated. Resource files to be updated provided by different units can be obtained through the branch management system. For example, the resource file to be updated may be obtained through SVN, specifically, SVN (subversion) is a version control system of an open source code, and by adopting efficient management of a branch management system, the resource file can be used for multiple persons to commonly develop the same project, so as to realize sharing of resources, and finally centralized management is realized, that is, SVN is a code and resource hosting service in the project, and the resource file can be used for recording modification information of the developer on the project.
In an example embodiment of the present disclosure, after a resource file to be updated is acquired, an online resource package corresponding to the resource file to be updated may be acquired according to the resource file to be updated and project file path information, where the online resource package includes a first online resource file corresponding to the resource to be updated, and further includes one or more second online resource files other than the first online resource file, where the first online resource file refers to a file that needs to be updated, and the resource file to be updated may be used to iteratively update the first online resource file. For example, the online resource package includes an online resource file a, an online resource file B, and an online resource file C, and the obtained resource file A1 to be updated needs to be updated to the resource file A1 to be updated when updating.
In an example embodiment of the present disclosure, it may be determined whether an online resource packet corresponding to a resource file to be updated exists, and if the online resource packet exists, the online resource packet may be acquired. Further, an online resource package corresponding to the resource file to be updated can be obtained through a Searchasset function.
In one example embodiment of the present disclosure, after the online resource package is acquired, resource list information of the online resource package may be determined according to the online resource package and the project file path information. Specifically, the online resource package may include one or more online resource files, where the online resource files are set in a resource list manner, and resource list information corresponding to the online resource package may be obtained in the project file path information, where the resource list information may further include indication information of the online resource package. For example, the resource list information may include the names of online resource packages.
For example, the online resource package a is obtained, and the online resource package a may include an online resource file A1, an online resource file A2, and an online resource file A3 according to a resource list corresponding to the online resource package a. The online resource package comprises a first online resource file (a file corresponding to a resource file to be updated) and one or more second online resource files, wherein the second online resource files comprise all the resource files except the first online resource file in the online resource package.
Step S230, determining a local resource file corresponding to the second online resource file;
In one example embodiment of the present disclosure, a local resource file corresponding to the second online resource file may be determined. Specifically, after the online resource package is obtained, a second online resource file in the online resource package can be obtained, and since the resource file to be updated and one or more second online resource files need to be packaged during packaging, a local resource file corresponding to the second online resource file can be obtained in the local file, wherein the second online resource file is the same as the corresponding local resource file. Further, a local resource package corresponding to the online resource package may be searched for in the local project file, and then the local resource file may be determined in the local resource package. It should be noted that, the determination method of the local resource file is not limited in this disclosure.
Step S240, packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain the resource package to be updated.
In an example embodiment of the present disclosure, after the resource file to be updated and the local resource file corresponding to the second online resource file are obtained, the resource file to be updated and the local resource file corresponding to the second online resource file may be packaged into the resource package to be updated. Specifically, the local resource file corresponding to the second online resource file belongs to one resource package together with the resource file to be updated for updating the first online resource file. Therefore, the resource files to be updated and the local resource question corresponding to the second online resource file need to be combined together for packaging.
For example, a certain online resource package B includes online resources C1, online resources C2, and online resources C3, at this time, online resources C2 need to be updated, and then local resource files C1, C2 to be updated, and C3 corresponding to online resource files need to be packaged again, if local resource files C1, C2 to be updated, and C3 corresponding to online resource files are not packaged again, only local resource files C2 to be updated are packaged, so that local resource files C1 corresponding to online resource files and C3 corresponding to online resource files are missing in the packaged resource package, and after the user downloads the resource package only including the online resource files C2 to be updated, a warning is given that the resources are lost in the actual use process, resulting in an application program failing to operate normally.
Further, after the resource file to be updated and the local resource file corresponding to the resource file on the second online resource file are packaged to obtain the resource package to be updated, the resource package to be updated can be uploaded to the server, and at this time, the user can download the resource package to be updated for use. Specifically, the online resource package corresponding to the resource package to be updated in the server can be deleted, and then the resource package to be updated is uploaded to the server.
In an example embodiment of the present disclosure, a history profile corresponding to an online resource package may be obtained, an update profile corresponding to a resource package to be updated may be obtained, and the history profile and the update profile may be combined to obtain an overall profile. Referring to fig. 5, merging the history profile and updating the profile to obtain the overall profile may include the following steps S510 to S520:
step S510, acquiring a history configuration file corresponding to an online resource package, and acquiring an update configuration file corresponding to a resource package to be updated;
in one example embodiment of the present disclosure, when a resource file is packaged, a configuration file (manifest file) corresponding to the resource package is generated. Specifically, the configuration file may represent the version of the application, the entry main class, the generation file, the dependency relationship, the operation authority, the title, the download address, and the like. For example, the configuration file may include a resource package, a resource file, and a dependency relationship between the resource package and the resource file. The user can search the information to be acquired through the configuration file.
In an example embodiment of the present disclosure, a history profile corresponding to an online resource package and an update profile corresponding to a resource package to be updated may be obtained. Specifically, when the online resource package is packaged, a corresponding history configuration file is also generated, and the history configuration file and the online resource package can be uploaded to the server together, so that the user can check conveniently. And when the resource file to be updated and the second online resource file are packaged according to the steps to obtain the resource package to be updated, generating an update configuration file corresponding to the resource package to be updated.
Step S520, merging the history configuration files and updating the configuration files to obtain an overall configuration file.
In one example embodiment of the present disclosure, the history profile and the update profile may be combined to obtain an overall profile. Specifically, when the online resource package is updated, the resource package to be updated can be uploaded to the server, and at this time, the update configuration file corresponding to the resource package to be updated needs to be integrated with the history configuration file, so that the user can correctly search the information of the updated project file according to the overall configuration file. It should be noted that, the present disclosure is not limited to a specific way to merge the history configuration file and update the configuration file to obtain the overall configuration file.
Through the steps S510 to S520, a history configuration file corresponding to the online resource package may be obtained, an update configuration file corresponding to the resource package to be updated may be obtained, and the history configuration file and the update configuration file may be combined to obtain an overall configuration file.
In an example embodiment of the present disclosure, an online configuration file corresponding to an update configuration file in a history configuration file may be deleted to obtain a configuration file to be updated, and the configuration file to be updated and the update configuration file may be combined to obtain an overall configuration file. Referring to fig. 6, the step of merging the configuration file to be updated with the update configuration file to obtain an overall configuration file may include the following steps S610 to S620:
Step S610, deleting the online configuration file corresponding to the updated configuration file in the history configuration file to obtain a configuration file to be updated;
in an example embodiment of the present disclosure, after the history configuration file is obtained, an online configuration file corresponding to an update configuration file in a server may be obtained, where the online configuration file is a configuration file corresponding to an online resource package that needs to be updated. The online configuration file can be deleted from the history configuration file to obtain a configuration file to be updated, wherein the configuration file to be updated is the configuration file from which the online configuration file to be updated is removed, and at the moment, the configuration file to be updated is incomplete and cannot be directly used by a user.
Step S620, merging the configuration file to be updated and the update configuration file to obtain an overall configuration file.
In one example embodiment of the present disclosure, after deleting the online configuration file from the history configuration file to obtain the configuration file to be updated, the configuration file to be updated and the update configuration file may be obtained as an overall configuration file. Specifically, the update configuration file may be supplemented into the configuration file to be updated to obtain an overall configuration file, so that the overall configuration file has all information of the overall project file, and at this time, the overall configuration file includes information in the resource package to be updated and information in other resource packages that are not updated.
Through the steps S610 to S620, the online configuration file corresponding to the update configuration file in the history configuration file may be deleted to obtain the configuration file to be updated, and the configuration file to be updated and the update configuration file may be combined to obtain the overall configuration file.
In one example embodiment of the present disclosure, the update progress of an online resource package in a project file may be monitored and project file path information regenerated according to the update progress. Referring to fig. 7, the project file path information is regenerated according to the update progress, and the steps S710 to S720 may be included as follows:
step S710, monitoring the update progress of the online resource packages in the project file;
in an example embodiment of the present disclosure, after the project file path information is generated, an update progress of an online resource package in the project file may be monitored, and when the update progress of the online resource package changes, it indicates that the content of the project file on the current line changes, that is, a developer updates the resource package of the project file. At this time, the project file path information that has been generated is not suitable for the current project file, and therefore, the project file path information can be regenerated according to the update progress of the online resource package;
Step S720, regenerating project file path information according to the update progress.
In one example embodiment of the present disclosure, after determining to generate a new update progress through the above steps, the project file path information may be regenerated according to the update progress. Specifically, when the project file path information is regenerated, the project file path information can be manually updated, namely, the project file path information is manually adjusted according to the content in the updating progress, so that the adjusted project file path information accords with the current project file; the update may be performed automatically, and the content in the update progress may be input to the project file path information generating software, and the project file path information may be regenerated by the project file path information generating software. The method for regenerating the project file path information is not particularly limited in this disclosure.
Through the steps S710 to S720, the update progress of the online resource packages in the project file can be monitored, and the project file path information can be regenerated according to the update progress.
In one example embodiment of the present disclosure, the deletion status of the online resource packages in the project file may be monitored, the addition status of the online resource packages in the project file may be monitored, and then the update progress of the project file may be determined according to the deletion status and/or the addition status. Referring to fig. 8, determining the update progress of the project file according to the deletion status and/or the addition status may include the following steps S810 to S830:
Step S810, monitoring the deleting state of an online resource packet in the project file;
step S820, monitoring the increasing state of the online resource packages in the project file;
in one example embodiment of the present disclosure, after the project file path information is generated, the deletion status of the online resource packages and the addition status of the online resource packages in the project file may be monitored. Specifically, the deletion state of the online resource package indicates that a developer performs a deletion operation on one or more resource packages in a current project, the addition state of the online resource package indicates that a developer performs a new addition operation on one or more resource packages in the current project, and both states indicate that the content in the project file has changed, at this time, the generated project file path information does not conform to the specific situation of the current project file, and the project file path information needs to be regenerated.
Step S830, determining the update progress of the project file according to the deletion status and/or the addition status.
In an example embodiment of the present disclosure, after the addition state or the deletion state of the online resource bundle in the project file is acquired through the above steps, the update progress of the project file may be determined according to the deletion state and/or the addition state. For example, when it is monitored that the online resource packet a is deleted and a new resource packet B is newly added, the update progress of the current project file may be determined according to the deletion operation of the online resource packet a and the new resource packet B, that is, the update progress of the project file includes two pieces of information: the online resource packet A is deleted, and the resource packet B is added. The present disclosure is not limited to a specific number of deleted states and added states.
Through the steps S810 to S830, the deletion state of the online resource packages in the project file may be monitored, the addition state of the online resource packages in the project file may be monitored, and then the update progress of the project file may be determined according to the deletion state and/or the addition state.
In one example embodiment of the present disclosure, a preconfigured local check packet may be obtained; the local verification package comprises a to-be-updated resource file and a local resource file corresponding to the second online resource file, and MD5 verification is carried out on the local verification package and the to-be-updated resource package uploaded to the server. Referring to fig. 9, performing MD5 verification on the local verification packet and the resource packet to be updated may include the following steps S910 to S920:
step S910, obtaining a pre-configured local check packet; the local verification package comprises a resource file to be updated and a local resource file corresponding to the second online resource file;
in one example embodiment of the present disclosure, a preconfigured local check packet may be obtained. Specifically, after the resource file to be updated and the local resource file corresponding to the one or more second online resource files are obtained through the steps, the resource file to be updated and the local resource file corresponding to the one or more second online resource files can be packaged into a local verification package, the local verification package is stored in a memory of the terminal device, and when the local verification package needs to be called, the local verification package can be called from the memory of the terminal device.
Step S920, MD5 verification is performed on the local verification packet and the resource packet to be updated uploaded to the server.
In an example embodiment of the present disclosure, after uploading the resource packet to be updated into the server, MD5 verification may be performed on the local verification packet and the resource packet to be updated. The MD5 (MD 5 Message-Digest Algorithm) is an information summarization Algorithm, which is a cryptographic hash function, and processes input information in 512-bit packets, each packet is divided into 16 32-bit sub-packets, after a series of processing, the output of the Algorithm is composed of four 32-bit packets, and after the four 32-bit packets are concatenated, a 128-bit hash value is generated, which can be used to ensure that the information transmission is completely consistent.
Specifically, after the resource package to be updated is uploaded, MD5 operation can be performed on the local check package and the resource package to be updated uploaded to the server to obtain MD5 check codes corresponding to the local check package and the update resource package, and then, whether the MD5 check codes of the local check package are the same as the MD5 check codes of the resource package to be updated uploaded to the server is compared, if so, the fact that no error occurs in the process of uploading the resource package to be updated to the server is indicated, and if not, the fact that the error occurs in the process of uploading the resource package to be updated to the server is indicated.
Through the steps S910 to S920, a pre-configured local check packet may be obtained; the local verification package comprises a to-be-updated resource file and a local resource file corresponding to the second online resource file, and MD5 verification is carried out on the local verification package and the to-be-updated resource package uploaded to the server.
In an example embodiment of the present disclosure, a resource file to be updated may be acquired first, then a resource to be updated is packaged through a packaging interface provided by Unity, a resource package to be updated is generated, the resource package to be updated is compared with all online resource packages, and the resource package with the difference is uploaded to a resource server. Referring to fig. 10, comparing the resource package to be updated with all the online resource packages, and uploading the resource package with the difference to the resource server may include the following steps S1010 to S1050:
step S1010, obtaining a resource file to be updated; step S1020, packaging the resources to be updated through a packaging interface provided by the Unity; step S1030, generating a resource package to be updated; step S1040, comparing the resource package to be updated with all the online resource packages; in step S1050, the resource package with the difference is uploaded to the resource server.
In an example embodiment of the present disclosure, path information of a project file may be requested to be initialized, path information may be generated manually, path information may be derived through Unity, or path information may be generated automatically, data may be derived through a void expanse Json, a Json file (specific content of the path information of the project file, for example, a resource file a, a resource file B, a resource file c are included in a resource packet a, a resource file d, a resource file e, a resource file f, etc.) may be generated, the Json file may be initialized (the Json configuration file may be converted into a memory) through void InitData (the Json configuration file may be converted into a memory), so that the Json file may be run in a memory, specifically, when the path information of the project file is specifically used, the path information of the project file may be initialized into a dictionary structure (key-value), that is (< string, string [ ]), the key word may be a character type, data running in the memory may be derived into a local path information file (i.e., exported as a Json file), may be obtained by a trace file, may be updated by a trace of the data (35) and a trace of the project file may be updated by a trace of the project file may be updated (the trace) and a trace may be updated by a trace of the project file may be updated (35) may be updated) and a trace may be updated by a trace of the trace may be updated with a trace of the trace may be updated by a trace of the trace may be updated to be updated by a trace of a trace may be updated, and then obtaining the resource list information corresponding to the online resource package (the local resource file corresponding to the resource file to be updated can be determined according to the resource list information) through the string [ ] export filebyasset (string [ ] download names), inputting the resource list information into a packaging interface provided by Unity, generating the resource package to be updated according to the resource list information, merging the history configuration file and the update configuration file to obtain an overall configuration file, and uploading the resource package to be updated to a resource server. Referring to fig. 11, another flowchart of resource packaging in the present disclosure may include the following steps S1101 to S1129:
Step S1101, request to initialize project file path information; step S1103, path information is generated manually, and project file path information is exported through Unity; step S1105, generating path information in an automatic mode; step S1107, exporting path information of the project file through ExpoJson; step S1109, generating a Json file; step S1111, initializing the Json file through InitData (converting the Json configuration file into a memory) so that the Json file can run in the memory, and exporting the data running in the memory into a local path information file (namely exporting the data into the Json file); step S1113, adding path information of the project file running in the memory through AddData; step S1115, removing path information of the project file running in the memory through RomeveData; step S1117, obtaining a resource file to be updated according to the record of the SVN; step S1119, inputting a resource file to be updated and project file path information, and acquiring an online resource package corresponding to the resource file to be updated through a Searchasset; step S1121, acquiring resource list information corresponding to an online resource package through an ExportFileByAsset; step S1123, inputting the resource list information into a packing interface provided by the Unity; step S1125, generating a resource package to be updated according to the resource list information; step S1127, merging the history configuration files and updating the configuration files to obtain an overall configuration file; step S1129, upload the resource package to be updated to the resource server.
Embodiments of the present disclosure. Only the files related to the update can be updated, and all project files do not need to be packaged, so that the packaging time is reduced. On the one hand, for a developer, the packing time can be greatly reduced, and the project file can be updated, so that the development period and the test period are shortened, the development cost is reduced, and the development efficiency is further improved. On the other hand, for the user, the updating period is reduced, so that new content in the application program can be experienced rapidly, and the use experience of the user is further improved.
It is noted that the above-described figures are merely schematic illustrations of processes involved in a method according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
In addition, in an exemplary embodiment of the present disclosure, a resource packaging apparatus is also provided. Referring to fig. 12, a resource packaging apparatus 1200 includes: the system comprises a path information acquisition module 1210, an online resource package acquisition module 1220, a local file determination module 1230 and a resource packaging module 1240.
The path information acquisition module is used for acquiring path information of the project file; the online resource package acquisition module is used for acquiring the resource file to be updated and acquiring an online resource package corresponding to the resource file to be updated according to the path information of the resource file to be updated and the project file; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file; the local file determining module is used for determining a local resource file corresponding to the second online resource file; and the resource packaging module is used for packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain a resource package to be updated.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, acquiring project file path information includes: acquiring an identification mark of the project file, and acquiring a file list corresponding to the project file according to the identification mark; project file path information is generated from the file list.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the identifying identifier includes an online resource file name, and obtaining, according to the identifying identifier, a file list corresponding to the project file includes: traversing a plurality of online resource packages in the project file, and acquiring online resource package names corresponding to the online resource files; when the name of the online resource packet accords with a preset format, determining the online resource packet as a target online resource packet; and determining a file list corresponding to the project file according to the resource packages on the multiple target lines.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, after packaging a resource file to be updated and a local resource file corresponding to a second online resource file to obtain a resource package to be updated, the method further includes: acquiring a history configuration file corresponding to an online resource package, and acquiring an update configuration file corresponding to a resource package to be updated; and merging the history configuration files and updating the configuration files to obtain an overall configuration file.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, merging the history profile and the local profile to obtain the overall profile includes: deleting an online configuration file corresponding to the updated configuration file in the history configuration file to obtain a configuration file to be updated; and merging the configuration file to be updated and the update configuration file to obtain an overall configuration file.
In one exemplary embodiment of the present disclosure, based on the foregoing scheme, the update progress of the online resource packages in the project file is monitored; and regenerating project file path information according to the update progress.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, monitoring an update progress of an online resource file in a project file includes: monitoring the deleting state of an online resource package in a project file; monitoring the increasing state of an online resource package in a project file; and determining the update progress of the project file according to the deletion state and/or the addition state.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, after packaging the resource file to be updated and the second online resource file to obtain the resource package to be updated, the method further includes: deleting the online resource package, and uploading the resource package to be updated to obtain the updated resource package.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, a preconfigured local check packet is obtained; the local verification package comprises a resource file to be updated and a local resource file corresponding to the second online resource file; and carrying out MD5 verification on the local verification packet and the resource packet to be updated uploaded to the server.
Since each functional module of the resource packaging device of the exemplary embodiment of the present disclosure corresponds to a step of the exemplary embodiment of the resource packaging method described above, for details not disclosed in the embodiment of the device of the present disclosure, please refer to the embodiment of the resource packaging method described above in the present disclosure.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, in the exemplary embodiment of the present disclosure, an electronic device capable of implementing the above-described resource packaging method is also provided.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 1300 according to such an embodiment of the present disclosure is described below with reference to fig. 13. The electronic device 1300 shown in fig. 13 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 13, the electronic device 1300 is embodied in the form of a general purpose computing device. The components of the electronic device 1300 may include, but are not limited to: the at least one processing unit 1310, the at least one memory unit 1320, a bus 1330 connecting the different system components (including the memory unit 1320 and the processing unit 1310), and a display unit 1340.
Wherein the storage unit stores program code that is executable by the processing unit 1310 such that the processing unit 1310 performs steps according to various exemplary embodiments of the present disclosure described in the above section of the "exemplary method" of the present specification. For example, the processing unit 1310 may perform step S210 as shown in fig. 2, acquiring project file path information; step S220, obtaining a resource file to be updated, and obtaining an online resource package corresponding to the resource file to be updated according to the resource file to be updated and the project file path information; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file; step S230, determining a local resource file corresponding to the second online resource file; step S240, packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain the resource package to be updated.
As another example, the electronic device may implement the various steps shown in fig. 2.
The storage unit 1320 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 1321 and/or cache memory 1322, and may further include Read Only Memory (ROM) 1323.
The storage unit 1320 may also include a program/utility 1324 having a set (at least one) of program modules 1325, such program modules 1325 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 1330 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 1300 may also communicate with one or more external devices 1370 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1300, and/or any device (e.g., router, modem, etc.) that enables the electronic device 1300 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1350. Also, the electronic device 1300 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, for example, the Internet, through a network adapter 1360. As shown, the network adapter 1360 communicates with other modules of the electronic device 1300 over the bus 1330. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 1300, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims (10)
1. A method of packaging resources, the method comprising:
acquiring an identification mark of a project file, acquiring a file list corresponding to the project file according to the identification mark, and generating project file path information according to the file list, wherein the project file path information comprises a storage structure of each online resource file in the project file, and the identification mark comprises at least one of the following: the specific format, specific name and specific content of the project file;
Acquiring a resource file to be updated, and acquiring an online resource package corresponding to the resource file to be updated according to the storage structure of the resource file to be updated and the online resource files in the project file path information; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file;
determining a local resource file corresponding to the second online resource file;
and packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain a resource package to be updated.
2. The method according to claim 1, wherein the identification mark includes an online resource file name, and the obtaining the file list corresponding to the project file according to the identification mark includes:
traversing a plurality of online resource packages in the project file, and acquiring online resource package names corresponding to the online resource packages;
when the online resource packet name accords with a preset format, determining the online resource packet as a target online resource packet;
And determining a file list corresponding to the project file according to the target online resource package.
3. The method of claim 1, wherein after the packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain the resource package to be updated, the method further comprises:
acquiring a history configuration file corresponding to the online resource package, and acquiring an update configuration file corresponding to the resource package to be updated;
and merging the history configuration files and updating the configuration files to obtain an overall configuration file.
4. The method of claim 3, wherein the merging the history profile and the local profile to obtain the overall profile comprises:
deleting an online configuration file corresponding to the updated configuration file in the history configuration file to obtain a configuration file to be updated;
and merging the configuration file to be updated and the update configuration file to obtain an overall configuration file.
5. The method according to claim 1, wherein the method further comprises:
monitoring the update progress of an online resource package in the project file;
and regenerating the project file path information according to the updating progress.
6. The method of claim 5, wherein monitoring the progress of updating the online resource file in the project file comprises:
monitoring the deleting state of an online resource package in the project file;
monitoring the increasing state of an online resource package in the project file;
and determining the update progress of the project file according to the deletion state and/or the addition state.
7. The method according to claim 1, wherein the method further comprises:
acquiring a pre-configured local verification packet; the local verification package comprises the resource file to be updated and a local resource file corresponding to the second online resource file;
and carrying out MD5 verification on the local verification packet and the resource packet to be updated uploaded to the server.
8. A resource packaging apparatus, comprising:
the path information acquisition module is used for acquiring identification marks of the project files, obtaining file lists corresponding to the project files according to the identification marks, and generating project file path information according to the file lists, wherein the project file path information comprises storage structures of online resource files in the project files, and the identification marks comprise at least one of the following: the specific format, specific name and specific content of the project file;
The online resource package acquisition module is used for acquiring a resource file to be updated and acquiring an online resource package corresponding to the resource file to be updated according to the storage structure of the resource file to be updated and the online resource files in the project file path information; the resource package comprises a first online resource file corresponding to a resource file to be updated and a second online resource file except the first online resource file, wherein the resource file to be updated is used for carrying out iterative updating on the first online resource file;
the local file determining module is used for determining a local resource file corresponding to the second online resource file;
and the resource packaging module is used for packaging the resource file to be updated and the local resource file corresponding to the second online resource file to obtain a resource package to be updated.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-7.
10. An electronic device, comprising:
a processor; and
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110382172.XA CN112925559B (en) | 2021-04-09 | 2021-04-09 | Resource packaging method, device, medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110382172.XA CN112925559B (en) | 2021-04-09 | 2021-04-09 | Resource packaging method, device, medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112925559A CN112925559A (en) | 2021-06-08 |
CN112925559B true CN112925559B (en) | 2023-10-20 |
Family
ID=76173848
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110382172.XA Active CN112925559B (en) | 2021-04-09 | 2021-04-09 | Resource packaging method, device, medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112925559B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114385143A (en) * | 2021-12-30 | 2022-04-22 | 上海米哈游璃月科技有限公司 | Resource file packaging method, device, electronic device and storage medium |
CN114398063B (en) * | 2022-01-19 | 2025-08-19 | 平安国际智慧城市科技股份有限公司 | Method, device, equipment and storage medium for packaging update data |
CN114640585B (en) * | 2022-04-25 | 2024-01-30 | 中国工商银行股份有限公司 | Resource updating method and device, electronic equipment and storage medium |
CN114840478A (en) * | 2022-07-05 | 2022-08-02 | 山东捷瑞数字科技股份有限公司 | Resource packet export optimization processing method based on three-dimensional engine |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7194728B1 (en) * | 2002-11-18 | 2007-03-20 | Bmc Software, Inc. | System and method for packaging updates |
CN102073633A (en) * | 2009-11-23 | 2011-05-25 | 腾讯科技(深圳)有限公司 | Method and device for storing and accessing resource file |
CN105224323A (en) * | 2015-09-29 | 2016-01-06 | 北京畅游天下网络技术有限公司 | A kind of resource packaging method of tree-dimensional animation engine and device |
WO2017028733A1 (en) * | 2015-08-20 | 2017-02-23 | 广州爱九游信息技术有限公司 | Software installation package packaging method, device and system and machine-readable storage medium |
CN107402788A (en) * | 2017-07-25 | 2017-11-28 | 网易(杭州)网络有限公司 | Resource packing management method and device |
CN107577469A (en) * | 2017-08-21 | 2018-01-12 | 厦门悦讯教育科技有限公司 | A kind of Software package method for release management |
CN108509209A (en) * | 2018-04-08 | 2018-09-07 | 平安普惠企业管理有限公司 | A kind of generation method, device, computer equipment and the storage medium of resource packet |
CN109032631A (en) * | 2018-07-12 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Application program service packs acquisition methods, device, computer equipment and storage medium |
CN109656614A (en) * | 2018-12-24 | 2019-04-19 | 中国银行股份有限公司 | The processing method of file, apparatus and system |
CN109947438A (en) * | 2018-12-28 | 2019-06-28 | 广州卓动信息科技有限公司 | Game installation method and electronic equipment, readable storage medium storing program for executing based on machine learning |
CN110232026A (en) * | 2019-06-12 | 2019-09-13 | 苏州亿歌网络科技有限公司 | AssetBundle resource detection method and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8255554B2 (en) * | 2009-05-14 | 2012-08-28 | International Business Machines Corporation | Application resource model composition from constituent components |
CN104714819B (en) * | 2013-12-16 | 2019-11-15 | 中兴通讯股份有限公司 | File system upgrade package production method, upgrade method and device, terminal |
EP3764224B1 (en) * | 2018-03-27 | 2023-08-30 | Huawei Technologies Co., Ltd. | Resource permission processing method and apparatus, and storage medium and chip |
-
2021
- 2021-04-09 CN CN202110382172.XA patent/CN112925559B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7194728B1 (en) * | 2002-11-18 | 2007-03-20 | Bmc Software, Inc. | System and method for packaging updates |
CN102073633A (en) * | 2009-11-23 | 2011-05-25 | 腾讯科技(深圳)有限公司 | Method and device for storing and accessing resource file |
WO2017028733A1 (en) * | 2015-08-20 | 2017-02-23 | 广州爱九游信息技术有限公司 | Software installation package packaging method, device and system and machine-readable storage medium |
CN105224323A (en) * | 2015-09-29 | 2016-01-06 | 北京畅游天下网络技术有限公司 | A kind of resource packaging method of tree-dimensional animation engine and device |
CN107402788A (en) * | 2017-07-25 | 2017-11-28 | 网易(杭州)网络有限公司 | Resource packing management method and device |
CN107577469A (en) * | 2017-08-21 | 2018-01-12 | 厦门悦讯教育科技有限公司 | A kind of Software package method for release management |
CN108509209A (en) * | 2018-04-08 | 2018-09-07 | 平安普惠企业管理有限公司 | A kind of generation method, device, computer equipment and the storage medium of resource packet |
CN109032631A (en) * | 2018-07-12 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Application program service packs acquisition methods, device, computer equipment and storage medium |
CN109656614A (en) * | 2018-12-24 | 2019-04-19 | 中国银行股份有限公司 | The processing method of file, apparatus and system |
CN109947438A (en) * | 2018-12-28 | 2019-06-28 | 广州卓动信息科技有限公司 | Game installation method and electronic equipment, readable storage medium storing program for executing based on machine learning |
CN110232026A (en) * | 2019-06-12 | 2019-09-13 | 苏州亿歌网络科技有限公司 | AssetBundle resource detection method and system |
Also Published As
Publication number | Publication date |
---|---|
CN112925559A (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112925559B (en) | Resource packaging method, device, medium and electronic equipment | |
Zhang et al. | Automated root causing of cloud incidents using in-context learning with GPT-4 | |
EP3438813B1 (en) | Component management platform | |
US20180024848A1 (en) | Translatable Texts Identification in In-Context Localization Utilizing Pseudo-Language and an External Server | |
CN112395253B (en) | Index file generation method, terminal device, electronic device and medium | |
CN110858172A (en) | A kind of automatic test code generation method and device | |
CN113778897B (en) | Automatic test method, device and equipment for interface and storage medium | |
CN112084006B (en) | Mirror image package processing method and device and electronic equipment | |
CN112306884A (en) | Program test control and execution method and corresponding device, equipment and medium | |
CN117112060A (en) | Component library construction method, device, electronic equipment and storage medium | |
CN112612850A (en) | Data synchronization method and device | |
JP7185982B2 (en) | Job management in data processing systems | |
CN113590172A (en) | Code file publishing method, device, equipment and storage medium | |
WO2024001240A1 (en) | Task integration method and apparatus for multiple technology stacks | |
US10685287B2 (en) | Computing with iterative knowledge management mechanism and method of operation thereof | |
CN113254340B (en) | A method and device for generating test cases | |
CN113761419B (en) | Topology information display method and device, electronic equipment and storage medium | |
CN113849186A (en) | Script file processing method and device, storage medium and electronic equipment | |
CN118331888A (en) | Interface testing method and related equipment | |
US20230153081A1 (en) | Methods and systems for correlating source code commitments and model result records during model development | |
CN112532747B (en) | Method, apparatus, device and storage medium for outputting information | |
CN117591245B (en) | Automatic deployment method and device for Galaxy kylin server migration operation and maintenance management platform | |
CN119248239B (en) | Code generation method, device, equipment and medium | |
US12184506B2 (en) | Dynamic creation of schema framework for inventory management | |
CN111399841B (en) | Code processing method and device based on blockchain, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |