CN-116028099-B - Method for generating installation package, related device, equipment and storage medium
Abstract
The application discloses a method for generating an installation package, and a related device, equipment and storage medium, comprising the steps of determining a first storage catalog; the method comprises the steps of obtaining a first software management package set of a first system architecture and a second software management package set of a second system architecture, determining target functions of target tools, determining a first target software management package from the first software management package set and a second target software management package from the second software management package set based on the target functions, and generating target installation packages of the target tools based on a first storage catalog, the first target software management package and the second target software management package. By the method, the target software management package capable of executing the target function of the target tool can be determined in the software management package set of different system architectures, the target installation package generated by the method can be adapted to different system frameworks, and a large amount of manual repeatability is not needed for operation, so that the generation efficiency of the installation package is improved.
Inventors
- LIU ZIZHE
Assignees
- 腾讯科技(深圳)有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20211025
Claims (10)
- 1. A method of installation package generation, comprising: determining a first storage directory, wherein the first storage directory comprises a directory storing a software management package of a target tool; Acquiring a first software management package set of a first system architecture and a second software management package set of a second system architecture, wherein the first software management package set comprises a plurality of first software management packages running under the first system architecture, different first software management packages are used for executing different functions, and the second software management package set comprises a plurality of second software management packages running under the second system architecture, and different second software management packages are used for executing different functions; determining a target function of the target tool, wherein the target function comprises a first function and a second function; Determining a first target software management package from the first set of software management packages and a second target software management package from the second set of software management packages based on the target function, wherein the first target software management package comprises a first software management package for executing the first function and a first software management package for executing the second function, and the second target software management package comprises a second software management package for executing the first function and a second software management package for executing the second function; generating a target installation package of the target tool based on the first storage directory, the first target software management package and the second target software management package, wherein the target installation package comprises the first storage directory, the first target software management package and the second target software management package.
- 2. The method of claim 1, wherein the first storage directory further comprises a target installation directory of the storage target tool and a directory of installation scripts of the storage target tool, the target installation package further comprising installation scripts of the target tool; After the generating the target installation package of the target tool based on the first storage directory, the first target software management package, and the second target software management package, the method further comprises: decoding the target installation package, and storing the obtained installation script of the target tool, the first target software management package and the second target software management package under a target installation directory of the storage target tool; acquiring a target system architecture, wherein the target system architecture is any one of the first system architecture or the second system architecture; Determining a third target software management package from the first target software management package and the second target software management package based on the target system architecture, wherein the third target software management package is a software management package running under the target system architecture; And based on the third target software management package, performing installation processing on the first storage catalog through the installation script of the target tool to finish the installation of the target tool, wherein the installation script of the target tool after the installation of the target tool is finished is stored in the catalog storing the installation script of the target tool, and the third target software management package is stored in the catalog storing the software management package of the target tool.
- 3. The method of claim 2, wherein the first storage directory further comprises a directory storing a configuration file of a target tool, the target installation package further comprising the configuration file of the target tool; The decoding processing is performed on the target installation package, and the obtained installation script of the target tool, the first target software management package and the second target software management package are stored under the target installation catalog of the storage target tool, including: Decoding the target installation package, and storing the obtained installation script of the target tool, the configuration file of the target tool, the first target software management package and the second target software management package under the target installation directory of the storage target tool; The installing process is performed in the first storage directory through the installation script of the target tool based on the third target software management package, so as to complete the installation of the target tool, including: and storing the configuration file of the target tool in a catalog of the configuration file of the storage target tool, and performing installation processing on the first storage catalog through the installation script of the target tool based on the third target software management package so as to complete the installation of the target tool.
- 4. The method of claim 2, wherein the first storage directory further comprises a directory storing a configuration file of a target tool, the target installation package further comprising the configuration file of the target tool; the method further comprises the steps of: Detecting a catalog of the configuration file of the storage target tool, and determining that a first configuration file of the target tool exists, wherein the first configuration file is obtained by modifying the configuration file of the target tool; Copying the first configuration file in the catalog of the configuration file of the storage target tool to obtain the first configuration file; The installing process is performed in the first storage directory through the installation script of the target tool based on the third target software management package, so as to complete the installation of the target tool, including: And storing the first configuration file in a catalog of the configuration file of the storage target tool, and performing installation processing on the first storage catalog through an installation script of the target tool based on the third target software management package so as to complete the installation of the target tool.
- 5. The method according to claim 2, wherein the method further comprises: creating an association relation between the target function and a target function parameter, wherein the target function parameter comprises a first function parameter and a second function parameter, and the association relation comprises an association relation between the first function and the first function parameter and an association relation between the second function and the second function parameter; Distributing the target function to obtain a total inlet, wherein the total inlet indicates a plurality of command inlets, and the plurality of command inlets comprise a first command inlet for executing the first function and a second command inlet for executing the first function and the second function; The generating a target installation package of the target tool based on the first storage directory, the first target software management package, and the second target software management package includes: the target installation package of the target tool is generated based on the first storage directory, the association, the total entry, the first target software management package, and the second target software management package.
- 6. The method of claim 5, wherein after the completion of the installation of the target tool, the method further comprises: acquiring a first function call instruction through the first command inlet, wherein the first function call instruction comprises a first function parameter, and the first function parameter uniquely indicates the first function; determining the first function based on the first function parameter; And calling a function of the first function through the first command inlet to execute the first function.
- 7. The method of claim 5, wherein a first portal identification uniquely indicates the first command portal and a second portal identification uniquely indicates the second command portal; after the completion of the installation of the target tool, the method further comprises: acquiring a second function call instruction through the main entrance, wherein the first function call instruction comprises a second entrance identifier and a first function parameter, and the first function parameter uniquely indicates the first function; determining the second command entry based on the second entry identification; determining the first function based on the first function parameter; and calling a function of the first function through the second command entry to complete the first function.
- 8. An installation package generating apparatus, characterized in that the installation package generating apparatus includes: A determining module configured to determine a first storage directory, where the first storage directory includes a directory storing a software management package of a target tool; The system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a first software management package set of a first system architecture and a second software management package set of a second system architecture, the first software management package set comprises a plurality of first software management packages running under the first system architecture, different first software management packages are used for executing different functions, and the second software management package set comprises a plurality of second software management packages running under the second system architecture, and different second software management packages are used for executing different functions; The determining module is further configured to determine a target function of the target tool, where the target function includes a first function and a second function; The determining module is further configured to determine a first target software management package from the first set of software management packages and a second target software management package from the second set of software management packages based on the target function, where the first target software management package includes a first software management package for performing the first function and a first software management package for performing the second function, and the second target software management package includes a second software management package for performing the first function and a second software management package for performing the second function; And the generating module is used for generating a target installation package of the target tool based on the first storage catalog, the first target software management package and the second target software management package, wherein the target installation package comprises the first storage catalog, the first target software management package and the second target software management package.
- 9. A computer device comprises a memory, a transceiver, a processor, and a bus system; wherein the memory is used for storing programs; The processor being adapted to execute a program in the memory to implement the method of any one of claims 1 to 7; The bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
- 10. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 7.
Description
Method for generating installation package, related device, equipment and storage medium Technical Field The present application relates to the field of internet technologies, and in particular, to a method for generating an installation package, and related devices, apparatuses, and storage media. Background With the popularity of mobile intelligent devices, a developer needs to develop an installation package for generating the tool for different system frameworks, and the generation of an installation package of a tool generally needs a great deal of manual repetitive work to perform operations such as compiling, linking, copying and copying a target file, and finally generating an installation package capable of installing the tool, so how to more efficiently generate an installation package adapted to multiple system frameworks is a problem to be solved. Disclosure of Invention The embodiment of the application provides a method for generating an installation package, a related device, equipment and a storage medium, wherein the method comprises the steps of determining a catalog of a software management package for storing a target tool and determining a target software management package capable of executing a target function of the target tool in a software management package set of different system architectures, so that the target installation package of the target tool is generated through the catalog of the software management package for storing the target tool and the target software management package, and therefore the target installation package can adapt to different system frameworks without a large amount of manual repeatability operation, and only codes corresponding to the functions are stored in the storage catalog, so that the installed target tool can execute the functions, and the generation efficiency of the installation package is improved. In view of this, a first aspect of the present application provides a method of installation package generation, comprising: Determining a first storage directory, wherein the first storage directory includes a directory storing a software management package of the target tool; Acquiring a first software management package set of a first system architecture and a second software management package set of a second system architecture, wherein the first software management package set comprises a plurality of first software management packages running under the first system architecture, different first software management packages are used for executing different functions, and the second software management package set comprises a plurality of second software management packages running under the second system architecture, different second software management packages are used for executing different functions; determining a target function of a target tool, wherein the target function comprises a first function and a second function; Determining a first target software management package from a first set of software management packages and a second target software management package from a second set of software management packages based on the target function, wherein the first target software management package comprises a first software management package for executing the first function and a first software management package for executing the second function, and the second target software management package comprises a second software management package for executing the first function and a second software management package for executing the second function; and generating a target installation package of the target tool based on the first storage catalog, the first target software management package and the second target software management package, wherein the target installation package comprises the first storage catalog, the first target software management package and the second target software management package. A second aspect of the present application provides an installation package generating apparatus, comprising: a determining module configured to determine a first storage directory, wherein the first storage directory includes a directory storing a software management package of a target tool; The system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a first software management package set of a first system architecture and a second software management package set of a second system architecture, the first software management package set comprises a plurality of first software management packages running under the first system architecture, different first software management packages are used for executing different functions, the second software management package set comprises a plurality of second software management packages running under the second system architecture, and different second software management packages are used for exec