CN114090502A - Resource management method, device, equipment and storage medium - Google Patents

Resource management method, device, equipment and storage medium Download PDF

Info

Publication number
CN114090502A
CN114090502A CN202111212941.8A CN202111212941A CN114090502A CN 114090502 A CN114090502 A CN 114090502A CN 202111212941 A CN202111212941 A CN 202111212941A CN 114090502 A CN114090502 A CN 114090502A
Authority
CN
China
Prior art keywords
resource
cache
project
unique
description file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111212941.8A
Other languages
Chinese (zh)
Inventor
徐波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Guangzhou Duoyi Network Co ltd
Duoyi Network Co ltd
Original Assignee
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Guangzhou Duoyi Network Co ltd
Duoyi Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD, Guangzhou Duoyi Network Co ltd, Duoyi Network Co ltd filed Critical GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Priority to CN202111212941.8A priority Critical patent/CN114090502A/en
Publication of CN114090502A publication Critical patent/CN114090502A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of Internet, and discloses a resource management method, a device, equipment and a storage medium, wherein the method comprises the following steps: step S1: acquiring environment information of a project, wherein the environment information comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID; step S2: loading the first resource according to the description file; step S3: and establishing a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource. The resource management method, the device, the equipment and the storage medium provided by the invention can clarify the dependency relationship of the resources and facilitate the resource management.

Description

Resource management method, device, equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a resource management method, device, apparatus, and storage medium.
Background
At present, different from other software systems, almost all game software needs to use a large amount of picture, video and audio resources. Game developers often need to do some processing of these resources, whether for game performance considerations or official platform requirements.
The most used resources in the game are picture resources, and for the resources of this type, the resources are generally converted into different formats according to different target platforms, such as DXT format on Windows platform, ETC format on Android platform, and PVRTC format on IOS platform. However, since the conversion of such a format degrades the picture quality, the original resource format RGBA32 is still maintained in some cases where high picture quality is required.
The simplest way to control these differences is to provide a black and white list tool in the tool, and store the resource paths that need to be reserved in the RGBA32 format in a list; the improved scheme is that the tool automatically identifies some specific directories, such as reserving the original format for the resources in the user interface directory and converting the resources under the special effect directory.
These methods are coupled with the file name or the path of the file, and once the resource file is replaced, the resource file is renamed or a tool is replaced, the information needs to be updated.
However, since the developer cannot accurately obtain the dependency relationship between the resources, the entire resource directory needs to be migrated for modifying only one resource, and when iterating a large-scale data piece, the whole iteration of the resource is encountered, and a conservative deletion mode is adopted because it cannot be determined whether the old resource is still used, so that the game bag body is rapidly expanded.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is as follows: a resource management method, device, equipment and storage medium are provided, which can clarify the dependency relationship of resources and facilitate the resource management.
In order to solve the foregoing technical problem, in a first aspect, an embodiment of the present invention provides a resource management method applied to a server, where the method includes:
step S1: acquiring environment information of a project, wherein the environment information comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
step S2: loading the first resource according to the description file;
step S3: and establishing a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource.
As a preferred solution, the resource description file includes:
a first field for marking a version number of the resource description file;
a second field for marking a unique ID of the first resource;
a third field to mark a type enumeration of the first resource;
a fourth field for marking a unique ID of the second resource;
a fifth field to mark an output setting of the first resource.
As a preferred solution, the resource description file is renamed along with the renaming of the first resource; the resource description file moves as the first resource moves.
As a preferred scheme, the environment information further includes:
a cache path for storing a result of the first resource that has been computed by the server;
a setting path for storing user settings;
and the output path is used for storing the output position of the first resource.
As a preferable aspect, the method further includes:
step S4: and performing cache check on the first resource, updating the cache time of the first resource when the cache of the first resource is not expired, and re-executing the steps S2 and S3 on the first resource when the cache of the first resource is expired.
As a preferable scheme, the step S4 specifically includes:
s41: comparing the cache modification time of the first resource with the actual modification time of the first resource;
s42: comparing the cache digest of the first resource with the actual digest of the first resource when the cache modification time is the same as the actual modification time; when the cache abstract is the same as the actual abstract, judging that the cache of the first resource is not expired, and updating the cache time of the first resource;
s43: otherwise, determining that the first resource cache is expired, and re-executing step S2 and step S3 on the first resource.
In order to solve the foregoing technical problem, in a second aspect, an embodiment of the present invention provides a resource management method, where the method includes:
the method comprises the steps that a server side obtains environment information of a project, wherein the environment information comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
the server loads the first resource according to the description file;
the server establishes a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource;
the client selects the target platform constructed this time;
the client selects the target project constructed this time;
the client sends a construction instruction to the server;
and the server side sends the dependency relationship tree of the first resource of the target project to the client side according to the construction instruction.
In order to solve the foregoing technical problem, a third aspect of the present invention provides a resource management apparatus, where the apparatus includes:
the system comprises an information acquisition module, a resource management module and a resource management module, wherein the information acquisition module is used for acquiring environment information of a project, the environment information of the project comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
the resource loading module is used for loading the first resource by the description file;
and the relationship establishing module is used for establishing a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource.
In order to solve the technical problem described above, in a fourth aspect, an embodiment of the present invention provides a resource management device, which includes a memory, a processor, and a computer program stored in the memory and configured to be executed by the processor, and when the computer program is executed, the resource management device implements the resource management method according to any one of the first aspect.
In order to solve the above technical problem, in a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed, implements the resource management method according to any one of the first aspect.
Compared with the prior art, the resource management method, the resource management device, the resource management equipment and the storage medium provided by the embodiment of the invention have the beneficial effects that: each resource has a globally unique ID, and the same ID can be used for marking the same resource no matter where the resource is stored in any form; after the dependency relationship trees of all resources are calculated, the dependency chain of any resource can be calculated by using a recursive algorithm; the description file in the text format is easier to trace, so that the resource management is facilitated, and the threshold of the resource management is reduced.
Drawings
In order to more clearly illustrate the technical features of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is apparent that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on the drawings without inventive labor.
FIG. 1 is a flow chart illustrating a preferred embodiment of a resource management method provided by the present invention;
FIG. 2 is a diagram of a preferred embodiment of a resource description file provided by the present invention;
FIG. 3 is a schematic structural diagram of a preferred embodiment of a resource management apparatus provided in the present invention;
fig. 4 is a schematic structural diagram of a preferred embodiment of a resource management device provided in the present invention.
Detailed Description
In order to clearly understand the technical features, objects and effects of the present invention, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings and examples. The following examples are intended to illustrate the invention, but are not intended to limit the scope of the invention. Other embodiments, which can be derived by those skilled in the art from the embodiments of the present invention without inventive step, shall fall within the scope of the present invention.
In the description of the present invention, it should be understood that the numbers themselves, such as "first", "second", etc., are used only for distinguishing the described objects, do not have a sequential or technical meaning, and cannot be understood as defining or implying the importance of the described objects.
Fig. 1 is a schematic flowchart illustrating a resource management method according to a preferred embodiment of the present invention, where the method is applied to a server.
As shown in fig. 1, the method includes:
step S1: acquiring environment information of a project, wherein the environment information comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
step S2: loading the first resource according to the description file;
step S3: and establishing a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource.
The service end is mainly responsible for managing the creation, deletion, analysis, loading, modification and execution of resources and resource description files, the service process is a long-term survival process, the process can avoid the consumption that a developer needs to load the whole resource environment before modifying or executing the resource operation each time, and a directory structure, background tasks or other intermediate calculation results of the resources can be cached.
The file name of the resource description file is the same as the file name of the first resource, and the extension name is hooked with the file type of the first resource.
Each of the first resources in the method has a globally unique ID, and the same ID can be used to mark the same resource regardless of the form in which it is stored. As an example, in the art design tool, it is necessary to edit the picture a, store it into a PNG format file, deliver the picture a to the game development environment, store it into a picture a ', perform texture compression through a continuous delivery platform, package it into a game installation package to become a texture a ", and finally load it into a'" when a player runs. In the whole data stream, the storage positions of the same picture A at different stages are different in the used formats, and the unique ID can prevent the user from being influenced by the change of a directory structure and a file type in the development and debugging processes.
When the method is concretely implemented, a server side firstly obtains environment information of a project, further obtains a first resource used by the project and a description file of the first resource from the environment information, secondly loads the first resource according to the description file, deserializes the resource description file of the first resource into a memory, takes a unique ID as a key, wherein a deserialized data structure is a value resume mapping table, and finally establishes a dependency relationship tree according to the loaded unique ID of the first resource and the unique ID of a second resource quoted by the first resource.
In the resource management method provided by the embodiment, a globally unique ID is determined for each resource, and the same ID can be used to mark the same resource no matter where the resource is stored in any form; after the dependency relationship trees of all resources are calculated, the dependency chain of any resource can be calculated by using a recursive algorithm; after the dependency relationship of the resources is calculated, the whole resource directory does not need to be migrated any more when a certain resource is modified, and the management of the resources is facilitated.
In a preferred embodiment, as shown in fig. 2, the resource description file includes:
a first field for marking a version number of the resource description file;
a second field for marking a unique ID of the first resource;
a third field to mark a type enumeration of the first resource;
a fourth field for marking a unique ID of the second resource;
a fifth field to mark an output setting of the first resource.
Specifically, the resource description file may describe various types of resources such as videos, pictures, audios, composite resources, compressed documents, and the like, the text content of the resource description is as shown in fig. 2, for convenience of understanding, an album resource is taken as an example, and the following contents are present in the resource description file of the album, but not only:
a first field for marking a field of the version number of said resource description file, which follows the semantic version number specification, as in line 2 of fig. 2;
a second field for marking the field of the unique ID of the resource, which is typically a universally unique identifier UUID, as shown in line 3 of fig. 2;
a third field, which is used for marking a field for resource type enumeration, and is in an Atlas format in this embodiment, that is, the enumeration value is Atlas representing an Atlas, as shown in line 4 in fig. 2;
a fourth field for marking the field of other resources referenced by the resource, which is usually an array storing UUIDs of other resources, as shown in fig. 2, lines 5-10;
a fifth field for marking resource output settings, which is typically a nested data structure, where independent output parameters may be set according to different output target platforms, including but not limited to Windows, iOS and Android, and the output parameters may be, but not limited to, whether to use ALPHA pre-multiply and texture compression formats, such as line 11 to the end in fig. 2.
After the resource description file is clarified, the server side starts and executes subsequent operations.
The resource description file comprises a part for how to process the resource, and compared with a mode of directly obtaining a binary format calculation result and then submitting the binary format calculation result to the version control system, the resource description file saves the disk space and enables the resource description file in the text format to be easier to trace back in the version control system.
The resources are managed in a resource description mode, and the current working mode of processing the resources in place can be replaced. For example, on the Win32 platform, the operation efficiency of the game is greatly improved by using the texture in the DXT format, in the past, a developer needs to manually convert a PNG picture into the texture in the DXT format and upload the converted texture to a version control system, and if multiple platforms such as iOS and Android are to be supported, three times of repeated operations need to be executed. However, after the resource description mode is adopted, a developer only needs to change the resource description file, namely, the final format of the picture can be controlled, the resource body does not need to be directly modified each time, and the submitted data volume is greatly reduced.
In a preferred embodiment, the environment information further includes:
a cache path for storing a result of the first resource that has been computed by the server;
a setting path for storing user settings;
and the output path is used for storing the output position of the first resource.
Specifically, an index table is generally stored in the cache path, and a mapping relationship of "resource → cache tag, cache location" is established for each cached resource in the index table; the setting path stores general settings of the system and personalized settings of the user; and the output path is configured with a position to which the resource needs to be output after the resource construction is finished under the default condition.
In a preferred embodiment, the resource description file is renamed with the renaming of the first resource; the resource description file moves as the first resource moves.
In this embodiment, the resource description file is set to rename along with renaming of the first resource and move along with movement of the first resource, and settings for different resources can be saved without using a hard code or a black and white list.
In a preferred embodiment, the method further comprises:
step S4: and performing cache check on the first resource, updating the cache time of the first resource when the cache of the first resource is not expired, and re-executing the steps S2 and S3 on the first resource when the cache of the first resource is expired.
In this embodiment, a cache check process is added to the first resource, the file of the first resource is monitored, and when the cache expires, the file is reloaded, so that the real-time accuracy of the resource can be ensured.
In a preferred embodiment, the step S4 specifically includes:
s41: comparing the cache modification time of the first resource with the actual modification time of the first resource;
s42: comparing the cache digest of the first resource with the actual digest of the first resource when the cache modification time is the same as the actual modification time; when the cache abstract is the same as the actual abstract, judging that the cache of the first resource is not expired, and updating the cache time of the first resource;
s43: otherwise, determining that the first resource cache is expired, and re-executing step S2 and step S3 on the first resource.
Specifically, the present embodiment uses a pair of cache tags to indicate the cache status of any resource, each pair of cache tags includes a modification timestamp and a series of file digests, and the timestamp and the digests are used to speed up the cache check.
Further, for any resource, whether the cache is expired can be determined through a group of resource tags, wherein the group of resource tags includes the cache tag of the resource body and the cache tags of all descendant resources depended by the resource body.
It should be understood that all or part of the processes of the resource management method described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the resource management method when executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Fig. 3 is a schematic structural diagram of a preferred embodiment of a resource management apparatus according to the present invention, where the apparatus is applied to implement all processes of the resource management method according to any of the above embodiments.
As shown in fig. 3, the apparatus includes:
the information obtaining module 31 is configured to obtain environment information of a project, where the environment information of the project includes a path where a resource is located, the path where the resource is located is used to store a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
a resource loading module 32, configured to load the description file on the first resource;
the relationship establishing module 33 is configured to establish a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the unique ID of the second resource, where the second resource is a resource referred by the first resource.
Specifically, the information obtaining module 31 first obtains environment information of an item, and further obtains a first resource used by the item and a description file of the first resource from the environment information, then the resource loading module 32 loads the first resource according to the description file, deserializes the resource description file of the first resource into a memory, takes a unique ID as a key, where a deserialized data structure is a value resume mapping table, and finally the relationship establishing module 33 establishes a dependency relationship tree according to the loaded unique ID of the first resource and the unique ID of the second resource referred by the first resource.
In the resource management method provided by the embodiment, a globally unique ID is determined for each resource, and the same ID can be used to mark the same resource no matter where the resource is stored in any form; after the dependency relationship trees of all resources are calculated, the dependency chain of any resource can be calculated by using a recursive algorithm; after the dependency relationship of the resources is calculated, the whole resource directory does not need to be migrated any more when a certain resource is modified, and the management of the resources is facilitated.
Preferably, the resource description file includes:
a first field for marking a version number of the resource description file;
a second field for marking a unique ID of the first resource;
a third field to mark a type enumeration of the first resource;
a fourth field for marking a unique ID of the second resource;
a fifth field to mark an output setting of the first resource.
Preferably, the environment information further includes:
a cache path for storing a result of the first resource that has been computed by the server;
a setting path for storing user settings;
and the output path is used for storing the output position of the first resource.
Preferably, the resource description file is renamed with renaming of the first resource; the resource description file moves as the first resource moves.
Preferably, the apparatus further comprises:
the cache check module 34: the cache checking module is used for performing cache checking on the first resource, updating the cache time of the first resource when the cache of the first resource is not expired, and reloading the first resource when the cache of the first resource is expired.
Preferably, the cache checking module 34 specifically includes:
a time checking unit 341, configured to compare the cache modification time of the first resource with the actual modification time of the first resource;
a summary checking unit 342, configured to compare the cached summary of the first resource with the actual summary of the first resource when the cached modification time is the same as the actual modification time; when the cache abstract is the same as the actual abstract, judging that the cache of the first resource is not expired, and updating the cache time of the first resource;
a reloading unit 343, configured to determine that the first resource cache is expired, and reload the first resource.
Fig. 4 is a schematic structural diagram of a preferred embodiment of a resource management device according to the present invention, where the device is capable of implementing all processes of the resource management method according to any of the above embodiments.
As shown in fig. 4, the apparatus includes a memory 41, a processor 42; wherein the memory 41 stores therein a computer program configured to be executed by the processor 42, and when executed by the processor 42, to implement the resource management method according to any of the above embodiments.
The resource management equipment provided by the embodiment of the invention can simply and conveniently manage the resources.
Illustratively, the computer program may be divided into one or more modules/units, which are stored in the memory 41 and executed by the processor 42 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the resource management device.
The Processor 42 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be used for storing the computer programs and/or modules, and the processor 42 implements various functions of the resource management device by running or executing the computer programs and/or modules stored in the memory 41 and calling data stored in the memory 41. The memory 41 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
It should be noted that the resource management device includes, but is not limited to, a processor and a memory, and those skilled in the art will understand that the structural diagram of fig. 4 is only an example of the resource management device, and does not constitute a limitation of the resource management device, and may include more components than those shown in the drawing, or combine some components, or different components.
In order to better explain the implementation process of the present invention, the operation process of the client side is now added into the resource management method, and then the resource management method includes:
step S1: the method comprises the steps that a server side obtains environment information of a project, wherein the environment information comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
step S2: the server loads the first resource according to the description file;
step S3: the server establishes a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource;
step X1: the client selects the target platform constructed this time;
step X2: the client selects the target project constructed this time;
step X3: the client sends a construction instruction to the server;
step S4: and the server side sends the dependency relationship tree of the first resource of the target project to the client side according to the construction instruction.
The client is connected with the server through a user interface; the user interface includes, but is not limited to, the following user interfaces:
the user interface integrated in the context menu of the Windows resource manager is accessed by using a Windows shell extension mode, and can provide simple quick functions of replacement presetting, one-key construction and the like;
a Graphical User Interface (GUI) for developer routine maintenance use, capable of providing rich resource editing capabilities;
command Line Interface (CLI) for use in a persistent integration environment, does not have a graphical Interface, but provides the ability to batch process resources.
The above description is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and it should be noted that, for those skilled in the art, several equivalent obvious modifications and/or equivalent substitutions can be made without departing from the technical principle of the present invention, and these obvious modifications and/or equivalent substitutions should also be regarded as the scope of the present invention.

Claims (10)

1. A resource management method is applied to a server side, and the method comprises the following steps:
step S1: acquiring environment information of a project, wherein the environment information comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
step S2: loading the first resource according to the description file;
step S3: and establishing a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource.
2. The method of claim 1, wherein the resource description file comprises:
a first field for marking a version number of the resource description file;
a second field for marking a unique ID of the first resource;
a third field to mark a type enumeration of the first resource;
a fourth field for marking a unique ID of the second resource;
a fifth field to mark an output setting of the first resource.
3. The method of claim 1, wherein the resource description file is renamed with renaming of the first resource; the resource description file moves as the first resource moves.
4. The method of claim 1, wherein the context information further comprises:
a cache path for storing a result of the first resource that has been computed by the server;
a setting path for storing user settings;
and the output path is used for storing the output position of the first resource.
5. The method of claim 1, further comprising:
step S4: and performing cache check on the first resource, updating the cache time of the first resource when the cache of the first resource is not expired, and re-executing the steps S2 and S3 on the first resource when the cache of the first resource is expired.
6. The method according to claim 5, wherein the step S4 specifically includes:
s41: comparing the cache modification time of the first resource with the actual modification time of the first resource;
s42: comparing the cache digest of the first resource with the actual digest of the first resource when the cache modification time is the same as the actual modification time; when the cache abstract is the same as the actual abstract, judging that the cache of the first resource is not expired, and updating the cache time of the first resource;
s43: otherwise, determining that the first resource cache is expired, and re-executing step S2 and step S3 on the first resource.
7. A method for resource management, the method comprising:
the method comprises the steps that a server side obtains environment information of a project, wherein the environment information comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
the server loads the first resource according to the description file;
the server establishes a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource;
the client selects the target platform constructed this time;
the client selects the target project constructed this time;
the client sends a construction instruction to the server;
and the server side sends the dependency relationship tree of the first resource of the target project to the client side according to the construction instruction.
8. An apparatus for resource management, applied to a server, the apparatus comprising:
the system comprises an information acquisition module, a resource management module and a resource management module, wherein the information acquisition module is used for acquiring environment information of a project, the environment information of the project comprises a path where a resource is located, the path where the resource is located is used for storing a first resource used by the project and a resource description file of the first resource, the first resource is any one resource in the project, and the first resource has a unique ID;
the resource loading module is used for loading the first resource by the description file;
and the relationship establishing module is used for establishing a dependency relationship tree of the first resource according to the loaded unique ID of the first resource and the loaded unique ID of a second resource, wherein the second resource is a resource referred by the first resource.
9. An apparatus for resource management, the apparatus comprising a memory, a processor, and a computer program stored in the memory and configured to be executed by the processor, the computer program when executed implementing a method for resource management as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, in which a computer program is stored, which, when executed, implements the resource management method of any one of claims 1 to 6.
CN202111212941.8A 2021-10-18 2021-10-18 Resource management method, device, equipment and storage medium Pending CN114090502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111212941.8A CN114090502A (en) 2021-10-18 2021-10-18 Resource management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111212941.8A CN114090502A (en) 2021-10-18 2021-10-18 Resource management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114090502A true CN114090502A (en) 2022-02-25

