Extension program updating method and device, electronic equipment and readable storage medium

By storing the correspondence between the compressed files and address information of the extension program on the server, the browser application store’s limitation on the number of releases is solved, flexible updates and high-frequency updates of the extension program are realized, and user experience is improved.

CN119829100APending Publication Date: 2025-04-15GUIYANG SHIJIHENGTONG TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411960802.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The browser's application store has a limit on the number of releases of extensions, which makes it difficult for extensions to achieve multiple updates and iterations, affecting the update frequency.

Method used

The server stores the correspondence between the compressed files of the extension and the address information, obtains the compressed files of the extension to be updated and updates, avoiding the number of releases in the browser application store.

Benefits of technology

It realizes flexible updates of extensions, avoids the browser application store’s restrictions on the number of releases, and improves the frequency and user experience of extensions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829100A_ABST
    Figure CN119829100A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an extension program updating method and device, electronic equipment and a readable storage medium, and relates to the technical field of browsers. The method comprises the steps that address information of a compressed file of a to-be-updated extension program is acquired, and obtaining the compressed file of the to-be-updated extension program from the server according to the address information of the compressed file of the to-be-updated extension program and the first corresponding relationship, and updating the to-be-updated extension program according to the compressed file of the to-be-updated extension program. Through the corresponding relationship between the compressed file of the extension program stored in the server and the address information, the compressed file of the extension program of the latest version is obtained to update the extension program, so that the limitation of an application store of a browser on the release frequency is avoided, the update of the extension program is limited, and the user experience is improved. Developers can update the extension program at any time according to actual requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of browser technology, and in particular to an extension program updating method, device, electronic device and readable storage medium. Background Art

[0002] In the modern online business environment, browser plug-ins are becoming increasingly important because they can enhance user experience and provide specific functions. However, for enterprises that need customized solutions, the extension release process provided by the application stores of mainstream browsers has obvious limitations. The browser has a clear limit on the number of extensions that can be released. This limitation makes it difficult for extensions to be updated multiple times, thus affecting the update frequency of extensions. Summary of the invention

[0003] The object of the present invention is to provide an extension program update method, device, electronic device and computer-readable storage medium to solve the problem that the browser application store limits the number of releases, which affects the update frequency of the extension program.

[0004] In a first aspect, the present invention provides an extended program update method, which is applied to an electronic device, wherein the electronic device is connected to a server for communication, and the server stores a first correspondence between a compressed file of the extended program and address information, and the method comprises:

[0005] Get the address information of the compressed file of the extension to be updated;

[0006] Acquire the compressed file of the extension program to be updated from the server according to the address information of the compressed file of the extension program to be updated and the first corresponding relationship;

[0007] The extension program to be updated is updated according to the compressed file of the extension program to be updated.

[0008] In an optional implementation manner, the electronic device stores address information of update maintenance files corresponding to each extended program; the server stores a second correspondence between the address information of the update maintenance file and the update maintenance file, and the acquiring the address information of the compressed file of the extended program to be updated includes:

[0009] Obtain address information of the update maintenance file corresponding to the locally stored extension program to be updated;

[0010] Acquire the update maintenance file corresponding to the extension program to be updated from the server according to the address information of the update maintenance file corresponding to the extension program to be updated and the second corresponding relationship;

[0011] The address information of the compressed file of the extension program to be updated is obtained from the update maintenance file corresponding to the extension program to be updated.

[0012] In an optional implementation manner, the update maintenance file corresponding to the extension program to be updated also includes the latest version information of the extension program to be updated; and the step of obtaining the address information of the update maintenance file corresponding to the extension program to be updated stored locally includes:

[0013] Acquire the latest version information of the extension program to be updated from the update maintenance file corresponding to the extension program to be updated;

[0014] If the current version information of the extension program to be updated is different from the latest version information, the address information of the update maintenance file corresponding to the locally stored extension program to be updated is obtained.

[0015] In an optional implementation manner, the step of obtaining address information of an update maintenance file corresponding to the locally stored extension program to be updated includes:

