Application update method, electronic device, storage medium, and program product

By using automated update methods, the problem of low efficiency in customized application updates is solved, and efficient automated application updates are achieved.

CN122633203APending Publication Date: 2026-08-25ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510213941.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2026-08-25

AI Technical Summary

Technical Problem

In existing technologies, application customization updates are inefficient and require manual resource replacement to meet the needs of different users.

Method used

This paper provides an application update method that automatically replaces the resources to be updated with the target resources by obtaining the original resource set and the target resources, thereby achieving automated application updates.

Benefits of technology

It improves the efficiency of application updates, reduces user operations, and increases the automation of updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122633203A_ABST
    Figure CN122633203A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an application updating method, an electronic device, a storage medium and a program product, relating to the technical field of computer, the method comprising: in response to an updating request for an application, obtaining an original resource set of the application and at least one target resource for updating the application; determining at least one to-be-updated resource in the original resource set, the at least one to-be-updated resource corresponding to the at least one target resource one by one; updating the at least one to-be-updated resource to the corresponding target resource respectively to obtain an updated application. The technical scheme of the embodiments of the present application improves the updating efficiency of the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more particularly to an application update method, electronic device, storage medium, and program product. Background Technology

[0002] An application (or app) typically contains various resources, including visual and textual resources. After developing a basic version of the application, developers provide it to multiple users. Some users may have different customization requirements for the application's wallpaper, interface text, and so on. Currently, to meet each customization requirement, developers need to manually replace the corresponding resources to update the basic version of the application and generate an application that meets the user's customized needs, resulting in low application update efficiency. Summary of the Invention

[0003] This application provides an application update method, an electronic device, a computer-readable storage medium, and a computer program product to alleviate or solve one or more technical problems existing in the prior art.

[0004] In a first aspect, embodiments of this application provide an application update method, comprising: in response to an update request for an application, obtaining an original resource set of the application and at least one target resource for updating the application; determining at least one resource to be updated in the original resource set, wherein the at least one resource to be updated corresponds one-to-one with the at least one target resource; and updating the at least one resource to be updated to the corresponding target resource to obtain an updated application.

[0005] Secondly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor implements any of the methods of embodiments of this application when executing the computer program.

[0006] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method of any one of the embodiments of this application.

[0007] Fourthly, embodiments of this application provide a computer program product, including a computer program, which, when executed by a processor, implements the method of any one of the embodiments of this application.

[0008] In the application update method provided in this application embodiment, upon receiving an update request for an application, the original resource set of the application and at least one target resource for updating the application are obtained; at least one resource to be updated in the original resource set is determined, and each of the at least one resource to be updated corresponds one-to-one with the at least one target resource; and the at least one resource to be updated is updated to the corresponding target resource to obtain the updated application. Thus, based on the application update request, resources are automatically updated to obtain the updated application, achieving automated application updates and improving application update efficiency.

[0009] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application, it can be implemented according to the contents of the specification. In order to make the above and other objects, features and advantages of this application more obvious and understandable, specific embodiments of this application are given below. Attached Figure Description

[0010] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments according to this application and should not be construed as limiting the scope of this application.

[0011] Figure 1 This illustration shows an application scenario diagram of the application update method provided in the embodiments of this application;

[0012] Figure 2 A first flowchart of the application update method provided in this application embodiment is shown;

[0013] Figure 3 A second flowchart of the application update method provided in this application embodiment is shown;

[0014] Figure 4 A third flowchart of the application update method provided in this application embodiment is shown;

[0015] Figure 5 A block diagram of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0016] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the concept or scope of this application. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.

[0017] To facilitate understanding of the technical solutions of the embodiments of this application, the relevant technologies of the embodiments of this application are described below. The following relevant technologies are optional solutions and can be combined with the technical solutions of the embodiments of this application in any way, and all of them fall within the protection scope of the embodiments of this application.

[0018] The following terms will be used in the following text:

[0019] Resource replacement: In software development, this refers to the process of replacing existing resource files (such as images, text, etc.) with new resource files.

[0020] Customization: Adjusting the appearance or functionality of software to meet the needs of specific users or markets.

[0021] Build and Package: The process of converting source code and resource files into executable files so that they can run on a device.

[0022] Text Resources: The text content used in an application, such as the application name, labels, and text displayed in the user interface.

[0023] User Interface Resources (UI Resources): Also known as visual resources, these are various images used to build user interfaces.

[0024] Launch Screen: The initial screen displayed when an application starts up. It can be an image or include text.

[0025] Wallpaper: An image file displayed as the background in an application; it belongs to the UI resource category.

[0026] Icon: A graphic symbol that identifies an application and is displayed on the device's home screen or in the app store.

[0027] The embodiments of this application aim to provide an application update method to improve the efficiency of application updates. Figure 1 This is a schematic diagram of a scenario for an application update method provided in an embodiment of this application, such as... Figure 1 As shown, this scenario includes: an application update device, which can be a terminal device or a server. The terminal device can be a mobile phone, tablet, desktop computer, laptop, etc.; the server can be a physical server or a cloud server for cloud computing. Figure 1 The example shown is a desktop computer used as the device for application updates.

[0028] The application update device can maintain a resource acquisition strategy, a resource determination strategy, and an update strategy. The resource acquisition strategy instructs the acquisition of the application's original resource set and at least one target resource for updating the application in response to an update request. The determination strategy instructs the identification of at least one resource to be updated from the original resource set, each corresponding one-to-one with at least one target resource. The update strategy instructs the updating of each of the at least one resource to be updated to its corresponding target resource, resulting in the updated application.

[0029] In some implementations, the application update device may include a display screen configured to display the application update device's user interface (UI) and provide an interface for interaction and information exchange between the application update device and the user. The UI involved in this application embodiment can be configured as a medium interface for user operation and interaction with the application update device. As an interaction interface with the user, the UI can convert the computer language of the application update device into a form that the user can accept and recognize, including displayed images, text, buttons, etc. A common form of UI is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the application update device's screen. Controls can include visual interface elements such as icons, buttons, menus, tabs, and text boxes. Controls can be implemented as a visual functional interface of the application update device. When a control receives a corresponding trigger operation from the user, the corresponding functional interface of the application update device receives a corresponding processing instruction, thereby enabling the application update device to respond to the processing instruction and perform functional processing. For example, each user action (such as clicking, double-clicking, editing, etc.) inputs a corresponding command to the application update device through the corresponding GUI control, thereby triggering the application update device to execute relevant processing and update the GUI based on the processing results. Correspondingly, the user can operate the corresponding GUI of the application update device (such as update controls or compile controls, etc.) to send an update request for the application to the application update device.

[0030] In some implementations, the above application scenarios may also include a requesting device ( Figure 1 (Not shown in the diagram), the requesting device establishes a communication connection with the application update device, which may include the aforementioned display screen. Accordingly, the user can manipulate the corresponding GUI (e.g., update controls or compilation controls) of the requesting device to send an update request for the application to the requesting device, and the requesting device forwards the received update request to the application update device. For example, the requesting device is the user's client, and the application update device is the server.

[0031] Therefore, the application update device automatically performs resource replacement based on the application update request to obtain the updated application, thereby realizing automated application updates and improving application update efficiency.

[0032] It should be noted that the application scenarios or examples provided in the embodiments of this application are for ease of understanding, and the embodiments of this application do not specifically limit the application of the technical solutions. In addition, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0033] The technical solution of this application and how it solves the aforementioned technical problems are described in detail below with specific embodiments. The listed specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0034] Figure 2 A flowchart of an application update method according to an embodiment of this application is shown. Figure 2 The method in the middle can be derived from Figure 1 The application update is performed on the device as shown. Figure 2 As shown, the method may include steps S101, S102 and S103.

[0035] Step S101: In response to an update request for the application, obtain the original resource set of the application and at least one target resource for updating the application.

[0036] In some implementations, a storage location for resources can be pre-set, and accordingly, the application update device can retrieve the original set of resources for the application and at least one target resource for updating the application from the storage location in response to an update request for the application.

[0037] In other implementations, the update request may include the application's original resource set and at least one target resource for updating the application. Accordingly, the application update device can obtain the application's original resource set and at least one target resource for updating the application from the update request.

[0038] The original resource set can include multiple original resources such as application code, visual resources, text resources, and configuration files. Visual resources can include splash screens, wallpapers, icons, etc., while text resources can include the application's name, tags, and text displayed in the user interface. The target resource can be any one or more of video resources and text resources.

[0039] Step S102: Determine at least one resource to be updated in the original resource set, wherein at least one resource to be updated corresponds one-to-one with at least one target resource.

[0040] In some implementations, any resource to be updated may have the same attribute information as the corresponding target resource. Accordingly, an original resource with the same attribute information can be obtained from the original resource set based on the attribute information of the resource to be updated, and the original resource can be identified as the resource to be updated.

[0041] In other implementations, the update request may include resource information of the resource to be updated. Accordingly, the original resource corresponding to the resource information in the update request is determined as the resource to be updated. The resource information may include the identifier of the original resource, the position of the original resource in the original resource set, etc.

[0042] Step S103: Update at least one resource to be updated to the corresponding target resource to obtain the updated application.

[0043] Specifically, for any resource to be updated, the resource to be updated is replaced with the corresponding target resource to obtain the updated application.

[0044] In the application update method provided in this application embodiment, upon receiving an update request for an application, the original resource set of the application and at least one target resource for updating the application are obtained; at least one resource to be updated in the original resource set is determined, and each of the at least one resource to be updated corresponds one-to-one with the at least one target resource; and the at least one resource to be updated is updated to the corresponding target resource to obtain the updated application. Thus, based on the application update request, resources are automatically updated to obtain the updated application, achieving automated application updates and improving application update efficiency.

[0045] To facilitate resource acquisition, in some implementations, the original resource set can be pre-saved to a first storage area, and the target resource can be saved to a second storage area. Correspondingly, such as... Figure 3 As shown, step S101 may include steps S1011 and S1012:

[0046] Step S1011: In response to an update request for the application, retrieve a first folder from the first storage area indicated by the update request, the first folder comprising the original resource set of the application.

[0047] Step S1012: Obtain a second folder from the second storage area indicated by the update request, the second folder containing at least one target resource.

[0048] Specifically, to reduce user operations, in some implementations, a first access address for a first storage area and a second access address for a second storage area can be pre-defined. Upon receiving an application update request, the first storage area is accessed according to the pre-defined first access address to retrieve the original resource set. The second storage area is then accessed according to the pre-defined second access address to retrieve at least one target resource. The first and second storage areas can be cloud storage areas or physical storage areas; this application does not specifically limit their usage. For example, the first storage area is a first repository in the cloud, and the second storage area is a second repository in the cloud.

[0049] It should be noted that you can first obtain the original resource set and then obtain at least one target resource; you can also first obtain at least one target resource and then obtain the original resource set; or you can obtain the original resource set and at least one target resource simultaneously.

[0050] Therefore, by pre-saving the original resource set to the first storage area and the target resource to the second storage area, when an update request is received, the original resource set and the target resource can be conveniently obtained according to the preset first access address and second access address, without the user having to manually enter the first access address and the second access address. This not only reduces user operations but also helps to improve the update efficiency of the application.

[0051] In some implementations, the first folder can be a project directory generated during application development. That is, the first folder can include multiple folder levels, and any folder at any level can include at least one subfolder and / or at least one original resource. In other words, any original resource has a storage path in the first folder. To facilitate the identification of resources to be updated, in some implementations, for any target resource, the storage path of its corresponding original resource in the first folder can be pre-determined as the storage path of that target resource in the second folder, and the second folder is constructed based on the storage paths of each target resource. That is, the storage path of any target resource in the second folder is the same as the storage path of its corresponding original resource in the first folder, and the second folder is a subset of the first folder. Correspondingly, as... Figure 4 As shown, step S102 may include steps S1021 and S1022:

[0052] Step S1021: For any target resource, determine the target storage path of the target resource in the second folder.

[0053] Step S1022: Locate the storage path that is the same as the target storage path in the first folder, and identify the original resources corresponding to the storage path that is the same as the target storage path as the resources to be updated.

[0054] Specifically, the second folder is traversed to obtain the target storage path of each target resource within the second folder. For any given target storage path, a search is conducted in the first folder for storage paths that match the target storage path, and the original resource corresponding to the searched storage path is identified as the resource to be updated.

[0055] Therefore, creating a second folder based on the same storage path allows for quick and accurate identification of resources to be updated based on the storage path, without requiring the user to specify each resource individually. This not only reduces user operations and improves the user experience, but also enhances the efficiency of application updates.

[0056] It should be noted that the method for determining the resource to be updated is not limited to the methods described above. When the resource names of the original resources are different from each other, the resource name of the resource to be updated can be pre-determined as the resource name of the corresponding target resource. Then, for any target resource's resource name, the original resource with the same resource name can be queried from the original resource set as the resource to be updated. Alternatively, the resource to be updated can be determined based on resource identifiers, etc., in the manner described above.

[0057] Considering that in practical applications, the same resource may take effect differently on different operating systems, in some implementations, step S102 may further include: if the updated application runs on the target operating system and at least one target resource includes a target resource of a preset adaptation type, then the application's configuration file is obtained from the original resource set. The target operating system is an operating system that is different from the application's basic adaptation system, the preset adaptation type is a type that is adapted to the target operating system, and the configuration file includes configuration information of multiple original resources of the application; the configuration information corresponding to the target resource of the preset adaptation type in the configuration file is updated.

[0058] Specifically, it can obtain indication information representing the operating system from the update request, or obtain preset indication information in response to the update request; determine whether the operating system indicated by the obtained indication information is the target operating system; if it is the target operating system, determine whether at least one target resource includes a target resource of a preset adaptation type; if it includes a target resource of a preset adaptation type, obtain the application's configuration file from the first folder according to the storage path of the preset configuration file in the first folder; and query the configuration information corresponding to the target resource of the preset adaptation type from the configuration file, and update the configuration information.

[0059] The configuration file includes configuration information for each UI resource and text resource in the application. As an example, for any image in the UI resources, the configuration file can include the image's location within the application (e.g., for wallpaper), the image name and image identifier, and attribute information such as pixel count and saturation. As another example, for any text in the text resources, the configuration file can include the text's location within the application (e.g., for the splash screen), the file name and file identifier of the file containing the text, and attribute information such as size, color, and transparency.

[0060] In other words, when the target resource's type is not a preset compatible type, replacing the resource to be updated with the target resource will allow the target resource to be successfully used in the updated application. When the target resource's type is a preset compatible type, the configuration information corresponding to the target resource of that preset compatible type in the configuration file needs to be updated before the target resource can be successfully referenced in the updated application.

[0061] In some implementations, updating the configuration information corresponding to the target resource of the preset adaptation type in the configuration file includes: obtaining the target name and target identifier of the target resource of the preset adaptation type; querying the original name and original identifier of the target resource of the preset adaptation type from the configuration file; replacing the original name with the target name and the original identifier with the target identifier.

[0062] In some implementations, a target name and a target identifier can be preset according to the user's customization requirements. Accordingly, the application update device obtains the preset target name and target identifier, and obtains the original name of the target resource of the preset adaptation type (i.e., the original name of the corresponding resource to be updated) from the target storage path of the target resource of the preset adaptation type; it queries at least one original name and at least one original identifier corresponding to the original name from the configuration file, replaces each original name with the target name, and replaces each original identifier with the target identifier.

[0063] In other implementations, the update request may include a user-specified target name and target identifier. Accordingly, the application update device obtains the target name and target identifier from the update request, and replaces the original names of the target resources contained in the configuration file with the target name, and replaces the original identifiers of the target resources with the target identifier, as described above.

[0064] By updating the original name and original identifier of the target resource with the preset adaptation type in the configuration file, it is ensured that the target resource can be successfully referenced in the updated application.

[0065] For example, the base adaptation system is Android, the target operating system is iOS (iPhone Operating System), and the default adaptation type is launch page. When the application update device determines that at least one target resource contains a target image used as a launch page, after updating its corresponding resource to be updated (i.e., the original image used as the launch page) to the target resource (i.e., the target image), it queries the project.pbxproj configuration file from the first folder according to the default storage address of the project.pbxproj configuration file, and replaces the original name and original identifier of the original image used as the launch page contained in the project.pbxproj configuration file with the default target name and target identifier, respectively. The project.pbxproj configuration file includes various configuration information of the application, such as basic application information (name, version, etc.), files referenced by the application, and various resources within the application.

[0066] It should be noted that, yes, the configuration information corresponding to the target resource of the preset adaptation type contained in the configuration file can be updated after each resource to be updated is updated to the corresponding target resource; alternatively, the configuration information corresponding to the target resource of the preset adaptation type contained in the configuration file can be updated after the resource to be updated corresponding to the target resource of the preset adaptation type is updated to the target resource of that preset adaptation type; alternatively, the configuration information corresponding to the target resource of the preset adaptation type contained in the configuration file can be updated first, and then each resource to be updated is updated to the corresponding target resource. The update order is not specifically limited in this application.

[0067] Understandably, when the target resources do not contain target resources of the preset adaptation type, updating each resource to be updated to the corresponding target resource yields the updated application. When the target resources contain target resources of the preset adaptation type, updating each resource to be updated to the corresponding target resource, and updating the configuration information corresponding to the target resources of the preset adaptation type in the configuration file, yields the updated application.

[0068] Therefore, when the updated application runs on a non-basic adapted target operating system and the target resources include target resources of the preset adapted type, after replacing the corresponding original resources with the target resources of the preset adapted type, the configuration information of the target resources of the preset adapted type contained in the configuration file is updated to ensure that all the relevant dependencies of the application are updated, so that the target resources of the preset adapted type can be successfully referenced when the updated application is launched for the first time.

[0069] To improve the efficiency of application updates, in some implementations, after responding to an update request for the application in step S101, the method may further include: invoking and executing an update script for updating the application.

[0070] In other words, after receiving an update request for an application, the application update device can call and execute the update script to obtain the original resource set of the application and at least one target resource for updating the application, determine at least one resource to be updated in the original resource set, and update the at least one resource to be updated to the corresponding target resource to obtain the updated application.

[0071] By executing update scripts to update applications, automated application updates are achieved, improving application update efficiency.

[0072] In some implementations, after updating at least one original resource to the corresponding target resource in step S103, the method further includes: compiling the set of original resources containing at least one target resource to obtain an executable file of the application.

[0073] Specifically, the application code contained in the original resource set is compiled to obtain intermediate files; the intermediate files, UI resources, text resources, etc., are then packaged to obtain an executable file.

[0074] In some implementations, based on an update request, after updating at least one resource to be updated to its corresponding target resource, the original resource set containing at least one target resource can be directly compiled to obtain the application's executable file. In other implementations, after updating at least one resource to be updated to its corresponding target resource based on an update request, the update result can be sent to the sender of the update request, and upon receiving a compilation request, the original resource set containing at least one target resource can be compiled to obtain the application's executable file.

[0075] By generating an executable file, the updated application can run effectively on the corresponding operating system based on that executable file.

[0076] Corresponding to the application scenarios and methods provided in the embodiments of this application, the embodiments of this application also provide an application update apparatus, which can be applied to... Figure 1 The application update device shown includes:

[0077] The acquisition module is configured to, in response to an update request for an application, acquire the original resource set of the application and at least one target resource for updating the application.

[0078] The determination module is used to determine at least one resource to be updated in the original resource set, wherein the at least one resource to be updated corresponds one-to-one with the at least one target resource.

[0079] The update module is used to update the at least one resource to be updated to the corresponding target resource to obtain the updated application.

[0080] In some implementations, the acquisition module is specifically used for:

[0081] Obtain a first folder from the first storage area indicated by the update request, the first folder including the original resource set; obtain a second folder from the second storage area indicated by the update request, the second folder including the at least one target resource, wherein the storage path of any target resource in the second folder is the same as the storage path of the corresponding resource to be updated in the first folder.

[0082] In some implementations, the determining module is specifically used for:

[0083] For any of the target resources, determine the target storage path of the target resource in the second folder; search for the storage path that is the same as the target storage path in the first folder; and determine the original resource corresponding to the storage path that is the same as the target storage path as the resource to be updated.

[0084] In some implementations, the update module is further configured to: after the determining module determines at least one resource to be updated in the original resource set, if the updated application runs on a target operating system and the at least one target resource includes a target resource of a preset adaptation type, then obtain the configuration file of the application from the original resource set, wherein the target operating system is an operating system different from the application's basic adaptation system, the preset adaptation type is a type adapted to the target operating system, and the configuration file includes configuration information of multiple original resources of the application;

[0085] Update the configuration information corresponding to the target resource of the preset adaptation type in the configuration file.

[0086] In some implementations, the update module is specifically used for:

[0087] Obtain the target name and target identifier of the target resource of the preset adaptation type; query the original name and original identifier of the target resource of the preset adaptation type from the configuration file; replace the original name with the target name and replace the original identifier with the target identifier.

[0088] In some embodiments, the apparatus further includes a calling module for calling and executing an update script for updating the application.

[0089] In some embodiments, the apparatus further includes a compilation module, which, after the update module updates the at least one original resource to the corresponding target resource, compiles the set of original resources containing the at least one target resource to obtain an executable file of the application.

[0090] The functions of each module in the devices of this application embodiment can be found in the corresponding descriptions of the methods described above, and they have corresponding beneficial effects, which will not be repeated here. Furthermore, the device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components illustrated as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application solution according to actual needs.

[0091] Figure 5 This is a block diagram of an electronic device used to implement embodiments of this application. For example... Figure 5 As shown, the electronic device includes a memory 201 and a processor 202. The memory 201 stores a computer program that can run on the processor 202. When the processor 202 executes the computer program, it implements the method described in the above embodiments. The number of memories 201 and processors 202 can be one or more. In a specific implementation, the electronic device may also include a communication interface 203 for communicating with external devices and exchanging data.

[0092] In practical implementation, if the memory 201, processor 202, and communication interface 203 are implemented independently, they can be interconnected via a bus to communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0093] Optionally, in a specific implementation, if the memory 201, processor 202 and communication interface 203 are integrated on a single chip, the memory 201, processor 202 and communication interface 203 can communicate with each other through an internal interface.

[0094] This application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method provided in this application.

[0095] This application provides a computer program product, including a computer program that, when executed by a processor, implements the method provided in this application.

[0096] This application also provides a chip including a processor for calling and executing instructions stored in a memory, causing a communication device with the chip installed to perform the method provided in this application.

[0097] This application also provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, output interface, processor, and memory are connected through an internal connection path. The processor is used to execute code in the memory. When the code is executed, the processor is used to execute the method provided in the application embodiment.

[0098] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting Advanced Reduced Instruction Set Machines (ARM) architecture.

[0099] Further, optionally, the aforementioned memory may include read-only memory and random access memory. The memory may be volatile memory or non-volatile memory, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available. Examples include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).

[0100] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.

[0101] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.

[0102] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.

[0103] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process. Furthermore, the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functionality involved.

[0104] The logic and / or steps described in the flowchart or otherwise herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).

[0105] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware, the program being stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiments.

[0106] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. This storage medium can be a read-only memory, a disk, or an optical disk, etc.

[0107] The above description is merely an exemplary embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope described in this application, and these should all be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An application update method, characterized in that, include: In response to an update request for an application, the original set of resources of the application and at least one target resource for updating the application are obtained; Identify at least one resource to be updated in the original resource set, wherein the at least one resource to be updated corresponds one-to-one with the at least one target resource; The at least one resource to be updated is updated to the corresponding target resource to obtain the updated application.

2. The method according to claim 1, characterized in that, The step of obtaining the original resource set of the application and updating at least one target resource of the application includes: Obtain a first folder from the first storage area indicated by the update request, the first folder comprising the original resource set; Obtain a second folder from the second storage area indicated by the update request, the second folder including the at least one target resource.

3. The method according to claim 2, characterized in that, The storage path of any target resource in the second folder is the same as the storage path of the corresponding resource to be updated in the first folder. Determining at least one resource to be updated in the original resource set includes: For any of the target resources, determine the target storage path of the target resource in the second folder; Find the storage path in the first folder that is the same as the target storage path; The original resources corresponding to the storage path that is the same as the target storage path are identified as the resources to be updated.

4. The method according to any one of claims 1-3, characterized in that, After determining at least one resource to be updated in the original resource set, the method further includes: If the updated application runs on a target operating system and the at least one target resource includes a target resource of a preset adaptation type, then the application's configuration file is obtained from the original resource set. The target operating system is an operating system that is different from the application's basic adaptation system, the preset adaptation type is a type that is adapted to the target operating system, and the configuration file includes configuration information of multiple original resources of the application. Update the configuration information corresponding to the target resource of the preset adaptation type in the configuration file.

5. The method according to claim 4, characterized in that, The step of updating the configuration information corresponding to the target resource of the preset adaptation type in the configuration file includes: Obtain the target name and target identifier of the target resource of the preset adaptation type; Query the original name and original identifier of the target resource of the preset adaptation type from the configuration file; Replace the original name with the target name, and replace the original identifier with the target identifier.

6. The method according to any one of claims 1-3, characterized in that, Following the response to an update request for the application, the method further includes: Invoke and execute the update script, which is used to update the application.

7. The method according to any one of claims 1-3, characterized in that, After updating the at least one original resource to the corresponding target resource, the method further includes: The original resource set containing the at least one target resource is compiled to obtain the executable file of the application.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory, wherein the processor, when executing the computer program, implements the method of any one of claims 1 to 7.

9. A computer-readable storage medium storing a computer program that, when executed by a processor, implements the method of any one of claims 1 to 7.

10. A computer program product comprising a computer program that, when executed by a processor, implements the method of any one of claims 1 to 7.