Resource hot update method and device
By loading the initial update resource scenario and custom resource configuration list, the on-demand loading of resource packages is achieved, solving the problem of time-consuming download of hot resource updates in the existing technology, and improving user experience and application update efficiency.
Patent Information
- Application Number
- CN202411211219.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-24
AI Technical Summary
The existing resource thermal update technology takes a long time to download all resources at once, resulting in the problem of users waiting for too long.
By loading initial update resource scenarios, dependency resources, and custom resource configuration lists, generate resource package information, group management policies and version information, and load resource files on demand or batches to avoid waiting time and traffic consumption caused by large-scale downloads. .
Reduces the waiting time for users to start for the first time, improves the user experience, and ensures that the application version update process is more efficient.
Smart Images

Figure CN119179509A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to the field of computer software technology, and in particular to a resource hot update method and device. Background Art
[0002] Resource hot update technology is a commonly used technology in mobile application development. This technology allows developers to remotely update resources in the application without releasing a new application version, thereby improving user experience and reducing the frequency of application updates. Summary of the invention
[0003] Aiming at the problem that users have to wait a long time when all resources are downloaded at once for resource hot update in the prior art, a resource hot update method, device, electronic device and storage medium are provided.
[0004] According to a first aspect, a resource hot update method is provided, comprising: in response to determining that an application is to be updated, loading an initial update resource scenario, dependent resources of the initial update resource scenario, and a custom resource configuration list, wherein the custom resource configuration list is generated in the process of building a resource file into a resource package, and the custom resource configuration list includes resource package information, a grouping management strategy of the resource package, and version information of the resource package; loading resource files according to the custom resource configuration list to update the application version.
[0005] In combination with the first aspect, in some preferred examples, the resource file includes: resources downloaded when the user uses it, resources downloaded when the application is first started, and application basic construction resources, and the resource file is loaded according to the custom resource configuration list, including: in response to determining that the resource file is a resource downloaded when the application is first started and / or an application basic construction resource, verifying the resource difference between the local resources and the required resources according to the custom resource configuration list to determine the resource file that needs to be loaded.
[0006] In combination with the first aspect, in some preferred examples, loading a resource file according to the custom resource configuration list includes: in response to determining that the resource file is a resource downloaded by the user, directly loading the resource file according to the custom resource configuration list.
[0007] In combination with the first aspect, in some preferred examples, in response to determining that an application is to be updated, an initial update resource scene, dependent resources of the initial update resource scene, and a custom resource configuration list are loaded, including: determining a storage path for loading the update scene based on an update status of the initial update resource scene, wherein the update status includes an updated status and a non-updated status.
[0008] In combination with the first aspect, in some preferred examples, the storage path for loading the update scene is determined according to the update status of the initial update resource scene, including: in response to determining that the initial update resource scene is in an updated state, loading the update scene from the resource storage path, wherein the resource storage path is created when the game is installed.
[0009] In combination with the first aspect, in some preferred examples, determining the storage path for loading the update scene according to the update status of the initial update resource scene includes: in response to determining that the initial update resource scene is in an unupdated state, loading the scene from the default storage path.
[0010] In combination with the first aspect, in some preferred examples, the custom resource configuration list is generated in the process of building resource files into a resource package, and the method of building a resource package includes: classifying the resource files to be updated, the categories including: resources downloaded when the user uses, resources downloaded when the application is first started, and application basic construction resources; determining the resource files to be updated and their groups, and generating a group management strategy; packaging the resource files into resource packages, and determining the resource package information of each resource package, the resource package information including at least one of the following: a storage path and a verification code; generating the custom resource configuration list according to the group management strategy and the storage path of the resource package, the verification code of the resource package, and the version information corresponding to the resource package.
[0011] According to a second aspect, a resource hot update device is provided, comprising: a first unit, for loading an initial update resource scenario, dependent resources of the initial update resource scenario, and a custom resource configuration list in response to determining that an application is to be updated, wherein the custom resource configuration list is generated in the process of building a resource file into a resource package, and the custom resource configuration list includes resource package information, a grouping management strategy of the resource package, and version information of the resource package; a second unit, for loading resource files according to the custom resource configuration list to update the application version.
[0012] According to a third aspect, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a method as in any embodiment of the resource hot-changing method.
[0013] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method of any embodiment of the resource hot-changing method is implemented.
[0014] According to the solution of this application, necessary resource scenes and their dependent resources are loaded when the version is updated, and the resource packages are managed through a custom resource configuration list. The resource files corresponding to the resource packages can be loaded on demand or in batches, avoiding the waiting time and traffic consumption caused by large-scale downloads, reducing the waiting time when the user starts for the first time, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0016] Figure 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;
[0017] Figure 2 is a flow chart of an embodiment of a resource hot update method according to the present application;
[0018] Figure 3 is a schematic diagram of an application scenario of the resource hot update method according to the present application;
[0019] Figure 4 is a flow chart of another embodiment of the resource hot update method according to the present application;
[0020] Figure 5 is a structural schematic diagram of an embodiment of a resource hot update device according to the present application;
[0021] Figure 6 It is a block diagram of an electronic device used to implement the resource hot update method of the embodiment of the present application. DETAILED DESCRIPTION
[0022] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0024] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of a resource hot-changing method or a resource hot-changing device of the present application can be applied.
[0025] like Figure 1As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0026] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as video applications, live broadcast applications, instant messaging tools, email clients, social platform software, etc.
[0027] The terminal devices 101, 102, 103 here can be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0028] The server 105 may be a server that provides various services, such as a background server that provides support for the terminal devices 101, 102, and 103. The background server may process the received version update information and feed back the resource package to the terminal device.
[0029] It should be noted that the resource hot update method provided in the embodiment of the present application can be executed by the server 105 or the terminal devices 101, 102, 103, and accordingly, the resource hot update device can be set in the server 105 or the terminal devices 101, 102, 103.
[0030] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0031] Continue to refer Figure 2 , shows a process 200 of an embodiment of a resource hot update method according to the present application. The resource hot update method comprises the following steps:
[0032] Step 201, in response to determining that the application is to be updated, load the initial update resource scenario, the dependent resources of the initial update resource scenario, and the custom resource configuration list, wherein the custom resource configuration list is generated in the process of building the resource file into a resource package, and the custom resource configuration list includes resource package information, the grouping management strategy of the resource package, and the version information of the resource package.
[0033] In this embodiment, the resource hot update method is executed on the execution subject (for example Figure 1 The server or terminal device shown in the figure can load necessary resources from the application package when the application needs to be updated, such as the initial update resource scene, dependent resources of the initial update resource scene, etc., and send a request to the server to load the latest custom resource configuration list, etc.
[0034] In some examples, the resource package uses an AssetBundle resource package, which is a special compressed package in the Unity development engine that contains platform-specific non-code assets loaded by the Unity engine at runtime, such as models, textures, prefabricated components, audio, and even entire scenes.
[0035] Specifically, the construction process of the AssetBundle resource package includes: classifying the resource files to be updated, the categories include: resources downloaded when the user uses, resources downloaded when the application is first started, and application basic construction resources; determining the resource files to be updated and their groups, and generating a group management strategy; packaging the resource files into resource packages, and when packaging, it is implemented by calling the BuildPipeline.BuildAssetBundles method, and determining the resource package information of each resource package, and the resource package information includes at least one of the following: storage path and verification code, the verification code can be an MD5 verification code, etc.; generating the custom resource configuration list according to the group management strategy and the storage path of the resource package, the verification code of the resource package, and the version information corresponding to the resource package.
[0036] In some examples, there is a one-to-one correspondence between resource files and resource bundles through the BuildPipeline.BuildAssetBundles method.
[0037] In some examples, the asset bundle information is stored in the manifest file, which stores the version number, checksum, and all other bundle-related information such as name and dependencies corresponding to the AssetBundle asset bundle.
[0038] Step 202: Load resource files according to the custom resource configuration list to perform version update on the application.
[0039] In this embodiment, the execution subject loads the corresponding resource file according to the actual requirements of the update to implement the version update of the application.
[0040] Specifically, the resource files include: resources downloaded when the user uses it, resources downloaded when the application is first started, and application basic construction resources. In some examples, when determining the resources downloaded when the application is first started and / or the application basic construction resources, the above-mentioned execution entity will verify the difference between the local resources and the required resources based on the verification information such as the verification code in the custom resource configuration list to determine the resource files that need to be loaded for this version update. When it is determined that the resource file is a resource downloaded when the user uses it, the resource file is directly loaded according to the relevant information in the custom resource configuration list.
[0041] The method provided by the above-mentioned embodiment of the present application loads necessary resource scenes and their dependent resources when the version is updated, manages the resource package through a custom resource configuration list, and can load the resource files corresponding to the resource package on demand or in batches, thereby avoiding the waiting time and traffic consumption caused by large-scale downloads, reducing the waiting time when the user starts for the first time, and improving the user experience.
[0042] Continue to see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an application scenario of the resource hot update method according to this embodiment. Figure 3 In the application scenario, the execution subject 301 loads the initial update resource scene and the dependent resources of the initial update resource scene in the local program package, and loads the custom resource configuration list 302 during the application version update. Then, the execution subject determines the resource files 304 that need to be loaded for this version update according to the resource package information, the grouping management strategy of the resource package and the version information 303 of the resource package in the custom resource configuration list, so as to perform a version update 305 of the application program that better meets the user's needs.
[0043] The existing technology for implementing resource hot update is generally to start the hot update system to download resources when the game application starts, and it takes a long time for users to wait to download all resources at once. Moreover, the content related to the resource hot update launcher, as a basic component, is stored in the StreamingAsset folder when the game application is released. Due to the read-only and non-writable nature of the StreamingAsset folder, it will not be updated.
[0044] The embodiment of the present application provides a self-update mechanism for hot-changing the launcher to ensure that the launcher is always in the latest state. Even if the basic component content needs to be repaired or updated, it can be completed without re-downloading the entire application. The method of the present application has high system flexibility and stability. Figure 4Provide explanation.
[0045] Further references Figure 4 , which shows a process 400 of another embodiment of a resource hot update method. The process 400 is mainly applied to step 201, and the process 400 includes the following steps:
[0046] Step 401: Determine a storage path for loading an update scene according to an update state of the initial update resource scene, wherein the update state includes an updated state and a non-updated state.
[0047] Specifically, step 401 further includes the following steps:
[0048] Step 4011, in response to determining that the initial update resource scene is in an updated state, loading the update scene from a resource storage path, wherein the resource storage path is created when the application is installed;
[0049] Step 4012: In response to determining that the initial update resource scene is in a state where it has not been updated, the scene is loaded from a default storage path.
[0050] In this embodiment, the resource storage path is PersistentDataPath, which is the path for storing resources downloaded from the server by the game application. The default storage path is StreamingAsset, which is the path for storing resources downloaded from the server by the game application.
[0051] Therefore, this application is suitable for application scenarios that require frequent updates and large-scale resource management by optimizing the resource download and update process. Through the dynamic update mechanism, it can ensure that the core functions and update system of the application are always up-to-date, which is especially suitable for mobile applications that need to ensure application smoothness and fast response.
[0052] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a resource hot update device, which is similar to Figure 2 Corresponding to the method embodiment shown in FIG. 1 , in addition to the features described below, the device embodiment may also include Figure 2 The device can be applied to various electronic devices.
[0053] like Figure 5As shown, the resource hot update device 500 of this embodiment includes: a first unit 501 and a second unit 502. The first unit 501 is configured to load the initial update resource scene, the dependent resources of the initial update resource scene and the custom resource configuration list in response to determining that the application is to be updated, wherein the custom resource configuration list is generated in the process of building the resource file into a resource package, and the custom resource configuration list includes resource package information, the grouping management strategy of the resource package and the version information of the resource package; the second unit 502 is configured to load the resource file according to the custom resource configuration list to update the application.
[0054] In this embodiment, the specific processing of the first unit 501 and the second unit 502 of the resource hot update device 500 and the technical effects thereof can be referred to respectively. Figure 2 The relevant descriptions of step 201 and step 202 in the corresponding embodiment are not repeated here.
[0055] In some optional implementations of this embodiment, the resource file includes: resources downloaded when the user uses it, resources downloaded when the application is first started, and application basic construction resources. The second unit 502 is further configured to respond to determining that the resource file is a resource downloaded when the application is first started and / or an application basic construction resource, and verify the resource difference between the local resources and the required resources according to the custom resource configuration list to determine the resource file that needs to be loaded.
[0056] In some optional implementations of this embodiment, the second unit 502 is further configured to directly load the resource file according to the custom resource configuration list in response to determining that the resource file is a resource downloaded by the user.
[0057] In some optional implementations of this embodiment, the first unit 501 is further configured to determine a storage path for loading an update scene according to an update status of the initial update resource scene, where the update status includes an updated state and a non-updated state.
[0058] In some optional implementations of this embodiment, the first unit 501 is further configured to load the update scene from the resource storage path in response to determining that the initial update resource scene is in an updated state, wherein the resource storage path is created when the application is installed.
[0059] In some optional implementations of this embodiment, the first unit 501 is further configured to load a scene from a default storage path in response to determining that the initial update resource scene is in a state that has not been updated.
[0060] In some optional implementations of this embodiment, the first unit 501 is further configured to classify the resource files to be updated, the categories including: resources downloaded when the user uses, resources downloaded when the application is first started, and application basic construction resources; determine the resource files to be updated and their groups, and generate a group management strategy; package the resource files into resource packages, and determine the resource package information of each resource package, the resource package information includes at least one of the following: storage path and verification code; generate the custom resource configuration list according to the group management strategy and the storage path of the resource package, the verification code of the resource package, and the version information corresponding to the resource package.
[0061] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0062] like Figure 6 , is a block diagram of an electronic device according to a resource hot update method of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0063] like Figure 6 As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.
[0064] The memory 602 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable at least one processor to execute the resource hot update method provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to execute the video frame processing method provided in the present application.
[0065] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the resource hot update method in the embodiment of the present application (for example, the attached Figure 5 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, the resource hot update method in the above method embodiment is implemented.
[0066] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the resource hot update electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the resource hot update electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0067] The electronic device of the resource hot update method may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0068] The input device 603 can receive input digital or character information, and generate key signal input related to user settings and function control of the resource hot update electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0069] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0070] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0071] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0072] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0073] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0074] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0075] The units involved in the embodiments described in the present application may be implemented by software or by hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a first unit and a second unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the second unit may also be described as "a unit for loading resource files according to the custom resource configuration list to update the version of the application".
[0076] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the device: in response to determining that the application is to be updated, loads the initial update resource scene, the dependent resources of the initial update resource scene, and a custom resource configuration list, wherein the custom resource configuration list is generated in the process of building the resource file into a resource package, and the custom resource configuration list includes resource package information, the grouping management strategy of the resource package, and the version information of the resource package; loads the resource file according to the custom resource configuration list to update the application.
[0077] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A resource hot update method, characterized in that: The method comprises: In response to determining that the application is to be updated, an initial update resource scene, dependent resources of the initial update resource scene, and a custom resource configuration list are loaded, wherein the custom resource configuration list is generated in the process of building a resource file into a resource package, and the custom resource configuration list includes resource package information, a grouping management strategy of the resource package, and version information of the resource package; The resource file is loaded according to the custom resource configuration list to perform a version update on the application.
2. The method according to claim 1, characterized in that The resource files include: resources downloaded by the user, resources downloaded when the application is first started, and application basic construction resources. Loading resource files according to the custom resource configuration list includes: In response to determining that the resource file is a resource downloaded when the application is first started and / or an application basic construction resource, the resource difference between the local resource and the required resource is verified according to the custom resource configuration list to determine the resource file that needs to be loaded.
3. The method according to claim 2, characterized in that Load resource files according to the custom resource configuration list, including: In response to determining that the resource file is a resource downloaded by the user, the resource file is directly loaded according to the custom resource configuration list.
4. The method according to claim 1, characterized in that In response to determining that the application is to be updated, an initial update resource scene, dependent resources of the initial update resource scene, and a custom resource configuration list are loaded, including: The storage path for loading the update scene is determined according to the update state of the initial update resource scene, wherein the update state includes an updated state and a non-updated state.
5. The method according to claim 4, characterized in that Determining a storage path for loading an update scene according to an update status of the initial update resource scene includes: In response to determining that the initial update resource scene is in an updated state, the update scene is loaded from a resource storage path, wherein the resource storage path is created when the application is installed.
6. The method according to claim 4, characterized in that Determining a storage path for loading an update scene according to an update status of the initial update resource scene includes: In response to determining that the initial update resource scene is in a state that has not been updated, the scene is loaded from a default storage path.
7. The method according to claim 1, characterized in that The custom resource configuration list is generated in the process of building a resource package from a resource file. The method of building a resource package includes: Categorize the resource files to be updated into categories: resources downloaded when the user uses the application, resources downloaded when the application is first started, and application basic construction resources; Determine the resource files to be updated and their groups, and generate a group management strategy; Packing the resource files into resource packages, and determining resource package information of each resource package, wherein the resource package information includes at least one of the following: a storage path and a check code; The custom resource configuration list is generated according to the group management strategy and the storage path of the resource package, the verification code of the resource package, and the version information corresponding to the resource package.
8. A resource hot update device, characterized in that: The device comprises: A first unit is used for, in response to determining that the application is to be updated, loading an initial update resource scene, dependent resources of the initial update resource scene, and a custom resource configuration list, wherein the custom resource configuration list is generated in the process of building a resource file into a resource package, and the custom resource configuration list includes resource package information, a grouping management strategy of the resource package, and version information of the resource package; The second unit is used to load resource files according to the custom resource configuration list to perform version update on the application.
9. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Scene editing and management method and device and storage medium
CN122156556A
A method, device and storage medium for scene editing and management
CN122156556B
