CN108829406B - Installation package packaging method and device, electronic equipment and storage medium - Google Patents

Installation package packaging method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108829406B
CN108829406B CN201810610152.1A CN201810610152A CN108829406B CN 108829406 B CN108829406 B CN 108829406B CN 201810610152 A CN201810610152 A CN 201810610152A CN 108829406 B CN108829406 B CN 108829406B
Authority
CN
China
Prior art keywords
installation package
configuration file
new
function interface
packaging
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.)
Active
Application number
CN201810610152.1A
Other languages
Chinese (zh)
Other versions
CN108829406A (en
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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Baoqu 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 Zhuhai Baoqu Technology Co Ltd filed Critical Zhuhai Baoqu Technology Co Ltd
Priority to CN201810610152.1A priority Critical patent/CN108829406B/en
Publication of CN108829406A publication Critical patent/CN108829406A/en
Application granted granted Critical
Publication of CN108829406B publication Critical patent/CN108829406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention provides an installation package packing method, an installation package packing device, electronic equipment and a storage medium, wherein the method comprises the steps of determining a first execution logic, determining a configuration file corresponding to an initial installation package, and configuring the corresponding configuration file according to actual installation requirements to obtain a new configuration file, wherein the new configuration file comprises the following components: the identifiers of all functional interfaces required to be called by the new installation package; triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic; generating an executive program of a new installation package containing functions indicated by the target function interface; and generating a new installation package according to the configuration information in the new configuration file and packaging. According to the invention, the new installation package can meet the individualized actual installation requirement, and the target function interface corresponding to the new configuration file is directly called to realize the packaging, so that the packaging process is simplified, the resource cost consumed by the packaging can be saved, and the packaging efficiency is improved.

Description

Installation package packaging method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to an installation package packaging method and device, electronic equipment and a storage medium.
Background
The installation package, namely the application installation package, is a collection of files capable of being automatically decompressed, wherein all files installed by the application are included, and after one application is compressed into one installation package, the application can be installed on any electronic equipment meeting the requirements and registered into the registry. The installation package is an indispensable link before each application program is issued, files required for running, such as binary files and configuration files of each application program, are different, and registries to be written into are also different.
In the packaging method in the related art, the execution program is completely provided by a third party, the installation process is completely managed by the third party, the individualized installation requirement of the installation package cannot be met, and the packaging effect of the installation package is poor.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide an installation package packing method, which can make a new installation package meet an individualized actual installation requirement, and meanwhile, since a target function interface corresponding to a new configuration file is directly called to implement packing, a packing flow is simplified, so that resource cost consumed by packing can be saved, and packing efficiency is improved.
Another object of the present invention is to provide an installation package packing apparatus.
Another object of the present invention is to provide an electronic device.
It is another object of the invention to propose a non-transitory computer-readable storage medium.
It is a further object of the invention to propose a computer program product.
In order to achieve the above object, an installation package packing method provided in an embodiment of a first aspect of the present invention includes: determining a first execution logic, wherein the first execution logic is an execution logic of an initial installation package; determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to an actual installation requirement to obtain a new configuration file, where the new configuration file includes: the identifiers of all functional interfaces required to be called by the new installation package; triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic; generating an executive program of the new installation package containing the function indicated by the target function interface; and generating and packaging the new installation package by combining the executive program according to the configuration information in the new configuration file.
In an embodiment of the present invention, the triggering and calling, according to the first execution logic, a target function interface corresponding to each function interface identifier in the new configuration file includes:
and triggering and calling a target general function interface corresponding to each function interface identifier in the new configuration file from a plurality of general function interfaces according to the first execution logic, and taking the target general function interface as a target function interface.
In an embodiment of the present invention, before the determining the first execution logic, further comprising:
disassembling the functions of the initial installation package to obtain a plurality of sub-functions;
and packaging the processing logic for realizing each sub-function to obtain a general function interface corresponding to each sub-function.
In one embodiment of the present invention, the configuration information includes: and the name and the path information of the file required by the new installation package.
In an embodiment of the present invention, the generating and packaging the new installation package according to the configuration information in the new configuration file and by combining the execution program includes:
compressing the new configuration file to the tail part of the executive program according to the name and path information of the file required by the new installation package and by combining a segmented compression technology to obtain a new executive program;
and performing the packaging processing on the new executive program.
According to the installation package packing method provided by the embodiment of the first aspect of the invention, the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packing of the new installation package, so that the new installation package can meet the personalized actual installation requirement, and meanwhile, the target function interface corresponding to the new configuration file is directly called to realize packing, so that the packing process is simplified, the resource cost required to be consumed by packing can be saved, and the packing efficiency is improved.
In order to achieve the above object, an installation package packing apparatus according to an embodiment of a second aspect of the present invention includes: the first determining module is used for determining a first execution logic, wherein the first execution logic is the execution logic of the initial installation package; a second determining module, configured to determine a configuration file corresponding to the initial installation package, and configure the corresponding configuration file according to an actual installation requirement, to obtain a new configuration file, where the new configuration file includes: the identifiers of all functional interfaces required to be called by the new installation package; the calling module is used for triggering and calling the target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic; a generation module for generating an execution program of the new installation package containing the function indicated by the target function interface; and the packaging module is used for generating and packaging the new installation package by combining the executive program according to the configuration information in the new configuration file.
In an embodiment of the present invention, the invoking module is specifically configured to:
and triggering and calling a target general function interface corresponding to each function interface identifier in the new configuration file from a plurality of general function interfaces according to the first execution logic, and taking the target general function interface as a target function interface.
In one embodiment of the present invention, further comprising:
the function disassembling module is used for disassembling the functions of the initial installation package to obtain a plurality of sub-functions;
and the packaging module is used for packaging the processing logic for realizing each subfunction to obtain a general function interface corresponding to each subfunction.
In one embodiment of the present invention, the configuration information includes: and the name and the path information of the file required by the new installation package.
In one embodiment of the present invention, the packing module includes:
the compression submodule is used for compressing the new configuration file to the tail part of the execution program according to the name and the path information of the file required by the new installation package and by combining a segmented compression technology to obtain a new execution program;
and the packaging submodule is used for packaging the new executive program.
According to the installation package packing device provided by the embodiment of the second aspect of the invention, the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packing of the new installation package, so that the new installation package can meet the personalized actual installation requirement, and meanwhile, the target function interface corresponding to the new configuration file is directly called to realize packing, so that the packing process is simplified, the resource cost consumed by packing can be saved, and the packing efficiency is improved.
In order to achieve the above object, an electronic device according to a third aspect of the present invention includes: a processor, a memory, a power circuit, a multimedia component, an audio component, an interface for input/output (I/O), a sensor component, and a communication component; wherein, the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: determining a first execution logic, wherein the first execution logic is an execution logic of an initial installation package; determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to actual installation requirements to obtain a new configuration file, wherein the new configuration file comprises: the identifiers of all functional interfaces required to be called by the new installation package; triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic; generating an executive of the new installation package containing the function indicated by the target function interface; and generating and packaging the new installation package by combining the executive program according to the configuration information in the new configuration file.
In the electronic device provided by the embodiment of the third aspect of the present invention, the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packaging of the new installation package, so that the new installation package can meet the personalized actual installation requirement, and meanwhile, the target function interface corresponding to the new configuration file is directly called to implement packaging, so that the packaging process is simplified, and therefore, the resource cost required to be consumed by packaging can be saved, and the packaging efficiency is improved.
To achieve the above object, a non-transitory computer-readable storage medium according to a fourth aspect of the present invention is a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, the instructions enabling the mobile terminal to execute an installation package packaging method, the method including: determining a first execution logic, wherein the first execution logic is an execution logic of an initial installation package; determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to actual installation requirements to obtain a new configuration file, wherein the new configuration file comprises: the identifiers of all functional interfaces required to be called by the new installation package; triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic; generating an executive of the new installation package containing the function indicated by the target function interface; and generating and packaging the new installation package by combining the executive program according to the configuration information in the new configuration file.
According to the non-transitory computer-readable storage medium provided by the fourth aspect of the present invention, the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packaging of the new installation package, so that the new installation package can meet the personalized actual installation requirement, and meanwhile, the target function interface corresponding to the new configuration file is directly called to implement packaging, so that the packaging process is simplified, the resource cost required to be consumed by packaging can be saved, and the packaging efficiency is improved.
To achieve the above object, a computer program product according to a fifth embodiment of the present invention is a computer program product, wherein when instructions of the computer program product are executed by a processor, a method for packaging installation packages is performed, and the method includes: determining a first execution logic, wherein the first execution logic is an execution logic of an initial installation package; determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to actual installation requirements to obtain a new configuration file, wherein the new configuration file comprises: the identifiers of all functional interfaces required to be called by the new installation package; triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic; generating an executive program of the new installation package containing the function indicated by the target function interface; and generating and packaging the new installation package by combining the executive program according to the configuration information in the new configuration file.
According to the computer program product provided by the embodiment of the fifth aspect of the invention, the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packaging of the new installation package, so that the new installation package can meet the personalized actual installation requirement, and meanwhile, the target function interface corresponding to the new configuration file is directly called to realize packaging, so that the packaging process is simplified, the resource cost consumed by packaging can be saved, and the packaging efficiency is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of an installation package packing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an installation package packaging method according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for packaging an installation package according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an installation package packaging apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an installation package packaging apparatus according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating an installation package packing method according to an embodiment of the present invention.
The present embodiment is exemplified in that the installation package packing method is configured in the installation package packing device.
The installation package packing method in the present embodiment may be configured in an installation package packing device, which is provided in a server for example.
The installation package can be, for example, an installation package of an application program.
The application may refer to a software program running on an electronic device, such as a Personal Computer (PC), a cloud device or a mobile device, a mobile device such as a smart phone or a tablet Computer.
It should be noted that, the execution main body of this embodiment may be, for example, a Central Processing Unit (CPU) in the server on hardware, and may be, for example, a package-based service for an installation package in the server on software, which is not limited to this.
The installation package, namely the application installation package, is a set of files capable of being decompressed by self, wherein the files comprise all files installed by the application, and after an application is compressed into one installation package, the application can be installed on any electronic equipment meeting the requirements and registered into a registry. The installation package is an indispensable link before each application program is issued, files required by operation, such as binary files, configuration files and the like of each application program are different, and registries to be written are also different.
In the packaging method in the prior art, the executive program is completely provided by a third party, the installation process is completely managed by the third party, the individualized installation requirement of the installation package cannot be met, and the packaging effect of the installation package is poor.
In order to solve the above technical problem, an embodiment of the present invention provides an installation package packing method, where a configuration file corresponding to an initial installation package is configured directly according to an actual installation requirement, so as to obtain a new configuration file, and a target function interface corresponding to the new configuration file is called to trigger generation and packing of a new installation package, so that the new installation package can meet an individualized actual installation requirement, and meanwhile, a target function interface corresponding to the new configuration file is directly called to implement packing, so as to simplify a packing flow, thereby saving resource cost required to be consumed for packing, and improving packing efficiency.
In the execution process, the installation package packing method can be triggered at different times, and can be triggered at different times, so that the individuation of the manufacturing process of the new installation package can be realized in another dimension, and the installation package packing effect is further improved.
Wherein different occasions are for example before installation of the initial installation package, during installation, when installation is completed.
For example, if some files need to be released before the initial installation package is installed, the installation package packaging method may be triggered to generate an execution program of a new installation package including the function indicated by the target function interface corresponding to the configuration file after the files are released for packaging, and if some registry tables need to be written in the installation process, the installation package packaging method may be triggered to generate an execution program of a new installation package including the function indicated by the target function interface corresponding to the registry tables after the files are written in for packaging, which is not limited herein.
Referring to fig. 1, the method includes:
s101: and determining a first execution logic, wherein the first execution logic is the execution logic of the initial installation package.
The execution logic for triggering execution of installation of the initial installation package may be referred to as a first execution logic, and the first execution logic indicates each functional interface and corresponding processing logic required for installation of the initial installation package.
In the embodiment of the present invention, when the electronic device triggers and executes the first execution logic, each functional interface may be triggered and called to install the initial installation package.
The initial installation package is the installation package at the initial time.
In a specific execution process, in this embodiment, the processing logic of the application program to which the initial installation package belongs and the identifiers of the function interfaces may be combined, the function of the initial installation package is disassembled to obtain the identifier of the function interface for executing each sub-function, and the processing logic of the function interface indicated by each function interface identifier is used as the first execution logic, which is not limited to this.
Or, optionally, in some embodiments, referring to fig. 2, before S101, further including:
s201: and disassembling the functions of the initial installation package to obtain a plurality of subfunctions.
S202: and packaging the processing logic for realizing each sub-function to obtain a general function interface corresponding to each sub-function.
The generic function interface may include, for example: the registry reads and writes the operation interface, generates the shortcut operation interface, executes the EXE program operation interface, loads the DLL operation interface, etc., without limitation.
In the execution process, in order to enable the new installation package to meet the personalized actual installation requirements, the universal function interface can be obtained by pre-packaging, so that when the installation packages with different installation requirements are packaged, the corresponding universal functions can be realized by directly calling the universal function interface without rewriting and modifying the binary file, the multiplexing of the universal function interface is realized, and the packaging efficiency is improved.
In the execution process, in order to technically realize the packaging of installation packages with different installation requirements, the embodiment can directly call the universal function interface, and can also set the code writing rule of the interaction between the XML file and the universal function interface.
Code writing rules for example, the operations registry may be written in the following format:
<reg>
<item root="HKEY_LOCAL_MACHINE"path="SOFTWARE\XXXX"type="REG_SZ"name="Lang"value="CHS">
</reg>。
s102: determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to the actual installation requirement to obtain a new configuration file, wherein the new configuration file comprises: and identifying each function interface required to be called by the new installation package.
The configuration file is a file required for running the initial installation package.
In the embodiment of the invention, in order to make the new installation package meet the personalized actual installation requirement and realize the controllability of the packaging process of the installation package, the step of editing the configuration file of the initial installation package can be executed, namely the configuration file corresponding to the initial installation package is obtained, and the corresponding configuration file is configured according to the actual installation requirement to obtain the new configuration file.
The new configuration file comprises the configuration information of the new installation package.
The configuration information includes: name and path information of the file required by the new installation package.
Optionally, the new configuration file may further include: and installing each function interface identifier required to be called by the new installation package.
S103: and triggering and calling the target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic.
In the execution process of this embodiment, since the first execution logic indicates each functional interface and corresponding processing logic required for installing the initial installation package, the new configuration file includes: and installing each functional interface identifier required to be called by the new installation package, so that the target functional interface corresponding to each functional interface identifier in the new configuration file can be triggered and called on the basis of triggering and executing the first execution logic directly on the basis of each functional interface identifier.
Optionally, according to the first execution logic, a target general function interface corresponding to the new configuration file is triggered and called from the plurality of general function interfaces and serves as the target function interface. Therefore, multiplexing of the universal functional interface is technically realized, and the packaging efficiency is improved. The time consumption and labor cost for manufacturing the personalized installation package are effectively saved.
S104: and generating an executive program of the new installation package containing the functions indicated by the target function interface.
The executive program is used for decompressing the installation package file to the local according to the number of the files included in the new installation package, analyzing the new configuration file, and calling the general function interface corresponding to each general function interface identifier in the new configuration file according to the configuration of the XML file at different occasions to execute corresponding operations (the corresponding operations include reading and writing a registry, executing EXE and the like).
Optionally, the execution program of the new installation package may implement the function of dynamically changing the skin of the new installation package by using a method of resource external, so as to save system resources required to be consumed.
S105: and generating a new installation package and packaging according to the configuration information in the new configuration file and the execution program.
Alternatively, in some embodiments, referring to fig. 3, S105 may include:
s301: and compressing the new configuration file to the tail part of the execution program by combining a sectional compression technology according to the name and the path information of the file required by the new installation package to obtain the new execution program.
In the specific execution process, the new configuration file and the file required by the new execution program during operation are compressed to the tail of the execution program according to the name and path information of the file required by the new installation package and by combining the segmented compression technology, so that the new execution program is obtained.
S302: and packaging the new executive program.
In the embodiment, by combining the segmented compression technology, the new configuration file is compressed to the tail part of the execution program, the new execution program is obtained, the quick generation of different installation packages is realized, and the packaging efficiency of the new installation package is effectively improved. In addition, the configuration file corresponding to the initial installation package is configured directly according to the actual installation requirement to obtain a new configuration file, so that the execution of the installation process is controlled by adopting the configuration file, and the controllability of the installation process of the new installation package is effectively enhanced.
In this embodiment, because the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement, so as to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packaging of the new installation package, the new installation package can meet the personalized actual installation requirement, and meanwhile, because the target function interface corresponding to the new configuration file is directly called to implement packaging, the packaging process is simplified, so that the resource cost required to be consumed by packaging can be saved, and the packaging efficiency is improved.
Fig. 4 is a schematic structural diagram of an installation package packaging apparatus according to an embodiment of the present invention.
Referring to fig. 4, the apparatus 400 includes: a first determining module 401, a second determining module 402, a calling module 403, a generating module 404, and a packing module 405, wherein,
the first determining module 401 is configured to determine a first execution logic, where the first execution logic is an execution logic of an initial installation package.
A second determining module 402, configured to determine a configuration file corresponding to the initial installation package, and configure the corresponding configuration file according to an actual installation requirement, to obtain a new configuration file, where the new configuration file includes: and identifying each function interface required to be called by the new installation package.
And a calling module 403, configured to trigger to call, according to the first execution logic, a target function interface corresponding to each function interface identifier in the new configuration file.
A generating module 404, configured to generate an executive of the new installation package containing the function indicated by the target function interface.
And a packaging module 405, configured to generate a new installation package and package the new installation package according to the configuration information in the new configuration file and by combining with the execution program.
Optionally, in some embodiments, the invoking module 403 is specifically configured to:
and triggering and calling a target general function interface corresponding to each function interface identifier in the new configuration file from the plurality of general function interfaces according to the first execution logic, and taking the target general function interface as a target function interface.
Optionally, in some embodiments, referring to fig. 5, the apparatus 400 further comprises:
and a function disassembling module 406, configured to disassemble the function of the initial installation package to obtain a plurality of sub-functions.
And an encapsulating module 407, configured to encapsulate the processing logic implementing each sub-function, so as to obtain a general function interface corresponding to each sub-function.
Optionally, in some embodiments, the configuration information includes: name and path information of the file required by the new installation package.
Optionally, in some embodiments, referring to fig. 5, the packing module 405 includes:
the compressing submodule 4051 is configured to compress the new configuration file to the tail of the execution program according to the name and path information of the file required by the new installation package and by combining a segmented compression technology, so as to obtain the new execution program.
And a packaging sub-module 4052, configured to package the new execution program.
It should be noted that the explanation of the installation package packing method in the foregoing embodiments of fig. 1 to fig. 3 also applies to the installation package packing apparatus 400 in this embodiment, and the implementation principle is similar, and is not described again here.
In this embodiment, because the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement, so as to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packaging of the new installation package, the new installation package can meet the personalized actual installation requirement, and meanwhile, because the target function interface corresponding to the new configuration file is directly called to implement packaging, the packaging process is simplified, so that the resource cost required to be consumed by packaging can be saved, and the packaging efficiency is improved.
An embodiment of the present invention further provides an electronic device, and referring to fig. 6, the electronic device 600 may include one or more of the following components: a processor 601, a memory 602, a power circuit 603, a multimedia component 604, an audio component 605, an input/output (I/O) interface 606, a sensor component 607, and a communication component 608. A power supply circuit 603 for supplying power to each circuit or device of the electronic apparatus; the memory 602 is used to store executable program code; the processor 601 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 602, for performing the steps of:
determining a first execution logic, wherein the first execution logic is an execution logic of an initial installation package;
determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to the actual installation requirement to obtain a new configuration file, wherein the new configuration file comprises: the identifiers of all functional interfaces required to be called by the new installation package;
triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic;
generating an executive program of a new installation package containing functions indicated by the target function interface;
and generating a new installation package and packaging according to the configuration information in the new configuration file and by combining with the executive program.
It should be noted that the explanation of the installation package packing method embodiment in the foregoing fig. 1 to fig. 3 is also applicable to the electronic device 600 of this embodiment, and the implementation principle is similar, and is not described again here.
In this embodiment, because the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement, so as to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packaging of the new installation package, the new installation package can meet the personalized actual installation requirement, and meanwhile, because the target function interface corresponding to the new configuration file is directly called to implement packaging, the packaging process is simplified, so that the resource cost required to be consumed by packaging can be saved, and the packaging efficiency is improved.
In order to implement the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium, which when executed by a processor of a terminal, enables the terminal to perform an installation package packing method, the method comprising:
determining a first execution logic, wherein the first execution logic is an execution logic of an initial installation package;
determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to the actual installation requirement to obtain a new configuration file, wherein the new configuration file comprises: the functional interface identifiers required to be called by the new installation package;
triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic;
generating an executive program of a new installation package containing functions indicated by the target function interface;
and generating a new installation package and packaging according to the configuration information in the new configuration file and the execution program.
In the non-transitory computer-readable storage medium in this embodiment, the configuration file corresponding to the initial installation package is directly configured according to the actual installation requirement to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packaging of the new installation package, so that the new installation package can meet the personalized actual installation requirement, and meanwhile, the target function interface corresponding to the new configuration file is directly called to implement packaging, so that the packaging process is simplified, the resource cost required to be consumed for packaging can be saved, and the packaging efficiency is improved.
In order to implement the foregoing embodiments, the present invention further provides a computer program product, wherein when instructions in the computer program product are executed by a processor, the computer program product executes an installation package packing method, and the method includes:
determining a first execution logic, wherein the first execution logic is an execution logic of an initial installation package;
determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to the actual installation requirement to obtain a new configuration file, wherein the new configuration file comprises: the identifiers of all functional interfaces required to be called by the new installation package;
triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic;
generating an executive program of a new installation package containing functions indicated by the target function interface;
and generating a new installation package and packaging according to the configuration information in the new configuration file and the execution program.
In the computer program product in this embodiment, the configuration file corresponding to the initial installation package is configured directly according to the actual installation requirement, so as to obtain the new configuration file, and the target function interface corresponding to the new configuration file is called to trigger generation and packaging of the new installation package, so that the new installation package can meet the personalized actual installation requirement, and meanwhile, the target function interface corresponding to the new configuration file is directly called to implement packaging, so that the packaging process is simplified, the resource cost required to be consumed by packaging can be saved, and the packaging efficiency is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (8)

1. The installation package packaging method is characterized by comprising the following steps:
the method comprises the steps of splitting the function of an initial installation package into a plurality of sub-functions, determining a general function interface corresponding to each sub-function in a mode of packaging processing logic for realizing each sub-function, and determining first execution logic of the initial installation package;
determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to actual installation requirements to obtain a new configuration file, wherein the new configuration file comprises: the identifiers of all functional interfaces required to be called by the new installation package;
triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic;
generating an executive of the new installation package containing the function indicated by the target function interface;
and generating and packaging the new installation package by combining the executive program according to the configuration information in the new configuration file.
2. The installation package packing method of claim 1, wherein the triggering and calling the target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic includes:
and triggering and calling a target general function interface corresponding to each function interface identifier in the new configuration file from a plurality of general function interfaces according to the first execution logic, and taking the target general function interface as a target function interface.
3. The installation package packaging method of claim 1, wherein the configuration information comprises: and the name and the path information of the file required by the new installation package.
4. The installation package packing method of claim 3, wherein the generating and packing the new installation package according to the configuration information in the new configuration file and in combination with the execution program comprises:
compressing the new configuration file to the tail part of the executive program according to the name and path information of the file required by the new installation package and by combining a segmented compression technology to obtain a new executive program;
and packaging the new executive program.
5. An installation package packing apparatus, comprising:
the first determining module is used for decomposing the function of the initial installation package into a plurality of sub-functions, determining a general function interface corresponding to each sub-function in a manner of encapsulating processing logic for realizing each sub-function, and determining a first execution logic for determining the initial installation package;
a second determining module, configured to determine a configuration file corresponding to the initial installation package, and configure the corresponding configuration file according to an actual installation requirement, to obtain a new configuration file, where the new configuration file includes: the functional interface identifiers required to be called by the new installation package;
the calling module is used for triggering and calling the target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic;
a generation module for generating an execution program of the new installation package containing the function indicated by the target function interface;
and the packaging module is used for generating and packaging the new installation package by combining the executive program according to the configuration information in the new configuration file.
6. The installation package packing apparatus of claim 5, wherein the calling module is specifically configured to:
and triggering and calling a target general function interface corresponding to each function interface identifier in the new configuration file from a plurality of general function interfaces according to the first execution logic, and taking the target general function interface as a target function interface.
7. An electronic device, comprising one or more of the following components: a processor, a memory, a power circuit, a multimedia component, an audio component, an interface for input/output (I/O), a sensor component, and a communication component; wherein, the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
decomposing the function of an initial installation package into a plurality of subfunctions, determining a general function interface corresponding to each subfunction in a mode of encapsulating processing logic for realizing each subfunction, and determining a first execution logic of the initial installation package;
determining a configuration file corresponding to the initial installation package, and configuring the corresponding configuration file according to an actual installation requirement to obtain a new configuration file, where the new configuration file includes: the identifiers of all functional interfaces required to be called by the new installation package;
triggering and calling a target function interface corresponding to each function interface identifier in the new configuration file according to the first execution logic;
generating an executive of the new installation package containing the function indicated by the target function interface;
and generating and packaging the new installation package by combining the executive program according to the configuration information in the new configuration file.
8. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the installation package packing method of any one of claims 1 to 4.
CN201810610152.1A 2018-06-13 2018-06-13 Installation package packaging method and device, electronic equipment and storage medium Active CN108829406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810610152.1A CN108829406B (en) 2018-06-13 2018-06-13 Installation package packaging method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810610152.1A CN108829406B (en) 2018-06-13 2018-06-13 Installation package packaging method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108829406A CN108829406A (en) 2018-11-16
CN108829406B true CN108829406B (en) 2022-10-14

Family

ID=64141544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810610152.1A Active CN108829406B (en) 2018-06-13 2018-06-13 Installation package packaging method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108829406B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338631B (en) * 2018-12-18 2024-03-01 北京奇虎科技有限公司 Method and device for generating universal interface frame and computing equipment
CN113064607A (en) * 2021-06-02 2021-07-02 统信软件技术有限公司 Installation method of operating system, computing equipment and storage medium
CN113515322B (en) * 2021-06-29 2022-11-01 平安养老保险股份有限公司 Application program loading method and device, computer equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013182051A1 (en) * 2012-06-07 2013-12-12 腾讯科技(深圳)有限公司 Software installation method, terminal, system and computer storage medium
CN106325908A (en) * 2015-06-30 2017-01-11 北京金山安全软件有限公司 Application package installation method and application package installation device
CN106775838A (en) * 2016-11-29 2017-05-31 暴风集团股份有限公司 Plug-in unitization downloads the method and system of application program installation kit
CN107193544A (en) * 2017-04-01 2017-09-22 北京五八信息技术有限公司 A kind of application component melts forwarding method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5337411B2 (en) * 2008-06-13 2013-11-06 京セラドキュメントソリューションズ株式会社 Information concealment method and information concealment device
US9672022B2 (en) * 2010-06-23 2017-06-06 Microsoft Technology Licensing, Llc Applications including multiple experience modules
CN104216946B (en) * 2014-07-31 2019-03-26 百度在线网络技术(北京)有限公司 A kind of method and apparatus for beating again packet application program for determination
CN104991793B (en) * 2015-06-15 2019-04-02 上海海漾软件技术有限公司 A kind of method, apparatus and system for application program subpackage
CN106559438B (en) * 2015-09-24 2019-12-31 阿里巴巴集团控股有限公司 Program uploading method and device based on target network platform
CN106598678A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for supplying application installation packages to terminal equipment
CN108121563B (en) * 2017-11-10 2021-02-05 阿里巴巴(中国)有限公司 Application function customizing method and device, computing equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013182051A1 (en) * 2012-06-07 2013-12-12 腾讯科技(深圳)有限公司 Software installation method, terminal, system and computer storage medium
CN106325908A (en) * 2015-06-30 2017-01-11 北京金山安全软件有限公司 Application package installation method and application package installation device
CN106775838A (en) * 2016-11-29 2017-05-31 暴风集团股份有限公司 Plug-in unitization downloads the method and system of application program installation kit
CN107193544A (en) * 2017-04-01 2017-09-22 北京五八信息技术有限公司 A kind of application component melts forwarding method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
软件安装包 重新打包;weixin_33711641;《https://blog.csdn.net/weixin_33711641/article/details/91538756》;20100322;1-2 *

Also Published As

Publication number Publication date
CN108829406A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
US8555280B2 (en) Terminal device of non-android platform for executing android applications, and computer readable recording medium for storing program of executing android applications on non-android platform
CN108829406B (en) Installation package packaging method and device, electronic equipment and storage medium
US10019298B2 (en) Middleware interface and middleware interface generator
CN104375849A (en) Core loading method and device
CN110442327B (en) Application program construction method, device and server
US9507748B2 (en) Platform runtime abstraction
CN108279941B (en) Application program compression method and device
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN104238881A (en) Terminal information display method and device and terminal
CN111651219A (en) Method and equipment for managing multi-module project configuration file
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
CN110597564A (en) Installation package construction and service component loading method, device and terminal equipment
CN111209122A (en) Interface calling method and device, electronic equipment and storage medium
CN111158743B (en) Big data operation and maintenance management platform
CN108153533B (en) Method and device for making installation program, and method and device for installing program
CN114371850A (en) Management method for project construction compiling and code development
CN113448690A (en) Monitoring method and device
CN106775916B (en) Method and device for reducing application installation packages and electronic equipment
CN113821220A (en) Installation method and device of linux operating system
CN110825373B (en) Mobile terminal dynamic method and device
CN111880786A (en) Multi-application sharing method, system, device, electronic equipment and storage medium
CN104133669B (en) A kind of control method and terminal device of desktop application
CN111290740A (en) Application program development method and device, computer equipment and storage medium
CN108804088B (en) Protocol processing method and device
CN111142972B (en) Method, apparatus, system, and medium for extending functions of application program

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
TA01 Transfer of patent application right

Effective date of registration: 20191127

Address after: 519030 Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 519070, No. 10, main building, No. six, science Road, Harbour Road, Tang Wan Town, Guangdong, Zhuhai, 601F

Applicant before: Zhuhai Juntian Electronic Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant