CN110727439A - Software installation package construction method and device, computer equipment and storage medium - Google Patents
Software installation package construction method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110727439A CN110727439A CN201910823517.3A CN201910823517A CN110727439A CN 110727439 A CN110727439 A CN 110727439A CN 201910823517 A CN201910823517 A CN 201910823517A CN 110727439 A CN110727439 A CN 110727439A
- Authority
- CN
- China
- Prior art keywords
- construction
- installation package
- software installation
- local
- current terminal
- 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
- 238000010276 construction Methods 0.000 title claims abstract description 194
- 238000012795 verification Methods 0.000 claims abstract description 84
- 238000013515 script Methods 0.000 claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 12
- 238000009434 installation Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000006467 substitution reaction Methods 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/60—Software deployment
- G06F8/61—Installation
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a method and a system for constructing a software installation package. The method is applied to the technical field of data processing, and comprises the steps of sending a construction instruction for constructing a software installation package to a server, and receiving software installation package construction queuing information returned by the server; thereby judging whether to start the local construction service according to the queuing information; if the local construction service is started, verifying the local environment of the current terminal to obtain a verification result; if the verification result is that the verification is passed, acquiring a construction script and a software source code for constructing the software installation package; and constructing the software source code in the current terminal according to the construction script to generate a software installation package. By implementing the embodiment of the invention, whether the local construction service is started can be judged according to the queuing information of the construction instruction, so that the waiting time is reduced, the working efficiency is improved, and the utilization rate of local resources of the terminal is improved.
Description
Technical Field
The invention relates to the field of computer data processing, in particular to a software installation package construction method and device, computer equipment and a storage medium.
Background
In the software development process, a software installation package is constructed according to software source codes so as to be used by developers and users. In the prior art, the software installation package is generally constructed by uploading software source code to a specific server and performing the software installation package construction through the specific server. However, as software development projects are increased, version update iteration speed is increased, the number of software installation packages to be constructed is large, and a single server cannot complete construction of the software installation packages quickly, so that a large amount of time is wasted in the construction process of the software installation packages, and work efficiency is not improved.
Disclosure of Invention
The embodiment of the invention provides a method and a device for constructing a software installation package, computer equipment and a storage medium, and aims to solve the problems of long time consumption, low efficiency and the like in the construction of the software installation package.
In a first aspect, an embodiment of the present invention provides a software installation package construction method, including: sending a construction instruction for constructing a software installation package to a server, and receiving software installation package construction queuing information returned by the server; judging whether to start a local construction service according to the queuing information; if the local construction service is started, verifying the local environment of the current terminal to obtain a verification result; if the verification result is that the verification is passed, acquiring a construction script and a software source code for constructing the software installation package; and constructing the software source code in the current terminal according to the construction script to generate a software installation package.
In a second aspect, an embodiment of the present invention provides a software installation package constructing apparatus, including:
the receiving unit is used for sending a construction instruction for constructing the software installation package to the server and receiving the software installation package construction queuing information returned by the server;
the first judgment unit is used for judging whether to start the local construction service according to the queuing information;
the verification unit is used for verifying the local environment of the current terminal to obtain a verification result if the local construction service is started;
the first acquisition unit is used for acquiring a construction script and a software source code for constructing the software installation package if the verification result is that the verification is passed;
and the generating unit is used for constructing the software source code in the current terminal according to the construction script so as to generate a software installation package.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the software installation package construction method when executing the program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the software installation package construction method.
The embodiment of the invention provides a software installation package construction method and system. The method comprises the steps of sending a construction instruction for constructing a software installation package to a server, and receiving software installation package construction queuing information returned by the server; thereby judging whether to start the local construction service according to the queuing information; if the local construction service is started, verifying the local environment of the current terminal to obtain a verification result; if the verification result is that the verification is passed, acquiring a construction script and a software source code for constructing the software installation package; and constructing the software source code in the current terminal according to the construction script to generate a software installation package. By implementing the embodiment of the invention, whether the local construction service is started can be judged according to the queuing information of the construction instruction, so that the waiting time is reduced, the working efficiency is improved, and the utilization rate of local resources of the terminal is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a software installation package construction method according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a software installation package construction method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a software installation package constructing method according to an embodiment of the present invention;
fig. 4 is another schematic flow chart of a software installation package constructing method according to an embodiment of the present invention;
fig. 5 is another schematic flow chart of a software installation package constructing method according to an embodiment of the present invention;
fig. 6 is another schematic flow chart of a software installation package constructing method according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a software installation package constructing apparatus according to an embodiment of the present invention;
FIG. 8 is another schematic block diagram of a software installation package constructing apparatus according to an embodiment of the present invention;
FIG. 9 is another schematic block diagram of a software installation package constructing apparatus according to an embodiment of the present invention;
FIG. 10 is another schematic block diagram of a software installation package constructing apparatus according to an embodiment of the present invention;
FIG. 11 is another schematic block diagram of a software installation package constructing apparatus according to an embodiment of the present invention;
fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Please refer to fig. 1 and fig. 2, which are a flowchart and an application scenario diagram of a software installation package construction method according to an embodiment of the present invention. The software installation package construction method provided by the embodiment of the invention can be applied to a terminal 10, wherein the terminal 10 can be an electronic terminal such as a mobile phone, a tablet personal computer, an intelligent bracelet and the like; the terminal 10 may interact with the server 20 via a network connection. The server 20 may be an independent server or a server cluster composed of a plurality of servers. As shown in FIG. 1, the software installation package construction method includes steps S110-S150.
S110, sending a construction instruction for constructing the software installation package to the server, and receiving the software installation package construction queuing information returned by the server.
In a specific implementation, the terminal sends a building instruction for building the software installation package to the server through the network connection, wherein the building instruction comprises a software source code address, configuration parameters and the like. The server can obtain the software source code through the received software source code address, and can obtain the configuration parameters for constructing the software installation package through receiving the configuration parameters. The configuration parameter is, for example, an installation package name, an installation package version number, or the like. The server creates a construction task according to the received construction instruction, constructs a software installation package, and can realize the unified management of the software installation package.
And after receiving the construction instruction sent by the terminal, the server carries out queue sequencing on the construction instruction. The queue sorting of the building instructions may be performed according to the sending time of the building instructions, for example, the earlier the sending time is, the earlier the sorting is. And after the server queues and sorts the construction instructions, generating software installation package construction queuing information, and returning the software installation package construction queuing information to the terminal.
And S120, judging whether to start the local construction service according to the queuing information.
Specifically, the queuing information includes a build sequence number corresponding to the build instruction and a waiting time corresponding to the build instruction. The local construction service is to construct a software installation package locally through a terminal.
In some embodiments, as shown in FIG. 3, step S120 may include S121-S123 a.
And S121, obtaining the waiting time corresponding to the construction instruction according to the queuing information.
Specifically, the queuing information includes a construction sequence number corresponding to the construction instruction and a waiting time corresponding to the construction instruction, and the waiting time corresponding to the construction instruction can be obtained by analyzing the queuing information.
And S122, judging whether the waiting time is greater than a preset time threshold value.
Specifically, the preset time threshold may be set according to actual requirements, and the preset time threshold is, for example, 30 minutes.
And S123a, if the waiting time is larger than a preset time threshold, determining to start the local construction service.
Specifically, if the waiting time is greater than a preset time threshold, it indicates that the waiting time required by the server to execute the construction operation of the software installation package according to the construction instruction is too long, so as to improve the working efficiency, reduce the waiting time, and further determine to start the local construction service.
In some embodiments, as shown in FIG. 4, after the step S122, S123b-S125b may be further included.
And S123b, if the waiting time is less than a preset time threshold, calculating the comprehensive occupancy rate of the performance of the current terminal.
Specifically, the comprehensive occupancy rate of performance can be obtained by obtaining various performance parameters in the current terminal and calculating according to a preset calculation formula. The performance parameters include, but are not limited to, average bandwidth occupancy, average processor occupancy, and average memory occupancy. The calculation formula is, for example: p is 1/(aM + bN + cQ). P represents the comprehensive occupancy rate of the current terminal, a, b, and c are weight coefficients corresponding to M, N, Q, and specific values may be set according to actual requirements, where a + b + c is 1. M represents the broadband occupancy, N represents the processor occupancy, and Q represents the memory occupancy. The lower the comprehensive occupancy rate of the performance is, the better the performance of the current terminal is.
And S124b, judging whether the comprehensive occupancy rate of the performance is smaller than a preset occupancy rate threshold value.
Specifically, the preset occupancy rate threshold may be set according to an actual requirement, and the preset occupancy rate threshold is, for example, 50%.
And S125b, if the comprehensive occupancy rate of the performance is smaller than a preset occupancy rate threshold value, determining to start the local construction service.
Specifically, if the comprehensive occupancy rate of the performance is smaller than the preset occupancy rate threshold, it indicates that the performance of the current terminal is better, and the terminal has a hardware condition for starting the local construction service. In order to improve the working efficiency, reduce the waiting time and fully utilize local hardware resources, the local construction service is determined to be started.
And S130, if the local construction service is started, verifying the local environment of the current terminal to obtain a verification result.
Specifically, if the software installation package construction operation is to be performed locally at the current terminal, the local environment of the current terminal needs to be verified to obtain a verification result. The verification result comprises verification passing and verification failing.
In some embodiments, as shown in FIG. 5, step S130 may include S131-S133.
S131, obtaining the construction environment parameter corresponding to the construction instruction, and obtaining the local environment parameter of the current terminal.
Specifically, the parameters of the building environment corresponding to the building instructions include, but are not limited to, an operating system type, building framework code, running scripts, and the like. The local environment parameters of the current terminal include, but are not limited to, operating system type, building framework code, running scripts, and the like.
And S132, judging whether the construction environment parameters corresponding to the construction instruction are matched with the local environment parameters of the current terminal.
Specifically, the step of judging whether the construction environment parameter corresponding to the construction instruction matches the local environment parameter of the current terminal specifically includes: and judging whether the construction environment parameter corresponding to the construction instruction is consistent with the local environment parameter of the current terminal, if so, matching the construction environment parameter corresponding to the construction instruction with the local environment parameter of the current terminal. And if the construction environment parameter corresponding to the construction instruction is not consistent with the local environment parameter of the current terminal, the construction environment parameter corresponding to the construction instruction is not matched with the local environment parameter of the current terminal.
And S133, if the construction environment parameter corresponding to the construction instruction is matched with the local environment parameter of the current terminal, the obtained verification result is verification passing.
Specifically, if the construction environment parameter corresponding to the construction instruction is matched with the local environment parameter of the current terminal, it is indicated that the local environment of the current terminal meets the requirement of the software installation package construction operation corresponding to the construction instruction, so that the obtained verification result is that the verification is passed.
And if the construction environment parameter corresponding to the construction instruction is not matched with the local environment parameter of the current terminal, indicating that the local environment of the current terminal does not meet the requirement of the software installation package construction operation corresponding to the construction instruction, and the obtained verification result is that the verification fails.
And S140, if the verification result is that the verification is passed, acquiring a construction script and a software source code for constructing the software installation package.
Specifically, if the verification result is that the verification is passed, it is indicated that the local environment of the current terminal meets the requirement of the software installation package construction operation corresponding to the construction instruction, and further a construction script and a software source code for constructing the software installation package are obtained, so as to perform the software installation package construction operation. The construction script and the software source code for constructing the software installation package are pre-stored in a preset server so as to be obtained when the terminal meets the conditions.
In some embodiments, as shown in FIG. 6, after step S130, steps S160-S170 may also be included.
And S160, if the verification result is that the verification fails, acquiring and installing the construction environment file corresponding to the construction instruction.
Specifically, if the verification result is that the verification fails, it is indicated that the local environment of the current terminal does not meet the requirement of the software installation package construction operation corresponding to the construction instruction, so that the construction environment file corresponding to the construction instruction is obtained and installed. The construction environment files corresponding to the construction instructions are stored in a preset server, the construction environment files corresponding to installation packages of different operating system types are different, the construction environment files can be determined according to the installation package operating system types corresponding to the construction instructions, and the construction environment files corresponding to the construction instructions are obtained through a specified path in the server.
S170, continuously executing the step of verifying the local environment of the current terminal to obtain a verification result until the verification result is verified.
Specifically, after the construction environment file corresponding to the construction instruction is obtained and installed, the verification of the local environment of the current terminal is continuously executed until the verification result is that the verification is passed, so that the local environment of the current terminal meets the requirement of the software installation package construction operation corresponding to the construction instruction.
S150, constructing the software source code in the current terminal according to the construction script to generate a software installation package.
Specifically, the construction script is used for constructing a software installation package, and the software source code is constructed in the current terminal according to the construction script to generate the software installation package. The software source code is parsed by the build script, for example, by executing the build script, to generate the software installation package.
Fig. 7 is a schematic block diagram of a software installation package building apparatus 100 according to an embodiment of the present invention. As shown in fig. 7, the present invention further provides a software installation package constructing apparatus 100 corresponding to the above software installation package constructing method. The software installation package construction apparatus 100 includes a unit for executing the software installation package construction method described above.
The software installation package construction device 100 includes a receiving unit 110, a first judging unit 120, a verifying unit 130, a first obtaining unit 140, and a generating unit 150.
The receiving unit 110 is configured to send a build instruction for building the software installation package to the server, and receive the software installation package build queue information returned by the server.
A first determining unit 120, configured to determine whether to enable a local build service according to the queuing information.
In some embodiments, as shown in fig. 8, the first determining unit 120 includes a second acquiring unit 121, a second determining unit 122, and a first determining unit 123 a.
A second obtaining unit 121, configured to obtain, according to the queuing information, a waiting time corresponding to the build instruction.
The second determining unit 122 is configured to determine whether the waiting time is greater than a preset time threshold.
The first determining unit 123a is configured to determine to start the local build service if the waiting time is greater than a preset time threshold.
In some embodiments, as shown in fig. 9, the first judging unit 120 further includes a first calculating unit 123b, a third judging unit 124b, and a second determining unit 125 b.
The first calculating unit 123b is configured to calculate a comprehensive occupancy rate of performance of the current terminal if the waiting time is less than a preset time threshold.
A third determining unit 124b, configured to determine whether the performance integrated occupancy is smaller than a preset occupancy threshold.
A second determining unit 125b, configured to determine to start the local construction service if the performance comprehensive occupancy is smaller than a preset occupancy threshold.
The verifying unit 130 is configured to verify a local environment of the current terminal to obtain a verification result if the local building service is enabled.
In some embodiments, as shown in fig. 10, the verification unit 130 includes a third obtaining unit 131, a fourth judging unit 132, and a first processing unit 133.
A third obtaining unit 131, configured to obtain a construction environment parameter corresponding to the construction instruction, and obtain a local environment parameter of the current terminal.
A fourth determining unit 132, configured to determine whether the construction environment parameter corresponding to the construction instruction matches the local environment parameter of the current terminal.
The first processing unit 133 is configured to, if the construction environment parameter corresponding to the construction instruction matches the local environment parameter of the current terminal, obtain a verification result that the verification is passed.
The first obtaining unit 140 is configured to obtain a build script and a software source code for building the software installation package if the verification result is that the verification passes.
In some embodiments, as shown in fig. 11, the apparatus 100 further comprises a third obtaining unit 160 and a second processing unit 170.
A third obtaining unit 160, configured to obtain and install the build environment file corresponding to the build instruction if the verification result is that the verification fails.
The second processing unit 170 is configured to continue to perform the step of verifying the local environment of the current terminal to obtain a verification result until the verification result is verified.
A generating unit 150, configured to construct the software source code in the current terminal according to the construction script, so as to generate a software installation package.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the software installation package constructing apparatus 100 and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The apparatus 100 described above may be implemented in the form of a computer program which may be run on a computer device as shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 500 may be a terminal, which may be an electronic terminal such as a mobile phone, a tablet computer, an intelligent bracelet, etc.
The computer device 500 includes a processor 520, memory, and a network interface 550 coupled by a system bus 510, where the memory may include a non-volatile storage medium 530 and an internal memory 540.
The non-volatile storage medium 530 may store an operating system 531 and computer programs 532. The computer program 532, when executed, may cause the processor 520 to perform a picture processing method.
The processor 520 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 540 provides an environment for running a computer program in a non-volatile storage medium, which when executed by the processor 520, causes the processor 520 to perform a picture processing method.
The network interface 550 is used for network communication with other devices. It will be appreciated by those skilled in the art that the schematic block diagram of the computer device is only a partial block diagram of the structure associated with the inventive arrangements and does not constitute a limitation of the computer device 500 to which the inventive arrangements are applied, and that a particular computer device 500 may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Wherein the processor 520 is configured to run the program code stored in the memory to implement the following functions: sending a construction instruction for constructing a software installation package to a server, and receiving software installation package construction queuing information returned by the server; judging whether to start a local construction service according to the queuing information; if the local construction service is started, verifying the local environment of the current terminal to obtain a verification result; if the verification result is that the verification is passed, acquiring a construction script and a software source code for constructing the software installation package; and constructing the software source code in the current terminal according to the construction script to generate a software installation package.
In an embodiment, when the processor 520 performs the step of determining whether to enable the local build service according to the queuing information, the following steps are specifically performed: acquiring the waiting time corresponding to the construction instruction according to the queuing information; judging whether the waiting time is greater than a preset time threshold value or not; and if the waiting time is greater than a preset time threshold, determining to start the local construction service.
In an embodiment, after the step of determining whether the waiting time is greater than the preset time threshold is executed, the processor 520 specifically executes the following steps: if the waiting time is less than a preset time threshold, calculating the comprehensive occupancy rate of the performance of the current terminal; judging whether the comprehensive performance occupancy rate is smaller than a preset occupancy rate threshold value; and if the comprehensive occupancy rate of the performance is smaller than a preset occupancy rate threshold value, determining to start the local construction service.
In an embodiment, when the processor 520 performs the step of verifying the local environment of the current terminal to obtain the verification result if the local building service is enabled, the following steps are specifically performed: acquiring a construction environment parameter corresponding to the construction instruction, and acquiring a local environment parameter of the current terminal; judging whether the construction environment parameter corresponding to the construction instruction is matched with the local environment parameter of the current terminal; and if the construction environment parameter corresponding to the construction instruction is matched with the local environment parameter of the current terminal, the obtained verification result is that the verification is passed.
In an embodiment, after executing the step of verifying the local environment of the current terminal to obtain the verification result if the local building service is enabled, the processor 520 specifically executes the following steps: if the verification result is that the verification fails, acquiring and installing a construction environment file corresponding to the construction instruction; and continuing to execute the step of verifying the local environment of the current terminal to obtain a verification result until the verification result is verified.
It should be understood that, in the embodiment of the present invention, the Processor 520 may be a Central Processing Unit (CPU), and the Processor 520 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that the schematic block diagram of the computer device 500 does not constitute a limitation of the computer device 500 and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
In a further embodiment of the invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program, when executed by a processor, realizes the steps of: sending a construction instruction for constructing a software installation package to a server, and receiving software installation package construction queuing information returned by the server; judging whether to start a local construction service according to the queuing information; if the local construction service is started, verifying the local environment of the current terminal to obtain a verification result; if the verification result is that the verification is passed, acquiring a construction script and a software source code for constructing the software installation package; and constructing the software source code in the current terminal according to the construction script to generate a software installation package.
In an embodiment, when the computer program is executed by a processor to implement the step of determining whether to enable the local build service according to the queuing information, the following steps are specifically implemented: acquiring the waiting time corresponding to the construction instruction according to the queuing information; judging whether the waiting time is greater than a preset time threshold value or not; and if the waiting time is greater than a preset time threshold, determining to start the local construction service.
In an embodiment, after the step of determining whether the waiting time is greater than the preset time threshold is implemented by the processor, the following steps are implemented: if the waiting time is less than a preset time threshold, calculating the comprehensive occupancy rate of the performance of the current terminal; judging whether the comprehensive performance occupancy rate is smaller than a preset occupancy rate threshold value; and if the comprehensive occupancy rate of the performance is smaller than a preset occupancy rate threshold value, determining to start the local construction service.
In an embodiment, when the step of verifying the local environment of the current terminal to obtain the verification result if the local build service is enabled is implemented by the processor, the following steps are specifically implemented: acquiring a construction environment parameter corresponding to the construction instruction, and acquiring a local environment parameter of the current terminal; judging whether the construction environment parameter corresponding to the construction instruction is matched with the local environment parameter of the current terminal; and if the construction environment parameter corresponding to the construction instruction is matched with the local environment parameter of the current terminal, the obtained verification result is that the verification is passed.
In an embodiment, after the step of verifying the local environment of the current terminal to obtain the verification result if the local build service is enabled, the following steps are specifically implemented: if the verification result is that the verification fails, acquiring and installing a construction environment file corresponding to the construction instruction; and continuing to execute the step of verifying the local environment of the current terminal to obtain a verification result until the verification result is verified.
The computer readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a magnetic disk, or an optical disk.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, more than one unit or component may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A software installation package construction method, the method comprising:
sending a construction instruction for constructing a software installation package to a server, and receiving software installation package construction queuing information returned by the server;
judging whether to start a local construction service according to the queuing information;
if the local construction service is started, verifying the local environment of the current terminal to obtain a verification result;
if the verification result is that the verification is passed, acquiring a construction script and a software source code for constructing the software installation package;
and constructing the software source code in the current terminal according to the construction script to generate a software installation package.
2. The method of claim 1, wherein said determining whether to enable a locally built service based on said queuing information comprises:
acquiring the waiting time corresponding to the construction instruction according to the queuing information;
judging whether the waiting time is greater than a preset time threshold value or not;
and if the waiting time is greater than a preset time threshold, determining to start the local construction service.
3. The method of claim 2, wherein after determining whether the wait time is greater than a preset time threshold, further comprising:
if the waiting time is less than a preset time threshold, calculating the comprehensive occupancy rate of the performance of the current terminal;
judging whether the comprehensive performance occupancy rate is smaller than a preset occupancy rate threshold value;
and if the comprehensive occupancy rate of the performance is smaller than a preset occupancy rate threshold value, determining to start the local construction service.
4. The method of claim 1, wherein verifying the local environment of the current terminal to obtain a verification result if the local build service is enabled comprises:
acquiring a construction environment parameter corresponding to the construction instruction, and acquiring a local environment parameter of the current terminal;
judging whether the construction environment parameter corresponding to the construction instruction is matched with the local environment parameter of the current terminal;
and if the construction environment parameter corresponding to the construction instruction is matched with the local environment parameter of the current terminal, the obtained verification result is that the verification is passed.
5. The method of claim 1, wherein the verifying the local environment of the current terminal to obtain the verification result if the local build service is enabled further comprises:
if the verification result is that the verification fails, acquiring and installing a construction environment file corresponding to the construction instruction;
and continuing to execute the step of verifying the local environment of the current terminal to obtain a verification result until the verification result is verified.
6. A software installation package construction apparatus, characterized in that,
the receiving unit is used for sending a construction instruction for constructing the software installation package to the server and receiving the software installation package construction queuing information returned by the server;
the first judgment unit is used for judging whether to start the local construction service according to the queuing information;
the verification unit is used for verifying the local environment of the current terminal to obtain a verification result if the local construction service is started;
the first acquisition unit is used for acquiring a construction script and a software source code for constructing the software installation package if the verification result is that the verification is passed;
and the generating unit is used for constructing the software source code in the current terminal according to the construction script so as to generate a software installation package.
7. The apparatus of claim 6, wherein the first determining unit comprises:
the second acquisition unit is used for acquiring the waiting time corresponding to the construction instruction according to the queuing information;
the second judging unit is used for judging whether the waiting time is greater than a preset time threshold value or not;
and the first determining unit is used for determining to start the local construction service if the waiting time is greater than a preset time threshold.
8. The apparatus of claim 7, wherein the first determining unit further comprises:
the first calculating unit is used for calculating the comprehensive occupancy rate of the performance of the current terminal if the waiting time is less than a preset time threshold;
the third judgment unit is used for judging whether the comprehensive performance occupancy rate is smaller than a preset occupancy rate threshold value;
and the second determining unit is used for determining to start the local construction service if the comprehensive performance occupancy rate is smaller than a preset occupancy rate threshold value.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the software installation package construction method according to any one of claims 1 to 5 when executing the program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to execute the software installation package construction method according to any one of claims 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910823517.3A CN110727439A (en) | 2019-09-02 | 2019-09-02 | Software installation package construction method and device, computer equipment and storage medium |
PCT/CN2020/087134 WO2021042745A1 (en) | 2019-09-02 | 2020-04-27 | Method and device for building software installation package, computer device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910823517.3A CN110727439A (en) | 2019-09-02 | 2019-09-02 | Software installation package construction method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110727439A true CN110727439A (en) | 2020-01-24 |
Family
ID=69218824
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910823517.3A Pending CN110727439A (en) | 2019-09-02 | 2019-09-02 | Software installation package construction method and device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110727439A (en) |
WO (1) | WO2021042745A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021042745A1 (en) * | 2019-09-02 | 2021-03-11 | 深圳壹账通智能科技有限公司 | Method and device for building software installation package, computer device, and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040230971A1 (en) * | 2003-05-16 | 2004-11-18 | Appstream, Inc. | Method and apparatus for packaging and streaming installation software |
US20060123414A1 (en) * | 2004-12-03 | 2006-06-08 | International Business Machines Corporation | Method and apparatus for creation of customized install packages for installation of software |
US20110239195A1 (en) * | 2010-03-25 | 2011-09-29 | Microsoft Corporation | Dependence-based software builds |
CN103336688A (en) * | 2013-06-20 | 2013-10-02 | 中标软件有限公司 | Software integrating method and system oriented to cloud computing software research and development process |
CN103544041A (en) * | 2013-11-12 | 2014-01-29 | 迈普通信技术股份有限公司 | Method and system for deploying software |
CN107729000A (en) * | 2017-11-24 | 2018-02-23 | 北京小米移动软件有限公司 | Application program installation kit generation method and device |
CN108073400A (en) * | 2017-12-07 | 2018-05-25 | 湖北三新文化传媒有限公司 | Software automation construction method, server and storage medium |
CN108170420A (en) * | 2017-12-18 | 2018-06-15 | 深圳前海微众银行股份有限公司 | Construction method, device and the computer readable storage medium of application package |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6044461A (en) * | 1997-09-16 | 2000-03-28 | International Business Machines Corporation | Computer system and method of selectively rebooting the same in response to a system program code update |
CN110096425B (en) * | 2018-12-10 | 2022-07-15 | 厦门市美亚柏科信息股份有限公司 | QT development mode-based automatic testing method and device and storage medium |
CN110187912B (en) * | 2019-05-16 | 2022-03-29 | 华为技术有限公司 | Node selection method and device |
CN110727439A (en) * | 2019-09-02 | 2020-01-24 | 深圳壹账通智能科技有限公司 | Software installation package construction method and device, computer equipment and storage medium |
-
2019
- 2019-09-02 CN CN201910823517.3A patent/CN110727439A/en active Pending
-
2020
- 2020-04-27 WO PCT/CN2020/087134 patent/WO2021042745A1/en active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040230971A1 (en) * | 2003-05-16 | 2004-11-18 | Appstream, Inc. | Method and apparatus for packaging and streaming installation software |
US20060123414A1 (en) * | 2004-12-03 | 2006-06-08 | International Business Machines Corporation | Method and apparatus for creation of customized install packages for installation of software |
US20110239195A1 (en) * | 2010-03-25 | 2011-09-29 | Microsoft Corporation | Dependence-based software builds |
CN103336688A (en) * | 2013-06-20 | 2013-10-02 | 中标软件有限公司 | Software integrating method and system oriented to cloud computing software research and development process |
CN103544041A (en) * | 2013-11-12 | 2014-01-29 | 迈普通信技术股份有限公司 | Method and system for deploying software |
CN107729000A (en) * | 2017-11-24 | 2018-02-23 | 北京小米移动软件有限公司 | Application program installation kit generation method and device |
CN108073400A (en) * | 2017-12-07 | 2018-05-25 | 湖北三新文化传媒有限公司 | Software automation construction method, server and storage medium |
CN108170420A (en) * | 2017-12-18 | 2018-06-15 | 深圳前海微众银行股份有限公司 | Construction method, device and the computer readable storage medium of application package |
Non-Patent Citations (2)
Title |
---|
王志茹;: "基于clearmake的软件构建管理", 科技风, no. 11, 15 June 2009 (2009-06-15) * |
苏浩;王竞争;杨靖琦;: "基于预设模板的系统动态构建与集成技术", 指挥控制与仿真, no. 05, 15 October 2016 (2016-10-15) * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021042745A1 (en) * | 2019-09-02 | 2021-03-11 | 深圳壹账通智能科技有限公司 | Method and device for building software installation package, computer device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021042745A1 (en) | 2021-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109918205B (en) | Edge equipment scheduling method, system, device and computer storage medium | |
CN108459964B (en) | Test case selection method, device, equipment and computer readable storage medium | |
US10452469B2 (en) | Server performance correction using remote server actions | |
US8606905B1 (en) | Automated determination of system scalability and scalability constraint factors | |
CN111045933A (en) | Regression strategy updating method and device, storage medium and terminal equipment | |
CN113312072A (en) | Configuration file updating method and device, electronic equipment and medium | |
CN105245567B (en) | A kind of processing updates the method and server system of request | |
CN109324962B (en) | Method and equipment for testing application program based on cloud Internet of things technology | |
CN108491304B (en) | electronic device, business system risk control method and storage medium | |
KR20160110467A (en) | Broadcasting management information using fountain codes | |
CN112954040B (en) | Method, system, device and storage medium for embedding application release server | |
CN106155746B (en) | A kind of installation file processing method and processing device, server | |
CN112612513A (en) | Message middleware upgrading method and device, computer equipment and storage medium | |
CN110727439A (en) | Software installation package construction method and device, computer equipment and storage medium | |
CN111866101A (en) | Access request processing method and device, storage medium and electronic equipment | |
CN113791867B (en) | Method and application for adjusting KVM virtual machine service process priority | |
CN109194703B (en) | Processing method of communication load between cloud platform hosts, electronic device and medium | |
CN113191889A (en) | Wind control configuration method, configuration system, electronic device and readable storage medium | |
CN112422604B (en) | File uploading method, device and system and computer equipment | |
CN113743040A (en) | Test method, test device, electronic equipment and readable storage medium | |
CN110930253A (en) | Intelligent contract internal main key generation method and device, computer equipment and storage medium | |
CN112732265A (en) | Data processing method and related device | |
CN112988339B (en) | Data management method and device | |
CN116684333A (en) | Automatic test method, device, equipment and storage medium based on communication protocol | |
CN113239396A (en) | Data access system, method, device, computer equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |