CN-119781814-B - Project deployment method and device, electronic equipment and storage medium
Abstract
The application provides a project deployment method, a project deployment device, electronic equipment and a storage medium, wherein the method comprises the steps of responding to a packaging program command, acquiring a preset automatic packaging program; the method comprises the steps of utilizing an automatic packaging program to sequentially execute a plurality of packaging flows contained in a project packaging process to obtain a corresponding target application installation package, utilizing the automatic packaging program to determine an installation package version number corresponding to the target application installation package, generating a unique installation package name based on the installation package version number and utilizing the installation package name to name the target application installation package, operating an automatic sending installation package program, and utilizing the automatic sending installation package program to send the named target application installation package to a test end. Therefore, the automatic pushing to the deployment process is realized, the working efficiency is improved, the deployment efficiency is improved, and a user can conveniently and quickly know the version of the installation package through names.
Inventors
- NIE SHUANGYAN
Assignees
- 珠海格力电器股份有限公司
- 珠海联云科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241224
Claims (9)
- 1. A project deployment method applied to a development environment that mixes application framework projects and associated front-end projects, the method comprising: responding to a packaging program command, and acquiring a preset automatic packaging program; Sequentially executing a plurality of packing flows included in the project packing process by using the automatic packing program to obtain a corresponding target application installation package; Determining an installation package version number corresponding to the target application installation package by using the automatic packaging program; Generating a unique installation package name based on the installation package version number, and naming the target application installation package by using the installation package name; Operating an automatic sending installation package program, and sending the named target application installation package to a test end by utilizing the automatic sending installation package program; the running of the automatic sending installation package program, and after the automatic sending installation package program is used for sending the named target application installation package to the testing end, the running of the automatic sending installation package program further comprises the following steps: receiving feedback information returned by the test end; re-executing a plurality of packing flows included in the project packing process according to the feedback information to obtain a corresponding updated application installation package; operating an automatic sending installation package program, and sending the updated application installation package to a test end by utilizing the automatic sending installation package program; the sequentially executing a plurality of packing flows included in the project packing process to obtain a corresponding target application installation package comprises the following steps: Executing a package page resource command, and constructing a resource folder based on a configuration folder in the project according to the instruction of the package page resource command; Copying the resource folder into a packaging folder of the project specification directory to update a project directory page resource file; Executing a resource moving command, and copying the updated page resource file into an internal folder corresponding to the project according to the instruction of the resource moving command; Executing an installation package packaging command, and generating an initial installation package file according to the page resource file in the internal folder according to the indication of the installation package packaging command; And cutting the initial installation package file to a project root directory, and executing an installation package signature operation on the initial installation package file to obtain the target application installation package.
- 2. The method of claim 1, wherein determining, with the automated packaging program, an installation package version number corresponding to the target application installation package, comprises: analyzing the packaging program command by using the automatic packaging program to obtain version updating parameters; And under the condition that the version updating parameter is an updated version number, executing the operation of modifying the version number, and determining the modified version number as an installation package version number corresponding to the target application installation package.
- 3. The method according to claim 2, wherein the method further comprises: And under the condition that the version updating parameter is not updated version number, determining the current version number corresponding to the target application installation package as the installation package version number.
- 4. The method of claim 1, wherein determining, with the automated packaging program, an installation package version number corresponding to the target application installation package, comprises: Searching a target file in the configuration file in the project by utilizing the automatic packaging program; Acquiring a target version number from the target file; and determining the version number of the installation package corresponding to the target application installation package as the target version number.
- 5. The method of claim 1, wherein the generating a unique installation package name based on the installation package version number comprises: generating a unique identifier corresponding to the target application installation package by using the automatic packaging program; and generating an installation package name according to the installation package version number and the unique identifier.
- 6. The method of claim 1, wherein before the running the auto-send installation package program, further comprising: acquiring the file size of the target application installation package; Under the condition that the file size is larger than a preset threshold, sub-packing compression operation is carried out on the target application installation package, so that a plurality of compressed files corresponding to the target application installation package are obtained; The step of sending the named target application installation package to the test end by using the automatic installation package sending program comprises the following steps: And transmitting a plurality of compressed files corresponding to the target application installation package to a testing end by utilizing the automatic transmission installation package program.
- 7. An item deployment apparatus, the apparatus comprising: the program acquisition module is used for responding to the packaging program command and acquiring a preset automatic packaging program; the flow execution module is used for sequentially executing a plurality of packing flows contained in the project packing process by utilizing the automatic packing program to obtain a corresponding target application installation package; the version number determining module is used for determining an installation package version number corresponding to the target application installation package by utilizing the automatic packaging program; The naming module is used for generating a unique installation package name based on the installation package version number and naming the target application installation package by utilizing the installation package name; the sending module is used for running an automatic sending installation package program and sending the named target application installation package to a testing end by utilizing the automatic sending installation package program; wherein the device further comprises an updating module for: receiving feedback information returned by the test end; re-executing a plurality of packing flows included in the project packing process according to the feedback information to obtain a corresponding updated application installation package; operating an automatic sending installation package program, and sending the updated application installation package to a test end by utilizing the automatic sending installation package program; the flow execution module is specifically configured to: Executing a package page resource command, and constructing a resource folder based on a configuration folder in the project according to the instruction of the package page resource command; Copying the resource folder into a packaging folder of the project specification directory to update a project directory page resource file; Executing a resource moving command, and copying the updated page resource file into an internal folder corresponding to the project according to the instruction of the resource moving command; Executing an installation package packaging command, and generating an initial installation package file according to the page resource file in the internal folder according to the indication of the installation package packaging command; And cutting the initial installation package file to a project root directory, and executing an installation package signature operation on the initial installation package file to obtain the target application installation package.
- 8. An apparatus comprising a processor and a memory, the processor configured to execute a project deployment program stored in the memory to implement the project deployment method of any of claims 1-6.
- 9. A storage medium, characterized in that the storage medium stores one or more programs, the one or more programs are executable by one or more processors to implement the project deployment method of any of claims 1-6.
Description
Project deployment method and device, electronic equipment and storage medium Technical Field The present application relates to the field of internet technologies, and in particular, to a project deployment method, a device, an electronic device, and a storage medium. Background Cordova is an open source mobile application framework. It allows the developer to develop native mobile applications using HTML, CSS, and JavaScript, and package, deploy, and test on a variety of mobile platforms through the coreva command line interface. Currently, in the deployment process of the Cordova project, most developers manually package APK (Android application package, android application packages) installation packages in an external network development environment, and the process of packaging the APK installation packages comprises a plurality of processes, and each process needs to be manually pushed by the developer to execute corresponding operations. The mode of manually realizing project deployment is low in efficiency, and the waste of manpower time and cost is easily caused. Disclosure of Invention The application provides a project deployment method, a project deployment device, electronic equipment and a storage medium, which are used for solving the problems that in the prior art, the project deployment is realized manually, the efficiency is low, and the waste of labor time and cost is easily caused. In a first aspect, the present application provides a project deployment method, including: responding to a packaging program command, and acquiring a preset automatic packaging program; Sequentially executing a plurality of packing flows included in the project packing process by using the automatic packing program to obtain a corresponding target application installation package; Determining an installation package version number corresponding to the target application installation package by using the automatic packaging program; Generating a unique installation package name based on the installation package version number, and naming the target application installation package by using the installation package name; and running an automatic sending installation package program, and sending the named target application installation package to a testing end by utilizing the automatic sending installation package program. In one possible implementation manner, the sequentially executing a plurality of packing flows included in the project packing process to obtain a corresponding target application installation package includes: Executing a package page resource command, and constructing a resource folder based on a configuration folder in the project according to the instruction of the package page resource command; Copying the resource folder into a packaging folder of the project specification directory to update a project directory page resource file; Executing a resource moving command, and copying the updated page resource file into an internal folder corresponding to the project according to the instruction of the resource moving command; Executing an installation package packaging command, and generating an initial installation package file according to the page resource file in the internal folder according to the indication of the installation package packaging command; And cutting the initial installation package file to a project root directory, and executing an installation package signature operation on the initial installation package file to obtain the target application installation package. In one possible implementation manner, the determining, by using the automation packaging program, an installation package version number corresponding to the target application installation package includes: analyzing the packaging program command by using the automatic packaging program to obtain version updating parameters; And under the condition that the version updating parameter is an updated version number, executing the operation of modifying the version number, and determining the modified version number as an installation package version number corresponding to the target application installation package. In one possible implementation, the method further comprises determining a current version number corresponding to the target application installation package as the installation package version number if the version update parameter is not an update version number. In one possible implementation manner, the determining, by using the automation packaging program, an installation package version number corresponding to the target application installation package includes: Searching a target file in the configuration file in the project by utilizing the automatic packaging program; Acquiring a target version number from the target file; and determining the version number of the installation package corresponding to the target application installation package as the target version number. In one