[0016] In response to the user's update operation on the extension program update interface, the address information of the update maintenance file corresponding to the locally stored extension program to be updated is obtained; the extension program update interface is an interactive interface for updating the extension program to be updated.

[0017] In an optional embodiment, the method further comprises:

[0018] If the extension program is installed on the browser for the first time, the identification information of the extension program is added to the preset whitelist of the browser so that the extension program can be run on the browser.

[0019] In a second aspect, the present invention provides an extension program update device, applied to an electronic device, wherein the electronic device is connected to a server for communication, and the server stores a first correspondence between a compressed file of the extension program and address information, wherein the device comprises:

[0020] A compressed file acquisition module, used to acquire address information of a compressed file of the extension program to be updated; and acquire the compressed file of the extension program to be updated from the server according to the address information of the compressed file of the extension program to be updated and the first corresponding relationship;

[0021] The extension program updating module is used to update the extension program to be updated according to the compressed file of the extension program to be updated.

[0022] In an optional implementation, the electronic device stores address information of update and maintenance files corresponding to each extended program; the server stores a second correspondence between the address information of the update and maintenance files and the update and maintenance files; the compressed file acquisition module is further used to acquire address information of the update and maintenance files corresponding to the locally stored extended programs to be updated; acquire the update and maintenance files corresponding to the extended programs to be updated from the server according to the address information of the update and maintenance files corresponding to the extended programs to be updated and the second correspondence; and acquire the address information of the compressed file of the extended program to be updated from the update and maintenance files corresponding to the extended programs to be updated.

[0023] In an optional implementation, the update maintenance file corresponding to the extension program to be updated also includes the latest version information of the extension program to be updated; the compressed file acquisition module is further used to obtain the latest version information of the extension program to be updated from the update maintenance file corresponding to the extension program to be updated; if the current version information of the extension program to be updated is different from the latest version information, then obtaining the address information of the locally stored update maintenance file corresponding to the extension program to be updated.

[0024] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and the computer program executable by the processor is used to implement the extended program update method described in any of the aforementioned implementations.

[0025] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the extended program updating method as described in any one of the aforementioned embodiments is implemented.

[0026] The embodiment of the present invention provides an extension program update method, device, electronic device and readable storage medium, the method comprising: obtaining address information of a compressed file of the extension program to be updated, obtaining the compressed file of the extension program to be updated from a server according to the address information of the compressed file of the extension program to be updated and a first correspondence, and updating the extension program to be updated according to the compressed file of the extension program to be updated. By using the correspondence between the compressed file of the extension program stored on the server and the address information, the compressed file of the latest version of the extension program is obtained to update the extension program, thereby avoiding the limitation of the number of releases by the application store of the browser, limiting the update of the extension program, and developers can update the extension program at any time according to actual needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A schematic diagram of an application environment of the extended program update method provided by an embodiment of the present invention is shown;

[0029] Figure 2 A schematic diagram of a flow chart of an extended program update method provided by an embodiment of the present invention is shown;

[0030] Figure 3 A schematic diagram of a browser extension program interface provided by an embodiment of the present invention is shown;

[0031] Figure 4 A schematic diagram showing a packaged extension program interface provided by an embodiment of the present invention;

[0032] Figure 5 Another schematic diagram of a flow chart of an extended program update method provided by an embodiment of the present invention is shown;

[0033] Figure 6 A schematic diagram showing an extended program update interface provided by an embodiment of the present invention is shown;

[0034] Figure 7 A module block diagram of an extended program updating device provided by an embodiment of the present invention is shown;

[0035] Figure 8 A block diagram of an electronic device provided by an embodiment of the present invention is shown.

[0036] Icons: 100 - electronic device; 110 - memory; 120 - processor; 130 - communication module; 200 - server; 300 - extended program update device; 310 - compressed file acquisition module; 320 - extended program update module. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0038] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0040] See also Figure 1 , Figure 1 A schematic diagram of an application environment of the extended program update method provided by an embodiment of the present invention is shown. The electronic device 100 and the server 200 are located in a network, and the electronic device 100 can be connected to the server 200 for communication to achieve data interaction between the electronic device 100 and the server 200. As a way, the electronic device 100 and the server 200 can be connected via WIFI, ZigBee, 2G / 3G / 4G / 5G, which is not limited here.

[0041] See also Figure 2 , Figure 2 A schematic diagram of a flow chart of an extended program update method provided by an embodiment of the present invention is shown. The extended program update method can be applied to an electronic device, the electronic device is connected to a server for communication, and the server stores a first correspondence between a compressed file of the extended program and address information. The specific flow of this embodiment is described below by taking an electronic device as an example. Figure 3 The process shown in the figure is described in detail, and the extension program update method may specifically include the following steps:

[0042] Step 110: Obtain address information of the compressed file of the extension program to be updated.

[0043] The address information of the compressed file may be a Uniform Resource Locator (URL), which is not limited here. It should be noted that a URL is an address used to identify a file on the Internet.

[0044] In some implementations, when developing each version of the extension to be updated, the developer modifies the extension to be updated and modifies the version information in the configuration file of the source code of the extension to be updated. After completing the modification, the developer packages the extension to be updated, obtains a compressed file of the extension to be updated, and deploys the compressed file of the extension to be updated to the server. The compressed file of the extension to be updated can be a CRX file, which is not limited here. The CRX file is a compressed file format of the extension of the Google Chrome browser.

[0045] In some embodiments, Figure 3 As shown, the developer opens the "developer mode" in the browser extension interface and clicks the "package extension" control 211, as shown in FIG. Figure 4 As shown, the "Packaging Extension Program Interface" is displayed, the directory where the extension program to be updated is located is input in the extension program input control 212, and the "Packaging Extension Program" control 213 is clicked. After packaging, the electronic device generates a compressed file of the extension program to be updated. If the extension program to be updated is packaged for the first time, the electronic device can also generate a key file for use when the extension program to be updated is packaged next time.

[0046] Step 120: Obtain the compressed file of the extension program to be updated from the server according to the address information of the compressed file of the extension program to be updated and the first corresponding relationship.

[0047] Step 130: updating the extension program to be updated according to the compressed file of the extension program to be updated.

[0048] In some implementations, the electronic device may download a compressed file of the latest extension program to be updated from the server, decompress the compressed file of the latest extension program to be updated, and replace the currently installed extension program to be updated.

[0049] In some embodiments, the server stores an access list, which includes Internet Protocol Addresses (IP) addresses of electronic devices that can access the server. These electronic devices are used by people within the enterprise. Therefore, electronic devices used by people outside the enterprise cannot obtain the compressed files of the extension program to be updated in the server, thereby ensuring that the extension program is only open to people within the enterprise and not to outsiders.

[0050] The method for updating an extension program provided by an embodiment of the present invention obtains address information of a compressed file of an extension program to be updated, obtains the compressed file of the extension program to be updated from a server according to the address information of the compressed file of the extension program to be updated and a first corresponding relationship, and updates the extension program to be updated according to the compressed file of the extension program to be updated. By using the corresponding relationship between the compressed file of the extension program stored on the server and the address information, the compressed file of the latest version of the extension program is obtained to update the extension program, thereby avoiding the limitation of the number of releases by the application store of the browser, limiting the update of the extension program, and developers can update the extension program at any time according to actual needs.

[0051] It is understandable that avoiding the browser's app store's restrictions on the number of releases makes it difficult for users to obtain the latest features and optimized content of the extension in real time, thereby improving user work efficiency. For people engaged in auditing business, using extensions with the latest features can help improve audit time.

[0052] In order to allow the extension to run in the browser, a whitelist is configured for the extension. The extension update method also includes: if the extension is installed on the browser for the first time, the identification information of the extension is added to the preset whitelist of the browser to allow the extension to run on the browser.

[0053] In some embodiments, the user turns on the developer mode of the browser and drags an extension to the browser interface. The browser detects that there is a newly installed extension and can generate identification information for the newly installed extension. The user inputs the identification information of the extension into the electronic device, and the electronic device can add the identification information of the extension to the browser's preset whitelist.