Family

ID=80297143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111212941.8A Pending CN114090502A (en) 2021-10-18 2021-10-18 Resource management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114090502A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117919724A (en) * 2024-03-22 2024-04-26 深圳市迷你玩科技有限公司 Game resource management method and device, electronic equipment and readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117919724A (en) * 2024-03-22 2024-04-26 深圳市迷你玩科技有限公司 Game resource management method and device, electronic equipment and readable medium

Similar Documents

Publication Publication Date Title
US7243346B1 (en) Customized library management system
CN109032662B (en) Code file generation method and device, computer equipment and storage medium
US7606836B2 (en) Methods for efficient data version verification
CN112765023B (en) Test case generation method and device
CN113296786B (en) Data processing method, device, electronic equipment and storage medium
CN108920691B (en) Front-end static resource management method and device, computer equipment and storage medium
CN112256318B (en) Construction method and equipment for dependent product
WO2019148657A1 (en) Method for testing associated environments, electronic device and computer readable storage medium
CN112068874A (en) Software project continuous integration method and device, terminal equipment and storage medium
CN111562929A (en) Method, device and equipment for generating patch file and storage medium
CN114090502A (en) Resource management method, device, equipment and storage medium
CN111796855A (en) Incremental version updating method and device, storage medium and computer equipment
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN110941471A (en) Method and device for internationalizing basic data of software system
CN113791809B (en) Application exception handling method and device and computer readable storage medium
US7389515B1 (en) Application deflation system and method
CN111858018B (en) Cgroup configuration method and device, computer equipment and storage medium
US20230289178A1 (en) Image configuration method, device and system, and storage medium
CN109634636B (en) Application processing method, device, equipment and medium
CN113504904A (en) User-defined function implementation method and device, computer equipment and storage medium
CN109241515B (en) Method and device for generating report file
CN108376104B (en) Node scheduling method and device and computer readable storage medium
CN106681914B (en) Television picture quality debugging method and device
CN113535221A (en) Method and device for managing application version
CN111737964A (en) Form dynamic processing method, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination