CN113535194A - Installation package updating method and device, computer equipment and storage medium - Google Patents

Installation package updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113535194A
CN113535194A CN202110842877.5A CN202110842877A CN113535194A CN 113535194 A CN113535194 A CN 113535194A CN 202110842877 A CN202110842877 A CN 202110842877A CN 113535194 A CN113535194 A CN 113535194A
Authority
CN
China
Prior art keywords
plug
host
program
information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110842877.5A
Other languages
Chinese (zh)
Inventor
朱建伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202110842877.5A priority Critical patent/CN113535194A/en
Publication of CN113535194A publication Critical patent/CN113535194A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses an updating method and device of an installation package, computer equipment and a storage medium. The method comprises the following steps: acquiring host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application; respectively acquiring a host program of the host and plug-in programs of all plug-ins according to the host information and the plug-in information; performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in each plug-in program; and packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain an updated host application installation package. According to the scheme, the target plug-in is processed in a modularization mode, so that when the target plug-in opens the page of the host program, an external communication interface of the host application is not needed, and the problem of compatibility between the plug-in and the host application can be solved.

Description

Installation package updating method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an update method and apparatus for an installation package, a computer device, and a storage medium.
Background
With continuous iteration of Android system versions, various applications are continuously updated, and in order to improve diversity of application functions, existing applications generally use plug-in and componentization hybrid development, that is, components are provided in developed applications, and plug-ins can also be called, wherein when an application has a capability of calling a certain plug-in, the application is called a host application of the plug-in, generally, pages between the plug-ins and the components can be called mutually, for example, after a page of a certain plug-in is called by a wechat application, a page of the wechat application can also be returned from the plug-in page (that is, a host application page is called).
When the plug-in calls the page of the host application, the plug-in needs to access through an external communication interface, and the component can directly call the page of the host application without the external communication interface.
Because the plug-in is an independent individual, when the host application is updated, the plug-in still stays in the old version, and at this time, some compatibility problems may exist between the plug-in and the host, which results in that the plug-in cannot access the page of the host application through the external communication interface of the host.
Disclosure of Invention
The embodiment of the invention provides an updating method and device of an installation package, computer equipment and a storage medium, which can solve the problem of compatibility of a plug-in and a host application.
In a first aspect, an embodiment of the present invention provides an update method for an installation package, including:
acquiring host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application;
respectively acquiring a host program of the host and plug-in programs of all plug-ins according to the host information and the plug-in information;
performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in each plug-in program;
and packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain an updated host application installation package.
In a second aspect, an embodiment of the present invention further provides an update apparatus for an installation package, where the update apparatus includes:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application;
a second obtaining unit, configured to obtain a host program of the host and plug-in programs of the respective plug-ins according to the host information and the plug-in information;
the testing unit is used for carrying out compatibility testing on the host program and the plug-in programs and confirming target plug-ins which are incompatible with the host program in each plug-in program;
and the processing unit is used for packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, the computer program including program instructions, which when executed by a processor, implement the above method.
The embodiment of the invention provides an updating method and device of an installation package, computer equipment and a storage medium. Wherein the method comprises the following steps: acquiring host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application; respectively acquiring a host program of the host and plug-in programs of all plug-ins according to the host information and the plug-in information; performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in each plug-in program; and packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain an updated host application installation package. According to the scheme, when the host application installation package is updated, the plug-in program corresponding to the target plug-in is added into the host program, so that the target plug-in becomes a component in the host application, and in subsequent use, the target plug-in can open a host program page in a component mode without passing through an external communication interface of the host application, so that the problem of compatibility between the plug-in and the host application can be solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of an update method for an installation package according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an update method of an installation package according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow chart of an update method of an installation package according to an embodiment of the present invention;
fig. 4 is another sub-flow diagram of an update method of an installation package according to an embodiment of the present invention;
fig. 5 is another schematic sub-flow chart of an update method of an installation package according to an embodiment of the present invention;
fig. 6 is another schematic sub-flow chart of an update method of an installation package according to an embodiment of the present invention;
FIG. 7 is a schematic sub-flowchart of an update method for an installation package according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of an update apparatus for an installation package provided by an embodiment of the present invention;
fig. 9 is a schematic block diagram of an update apparatus for an installation package according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the invention provides an updating method and device of an installation package, computer equipment and a storage medium.
The execution main body of the update method of the installation package can be an update device of the installation package provided by the embodiment of the invention, or computer equipment integrated with the update device of the installation package, wherein the update device of the installation package can be realized in a hardware or software mode, the computer equipment can be a terminal or a server, and the terminal can be a smart phone, a tablet computer, a palm computer, a notebook computer or the like.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of an update method of an installation package according to an embodiment of the present invention. In some embodiments, when a user needs a certain host application of the terminal 20, the terminal 20 sends an update instruction of the host application to the computer device 10, and the computer device 10 obtains host information of the host application and plug-in information of a plurality of plug-ins corresponding to the host application according to the update instruction; then respectively acquiring a host program of the host and plug-in programs of all plug-ins according to the host information and the plug-in information; performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in each plug-in program; finally, the plug-in program corresponding to the target plug-in is packaged into the host program to perform componentization processing on the target plug-in, so as to obtain an updated host application installation package, and then the computer 10 sends the updated host application installation package to the terminal 20 through the server or directly, so as to update the corresponding host application on the terminal 20.
The embodiment of the invention provides an updating method of an installation package, wherein an execution main body of the updating method of the installation package can be an updating device of the installation package provided by the embodiment of the invention or computer equipment integrating the updating device of the installation package, the updating device of the installation package can be realized in a hardware or software mode, the computer equipment can be a terminal or a server, and the terminal can be a smart phone, a tablet computer, a palm computer, a notebook computer or the like.
Taking a computer device as an execution subject, a method for updating an installation package in the present embodiment is described in detail below, please refer to fig. 2, where fig. 2 is a flowchart illustrating the method for updating an installation package according to the present embodiment, where the method includes the following steps S110 to S150.
S110, obtaining host information of the host application and plug-in information of a plurality of plug-ins corresponding to the host application.
Each host application may correspond to a plurality of plug-ins, the host information in this embodiment includes a host application name and a host download address of the host application, and the plug-in information includes a plug-in name and a plug-in download address.
In some embodiments, referring to fig. 3, specifically, step S110 includes:
and S111, acquiring an update instruction of the host application.
The update instruction is used to instruct to update the installation package of one or some host applications, and in some embodiments, the update instruction of the host application may be generated according to an update period preset in the computing device, for example, update detection is performed on the host application every 7 days, at this time, when the time of the update period is reached, the update instruction of the host application is automatically generated, so that the computer device obtains the update instruction of the host application.
In other embodiments, the update instruction of the host application may be triggered by a background developer, or may be sent by a target terminal, where the target terminal is a terminal that needs to update the host application, for example, when a terminal user wants to update a certain host application, the terminal user sends the update instruction to the computer device through the target terminal.
And S112, acquiring host information of the host application and plug-in information of a plurality of plug-ins corresponding to the host application from a preset host plug-in information table according to the updating instruction.
Specifically, in this embodiment, in response to the update instruction, the host information of the host application and the plug-in information of the plurality of plug-ins corresponding to the host application are obtained from the preset host plug-in information table, wherein the host plug-in information table is updated in real time, and has host information of the maintained host application and plug-in information supported by each maintained host application, or maintaining the host application corresponding to each terminal installed with the host application and the plug-in information of the plug-in used in the corresponding terminal by the corresponding host application, as for the plug-in information, the former acquires plug-in information of all plug-ins supported by the host application, and the latter acquires plug-ins used in the corresponding terminal, corresponding to the latter scheme, the invention can respectively update the corresponding installation packages aiming at different terminals, thereby realizing the individual update of the installation packages of different terminals.
It should be noted that the update instruction includes an identifier of a host application that needs to be updated by the installation package, and then the computer device obtains host information of the corresponding host application and plug-in information of a plurality of plug-ins corresponding to the host application from a preset host plug-in information table according to the identifier of the host application.
And S120, respectively acquiring the host program of the host and the plug-in programs of all the plug-ins according to the host information and the plug-in information.
The host program may be an installation package of the host application.
In some embodiments, referring to fig. 4, specifically, step S120 includes:
and S121, acquiring the host program according to the host download address in the host information.
In this embodiment, the computer device may obtain the corresponding host program by downloading from a server in which the host program is stored according to the obtained host download address.
And S122, acquiring the plug-in program according to the plug-in download address in the plug-in information.
In this embodiment, the computer device may acquire the corresponding plug-in program by downloading from a server in which the plug-in program is stored according to the acquired plug-in download address.
And S130, performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in the plug-in programs.
In this embodiment, a compatibility test is performed on the host program and the plug-in program, that is, it is checked whether the host application can call the page of the plug-in program, and it is checked whether the plug-in program can call the page of the host application, for example, the plug-in program is opened from the WeChat, and after the plug-in program is opened, the plug-in program is returned to the WeChat page from the plug-in program.
In some embodiments, referring to fig. 5, specifically, step S130 includes:
s131, performing page calling test on the plug-in program through the host program to obtain a first test result.
At this time, a page of the plug-in called by the host application is simulated in the computer device, and a simulated result is used as a first detection result, wherein the first detection includes a compatible result or an incompatible result, the compatible result reflects the page of the plug-in which the host application can call, and the incompatible result reflects the page of the plug-in which the host application cannot call.
S132, performing page calling test on the host program through the plug-in program to obtain a second test result.
At this time, the plug-in calls the page of the host application in the computer device, and the simulated result is used as a second detection result, similarly, the second detection includes a compatible result or an incompatible result, the compatible result reflects that the host application can call the page of the plug-in, and the incompatible result reflects that the host application cannot call the page of the plug-in.
And S133, determining the target plug-in according to the first test result and the second test result.
Specifically, if the first test result and the second test result are both compatible results, it indicates that the host application and the plug-in are compatible with each other, and if the first test result and/or the second test result are incompatible results, it indicates that the host application and the plug-in are incompatible, and at this time, the incompatible plug-in is determined as the target plug-in.
In other embodiments, referring to fig. 6, specifically, step S130 includes:
and B131, acquiring a first calling result of the page calling of the plug-in program by the host program sent by the installation terminal.
The installation terminal in this embodiment is a terminal installed with the host application, and generally, a plurality of terminals are installed with the host application, and when calling of the plug-in by the host application in the terminal fails, the terminal sends a first calling result to the computer device, and the first calling result reflects that calling of the plug-in by the host application fails.
And B132, acquiring a second calling result of the page calling of the host program by the plug-in program sent by the installation terminal.
When the plug-in calls the host application in the installation terminal to call the host application unsuccessfully, the terminal sends a second calling result to the computer equipment, and the second calling result reflects the calling failure of the plug-in to call the host application.
And B133, determining the target plug-in according to the first calling result and the second calling result.
In this embodiment, a plug-in incompatible with the host application in the first call result and the second call result is determined as a target plug-in.
In some embodiments, in order to avoid a situation that part of the terminals have an incompatible condition false alarm, at this time, if the total number of times that the computer device receives the first call result and the second call result corresponding to the same plug-in exceeds a preset result threshold (for example, exceeds 300 times), the plug-in is determined as the target plug-in at this time.
And S140, packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package.
In this embodiment, after the target plug-in is determined, in order to solve the problem that the target plug-in is incompatible with the host application, at this time, when the host application installation package is updated, the plug-in corresponding to the target plug-in is packaged into the host program, and the target plug-in is modularized in the host application, specifically, the plug-in is configured and introduced in the host program according to an Android Library AAR Library manner, a dependency is added in the host program, and a code of the plug-in is compiled and packaged into the host program, so that the updated host application installation package is obtained.
In some embodiments, referring to fig. 7, specifically, step S140 includes:
and S141, acquiring the historical use frequency of the target plug-in relative to the target terminal.
The target terminal is a terminal which needs to update the installation package of the host application, and obtains the historical use frequency of the target plug-in relative to the target terminal, namely the historical use frequency of the target plug-in the target terminal, wherein the historical use frequency can be the daily use frequency in the last month.
And S142, when the historical use frequency is greater than the preset frequency threshold, packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package.
The preset frequency threshold may be 0.1, or may be other values, which is not limited herein.
In this embodiment, when the historical usage frequency is greater than the preset frequency threshold, the plug-in corresponding to the target plug-in is packaged into the host program, and the historical usage frequency is greater than the preset frequency threshold, that is, it is stated that the frequency of using the plug-in by the user corresponding to the target terminal is higher, the plug-in can be subsequently cured into a component in the host application, which is convenient for the user to use, and if the plug-in whose direction usage frequency is greater than the preset frequency threshold is incompatible with the host application, the application can be updated rapidly by the present scheme, the automatic update application is realized, the problem that the plug-in is incompatible with the host application can be rapidly solved, and the experience of the terminal user is improved.
In some embodiments, after packaging the plug-in program corresponding to the target plug-in into the host program to perform componentization processing on the target plug-in and obtain the updated host application installation package, the method further includes: sending the updated host application installation package to a server; and sending application updating indication information to the target terminal, so that the target terminal downloads the updated host application installation package from the server to update the host application, and the problem of incompatibility of the host application and the plug-in is solved.
In some application scenarios, when the end-user needs to upgrade the host application, or when the end-user is using a plug-in the host application, there are situations where the sending plug-in is incompatible with the host application, at this time, the user sends the update instruction of the host application to the computer device through the target terminal, the corresponding installation package can be rapidly updated through the computer equipment without the participation of developers, the automation of the update of the installation package is realized, after the installation package is updated, the installation package is sent to the server, and the target terminal is informed to download the updated installation package from the server so as to realize the update of the corresponding host application, or the updated installation package is directly sent to the target terminal, so that the target terminal updates the corresponding host application.
In other application scenarios, the computer device updates the host application according to a preset update period, and sends the updated host application installation package to the server, when the terminal needs to update the corresponding host application, the terminal sends an application update request to the server, and then the terminal sends the updated host application installation package to the terminal according to the application update request, so that the terminal updates the host application, and the updated host application can solve the problem of incompatibility between the plug-in and the host application.
It should be noted that the plug-in module is integrated into the host program in the form of an Android Package (APK) compiled, and the component module is integrated into the host program in the form of an Android Library. In this embodiment, both plug-ins and in-component page hopping use the ARouter framework.
Because the plug-in runs in a process different from that of the host program, when the plug-in opens the page of the host program, communication access needs to be performed through an Android Interface Definition Language (AIDL) Interface. The main program page can be opened without the aid interface of the plug-in, so when the plug-in is integrated into the host program as the Library component Library, the plug-in is subjected to componentization processing, and when the plug-in is communicated with the host program, the host program page can be opened by directly using the aid default jump mode without the aid interface of the aid interface and the host plug-in, so that the problem of incompatibility of the plug-in and the host program can be solved.
In this embodiment, when the host application installation package is updated, 360Replugin and ARouter are used to construct componentized and pluged hybrid development, for the application of other plugins, aid id interface configuration is added to the updated host application installation package, an ARouter method interface is defined, a global interface callback is registered in a host program through Replugin, the ARouter interface routing parameters are received and processed, and the parameters are set to the ARouter to realize a routing jump page.
For a plug-in compatible with a host application, computer equipment in the scheme adds AIDL interface configuration in a plug-in program, defines Arouter method interface parameters to transfer an ARouter framework route hopping parameter class Postcard, and calls the AIDL interface method to transfer a Postcard object to an AIDL interface monitoring method of the host program when the computer equipment runs in a plug-in mode.
By using the updating method of the installation package in the scheme, the target plug-in can normally use the ARouter default route skip mode to develop and open the page code of the host program, and the AILD interface mode is not needed to develop and open the page code of the host program. The target plug-in is modularized, the code does not need to be changed, and the intrusiveness of the plug-in and assembly development difference on the code is reduced.
Moreover, the plug-in program can still be operated and debugged by an independent module after the plug-in program is converted into the component library project, the independent module has less code amount and high compiling speed, and the development and debugging are more convenient.
In this embodiment, host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application are obtained; respectively acquiring a host program of a host and plug-in programs of all plug-ins according to the host information and the plug-in information; performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in each plug-in program; and packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package. According to the scheme, the target plug-in is processed in a modularization mode, so that when the target plug-in opens the page of the host program, an external communication interface of the host application is not needed, and the problem of compatibility between the plug-in and the host application can be solved.
Fig. 8 is a schematic block diagram of an update apparatus for an installation package according to an embodiment of the present invention. As shown in fig. 8, the present invention also provides an updating apparatus for an installation package, corresponding to the above updating method for an installation package. The updating device of the installation package comprises a unit for executing the updating method of the installation package, and the device can be configured in a desktop computer, a tablet computer, a portable computer, and the like. Specifically, referring to fig. 8, the apparatus for updating an installation package includes a first obtaining unit 801, a second obtaining unit 802, a testing unit 803, and a processing unit 804.
A first obtaining unit 801, configured to obtain host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application;
a second obtaining unit 802, configured to obtain a host program of the host and plug-in programs of all plug-ins according to the host information and the plug-in information;
a testing unit 803, configured to perform compatibility testing on the host program and the plug-in programs, and determine a target plug-in that is incompatible with the host program in each plug-in program;
the processing unit 804 is configured to package the plug-in program corresponding to the target plug-in into the host program, so as to perform componentization processing on the target plug-in, and obtain an updated host application installation package.
In some embodiments, the second obtaining unit 802 is specifically configured to:
acquiring the host program according to the host download address in the host information;
and acquiring the plug-in program according to the plug-in download address in the plug-in information.
In some embodiments, the test unit 803 is specifically configured to:
performing page calling test on the plug-in program through the host program to obtain a first test result;
performing page calling test on the host program through the plug-in program to obtain a second test result;
and determining the target plug-in according to the first test result and the second test result.
In some embodiments, the test unit 803 is further specifically configured to:
acquiring a first calling result of the host program sent by the installation terminal for carrying out page calling on the plug-in program;
acquiring a second calling result of the host program page calling of the plug-in program sent by the installation terminal;
and determining the target plug-in according to the first calling result and the second calling result.
In some embodiments, the first obtaining unit 801 is specifically configured to:
acquiring an update instruction of a host application;
and acquiring host information of the host application and plug-in information of a plurality of plug-ins corresponding to the host application from a preset host plug-in information table according to the updating instruction.
In some embodiments, the processing unit 804 is specifically configured to:
acquiring the historical use frequency of the target plug-in relative to a target terminal, wherein the target terminal is a terminal needing to update a host application;
and when the historical use frequency is greater than a preset frequency threshold value, packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package.
Fig. 9 is a schematic block diagram of an update apparatus for an installation package according to another embodiment of the present invention. As shown in fig. 9, the update apparatus of the installation package of the present embodiment is the first sending unit 805 and the second sending unit 806 added to the above embodiment.
A first sending unit 805, configured to send the updated host application installation package to a server;
a second sending unit 806, configured to send application update indication information to the target terminal, so that the target terminal downloads the updated host application installation package from the server according to the application update indication information, so as to update the host application.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the update apparatus of the installation package and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The updating means of the installation package may be implemented in the form of a computer program that is executable on a computer device.
The computer equipment can be a terminal or a server, wherein the terminal can be an electronic equipment with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and a wearable equipment. The server may be an independent server or a server cluster composed of a plurality of servers.
The computer device includes a processor, a memory, and a network interface connected by a system bus, where the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause a processor to perform a method of updating an installation package.
The processor is used to provide computational and control capabilities to support the operation of the overall computer device.
The internal memory provides an environment for running a computer program in a non-volatile storage medium, which when executed by a processor causes the processor to perform an update method of an installation package.
The network interface is used for network communication with other devices.
Wherein the processor is configured to run a computer program stored in the memory to implement the steps of:
acquiring host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application;
respectively acquiring a host program of the host and plug-in programs of all plug-ins according to the host information and the plug-in information;
performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in each plug-in program;
and packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain an updated host application installation package.
In an embodiment, when the processor implements the step of obtaining the host program of the host and the plug-in programs of the respective plug-ins according to the host information and the plug-in information, the following steps are specifically implemented:
acquiring the host program according to the host download address in the host information;
and acquiring the plug-in program according to the plug-in download address in the plug-in information.
In an embodiment, when the processor performs the step of performing the compatibility test on the host program and the plug-in program and confirming the target plug-in program incompatible with the host program in each plug-in program, the following steps are specifically implemented:
performing page calling test on the plug-in program through the host program to obtain a first test result;
performing page calling test on the host program through the plug-in program to obtain a second test result;
and determining the target plug-in according to the first test result and the second test result.
In an embodiment, when the processor performs the step of performing the compatibility test on the host program and the plug-in program and confirming the target plug-in program incompatible with the host program in each plug-in program, the following steps are specifically implemented:
acquiring a first calling result of the host program sent by the installation terminal for carrying out page calling on the plug-in program;
acquiring a second calling result of the host program page calling of the plug-in program sent by the installation terminal;
and determining the target plug-in according to the first calling result and the second calling result.
In an embodiment, when the processor implements the step of obtaining the host information of the host application and the plug-in information of the plurality of plug-ins corresponding to the host application, the following steps are specifically implemented:
acquiring an update instruction of a host application;
and acquiring host information of the host application and plug-in information of a plurality of plug-ins corresponding to the host application from a preset host plug-in information table according to the updating instruction.
In an embodiment, when the processor implements the step of packaging the plug-in program corresponding to the target plug-in into the host program to perform componentization processing on the target plug-in to obtain an updated host application installation package, the following steps are specifically implemented:
acquiring the historical use frequency of the target plug-in relative to a target terminal, wherein the target terminal is a terminal needing to update a host application;
and when the historical use frequency is greater than a preset frequency threshold value, packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package.
In an embodiment, after the step of packing the plug-in program corresponding to the target plug-in into the host program by the processor to perform componentization processing on the target plug-in and obtain an updated host application installation package is implemented, the following steps are further implemented:
sending the updated host application installation package to a server;
and sending application updating indication information to the target terminal, so that the target terminal downloads the updated host application installation package from the server according to the application updating indication information to update the host application.
It should be understood that in the embodiments of the present invention, the Processor may be a Central Processing Unit (CPU), and the Processor may also be 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. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions. The program instructions, when executed by the processor, cause the processor to perform the steps of:
acquiring host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application;
respectively acquiring a host program of the host and plug-in programs of all plug-ins according to the host information and the plug-in information;
performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in each plug-in program;
and packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain an updated host application installation package.
In an embodiment, when the processor executes the program instruction to implement the step of respectively acquiring the host program of the host and the plug-in programs of the respective plug-ins according to the host information and the plug-in information, the following steps are specifically implemented:
acquiring the host program according to the host download address in the host information;
and acquiring the plug-in program according to the plug-in download address in the plug-in information.
In an embodiment, when the processor executes the program instruction to implement the step of performing compatibility test on the host program and the plug-in programs and confirming a target plug-in program incompatible with the host program in each plug-in program, the following steps are specifically implemented:
performing page calling test on the plug-in program through the host program to obtain a first test result;
performing page calling test on the host program through the plug-in program to obtain a second test result;
and determining the target plug-in according to the first test result and the second test result.
In an embodiment, when the processor executes the program instruction to implement the step of performing compatibility test on the host program and the plug-in programs and confirming a target plug-in program incompatible with the host program in each plug-in program, the following steps are specifically implemented:
acquiring a first calling result of the host program sent by the installation terminal for carrying out page calling on the plug-in program;
acquiring a second calling result of the host program page calling of the plug-in program sent by the installation terminal;
and determining the target plug-in according to the first calling result and the second calling result.
In an embodiment, when the processor executes the program instruction to implement the step of obtaining the host information of the host application and the plug-in information of the plurality of plug-ins corresponding to the host application, the following steps are specifically implemented:
acquiring an update instruction of a host application;
and acquiring host information of the host application and plug-in information of a plurality of plug-ins corresponding to the host application from a preset host plug-in information table according to the updating instruction.
In an embodiment, when the processor executes the program instruction to implement the step of packaging the plug-in program corresponding to the target plug-in into the host program to perform componentization processing on the target plug-in to obtain an updated host application installation package, the following steps are specifically implemented:
acquiring the historical use frequency of the target plug-in relative to a target terminal, wherein the target terminal is a terminal needing to update a host application;
and when the historical use frequency is greater than a preset frequency threshold value, packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package.
In an embodiment, after the processor executes the program instruction to implement the step of packaging the plug-in program corresponding to the target plug-in into the host program to perform componentization processing on the target plug-in to obtain an updated host application installation package, the following step is further implemented:
sending the updated host application installation package to a server;
and sending application updating indication information to the target terminal, so that the target terminal downloads the updated host application installation package from the server according to the application updating indication information to update the host application.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An update method for an installation package, comprising:
acquiring host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application;
respectively acquiring a host program of the host and plug-in programs of all plug-ins according to the host information and the plug-in information;
performing compatibility test on the host program and the plug-in programs, and confirming target plug-ins which are incompatible with the host program in each plug-in program;
and packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain an updated host application installation package.
2. The method according to claim 1, wherein the obtaining the host program of the host and the plug-in programs of the respective plug-ins according to the host information and the plug-in information comprises:
acquiring the host program according to the host download address in the host information;
and acquiring the plug-in program according to the plug-in download address in the plug-in information.
3. The method according to claim 1, wherein the performing compatibility test on the host program and the plug-ins and confirming target plug-ins, which are incompatible with the host program, in each plug-in includes:
performing page calling test on the plug-in program through the host program to obtain a first test result;
performing page calling test on the host program through the plug-in program to obtain a second test result;
and determining the target plug-in according to the first test result and the second test result.
4. The method according to claim 1, wherein the performing compatibility test on the host program and the plug-ins and confirming target plug-ins, which are incompatible with the host program, in each plug-in includes:
acquiring a first calling result of the host program sent by the installation terminal for carrying out page calling on the plug-in program;
acquiring a second calling result of the host program page calling of the plug-in program sent by the installation terminal;
and determining the target plug-in according to the first calling result and the second calling result.
5. The method according to claim 1, wherein the obtaining of the host information of the host application and the plug-in information of the plurality of plug-ins corresponding to the host application comprises:
acquiring an update instruction of a host application;
and acquiring host information of the host application and plug-in information of a plurality of plug-ins corresponding to the host application from a preset host plug-in information table according to the updating instruction.
6. The method according to any one of claims 1 to 5, wherein the packaging the plug-in program corresponding to the target plug-in into the host program to perform componentization processing on the target plug-in to obtain an updated host application installation package includes:
acquiring the historical use frequency of the target plug-in relative to a target terminal, wherein the target terminal is a terminal needing to update a host application;
and when the historical use frequency is greater than a preset frequency threshold value, packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package.
7. The method according to claim 6, wherein after packaging the plug-in program corresponding to the target plug-in into the host program to perform componentization processing on the target plug-in and obtain the updated host application installation package, the method further comprises:
sending the updated host application installation package to a server;
and sending application updating indication information to the target terminal, so that the target terminal downloads the updated host application installation package from the server according to the application updating indication information to update the host application.
8. An update apparatus of an installation package, comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring host information of a host application and plug-in information of a plurality of plug-ins corresponding to the host application;
a second obtaining unit, configured to obtain a host program of the host and plug-in programs of the respective plug-ins according to the host information and the plug-in information;
the testing unit is used for carrying out compatibility testing on the host program and the plug-in programs and confirming target plug-ins which are incompatible with the host program in each plug-in program;
and the processing unit is used for packaging the plug-in program corresponding to the target plug-in into the host program so as to perform componentization processing on the target plug-in and obtain the updated host application installation package.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program comprising program instructions which, when executed by a processor, implement the method according to any one of claims 1-7.
CN202110842877.5A 2021-07-23 2021-07-23 Installation package updating method and device, computer equipment and storage medium Pending CN113535194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110842877.5A CN113535194A (en) 2021-07-23 2021-07-23 Installation package updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110842877.5A CN113535194A (en) 2021-07-23 2021-07-23 Installation package updating method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113535194A true CN113535194A (en) 2021-10-22

Family

ID=78120823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110842877.5A Pending CN113535194A (en) 2021-07-23 2021-07-23 Installation package updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113535194A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703815A (en) * 2021-10-29 2021-11-26 腾讯科技(深圳)有限公司 Offline resource updating method, device, terminal and storage medium
CN114172876A (en) * 2021-11-29 2022-03-11 阿里巴巴(中国)有限公司 Data transmission method, device and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030144A (en) * 2006-02-28 2007-09-05 国际商业机器公司 Software packaging method and system
CN101984410A (en) * 2010-11-12 2011-03-09 中兴通讯股份有限公司 Method and device for generating and unloading software installation package
US20140223425A1 (en) * 2011-07-01 2014-08-07 Rodney D. Brown Plug-In Installer Framework
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server
CN111026455A (en) * 2019-11-27 2020-04-17 掌阅科技股份有限公司 Plug-in generation method, electronic device and storage medium
CN113138768A (en) * 2021-04-29 2021-07-20 北京百度网讯科技有限公司 Application package generation method and device, electronic equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030144A (en) * 2006-02-28 2007-09-05 国际商业机器公司 Software packaging method and system
CN101984410A (en) * 2010-11-12 2011-03-09 中兴通讯股份有限公司 Method and device for generating and unloading software installation package
US20140223425A1 (en) * 2011-07-01 2014-08-07 Rodney D. Brown Plug-In Installer Framework
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server
CN111026455A (en) * 2019-11-27 2020-04-17 掌阅科技股份有限公司 Plug-in generation method, electronic device and storage medium
CN113138768A (en) * 2021-04-29 2021-07-20 北京百度网讯科技有限公司 Application package generation method and device, electronic equipment and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703815A (en) * 2021-10-29 2021-11-26 腾讯科技(深圳)有限公司 Offline resource updating method, device, terminal and storage medium
CN113703815B (en) * 2021-10-29 2022-02-11 腾讯科技(深圳)有限公司 Offline resource updating method, device, terminal and storage medium
CN114172876A (en) * 2021-11-29 2022-03-11 阿里巴巴(中国)有限公司 Data transmission method, device and computer storage medium

Similar Documents

Publication Publication Date Title
US20190324772A1 (en) Method and device for processing smart contracts
CN111090536B (en) Method, device, medium and electronic equipment for acquiring memory leakage information
CN113535194A (en) Installation package updating method and device, computer equipment and storage medium
US11748245B2 (en) Object-oriented regression-candidate filter
US10397281B2 (en) Method, system and server for self-healing of electronic apparatus
CN112130926B (en) Application program running method, device, terminal equipment and storage medium
JP4724660B2 (en) How to manage software components that are integrated into an embedded system
US20200401498A1 (en) Methods, circuits, apparatus, systems and associated software modules for evaluating code behavior
CN112882732A (en) Method and device for updating function codes in Software Development Kit (SDK)
US20180189167A1 (en) Methods, circuits, apparatus, systems and associated software modules for evaluating code behavior
US9582299B2 (en) Electronic system, onboard modular execution platform and method ensuring partitioning of configurable decision-making rules
CN113821439A (en) Method, device, storage medium and terminal for registering function to probe point
CN111352631A (en) Interface compatibility detection method and device
CN113242288B (en) Internet of things equipment firmware upgrading method, system and device and storage medium
CN112711427A (en) Method and device for acquiring mirror image file
JP2009129133A (en) Software partial test system, software partial test method, and program for software partial test
JP2006318197A (en) Controller support device and program
CN113434213B (en) Program running method and device of terminal
CN115543486B (en) Server-free computing oriented cold start delay optimization method, device and equipment
CN111782282B (en) Start program loading method and device, electronic equipment and storage medium
CN117251187A (en) Kernel updating method, task processing method, computing device and computer storage medium
CN117724761A (en) Illusion engine adaptation method, illusion engine adaptation device, electronic equipment and storage medium
CN115202709A (en) Software project dependence analysis method and device, computer equipment and storage medium
CN112579126A (en) Software development platform and software development method
CN117369825A (en) Android-based application software development method, device, equipment and medium

Legal Events

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