[0054] In order to facilitate the maintenance of the compressed files of the extension programs, the electronic device stores the address information of the update maintenance files corresponding to each extension program, and the server stores the second correspondence between the address information of the update maintenance files and the update maintenance files, such as Figure 5 As shown, step 110 specifically further includes the following steps:

[0055] Step 111: Acquire address information of the locally stored update maintenance file corresponding to the extension program to be updated.

[0056] The address information of the update and maintenance file may be a URL, which is not limited here.

[0057] In some implementations, the developer may replace the compressed file of the extension program to be updated stored in the server with the compressed file packaged according to the latest version of the extension program to be updated, and modify the version information in the corresponding update maintenance file to the latest version information.

[0058] In some implementations, a developer can write an image building file, and a server builds an image based on the image building file, and uses the built image to start a new container. To facilitate subsequent updates of the extension program, the files of the extension program to be updated deployed in the server (compressed files and update maintenance files) need to be associated and mapped with the corresponding files in the container, so that the content of the files associated and mapped with the container in the server can be subsequently updated, and the file content in the container can be synchronously updated. The electronic device can obtain the update maintenance file and the compressed file from the container according to the address information of the update maintenance file and the address information of the compressed file.

[0059] The server can associate and map the files of the extension program to be updated deployed in the server (including compressed files and update maintenance files) with the corresponding files in the container through the dockers command "-v".

[0060] For example, PATHA -v PATHB, where PATHA is the path of the file of the extension program to be updated deployed in the server, and PATHB is the path of the corresponding file in the container.

[0061] It can be understood that after the file in the server is updated, it is synchronized to the container through file mapping, and the compressed file of the extension program is provided to the browser running in the electronic device through the communication service in the container, thereby updating the extension program of the browser by updating the compressed file of the extension program in the server.

[0062] In some implementations, the address information of the update maintenance file is stored in a configuration file of the extension program to be updated. The electronic device can search for the locally stored configuration file of the extension program to be updated and obtain the address information of the corresponding update maintenance file from the configuration file.

[0063] For example, the content of the configuration file of the extension to be updated is as follows:

[0064]

[0065] In some implementations, the update maintenance file corresponding to the extension program to be updated also includes the latest version information of the extension program to be updated. The electronic device can obtain the latest version information of the extension program to be updated from the update maintenance file corresponding to the extension program to be updated. If the current version information of the extension program to be updated is different from the latest version information, the address information of the update maintenance file corresponding to the extension program to be updated stored locally is obtained.

[0066] In some implementations, a user list is stored inside the server, and the user list includes multiple user mailboxes. When a compressed file in the server is updated, the server sends an update notification to each user mailbox in the user list. The user who receives the update notification performs an update operation on the extension program interface. In response to the user's update operation on the extension program update interface, the address information of the update maintenance file corresponding to the extension program to be updated stored locally is obtained. Among them, the extension program update interface is an interactive interface for updating the extension program to be updated, such as Figure 6 shown.

[0067] Step 112: acquiring the update maintenance file corresponding to the extension program to be updated from the server according to the address information of the update maintenance file corresponding to the extension program to be updated and the second corresponding relationship.

[0068] Step 113: Acquire the address information of the compressed file of the extension program to be updated from the update maintenance file corresponding to the extension program to be updated.

[0069] The address information of the compressed file of the extension program to be updated may be a URL, which is not limited here.

[0070] For example, the specific contents of the update maintenance file are as follows:

[0071] app appid = `oggxxxxxmcak` / / extension program identification information

[0072] updatecheck codebase=`http: / / xxxxxxxx9` version=`1.0.1` / / Address information (codebase) and version information (version) of the compressed file of the extension to be updated.

[0073] In some embodiments, a resource file corresponding to each extension program is stored in the server, and the resource file includes an update maintenance file, a compressed file of the extension program, and an interface file. The interface file is configured with path information for obtaining the update maintenance file according to address information (update_url) of the update maintenance file, and path information for obtaining the update maintenance file according to address information (codebase) of the update maintenance file.

[0074] For example, the specific content of the interface file is as follows:

[0075] router.get(` / getUpdateFile`,async(ctx)=>{ / / Defines a routing processing function for HTTP GET requests, the path is ` / getUpdateFile`;

[0076] const path = `assets${baseUrl} / updates.xml`; / / Create a string variable

[0077] `path`, the value of the string variable `path` is the directory of the `assets` resource file plus the directory passed to the variable

[0078] `baseUrl` defines the address information of the updated maintenance file;

[0079] ctx.attachment(path); / / Instruct the browser to treat the received update maintenance file as an attachment;

[0080] await send(ctx,path);

[0081] } / / Define an interface to respond to the acquisition request of the browser running in the electronic device and download the update maintenance file located in the directory of the resource file of the extension program;

[0082] router.get(` / getUpdateCrx`,async(ctx)=>{ / Defines a routing processing function for HTTP GET requests, the path is ` / getUpdateCrx`;

[0083] const path=`assets${baseUrl} / xxx.crx`; / Create a string variable `path`, the value of which is the directory of the `assets` resource file plus the address information of the compressed file of the extension program defined by the variable `baseUrl`;

[0084] ctx.attachment(path); / / defines an interface to respond to the acquisition request of the browser running in the electronic device and download the compressed file of the extension program located in the directory of the resource file of the extension program;

[0085] await send(ctx,path);

[0086] } / / Defines an interface to respond to a request from a browser running in an electronic device to download a compressed file of an extension program located in the directory of the extension program's resource files.

[0087] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing an extended program update device is provided below. Figure 7, is a functional module diagram of an extended program update device provided by an embodiment of the present invention. It should be noted that the basic principle and technical effects of the extended program update device provided by this embodiment are the same as those of the above embodiments. For the sake of brief description, for the parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiments. The extended program update device 300 includes: a compressed file acquisition module 310 and an extended program update module 320, wherein:

[0088] The compressed file acquisition module 310 is used to acquire the address information of the compressed file of the extension program to be updated; and acquire the compressed file of the extension program to be updated from the server according to the address information of the compressed file of the extension program to be updated and the first corresponding relationship;

[0089] The extension program updating module 320 is used to update the extension program to be updated according to the compressed file of the extension program to be updated.

[0090] Optionally, the electronic device stores address information of update and maintenance files corresponding to each extended program; the server stores a second correspondence between the address information of the update and maintenance files and the update and maintenance files; the compressed file acquisition module 310 is further used to obtain the address information of the update and maintenance files corresponding to the extended program to be updated stored locally; obtain the update and maintenance files corresponding to the extended program to be updated from the server according to the address information of the update and maintenance files corresponding to the extended program to be updated and the second correspondence; and obtain the address information of the compressed file of the extended program to be updated from the update and maintenance files corresponding to the extended program to be updated.

[0091] Optionally, the update maintenance file corresponding to the extension program to be updated also includes the latest version information of the extension program to be updated; the compressed file acquisition module 310 is further specifically used to obtain the latest version information of the extension program to be updated from the update maintenance file corresponding to the extension program to be updated; if the current version information of the extension program to be updated is different from the latest version information, then the address information of the update maintenance file corresponding to the extension program to be updated stored locally is obtained.

[0092] Optionally, the compressed file acquisition module 310 is further configured to respond to the user's update operation in the extension program update interface and acquire the address information of the update maintenance file corresponding to the extension program to be updated stored locally; the extension update interface is an interactive interface for updating the extension program to be updated.

[0093] Optionally, the extension program updating device 300 further includes: a whitelist configuration module, wherein:

[0094] The whitelist configuration module is used to add the identification information of the extension program to the preset whitelist of the browser if the extension program is installed on the browser for the first time, so that the extension program can run on the browser.

[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0096] In several embodiments provided by the present invention, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0097] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.

[0098] Please refer to Figure 8 , is a block diagram of an electronic device 100 provided in an embodiment of the present invention. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0099] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.

[0100] The processor 120 is used to read / write data or programs stored in the memory and execute corresponding functions. For example, when the computer program stored in the memory 110 is executed by the processor 120, the extended program update method disclosed in the above embodiments can be implemented.

[0101] The communication module 130 is used to establish a communication connection between the electronic device 100 and a server through a network, and to send and receive data through the network.

[0102] It should be understood that Figure 8The structure shown is only a schematic diagram of the structure of the electronic device. The electronic device may also include Figure 8 More or fewer components may be shown. Figure 8 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0103] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program can be executed by a processor, the extended program updating method described in the above method embodiment is implemented.

[0104] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.

[0105] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes 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 box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0106] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0107] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for updating an extended program, characterized in that: Applied to an electronic device, the electronic device is connected to a server for communication, the server stores a first correspondence between a compressed file of an extension program and address information, the method comprising: Get the address information of the compressed file of the extension to be updated; Acquire the compressed file of the extension program to be updated from the server according to the address information of the compressed file of the extension program to be updated and the first corresponding relationship; The extension program to be updated is updated according to the compressed file of the extension program to be updated.

2. The method according to claim 1, characterized in that The electronic device stores address information of update maintenance files corresponding to each extended program; the server stores a second correspondence between the address information of the update maintenance file and the update maintenance file, and the acquiring the address information of the compressed file of the extended program to be updated includes: Obtain address information of the update maintenance file corresponding to the locally stored extension program to be updated; Acquire the update maintenance file corresponding to the extension program to be updated from the server according to the address information of the update maintenance file corresponding to the extension program to be updated and the second corresponding relationship; The address information of the compressed file of the extension program to be updated is obtained from the update maintenance file corresponding to the extension program to be updated.

3. The method according to claim 2, characterized in that The update maintenance file corresponding to the extension program to be updated also includes the latest version information of the extension program to be updated; the step of obtaining the address information of the update maintenance file corresponding to the extension program to be updated stored locally includes: Acquire the latest version information of the extension program to be updated from the update maintenance file corresponding to the extension program to be updated; If the current version information of the extension program to be updated is different from the latest version information, the address information of the update maintenance file corresponding to the locally stored extension program to be updated is obtained.

4. The method according to claim 2, characterized in that: The step of obtaining address information of the update maintenance file corresponding to the locally stored extension program to be updated includes: In response to the user's update operation on the extension program update interface, the address information of the update maintenance file corresponding to the locally stored extension program to be updated is obtained; the extension program update interface is an interactive interface for updating the extension program to be updated.

5. The method according to claim 1, characterized in that The method further comprises: If the extension program is installed on the browser for the first time, the identification information of the extension program is added to the preset whitelist of the browser so that the extension program can be run on the browser.

6. An extended program update device, characterized in that: Applied to an electronic device, the electronic device is connected to a server for communication, the server stores a first correspondence between a compressed file of an extension program and address information, the device comprises: A compressed file acquisition module, used to acquire address information of a compressed file of the extension program to be updated; and acquire the compressed file of the extension program to be updated from the server according to the address information of the compressed file of the extension program to be updated and the first corresponding relationship; The extension program updating module is used to update the extension program to be updated according to the compressed file of the extension program to be updated.

7. The device according to claim 6, characterized in that The electronic device stores address information of update and maintenance files corresponding to each extension program; the server stores a second correspondence between the address information of the update and maintenance files and the update and maintenance files, and the compressed file acquisition module is further used to acquire the address information of the update and maintenance files corresponding to the extension program to be updated stored locally; and acquire the update and maintenance files corresponding to the extension program to be updated from the server according to the address information of the update and maintenance files corresponding to the extension program to be updated and the second correspondence; The address information of the compressed file of the extension program to be updated is obtained from the update maintenance file corresponding to the extension program to be updated.

8. The device according to claim 7, characterized in that The update maintenance file corresponding to the extension program to be updated also includes the latest version information of the extension program to be updated; the compressed file acquisition module is also used to obtain the latest version information of the extension program to be updated from the update maintenance file corresponding to the extension program to be updated; if the current version information of the extension program to be updated is different from the latest version information, then obtain the address information of the locally stored update maintenance file corresponding to the extension program to be updated.

9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and the computer program executable by the processor is used to implement the extended program updating method according to any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the extended program updating method according to any one of claims 1 to 5 is implemented.