CN113900703A - Installation package generation method and device, electronic equipment and storage medium - Google Patents
Installation package generation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113900703A CN113900703A CN202111162323.7A CN202111162323A CN113900703A CN 113900703 A CN113900703 A CN 113900703A CN 202111162323 A CN202111162323 A CN 202111162323A CN 113900703 A CN113900703 A CN 113900703A
- Authority
- CN
- China
- Prior art keywords
- target
- function
- configuration file
- installation package
- type
- 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
Links
- 238000009434 installation Methods 0.000 title claims abstract description 102
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000006870 function Effects 0.000 claims abstract description 240
- 238000012360 testing method Methods 0.000 claims abstract description 44
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 238000011161 development Methods 0.000 abstract description 10
- 238000001514 detection method Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005457 optimization Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
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 application discloses a method and a device for generating an installation package, electronic equipment and a storage medium. The method comprises the following steps: receiving a function configuration request, wherein the function configuration request carries a plurality of function requirement items; acquiring a target function meeting the function requirement item, and determining a target function type corresponding to the target function; acquiring a target configuration file meeting the target function type from a target information base corresponding to the target function type; and generating a target installation package according to the target configuration file, and sending the target installation package to a requester corresponding to the function configuration request. According to the method and the device, the corresponding configuration files are automatically matched from the information base according to the function types and the installation package is generated, developers are not required to develop different functions one by one according to different versions, the configuration files of the functions are only required to be stored in the information base, and under the development scene facing to multiple versions, the automatic matching can be performed according to the functions, so that the version release cost and the test acceptance cost are reduced, and the development period of a project is shortened.
Description
Technical Field
The present application relates to the field of computing technologies, and in particular, to a method and an apparatus for generating an installation package, an electronic device, and a storage medium.
Background
In this era of dramatic increases in storage devices, storage applications have become ever-changing. In order to deal with different users, a storage manufacturer can customize a plurality of different versions (with different brand names, mib nodes, mailboxes, customization functions and the like), and with the increase of the versions, a main line development project needs to release a plurality of versions at the same time, and deliver tests for acceptance. Because of the increase of project versions, developers need to develop different functions according to different versions, or the same function customizes different effects to different users, which finally leads to the increase of multiple versions release cost and test acceptance cost faced by the developers, and prolongs the development cycle of the project.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the application provides a method and an apparatus for generating an installation package, an electronic device, and a storage medium.
According to an aspect of an embodiment of the present application, there is provided a method for generating an installation package, including:
receiving a function configuration request, wherein the function configuration request carries a plurality of function requirement items;
acquiring a target function meeting the function requirement item, and determining a target function type corresponding to the target function;
acquiring a target configuration file meeting the target function type from a target information base corresponding to the target function type;
and generating a target installation package according to the target configuration file, and sending the target installation package to a requester corresponding to the function configuration request.
Further, the method further comprises:
acquiring a preset function library, wherein the preset function library comprises a plurality of functions with different function types;
acquiring a first function belonging to a customized type and a second function belonging to a basic type from the preset function library;
receiving a configuration instruction, wherein the configuration instruction carries a plug-in configuration file and a basic configuration file;
establishing a first corresponding relation between the first function and the plug-in configuration file, and storing the first corresponding relation and the plug-in configuration file to a first information base;
and establishing a second corresponding relation between the second function and the basic configuration file, and storing the second corresponding relation and the basic configuration file to a second information base.
Further, the obtaining a target function that meets the function requirement item and determining a function type corresponding to the target function includes:
acquiring a target function meeting the function requirement item from the preset function library;
and inquiring the function attribute corresponding to the target function to obtain the function type corresponding to the target function.
Further, the obtaining a target configuration file meeting the target function type from a target information base corresponding to the target function type includes:
under the condition that the target function type comprises a target customization type and a target basic type, acquiring a target plug-in configuration file corresponding to the target customization type from the first information base, and acquiring a target basic configuration file corresponding to the target basic type from the second information base;
and generating the target configuration file by using the target plug-in configuration file and the target basic configuration file.
Further, the generating the target configuration file by the target plug-in configuration file and the target base configuration file includes:
acquiring first test data corresponding to the target plug-in configuration file and second test data corresponding to the target basic configuration file;
respectively testing the target plug-in configuration file and the target basic configuration file by using the first test data and the second test data to obtain test results;
and under the condition that the test result is that the test is passed, generating the target configuration file by using the target plug-in configuration file and the target basic configuration file.
Further, the generating a target installation package according to the target configuration file and sending the target installation package to a requester corresponding to the function configuration request includes:
acquiring an installation environment of a requester corresponding to the function configuration request;
and under the condition that the security level of the installation environment is less than a preset level, encrypting the target installation package, and sending the encrypted target installation package to the requester.
Further, after generating a target installation package according to the target configuration file and sending the target installation package to a requester corresponding to the function configuration request, the method further includes:
acquiring an installation result fed back by the requester according to the target installation package;
and executing corresponding exception handling operation under the condition that the installation result is used for indicating that the target installation package is abnormally installed.
According to still another aspect of the embodiments of the present application, there is provided an installation package generation apparatus, including:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a function configuration request, and the function configuration request carries a plurality of function requirement items;
the acquisition module is used for acquiring a target function meeting the function requirement item and determining a function type corresponding to the target function;
the query module is used for acquiring a configuration file meeting the function type from a target information base corresponding to the function type;
and the generating module is used for generating a target installation package according to the configuration file and sending the installation package to a requester corresponding to the function configuration request.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program that executes the above steps when the program is executed.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; wherein: a memory for storing a computer program; a processor for executing the steps of the method by running the program stored in the memory.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the above method.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method and the device, the corresponding configuration files are automatically matched from the information base according to the function types and the installation package is generated, developers are not required to develop different functions one by one according to different versions, the configuration files of the functions are only required to be stored in the information base, and under the development scene facing to multiple versions, the automatic matching can be performed according to the functions, so that the version release cost and the test acceptance cost are reduced, and the development period of a project is shortened.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a method for generating an installation package according to an embodiment of the present application;
fig. 2 is a flowchart of a method for generating an installation package according to another embodiment of the present application;
fig. 3 is a flowchart of a method for generating an installation package according to another embodiment of the present application;
fig. 4 is a block diagram of an installation package generation apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present application. 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 application.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a method and a device for generating an installation package, electronic equipment and a storage medium. The method provided by the embodiment of the invention can be applied to any required electronic equipment, for example, the electronic equipment can be electronic equipment such as a server and a terminal, and the method is not particularly limited herein, and is hereinafter simply referred to as electronic equipment for convenience in description.
According to an aspect of the embodiments of the present application, a method embodiment of a method for generating an installation package is provided. Fig. 1 is a flowchart of a method for generating an installation package according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step S11, receiving a function configuration request, where the function configuration request carries a plurality of function requirement items.
In the embodiment of the present application, the function configuration request may be sent by the client. When the client needs to upgrade the currently configured function or expand a new function, the client sends a function configuration request, generates the function configuration request, carries the function requirement item in the function configuration request, and then sends the function configuration request to the background server.
And step S12, acquiring the target function meeting the function requirement item, and determining the target function type corresponding to the target function.
In the embodiment of the present application, in step S12, acquiring a target function that meets a function requirement item, and determining a function type corresponding to the target function, includes the following steps a1-a 2:
and A1, acquiring the target function meeting the function requirement item from the preset function library.
Step A2, inquiring the function attribute corresponding to the target function to obtain the function type corresponding to the target function.
In the embodiment of the present application, the preset function library stores a plurality of different types of functions, for example: a base type of functionality and a custom type of functionality. It should be noted that the basic type function may be a function that the client must configure, and the customized function is used for performing diversified presentation on the client based on the basic type function.
In the embodiment of the application, when the function requirement item is received, the target function matched with the function requirement item is inquired from the preset function library, and after the target function is obtained, the function attribute corresponding to the target function is inquired, so that the function type of the target function can be obtained. Wherein the functional attributes may include: may be the applicable range of the function, the importance degree of the function, the optimization parameter of the function, etc. As an example, when the target function is a payment function, the application range of the function is social contact, e-commerce, short video, and the like, and the importance degree thereof is high. And determining the function type of the target function as a basic type when the optimization parameter of the target function is empty. And if the optimization parameters of the target function are not empty, determining the function type of the target function as a customized type.
It should be noted that, in the embodiment of the present application, partial functions of the basic type are customized, so that when the partial functions of the basic type are facing different objects, different effects can be exhibited. As an example, a plurality of different payment effects and the like are configured for the payment function.
Step S13, obtaining a target configuration file satisfying the target function type from the target information base corresponding to the target function type.
In this embodiment of the application, the step S13 of obtaining the target configuration file satisfying the target function type from the target information base corresponding to the target function type includes the following steps B1-B2:
step B1, in case that the target function type includes a target customization type and a target basic type, obtaining a target plug-in configuration file corresponding to the target customization type from the first information base, and obtaining a target basic configuration file corresponding to the target basic type from the second information base.
In the embodiment of the application, when a plurality of target functions required by the client include a target customization type and a target basic type, a target plug-in configuration file corresponding to the target function in the target customization type is acquired from the first information base, and a target plug-in configuration file corresponding to the target function in the target basic type is acquired from the second information base.
It should be noted that, in the embodiment of the present application, the configuration files of the customized type and the configuration files of the basic type are stored independently from each other, which is beneficial to quickly obtaining the configuration files related to the function types on one hand; on the other hand, the configuration files of the customized type can be updated or replaced synchronously, so that the configuration files of the basic type cannot be influenced under the condition of updating or replacing the configuration files.
And step B2, generating a target configuration file from the target plug-in configuration file and the target basic configuration file.
In this embodiment of the present application, in step B2, generating a target configuration file from the target plug-in configuration file and the target base configuration file includes the following steps B201 to B203:
step B201, acquiring first test data corresponding to the target plug-in configuration file and second test data corresponding to the target basic configuration file.
Step B202, the target plug-in configuration file and the target basic configuration file are respectively tested by using the first test data and the second test data, and a test result is obtained.
And step B203, generating a target configuration file from the target plug-in configuration file and the target basic configuration file under the condition that the test result is that the test is passed.
In the embodiment of the application, in order to ensure the accuracy of the finally generated target configuration file, different test data are used for testing the two types of configuration files, specifically, a preset compiling environment can be called to compile the configuration files to obtain corresponding programs, then the test data are input into the compiled programs for functional testing, and test results are obtained. And under the condition that the test function passes, generating a target configuration file from the target plug-in configuration file and the target basic configuration file.
In the embodiment of the application, when the target function type only includes the target customization type, the target plug-in configuration file corresponding to the target customization type is acquired from the first information base. And under the condition that the target function type only comprises the target basic type, acquiring a target basic configuration file corresponding to the target basic type from the second information base.
In the embodiment of the application, if the test fails, the code detection is performed on the configuration file, and the specific process is as follows: performing anomaly detection on the configuration file by using an anomaly detection code, wherein the anomaly detection code can be obtained according to relevant information of the configuration file and a preset anomaly detection algorithm, and the relevant information of the configuration file can comprise information such as a file path of the configuration file, the number of starting lines and starting columns of the code, writing time and the like; the anomaly detection algorithm can be try-catch algorithm and the like; the anomaly detection code can be used for detecting an abnormal state occurring in the running process of the configuration file and generating a detection result by combining related information. By the method, the abnormity in the configuration file can be effectively positioned, and the information such as the file path, the encoding time, the version and the like can be carried, so that the configuration file can be managed and maintained by a worker, and the convenience of code maintenance is effectively improved.
And step S14, generating a target installation package according to the target configuration file, and sending the target installation package to a requester corresponding to the function configuration request.
In this embodiment of the application, the step S14 of generating the target installation package according to the target configuration file, and sending the target installation package to the requester corresponding to the function configuration request includes the following steps C1-C2:
and step C1, acquiring the installation environment corresponding to the requester of the function configuration request.
And step C2, when the security level of the installation environment is less than the preset level, encrypting the target installation package, and sending the encrypted target installation package to the requester.
In the embodiment of the application, after the target plug-in configuration file and the target basic configuration file pass the test, the installation environment of the function configuration request corresponding to the requester is obtained, the installation environment can be obtained according to local configuration information and network configuration information uploaded by the requester, and the background server performs encryption operation on the target installation package under the condition that the security level of the installation environment is determined to be smaller than the preset level, so that the configuration file in the target installation package is prevented from being tampered.
According to the method and the device, the corresponding configuration files are automatically matched from the information base according to the function types and the installation package is generated, developers are not required to develop different functions one by one according to different versions, the configuration files of the functions are only required to be stored in the information base, and under the development scene facing to multiple versions, the automatic matching can be performed according to the functions, so that the version release cost and the test acceptance cost are reduced, and the development period of a project is shortened.
Fig. 2 is a flowchart of a method for generating an installation package according to an embodiment of the present application, and as shown in fig. 2, the method further includes:
step S21, a preset function library is obtained, where the preset function library includes a plurality of functions of different function types.
Step S22, a first function belonging to the customized type and a second function belonging to the basic type are obtained from the preset function library.
Step S23, receiving a configuration instruction, where the configuration instruction carries a plug-in configuration file and a basic configuration file.
Step S24, establishing a first corresponding relationship between the first function and the plug-in configuration file, and storing the first corresponding relationship and the plug-in configuration file in the first information base.
Step S25, a second corresponding relationship between the second function and the basic configuration file is established, and the second corresponding relationship and the basic configuration file are stored in a second information base.
In the embodiment of the present application, functions of a plurality of different function types included in the function library are preset, for example: a first function of a basic type and a second function of a customized type. The base type of functionality may be functionality that is pre-set prior to project development. The customized type of functionality is functionality in which the project improves upon the underlying functionality during development, depending on the version.
In the embodiment of the application, after determining the type corresponding to the function, configuration files uploaded by developers are received, where the configuration file corresponding to the first function is an add-in configuration file, and the configuration file corresponding to the second function is a basic configuration file, where the add-in configuration file is effective after being loaded through a CLI (command line interface) or a GUI (graphical user interface) on the basis of the basic configuration file.
After the corresponding configuration files are obtained, establishing the corresponding relation between the functions and the configuration files, and storing the corresponding relation and the configuration files into the corresponding information base, so that the configuration files related to the function types can be quickly obtained; on the other hand, the configuration files of the customized type can be updated or replaced synchronously, so that the configuration files of the basic type cannot be influenced under the condition of updating or replacing the configuration files.
In this embodiment of the present application, after generating a target installation package according to a target configuration file and sending the target installation package to a requester corresponding to a function configuration request, as shown in fig. 3, the method further includes:
and step S31, acquiring the installation result fed back by the requester according to the target installation package.
In step S32, in case that the installation result is used to indicate that the target installation package is abnormal in installation, a corresponding exception handling operation is performed.
In the embodiment of the application, after the target installation package is sent to the requester, an installation result fed back by the requester can be structured, and the installation result can be installation success, installation failure or abnormal operation after installation. Therefore, in the case that the installation result is used for indicating that the target installation package is abnormally installed, corresponding abnormal processing operation is executed. As an example, when the installation fails, whether the target installation package is compatible is determined according to the local configuration information of the requester, and if not, the local configuration information of the requester and the target installation package are sent to a preset terminal so that a worker can adjust the local configuration information and the target installation package. And when the target installation package cannot normally run after installation, the target installation package is sent to the requester again.
Fig. 4 is a block diagram of an installation package generation apparatus provided in an embodiment of the present application, where the apparatus may be implemented as part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 4, the apparatus includes:
a receiving module 41, configured to receive a function configuration request, where the function configuration request carries a plurality of function requirement items;
an obtaining module 42, configured to obtain a target function that meets the function requirement item, and determine a function type corresponding to the target function;
the query module 43 is configured to obtain a configuration file meeting the function type from a target information base corresponding to the function type;
and the generating module 44 is configured to generate a target installation package according to the configuration file, and send the installation package to a requester corresponding to the function configuration request.
In an embodiment of the present application, the apparatus further includes: the system comprises a construction module, a function module and a function module, wherein the construction module is used for acquiring a preset function library, and the preset function library comprises a plurality of functions with different function types; acquiring a first function belonging to a customized type and a second function belonging to a basic type from a preset function library; receiving a configuration instruction, wherein the configuration instruction carries a plug-in configuration file and a basic configuration file; establishing a first corresponding relation between a first function and a plug-in configuration file, and storing the first corresponding relation and the plug-in configuration file to a first information base; and establishing a second corresponding relation between the second function and the basic configuration file, and storing the second corresponding relation and the basic configuration file to a second information base.
In the embodiment of the application, the obtaining module is used for obtaining a target function meeting a function requirement item from a preset function library; and inquiring the function attribute corresponding to the target function to obtain the function type corresponding to the target function.
In the embodiment of the application, the query module is configured to, when the target function type includes a target customization type and a target basic type, obtain a target plug-in configuration file corresponding to the target customization type from a first information base, and obtain a target basic configuration file corresponding to the target basic type from a second information base; and generating a target configuration file from the target plug-in configuration file and the target basic configuration file.
In the embodiment of the application, the query module is used for acquiring first test data corresponding to a target plug-in configuration file and second test data corresponding to a target basic configuration file; respectively testing the target plug-in configuration file and the target basic configuration file by using the first test data and the second test data to obtain a test result; and under the condition that the test result is that the test is passed, generating a target configuration file by using the target plug-in configuration file and the target basic configuration file.
In the embodiment of the application, the generating module is used for acquiring an installation environment of a requester corresponding to the function configuration request; and under the condition that the security level of the installation environment is less than the preset level, carrying out encryption operation on the target installation package, and sending the encrypted target installation package to the requester.
In an embodiment of the present application, the apparatus further includes: the processing module is used for acquiring an installation result fed back by the requester according to the target installation package; and executing corresponding exception handling operation under the condition that the installation result is used for indicating that the target installation package is abnormally installed.
An embodiment of the present application further provides an electronic device, as shown in fig. 5, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program;
the processor 1501 is configured to implement the steps of the above embodiments when executing the computer program stored in the memory 1503.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the method for generating the installation package in any one of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for generating an installation package according to any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk), among others.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for generating an installation package, comprising:
receiving a function configuration request, wherein the function configuration request carries a plurality of function requirement items;
acquiring a target function meeting the function requirement item, and determining a target function type corresponding to the target function;
acquiring a target configuration file meeting the target function type from a target information base corresponding to the target function type;
and generating a target installation package according to the target configuration file, and sending the target installation package to a requester corresponding to the function configuration request.
2. The method of claim 1, further comprising:
acquiring a preset function library, wherein the preset function library comprises a plurality of functions with different function types;
acquiring a first function belonging to a customized type and a second function belonging to a basic type from the preset function library;
receiving a configuration instruction, wherein the configuration instruction carries a plug-in configuration file and a basic configuration file;
establishing a first corresponding relation between the first function and the plug-in configuration file, and storing the first corresponding relation and the plug-in configuration file to a first information base;
and establishing a second corresponding relation between the second function and the basic configuration file, and storing the second corresponding relation and the basic configuration file to a second information base.
3. The method according to claim 2, wherein the obtaining a target function that satisfies the function requirement item and determining a function type corresponding to the target function comprises:
acquiring a target function meeting the function requirement item from the preset function library;
and inquiring the function attribute corresponding to the target function to obtain the function type corresponding to the target function.
4. The method according to claim 2, wherein the obtaining the target configuration file satisfying the target function type from the target information base corresponding to the target function type comprises:
under the condition that the target function type comprises a target customization type and a target basic type, acquiring a target plug-in configuration file corresponding to the target customization type from the first information base, and acquiring a target basic configuration file corresponding to the target basic type from the second information base;
and generating the target configuration file by using the target plug-in configuration file and the target basic configuration file.
5. The method of claim 4, wherein generating the target configuration file from the target plug-in configuration file and the target base configuration file comprises:
acquiring first test data corresponding to the target plug-in configuration file and second test data corresponding to the target basic configuration file;
respectively testing the target plug-in configuration file and the target basic configuration file by using the first test data and the second test data to obtain test results;
and under the condition that the test result is that the test is passed, generating the target configuration file by using the target plug-in configuration file and the target basic configuration file.
6. The method according to claim 1, wherein the generating a target installation package according to the target configuration file and sending the target installation package to a requester corresponding to the function configuration request includes:
acquiring an installation environment of a requester corresponding to the function configuration request;
and under the condition that the security level of the installation environment is less than a preset level, encrypting the target installation package, and sending the encrypted target installation package to the requester.
7. The method according to claim 1, wherein after generating a target installation package according to the target configuration file and sending the target installation package to a requester corresponding to the function configuration request, the method further comprises:
acquiring an installation result fed back by the requester according to the target installation package;
and executing corresponding exception handling operation under the condition that the installation result is used for indicating that the target installation package is abnormally installed.
8. An installation package generation apparatus, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a function configuration request, and the function configuration request carries a plurality of function requirement items;
the acquisition module is used for acquiring a target function meeting the function requirement item and determining a function type corresponding to the target function;
the query module is used for acquiring a configuration file meeting the function type from a target information base corresponding to the function type;
and the generating module is used for generating a target installation package according to the configuration file and sending the installation package to a requester corresponding to the function configuration request.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of any of the preceding claims 1 to 7.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any of claims 1-7 by executing a program stored on a memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111162323.7A CN113900703A (en) | 2021-09-30 | 2021-09-30 | Installation package generation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111162323.7A CN113900703A (en) | 2021-09-30 | 2021-09-30 | Installation package generation method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113900703A true CN113900703A (en) | 2022-01-07 |
Family
ID=79189934
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111162323.7A Pending CN113900703A (en) | 2021-09-30 | 2021-09-30 | Installation package generation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113900703A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1690924A (en) * | 2004-04-21 | 2005-11-02 | 讯宝科技公司 | Systems and methods that provide enhanced state machine power management |
CN110244977A (en) * | 2019-05-21 | 2019-09-17 | 深圳壹账通智能科技有限公司 | Customized software generation method, system, electronic equipment and storage medium |
CN111104158A (en) * | 2019-12-23 | 2020-05-05 | 锐捷网络股份有限公司 | Software packaging method and device, computer equipment and storage medium |
CN111427554A (en) * | 2020-03-27 | 2020-07-17 | 四川爱联科技有限公司 | Software customization installation package generator for communication module of Internet of things |
-
2021
- 2021-09-30 CN CN202111162323.7A patent/CN113900703A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1690924A (en) * | 2004-04-21 | 2005-11-02 | 讯宝科技公司 | Systems and methods that provide enhanced state machine power management |
CN110244977A (en) * | 2019-05-21 | 2019-09-17 | 深圳壹账通智能科技有限公司 | Customized software generation method, system, electronic equipment and storage medium |
CN111104158A (en) * | 2019-12-23 | 2020-05-05 | 锐捷网络股份有限公司 | Software packaging method and device, computer equipment and storage medium |
CN111427554A (en) * | 2020-03-27 | 2020-07-17 | 四川爱联科技有限公司 | Software customization installation package generator for communication module of Internet of things |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210182054A1 (en) | Preventing unexpected behavior in software systems due to third party artifacts | |
CN112202633B (en) | Block chain network testing method and device, electronic equipment and readable storage medium | |
CN111488170A (en) | Method, device and equipment for updating business processing model | |
CN111506358A (en) | Method and device for updating container configuration | |
CN114153668A (en) | Automatic testing method and device, electronic equipment and storage medium | |
CN113900703A (en) | Installation package generation method and device, electronic equipment and storage medium | |
CN113590178B (en) | API instance management method and device, storage medium and electronic equipment | |
CN113849160B (en) | Dynamic migration method and device for compiling tasks, electronic equipment and storage medium | |
CN112965697B (en) | Code file generation method and device and electronic equipment | |
CN115687129A (en) | Coverage rate report generation method and device, storage medium and computer equipment | |
CN112040320B (en) | Television fruit application upgrading method and device | |
CN113553095A (en) | Method and device for issuing small program, electronic device and storage medium | |
CN113379501A (en) | Message pushing method and device, electronic equipment and storage medium | |
CN112162923A (en) | Interface testing method and device | |
CN112667447B (en) | Data restoration method and device | |
CN112506740B (en) | Cloud alarm method, electronic equipment, storage medium and cloud alarm device | |
CN116541253B (en) | Application detection method, system, terminal equipment and readable storage medium | |
CN115134270B (en) | Code monitoring method, monitoring system, electronic equipment and storage medium | |
CN112486558B (en) | Information processing method and device | |
CN111324530B (en) | Prefire testing method, prefire testing device, prefire testing equipment and storage medium | |
CN109918895B (en) | Method, electronic device, and computer-readable medium for outputting data | |
CN116932363A (en) | Interface testing method and device, electronic equipment and readable storage medium | |
CN114756248A (en) | Application program control method and device, electronic equipment and storage medium | |
CN115269435A (en) | Functional interface testing method, device, equipment and storage medium | |
CN114254322A (en) | Vulnerability assessment method and device, computing equipment and storage 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 |