WO2020000810A1 - Application component construction packaging method and device, and computer storage medium - Google Patents

Application component construction packaging method and device, and computer storage medium Download PDF

Info

Publication number
WO2020000810A1
WO2020000810A1 PCT/CN2018/111666 CN2018111666W WO2020000810A1 WO 2020000810 A1 WO2020000810 A1 WO 2020000810A1 CN 2018111666 W CN2018111666 W CN 2018111666W WO 2020000810 A1 WO2020000810 A1 WO 2020000810A1
Authority
WO
WIPO (PCT)
Prior art keywords
action
build
application component
execution
construction
Prior art date
Application number
PCT/CN2018/111666
Other languages
French (fr)
Chinese (zh)
Inventor
彭明强
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020000810A1 publication Critical patent/WO2020000810A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • the present application relates to the technical field of application development, and in particular, to a method, a device, and a computer storage medium for constructing and packaging application components.
  • This application provides an application component construction packaging method, device, and computer storage medium, which are mainly capable of automatically completing application component construction packaging and standardizing the application component construction packaging process, accelerating the speed of construction packaging, and controlling the construction packaging rhythm Reducing the complexity of building and packaging, reducing the errors and risks of manual operations, which can improve the efficiency and accuracy of building and packaging application components.
  • a method for building and packaging an application component including:
  • the construction packaging instruction includes an application component identification of a packaging application component to be constructed
  • Package the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
  • an application component construction packaging device including:
  • a receiving unit configured to receive an application component construction packaging instruction, where the construction packaging instruction includes an application component identifier of a packaging application component to be constructed;
  • An obtaining and parsing unit configured to obtain and parse a construction package configuration file of the application component according to the application component identifier, and obtain a standard construction execution action and a source code configuration file of the application component;
  • An execution unit configured to execute a dependent package installation action, a pre-build action, a build action, and a post-build action in the standard build execution action
  • the packaging unit is configured to perform packaging processing on the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction packaging file of the application component.
  • a computer non-volatile readable storage medium on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, the following steps are implemented:
  • the construction packaging instruction includes an application component identification of a packaging application component to be constructed
  • Package the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
  • an application component construction and packaging device which includes a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, where the processor executes the computer may The following steps are implemented when the instruction is read:
  • the construction packaging instruction includes an application component identification of a packaging application component to be constructed
  • Package the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
  • the construction and packaging instructions include a packaged application to be constructed.
  • the application component identification of the component; the construction package configuration file of the application component can be obtained and parsed according to the application component identification, and the standard construction execution action and source code configuration file of the application component can be obtained;
  • Construction assembly can be improved application efficiency and accuracy packaged.
  • FIG. 1 shows a flowchart of an application component construction and packaging method provided by an embodiment of the present application
  • FIG. 2 shows a flowchart of another method for constructing and packaging application components according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of an application component construction and packaging device according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another application component construction and packaging device according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
  • an embodiment of the present application provides a method for constructing and packaging application components. As shown in FIG. 1, the method includes:
  • the build and package instruction includes an application component identifier of a packaged application component to be built.
  • the application component identifier may be a name of the application component or a unique encoding of the application component, which is not limited in the embodiment of the present application.
  • the build and package instruction may be received by the execution subject application component build and package device when the technician clicks or triggers the build and package button or key.
  • the construction packaging configuration file can be prepared in advance by a technician for the application component, and the construction packaging configuration file defines and describes two parts: a standard construction execution action of the application component and a source code configuration file. .
  • Different application components correspond to different build packaging configuration files, but different build packaging configuration files describe the contents of the previous two parts.
  • the standard build execution actions of different application components are the same.
  • Each execution action in the standard build execution action can be changed by It consists of several commands.
  • Each command can be expressed by a command line execution statement.
  • the command line execution statement can be a shell execution statement or other execution statements.
  • Each command under each execution action can be determined according to the actual situation of the application component. .
  • the standard build execution action can be defined with four execution actions: dependent package installation action, pre-build action, build action, and post-build action, that is, for different application components, building a packaging configuration file can all describe the above four execution actions.
  • the source code configuration file may be used to record source code configuration information of an application component.
  • the construction packaging configuration file may be written in a json text format, or may be written in a yaml or xml text format, and the embodiment of the present application is not limited thereto.
  • the installation action of the dependent package may be: "install action”
  • the pre-build action may be: "before build action”
  • the build action may be Is: "build action”
  • the post-build action may be: "after build action”
  • the source code configuration file may be: configure files.
  • the installation action of the dependent package may specify the installation of the dependent resource package required for the application component construction, and the dependent resource package may be a body-parser, cookie-parser, debug, ejs, express, serve-favicon , Mongodb depends on resource bundles, etc.
  • the dependent resource package required for the application component construction can be downloaded and installed from a third party;
  • the pre-build action can specify a pre-configured action before the application component is built, such as cleaning up redundant files left over from the last build
  • the construction action may specify an execution action required for the application component construction, such as compiling the source code files of the dependent resource package and the application component to obtain a compiled file of the source code files of the dependent resource package and the application component;
  • the action specifies an execution action after the application component is constructed, such as unit testing the compiled file to verify whether the source code of the application component is qualified.
  • An embodiment of the present application provides a method for building and packaging an application component. Compared with the current method of manually building a packaged application component, the embodiment of the present application can receive an application component construction and packaging instruction, and the construction packaging instruction includes a packaged application component to be constructed.
  • Application component identification can obtain and parse the construction package configuration file of the application component according to the application component identification, obtain the standard construction execution action and source code configuration file of the application component, and at the same time, can perform the standard construction Dependent package installation actions, pre-build actions, build actions, and post-build actions in the execution actions; the files obtained by executing the standard construction execution actions and the source code configuration file are packaged to obtain the construction of the application component Package files, so as to achieve automatic completion of application component building and packaging, and standardization of application component building and packaging processes, accelerate the speed of building and packaging, control the pace of building and packaging, reduce the complexity of building and packaging, and reduce errors and risks of manual operations.
  • Construction application components packaged efficiency and accuracy can obtain and parse the construction package configuration file of the application component according to the application component identification, obtain the standard construction execution action and source code configuration file of the application component, and at the same time, can perform the standard construction Dependent package installation actions, pre-build actions, build actions, and post-build actions in the execution actions; the files obtained by executing the standard construction
  • this embodiment of the present application provides another method for building and packaging application components, as shown in FIG. 2.
  • Methods include:
  • the build and package instruction includes an application component identifier of a packaged application component to be built.
  • the method further includes: obtaining different construction packaging configuration files corresponding to different application components; and adding the different construction packaging configuration files to the respective source code of the different application components respectively In the version management directory.
  • different source code version management files of application components can be stored in the source code version management directory. Different source code versions can be used for the same application component, and technicians can pre-determine application components for different source code versions.
  • Writing a build packaging configuration file the application component build packaging device can add the build packaging configuration file to the corresponding source code version management file.
  • the source code version management directory stores the source code of the build package configuration file and the application computer-readable instructions.
  • the application component 1 may correspond to the source code version management directory 1
  • the application component 2 may correspond to the source code version management directory 2
  • the source code version management directory 1 may include a source code version management file 11, a source code version management file 12, and the like. .
  • the source component version management file 11 of the application component 1 may be found, and then the build and package configuration file of the application component is obtained from the source code version management file 11 and analyzed. .
  • the standard construction execution action may be defined with four execution actions: a dependent package installation action, a pre-build action, a build action, and a post-build action.
  • the dependent package installation action may include a dependent resource package download command print command and a dependent resource package download command required for application component construction; specifically, the dependent resource package download command print command may be: "echo begin install action .. . ”,
  • the pre-build action may include a print command of the pre-build action and a command for cleaning the redundant files left over from the last build.
  • the print command of the pre-build action may be: "echo begin before build action "
  • the leftover file cleaning command for the secondary build can be: “mvn clean”.
  • the build action may include a build action print command and a dependent resource package and source code compilation command.
  • the build action print command may be: "echo begin build action ..”
  • the dependent resource package and source code compilation The command can be: "mvn package”.
  • the post-build action may include a post-build action print command and a compiled file unit test command that depends on a resource package and source code.
  • the post-build action print command may be: "echo after build action "
  • the unit test command for the compiled file that relies on the resource package and source code can be: "mvn test”.
  • step 204 Perform the installation action of the dependent package in the standard construction execution action, and detect whether the execution is completed. If the execution is completed, step 205 is performed, and if the execution fails, step 209 is performed.
  • the step 204 may specifically include: executing the installation action of the dependent package to execute the download command to obtain The application component builds the required resource bundles.
  • the step 204 may specifically include: performing the installation action of the dependent package to execute all The print command of the dependent resource package download command is described, and a message “begin install install action” is printed out. Then, the download command is executed to obtain the dependent resource package required for the application component construction.
  • each command defined by it can be sequentially executed. Specifically, each command line execution statement is executed. After the execution of any command line execution statement is completed, the corresponding return value can be 0. After completing each command in the installation action of the dependent package, the return value of each command can be received, that is, it can be determined whether the execution of the installation action of the dependent package is completed by detecting whether the return value corresponding to the installation action of the dependent package is 0. If the return value of each command of the dependent package installation action is 0, it is determined that the execution of the dependent package installation action is completed; if the return value of each command of the dependent package installation action is non-zero, it is determined that the execution of the dependent package installation action has failed, and the process ends. Describes the process of building and packaging application components. In addition, if there is no dependent package installation action in the standard construction execution action, the process of building and packaging the application component is also ended.
  • step 205 Perform a pre-build action in the standard build execution action, and detect whether the execution is completed. If the execution is completed, step 206 is performed, and if the execution fails, step 209 is performed.
  • the step 205 may specifically include: executing the build action to execute the clean-up command to remove the redundant data from the last build. The remaining files are cleaned.
  • the step 205 may specifically include: executing the build action to first execute the pre-build action print command and print out A message begins before the build action, and then executes the cleanup command to clean up the redundant files left over from the last build.
  • each command defined by it can be sequentially executed. Specifically, each command line execution statement is executed. After the execution of any command line execution statement is completed, the corresponding return value can be 0. After describing each command in the installation action of the dependent package, the return value of each command can be received, that is, it can be determined whether the pre-build action is completed by detecting whether the return value corresponding to the pre-build action is 0. If the return value of each command receiving the pre-build action is 0, it is determined that the execution of the pre-build action is completed; if the return value of each command receiving the pre-build action is non-zero, it is determined that the execution of the pre-build action has failed, and the application is terminated The process of building and packaging components. In addition, if there is no pre-build action in the standard build execution action, the build and packaging process of the application component is also ended.
  • step 206 Perform a construction action in the standard construction execution action, and detect whether execution is completed. If the execution is completed, step 207 is performed, and if the execution fails, step 209 is performed.
  • the step 206 may specifically include: executing the constructing action to execute the compiling command and dependence on the application component Compile the resource package and source code to obtain the compiled file that depends on the resource package and the source code.
  • the build action may include a build action print command and a dependent resource package and source code compilation command
  • the step 206 may specifically include: executing the build action to first execute the build action print command and print out a message begin build action ... Then execute the compilation command to compile the dependent resource package and source code of the application component to obtain a compiled file of the dependent resource package and the source code.
  • each command defined by it can be sequentially executed. Specifically, each command line execution statement is executed. After the execution of any command line execution statement is completed, the corresponding return value can be 0. After each command in the construction action, the return value of each command can be received, that is, it can be determined whether the execution of the construction action is completed by detecting whether the return value corresponding to the construction action is 0. If the return value of each command that receives the build action is 0, it is determined that the execution of the build action is complete; if the return value of each command that receives the build action is non-zero, it is determined that the execution of the build action has failed, and the build packaging of the application component is ended Process. In addition, if there is no build action in the standard build execution action, the build packaging process of the application component is also ended.
  • step 207 Perform the post-build action in the standard build execution action, and detect whether the execution is completed. If the execution is completed, step 208 is performed, and if the execution fails, step 209 is performed.
  • the step 207 may specifically include: executing the post-build action to execute the test command, Describe the compiled files for unit testing and get the compiled files after unit testing.
  • the step 207 may specifically include: performing the post-build action to first execute the post-build action print command and output a print output A message after the build action; and then executing the test command to perform a unit test on the compiled file to obtain a compiled file after the unit test.
  • executing the post-build actions can sequentially execute the commands defined by it. Specifically, each command line execution statement is executed. After the execution of any command line execution statement is completed, the corresponding return value can be 0. After describing each command in the post-build action, the return value of each command can be received, that is, it can be determined whether the post-build action is completed by detecting whether the return value corresponding to the post-build action is 0. If the return value of each command of the post-build action is 0, it is determined that the execution of the post-build action is completed; if the return value of each command receiving the post-build action is non-zero, it is determined that the execution of the post-build action fails, and the application component is ended Build packaging process. In addition, if there is no post-build action in the standard build execution action, the build packaging process of the application component is also ended.
  • the file obtained after executing the standard construction execution action may be a compiled file after unit testing.
  • the step 208 may specifically include: compiling the compiled file after the unit test and the source code.
  • the configuration files are packaged together to obtain a construction package file of the application component.
  • the files and source code configuration files obtained after performing the standard build execution actions may be stored in a build target folder or a list of build target files, and by storing in the build target folder or the list of build target files, It is convenient to package the compiled file after the unit test and the source code configuration file, and to avoid missing the corresponding file during construction and packaging.
  • the construction and packaging file may generally be a compressed file package.
  • the compressed file package may be a zip compressed file package or a tar compressed file package.
  • another embodiment of the present invention provides a method for building and packaging an application component.
  • the embodiment of the present application can receive an application component construction and packaging instruction.
  • the construction and packaging instruction includes a packaged application component to be constructed.
  • an embodiment of the present application provides an application component construction and packaging device.
  • the device includes a receiving unit 31, an obtaining and parsing unit 32, an execution unit 33, and a packaging unit. 34.
  • the receiving unit 31 may be configured to receive an application component construction packaging instruction, where the construction packaging instruction includes an application component identifier of a packaging application component to be constructed.
  • the receiving unit 31 is a main functional module for receiving application component construction and packaging instructions in the device.
  • the acquisition and parsing unit 32 may be configured to acquire and parse a construction package configuration file of the application component according to the application component identifier, to obtain a standard construction execution action and a source code configuration file of the application component.
  • the acquisition and parsing unit 32 is a main functional module in the device that obtains and parses the construction package configuration file of the application component according to the application component identifier, and obtains the standard construction execution action and source code configuration file of the application component. Core modules.
  • the execution unit 33 may be used to execute a dependent package installation action, a pre-build action, a build action, and a post-build action in the standard build execution action; the execution unit 33 is a device that executes the standard build execution action
  • the packaging unit 34 may be configured to perform packaging processing on the file and the source code configuration file obtained after executing the standard construction execution action to obtain a construction packaging file of the application component.
  • the packaging unit 34 is a main function module for packaging and processing the files obtained by executing the standard construction execution action and the source code configuration file in this device to obtain the application component's construction and packaging file.
  • the execution unit 33 is specifically configured to execute the installation action of the dependent package; if the execution of the installation action of the dependent package fails, the process of building and packaging the application component is ended; if the installation of the dependent package is completed If the execution of the action is completed, the pre-build action is executed; if the execution of the pre-build action fails, the build packaging process of the application component is ended; if the execution of the pre-build action is completed, the build action is executed; if If the execution of the construction action fails, the construction and packaging process of the application component ends;
  • the post-build action is performed; if the execution of the post-build action fails, the build packaging process of the application component is ended; if the execution of the post-build action is completed, the completion is determined The process of building and packaging the application component.
  • the device in order to determine whether an action in the standard construction execution action fails to be performed, the device further includes a detection unit 35 and a determination unit 36, as shown in FIG. 4.
  • the detecting unit 35 may be configured to detect whether an execution return value corresponding to each of the dependent package installation action, the pre-build action, the build action, and the post-build action is 0.
  • the detection unit 35 is a main functional module in this device that detects whether an execution return value corresponding to the dependent package installation action, the pre-build action, the build action, and the post-build action is 0.
  • the determining unit 36 may be configured to determine that the dependent package is executed after the dependent package installation action, the pre-build action, the build action, and the post-build action respectively have an execution return value of 0.
  • the execution unit 33 may be specifically configured to execute the installation action of the dependent package to execute the download command of the dependent resource package required for the application component construction included in the installation action of the dependency package to obtain the application component construction required.
  • Execute the pre-build action to execute the last build residual redundant file cleanup command included in the pre-build action; execute the build action to execute the dependent resource pack and Source code compilation command to obtain the compiled file of the source code of the dependent resource package and the application component; execute the post-build action to execute a unit test of the compiled file of the dependent resource package and source code included in the post-build action Command to get the compiled file after the unit test.
  • the packaging unit 34 may be specifically configured to package the compiled file after the unit test and the source code configuration file together to obtain a construction and packaging file of the application component.
  • the acquisition and analysis unit 32 may specifically include a search module 321, an acquisition module 322, and an analysis module 323.
  • the search module 321 may be configured to search a source code version management directory of the application component according to the application component identifier, and different application components correspond to different source code version management directories.
  • the obtaining module 322 may be configured to obtain a build package configuration file of the application component from the source code version management directory, where the build package configuration file and the application computer are stored in the source code version management directory. Source code for readable instructions.
  • the parsing module 323 may be configured to parse the constructed packaging configuration file.
  • the apparatus further includes: an adding unit 37.
  • the adding unit 37 may be configured to obtain different construction packaging configuration files corresponding to different application components; and add the different construction packaging configuration files to respective source code version management directories corresponding to the different application components.
  • an embodiment of the present application further provides a computer non-volatile readable storage medium having computer-readable instructions stored thereon.
  • the computer-readable instructions When the computer-readable instructions are executed by a processor, The following steps are implemented: receiving an application component construction packaging instruction, the construction packaging instruction including an application component identification of a packaging application component to be constructed; obtaining and parsing the construction packaging configuration file of the application component according to the application component identification to obtain the application
  • the component's standard build execution actions and source code configuration files execute the dependent package installation actions, pre-build actions, build actions, and post-build actions in the standard build execution actions; the files obtained by executing the standard build execution actions and
  • the source code configuration file is packaged to obtain a construction package file of the application component.
  • an embodiment of the present application further provides a physical structure diagram of a computer device.
  • the computer device includes: The processor 41, the memory 42, and computer-readable instructions stored on the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are all disposed on the bus 43, and the processor 41 executes the computer-readable In the instruction, the following steps are implemented: receiving an application component construction packaging instruction, the construction packaging instruction including an application component identifier of a packaging application component to be constructed; obtaining and parsing the application component's construction packaging configuration file according to the application component identification, and obtaining The standard build execution action and source code configuration file of the application component are described; the dependent package installation action, pre-build action, build action, and post-build action in the standard build execution action are performed; Files and the source code configuration file for packaging processing to obtain the construction and packaging of the application component Pieces.
  • the computer device further includes a bus
  • an application component construction package instruction can be received, where the construction package instruction includes an application component identifier of a packaged application component to be constructed, and the application component construction package configuration file can be obtained and parsed according to the application component identifier.
  • the standard construction execution action and source code configuration file of the application component can execute the dependent package installation action, pre-build action, build action, and post-build action in the standard build execution action;
  • the file obtained by the standard construction execution action and the source code configuration file are packaged to obtain a construction package file of the application component, so that the application component construction package can be automatically completed, and the application component construction and packaging process can be standardized.
  • the source code of the application component and the build package configuration file can be integrated to simplify the management of the source code and build package configuration file of the application component , To avoid the corresponding problems of the source code version and the need to build the package configuration file.
  • modules or steps of the present application may be implemented by a general-purpose computing device, and they may be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Above, optionally, they may be implemented with computer-readable instruction code executable by a computing device, so that they may be stored in a storage device and executed by the computing device, and in some cases, may be different from this.
  • the steps shown or described are performed in sequence, either by making them into individual integrated circuit modules, or by making multiple modules or steps into a single integrated circuit module. As such, this application is not limited to any particular combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

An application component construction packaging method and device, and a computer storage medium, relating to the technical field of information, and being mainly aimed at improving efficiency and accuracy of the application component construction packaging. The method comprises: receiving an application component construction packaging instruction (101), the construction packaging instruction comprising an application component identification of an application component to be constructed and packaged; obtaining and parsing a construction packaging configuration file of the application component according to the application component identification, and obtaining standard construction execution actions and a source code configuration file of the application component (102); executing a dependent package installation action, a pre-construction action, a construction action, and a post-construction action in the standard construction execution action (103); performing packaging processing on a file obtained after the standard construction execution actions are executed completely and the source code configuration file to obtain a construction packaging file of the application component (104). The present invention is applicable to the construction and packaging of application component.

Description

应用组件构建打包方法、装置及计算机存储介质Method and device for building and packaging application components and computer storage medium
本申请要求与2018年6月29日提交中国专利局、申请号为2018106974918、申请名称为“应用组件构建打包方法、装置及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims priority from the Chinese patent application filed on June 29, 2018 with the Chinese Patent Office, application number 2018106974918, and application name "Application Component Construction Packaging Method, Device, and Computer Storage Medium", the entire contents of which are incorporated by reference. In the application.
技术领域Technical field
本申请涉及应用开发技术领域,尤其是涉及一种应用组件构建打包方法、装置及计算机存储介质。The present application relates to the technical field of application development, and in particular, to a method, a device, and a computer storage medium for constructing and packaging application components.
背景技术Background technique
随着信息技术的不断发展和进步,为了满足人们不增长的需求,应用计算机可读指令需要不断更新功能,因此需要应用开发人员不断的开发应用组件。应用开发人员在开发完一个应用组件的代码或者修改完应用组件的一处代码后,通常需要对应用组件构建打包,以便将应用组件部署给测试人员进行测试。With the continuous development and progress of information technology, in order to meet people's growing needs, the application of computer-readable instructions needs to continuously update functions, so application developers need to continuously develop application components. After an application developer develops an application component's code or modifies an application component's code, it usually needs to package the application component build in order to deploy the application component to a tester for testing.
目前,通常由技术人员通过手动方式构建打包应用组件。然而,应用组件构建打包过程较复杂,针对一个应用程序可能会出现不同团队协作开发不同应用组件,而每个应用组件的语言、框架各不相同,应用组件构建打包的方式也不会不同,造成技术人员无法适应各种各样的构建打包流程,通过手动方式,会造成无法控制应用组件构建打包节奏,造成应用组件构建打包的速度较慢,且在技术人员的技术水平不高的情况下,会增加应用组件构建打包的错误和风险,从而导致应用组件构建打包的效率和精确度较低。Currently, packaged application components are usually built manually by technicians. However, the process of building and packaging application components is more complicated. For an application, different teams may collaborate to develop different application components. The language and framework of each application component are different, and the way to build and package application components will not be different. Technicians cannot adapt to a variety of build and packaging processes. By manual methods, it will not be possible to control the pace of application component building and packaging, resulting in a slower speed of application component building and packaging, and when the technical level of the technicians is not high, Will increase the error and risk of application component build packaging, resulting in lower efficiency and accuracy of application component build packaging.
发明内容Summary of the invention
本申请提供了一种应用组件构建打包方法、装置及计算机存储介质,主要在于能够实现自动完成应用组件构建打包,以及实现应用组件构建打包流程的标准化,加快构建打包的速度,控制构建打包节奏,降低构建打包的复杂度,减少手工操作的错误和风险,从而能够提高应用组件构建打包的效率和精确度。This application provides an application component construction packaging method, device, and computer storage medium, which are mainly capable of automatically completing application component construction packaging and standardizing the application component construction packaging process, accelerating the speed of construction packaging, and controlling the construction packaging rhythm Reducing the complexity of building and packaging, reducing the errors and risks of manual operations, which can improve the efficiency and accuracy of building and packaging application components.
根据本申请的第一个方面,提供一种应用组件构建打包方法,包括:According to a first aspect of the present application, a method for building and packaging an application component is provided, including:
接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;Receiving an application component construction packaging instruction, where the construction packaging instruction includes an application component identification of a packaging application component to be constructed;
根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用 组件的标准构建执行动作和源代码配置文件;Obtaining and analyzing the construction package configuration file of the application component according to the application component identifier, and obtaining a standard construction execution action and a source code configuration file of the application component;
执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;Execute the dependent package installation action, pre-build action, build action, and post-build action in the standard build execution action;
对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。Package the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
根据本申请的第二个方面,提供一种应用组件构建打包装置,包括:According to a second aspect of the present application, an application component construction packaging device is provided, including:
接收单元,用于接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;A receiving unit, configured to receive an application component construction packaging instruction, where the construction packaging instruction includes an application component identifier of a packaging application component to be constructed;
获取解析单元,用于根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;An obtaining and parsing unit, configured to obtain and parse a construction package configuration file of the application component according to the application component identifier, and obtain a standard construction execution action and a source code configuration file of the application component;
执行单元,用于执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;An execution unit, configured to execute a dependent package installation action, a pre-build action, a build action, and a post-build action in the standard build execution action;
打包单元,用于对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。The packaging unit is configured to perform packaging processing on the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction packaging file of the application component.
根据本申请的第三个方面,提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,该计算机可读指令被处理器执行时实现以下步骤:According to a third aspect of the present application, a computer non-volatile readable storage medium is provided, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, the following steps are implemented:
接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;Receiving an application component construction packaging instruction, where the construction packaging instruction includes an application component identification of a packaging application component to be constructed;
根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;Obtaining and analyzing the construction package configuration file of the application component according to the application component identifier, and obtaining a standard construction execution action and a source code configuration file of the application component;
执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;Execute the dependent package installation action, pre-build action, build action, and post-build action in the standard build execution action;
对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。Package the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
根据本申请的第四个方面,提供一种应用组件构建打包装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现以下步骤:According to a fourth aspect of the present application, an application component construction and packaging device is provided, which includes a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, where the processor executes the computer may The following steps are implemented when the instruction is read:
接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;Receiving an application component construction packaging instruction, where the construction packaging instruction includes an application component identification of a packaging application component to be constructed;
根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;Obtaining and analyzing the construction package configuration file of the application component according to the application component identifier, and obtaining a standard construction execution action and a source code configuration file of the application component;
执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;Execute the dependent package installation action, pre-build action, build action, and post-build action in the standard build execution action;
对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。Package the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
本申请提供的一种应用组件构建打包方法、装置及计算机存储介质,与目前通过手动方式构建打包应用组件相比,本申请能够接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;能够根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件,与此同时,能够执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件,从而能够实现自动完成应用组件构建打包,以及实现应用组件构建打包流程的标准化,加快构建打包的速度,控制构建打包节奏,降低构建打包的复杂度,减少手工操作的错误和风险,进而能够提高应用组件构建打包的效率和精确度。An application component construction and packaging method, device, and computer storage medium provided in this application. Compared with the current manual construction of packaged application components, this application can receive application component construction and packaging instructions. The construction and packaging instructions include a packaged application to be constructed. The application component identification of the component; the construction package configuration file of the application component can be obtained and parsed according to the application component identification, and the standard construction execution action and source code configuration file of the application component can be obtained; Dependent package installation actions, pre-build actions, build actions, and post-build actions in standard build execution actions; package processing of the files obtained by executing the standard build execution actions and the source code configuration file to obtain the application component Build package file, which can automatically complete the application component build and package, and standardize the application component build and package process, accelerate the speed of build and package, control the pace of build and package, reduce the complexity of build and package, and reduce manual operation errors and risks , Construction assembly can be improved application efficiency and accuracy packaged.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The schematic embodiments of the present application and the descriptions thereof are used to explain the present application, and do not constitute an improper limitation on the present application. In the drawings:
图1示出了本申请实施例提供的一种应用组件构建打包方法流程图;FIG. 1 shows a flowchart of an application component construction and packaging method provided by an embodiment of the present application;
图2示出了本申请实施例提供的另一种应用组件构建打包方法流程图;FIG. 2 shows a flowchart of another method for constructing and packaging application components according to an embodiment of the present application; FIG.
图3示出了本申请实施例提供的一种应用组件构建打包装置的结构示意图;3 is a schematic structural diagram of an application component construction and packaging device according to an embodiment of the present application;
图4示出了本申请实施例提供的另一种应用组件构建打包装置的结构示意图;FIG. 4 is a schematic structural diagram of another application component construction and packaging device according to an embodiment of the present application; FIG.
图5示出了本申请实施例提供的一种计算机设备的实体结构示意图。FIG. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present application will be described in detail with reference to the drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
如背景技术,目前,通常由技术人员通过手动方式构建打包应用组件。然而,应用组件构建打包过程较复杂,针对一个应用计算机可读指令可能会出现不同团队协作开发不同应用组件,而每个应用组件的语言、框架各不相同,应用组件构建打包的方式也不会不同,造成技术人员无法适应各种各样的构建打包流程,通过手动方式,会造成无法控制应用组 件构建打包节奏,造成应用组件构建打包的速度较慢,且在技术人员的技术水平不高的情况下,会增加应用组件构建打包的错误和风险,从而导致应用组件构建打包的效率和精确度较低。As the background art, currently, it is common for a technician to manually build a packaged application component. However, the process of building and packaging application components is more complicated. For a computer-readable instruction of an application, different teams may collaborate to develop different application components. Each application component has a different language and framework, and the way of building and packaging application components will not. The difference makes the technical staff unable to adapt to a variety of build and packaging processes. By manual methods, it will not be able to control the pace of application component construction and packaging, resulting in a slower speed of application component construction and packaging, and the technical level of technical staff is not high. In some cases, the errors and risks of application component construction packaging will be increased, resulting in lower efficiency and accuracy of application component construction packaging.
为了解决上述问题,本申请实施例提供了一种应用组件构建打包方法,如图1所示,所述方法包括:In order to solve the above problems, an embodiment of the present application provides a method for constructing and packaging application components. As shown in FIG. 1, the method includes:
101、接收应用组件构建打包指令。101. Receive an application component to construct a packaging instruction.
其中,所述构建打包指令包括待构建打包应用组件的应用组件标识。所述应用组件标识可以为应用组件的名称或者为应用组件的唯一编码,本申请实施例不做限定。所述构建打包指令可以为在技术人员点击或者触发构建打包按钮或者按键时,本申请实施例的执行主体应用组件构建打包装置接收到的。The build and package instruction includes an application component identifier of a packaged application component to be built. The application component identifier may be a name of the application component or a unique encoding of the application component, which is not limited in the embodiment of the present application. The build and package instruction may be received by the execution subject application component build and package device when the technician clicks or triggers the build and package button or key.
102、根据应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件。102. Obtain and parse a construction package configuration file of the application component according to an application component identifier, and obtain a standard construction execution action and a source code configuration file of the application component.
需要说明的是,所述构建打包配置文件可以技术人员针对所述应用组件预先编写的,并所述构建打包配置文件定义描述两个部分的内容:应用组件的标准构建执行动作和源代码配置文件。不同的应用组件对应不同的构建打包配置文件,但是不同的构建打包配置文件均描述上两个部分的内容,不同的应用组件的标准构建执行动作相同,标准构建执行动作中各个执行动作均可以由若干个命令组成,所述各个命令可以通过命令行执行语句表示,所述命令行执行语句可以为shell执行语句或者其他执行语句,每个执行动作下的各个命令可以根据应用组件的实际情况而定。所述标准构建执行动作可以定义有4个执行动作:依赖包安装动作、构建前动作、构建动作和构建后动作,即针对不同的应用组件,构建打包配置文件可均描述上述4个执行动作。所述源代码配置文件可以用于记载应用组件的源代码配置信息。It should be noted that the construction packaging configuration file can be prepared in advance by a technician for the application component, and the construction packaging configuration file defines and describes two parts: a standard construction execution action of the application component and a source code configuration file. . Different application components correspond to different build packaging configuration files, but different build packaging configuration files describe the contents of the previous two parts. The standard build execution actions of different application components are the same. Each execution action in the standard build execution action can be changed by It consists of several commands. Each command can be expressed by a command line execution statement. The command line execution statement can be a shell execution statement or other execution statements. Each command under each execution action can be determined according to the actual situation of the application component. . The standard build execution action can be defined with four execution actions: dependent package installation action, pre-build action, build action, and post-build action, that is, for different application components, building a packaging configuration file can all describe the above four execution actions. The source code configuration file may be used to record source code configuration information of an application component.
其中,所述构建打包配置文件可以为通过json文本格式编写的,也可以为通过yaml、xml文本格式编写的,本申请实施例不限定于此。例如,当所述构建打包配置文件为通过json文本格式编写时,所述依赖包安装动作可以为:"install action",所述构建前动作可以为:"before build action",所述构建动作可以为:"build action",所述构建后动作可以为:"after build action";所述源代码配置文件可以为:configure files。Wherein, the construction packaging configuration file may be written in a json text format, or may be written in a yaml or xml text format, and the embodiment of the present application is not limited thereto. For example, when the build package configuration file is written in json text format, the installation action of the dependent package may be: "install action", the pre-build action may be: "before build action", and the build action may be Is: "build action", the post-build action may be: "after build action"; the source code configuration file may be: configure files.
103、执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作。103. Execute a dependent package installation action, a pre-build action, a build action, and a post-build action in the standard construction execution action.
在本申请实施例中,所述依赖包安装动作可以指定应用组件构建所需的依赖资源包安装,所述依赖资源包可以为body-parser、cookie-parser、debug、ejs、express、serve-favicon、 mongodb依赖资源包等。具体地,可以从第三方下载所述应用组件构建所需的依赖资源包安装并进行安装;所述构建前动作可以指定应用组件构建前的预配置动作,如清理上次构建遗留的冗余文件;所述构建动作可以指定应用组件构建所需的执行动作,如对依赖资源包和应用组件的源代码文件进行编译,得到依赖资源包和应用组件的源代码文件的编译文件;所述构建后动作指定应用组件构建后的执行动作,如对所述编译文件进行单元测试,以验证所述应用组件的源代码是否合格。In the embodiment of the present application, the installation action of the dependent package may specify the installation of the dependent resource package required for the application component construction, and the dependent resource package may be a body-parser, cookie-parser, debug, ejs, express, serve-favicon , Mongodb depends on resource bundles, etc. Specifically, the dependent resource package required for the application component construction can be downloaded and installed from a third party; the pre-build action can specify a pre-configured action before the application component is built, such as cleaning up redundant files left over from the last build The construction action may specify an execution action required for the application component construction, such as compiling the source code files of the dependent resource package and the application component to obtain a compiled file of the source code files of the dependent resource package and the application component; The action specifies an execution action after the application component is constructed, such as unit testing the compiled file to verify whether the source code of the application component is qualified.
104、对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。104. Package the files obtained after executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
本申请实施例提供的一种应用组件构建打包方法,与目前通过手动方式构建打包应用组件相比,本申请实施例能够接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;能够根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件,与此同时,能够执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件,从而能够实现自动完成应用组件构建打包,以及实现应用组件构建打包流程的标准化,加快构建打包的速度,控制构建打包节奏,降低构建打包的复杂度,减少手工操作的错误和风险,进而能够提高应用组件构建打包的效率和精确度。An embodiment of the present application provides a method for building and packaging an application component. Compared with the current method of manually building a packaged application component, the embodiment of the present application can receive an application component construction and packaging instruction, and the construction packaging instruction includes a packaged application component to be constructed. Application component identification; can obtain and parse the construction package configuration file of the application component according to the application component identification, obtain the standard construction execution action and source code configuration file of the application component, and at the same time, can perform the standard construction Dependent package installation actions, pre-build actions, build actions, and post-build actions in the execution actions; the files obtained by executing the standard construction execution actions and the source code configuration file are packaged to obtain the construction of the application component Package files, so as to achieve automatic completion of application component building and packaging, and standardization of application component building and packaging processes, accelerate the speed of building and packaging, control the pace of building and packaging, reduce the complexity of building and packaging, and reduce errors and risks of manual operations. Able to mention Construction application components packaged efficiency and accuracy.
进一步的,为了更好的说明上述应用组件构建打包的过程,作为对上述实施例的细化和扩展,本申请实施例提供了另一种应用组件构建打包方法,如图2所示,所述方法包括:Further, in order to better explain the process of building and packaging the application components, as a refinement and extension of the foregoing embodiments, this embodiment of the present application provides another method for building and packaging application components, as shown in FIG. 2. Methods include:
201、接收应用组件构建打包指令。201. Receive an application component to construct a packaging instruction.
其中,所述构建打包指令包括待构建打包应用组件的应用组件标识。The build and package instruction includes an application component identifier of a packaged application component to be built.
202、根据应用组件标识查找所述应用组件的源代码版本管理目录。202. Find a source code version management directory of the application component according to the application component identifier.
其中,不同应用组件对应不同的源代码版本管理目录。在本申请实施例中,为了能够将应用组件的源代码和构建打包配置文件一体化,简化应用组件的源代码和构建打包配置文件管理,避免源代码版本与构建打包配置文件需要对应的问题,以及避免额外对部署配置文件进行管理,所述方法还包括:获取不同应用组件分别对应的不同构建打包配置文件;将所述不同构建打包配置文件分别添加到所述不同应用组件各自对应的源代码版本管理目录中。具体地,所述源代码版本管理目录下可以保存有应用组件的不同源代码版本管理文件,针对同一个应用组件可以有不同的源代码版本,技术人员可以针对不同源代码版本的应用组件均预先编写构建打包配置文件,应用组件构建打包装置可以将构建打包配置文件添加到对应源代码版本管理文件中。Among them, different application components correspond to different source code version management directories. In the embodiment of the present application, in order to be able to integrate the source code of the application component and the construction packaging configuration file, simplify the management of the source code of the application component and the construction packaging configuration file, and avoid the problem that the source code version corresponds to the construction packaging configuration file, And to avoid additional management of deployment configuration files, the method further includes: obtaining different construction packaging configuration files corresponding to different application components; and adding the different construction packaging configuration files to the respective source code of the different application components respectively In the version management directory. Specifically, different source code version management files of application components can be stored in the source code version management directory. Different source code versions can be used for the same application component, and technicians can pre-determine application components for different source code versions. Writing a build packaging configuration file, the application component build packaging device can add the build packaging configuration file to the corresponding source code version management file.
203、从所述源代码版本管理目录中获取所述应用组件的构建打包配置文件并解析,得到所述应用组件的标准构建执行动作和源代码配置文件。203. Obtain and parse the construction package configuration file of the application component from the source code version management directory, and obtain a standard construction execution action and source code configuration file of the application component.
其中,所述源代码版本管理目录中保存有所述构建打包配置文件和所述应用计算机可读指令的源代码。例如,应用组件1可以对应源代码版本管理目录1、应用组件2可以对应源代码版本管理目录2、所述源代码版本管理目录1可以包括源代码版本管理文件11、源代码版本管理文件12等。当需要对应用组件1进行构建打包时,可以查找源代码版本管理目录1,然后从源代码版本管理目录1中获取应用组件的构建打包配置文件并解析。具体地,若需要源代码版本1的应用组件1进行构建打包时,可以查找应用组件1的源代码版本管理文件11,然后从源代码版本管理文件11中获取应用组件的构建打包配置文件并解析。The source code version management directory stores the source code of the build package configuration file and the application computer-readable instructions. For example, the application component 1 may correspond to the source code version management directory 1, the application component 2 may correspond to the source code version management directory 2, and the source code version management directory 1 may include a source code version management file 11, a source code version management file 12, and the like. . When it is necessary to build and package the application component 1, you can find the source code version management directory 1 and then obtain and parse the build package configuration file of the application component from the source code version management directory 1. Specifically, if the application component 1 of the source code version 1 is required to be built and packaged, the source component version management file 11 of the application component 1 may be found, and then the build and package configuration file of the application component is obtained from the source code version management file 11 and analyzed. .
在申请实施例中,所述标准构建执行动作可以定义有4个执行动作:依赖包安装动作、构建前动作、构建动作和构建后动作。所述依赖包安装动作可以包括依赖资源包下载命令打印命令和应用组件构建所需的依赖资源包下载命令;具体地,所述依赖资源包下载命令打印命令可以为:“echo begin install action...”,所述应用组件构建所需的依赖资源包下载命令可以为:“mvn dependency:sources-DdownloadSources=true”。所述构建前动作可以包括构建前动作打印命令和上次构建遗留冗余文件清理命令;具体地,所述构建前动作打印命令可以为:“echo begin before build action...”,所述上次构建遗留冗余文件清理命令可以为:“mvn clean”。所述构建动作可以包括构建动作打印命令和依赖资源包和源代码编译命令;具体地,所述构建动作打印命令可以为:“echo begin build action..”,所述依赖资源包和源代码编译命令可以为:“mvn package”。所述构建后动作可以包括构建后动作打印命令和依赖资源包和源代码的编译文件单元测试命令;具体地,所述构建后动作打印命令可以为:“echo after build action...”,所述依赖资源包和源代码的编译文件单元测试命令可以为:“mvn test”。In the embodiment of the application, the standard construction execution action may be defined with four execution actions: a dependent package installation action, a pre-build action, a build action, and a post-build action. The dependent package installation action may include a dependent resource package download command print command and a dependent resource package download command required for application component construction; specifically, the dependent resource package download command print command may be: "echo begin install action .. . ”, The download command of the dependent resource package required for the application component construction may be:“ mvn dependency: sources-DdownloadSources = true ”. The pre-build action may include a print command of the pre-build action and a command for cleaning the redundant files left over from the last build. Specifically, the print command of the pre-build action may be: "echo begin before build action ..." The leftover file cleaning command for the secondary build can be: "mvn clean". The build action may include a build action print command and a dependent resource package and source code compilation command. Specifically, the build action print command may be: "echo begin build action ..", the dependent resource package and source code compilation The command can be: "mvn package". The post-build action may include a post-build action print command and a compiled file unit test command that depends on a resource package and source code. Specifically, the post-build action print command may be: "echo after build action ..." The unit test command for the compiled file that relies on the resource package and source code can be: "mvn test".
204、执行所述标准构建执行动作中的依赖包安装动作,并检测是否执行完成。若执行完成,则执行步骤205,若执行失败,则执行步骤209。204. Perform the installation action of the dependent package in the standard construction execution action, and detect whether the execution is completed. If the execution is completed, step 205 is performed, and if the execution fails, step 209 is performed.
对于本发实施例,若所述依赖包安装动作包括应用组件构建所需的依赖资源包下载命令,所述步骤204具体可以包括:执行所述依赖包安装动作,以执行所述下载命令,得到所述应用组件构建所需的依赖资源包。此外,若所述依赖包安装动作包括依赖资源包下载命令打印命令和应用组件构建所需的依赖资源包下载命令,所述步骤204具体可以包括:执行所述依赖包安装动作,以先执行所述依赖资源包下载命令打印命令,输出打印输出一条信息begin install action;然后执行所述下载命令,得到所述应用组件构建所需的依赖资 源包。For the embodiment of the present invention, if the installation action of the dependent package includes the download command of the dependent resource package required for the application component construction, the step 204 may specifically include: executing the installation action of the dependent package to execute the download command to obtain The application component builds the required resource bundles. In addition, if the installation action of the dependent package includes a download command of a dependent resource package print command and a download command of a dependent resource package required for application component construction, the step 204 may specifically include: performing the installation action of the dependent package to execute all The print command of the dependent resource package download command is described, and a message “begin install install action” is printed out. Then, the download command is executed to obtain the dependent resource package required for the application component construction.
需要说明的是,执行所述依赖包安装动作可以顺序执行其定义的各个命令,具体地,执行各个命令行执行语句,任意命令行执行语句在执行完成后,对应的返回值可以为0,执行完所述依赖包安装动作中的各个命令后,可以接收到所述各个命令的返回值,即可以通过检测依赖包安装动作对应的返回值是否为0,以确定依赖包安装动作是否执行完成。若依赖包安装动作的各个命令的返回值均为0,则确定依赖包安装动作执行完成;若依赖包安装动作的各个命令的返回值存在非0,则确定依赖包安装动作执行失败,结束所述应用组件的构建打包流程。此外,若所述标准构建执行动作中不存在依赖包安装动作,则也结束所述应用组件的构建打包流程。It should be noted that, when executing the installation action of the dependent package, each command defined by it can be sequentially executed. Specifically, each command line execution statement is executed. After the execution of any command line execution statement is completed, the corresponding return value can be 0. After completing each command in the installation action of the dependent package, the return value of each command can be received, that is, it can be determined whether the execution of the installation action of the dependent package is completed by detecting whether the return value corresponding to the installation action of the dependent package is 0. If the return value of each command of the dependent package installation action is 0, it is determined that the execution of the dependent package installation action is completed; if the return value of each command of the dependent package installation action is non-zero, it is determined that the execution of the dependent package installation action has failed, and the process ends. Describes the process of building and packaging application components. In addition, if there is no dependent package installation action in the standard construction execution action, the process of building and packaging the application component is also ended.
205、执行所述标准构建执行动作中的构建前动作,并检测是否执行完成。若执行完成,则执行步骤206,若执行失败,则执行步骤209。205: Perform a pre-build action in the standard build execution action, and detect whether the execution is completed. If the execution is completed, step 206 is performed, and if the execution fails, step 209 is performed.
对于本发实施例,若所述构建前动作包括上次构建遗留冗余文件清理命令,所述步骤205具体可以包括:执行所述构建动作,以执行所述清理命令,对上次构建遗留冗余文件进行清理。此外,若所述构建前动作包括构建前动作打印命令和上次构建遗留冗余文件清理命令,所述步骤205具体可以包括:执行所述构建动作,以首先执行构建前动作打印命令,打印输出一条信息begin before build action,然后执行所述清理命令,对上次构建遗留冗余文件进行清理。For the embodiment of the present invention, if the pre-build action includes a command to clean up the redundant files left over from the last build, the step 205 may specifically include: executing the build action to execute the clean-up command to remove the redundant data from the last build. The remaining files are cleaned. In addition, if the pre-build action includes a pre-build action print command and a last redundant build file cleanup command, the step 205 may specifically include: executing the build action to first execute the pre-build action print command and print out A message begins before the build action, and then executes the cleanup command to clean up the redundant files left over from the last build.
同理地,执行所述构建前动作可以顺序执行其定义的各个命令,具体地,执行各个命令行执行语句,任意命令行执行语句在执行完成后,对应的返回值可以为0,执行完所述依赖包安装动作中的各个命令后,可以接收到所述各个命令的返回值,即可以通过检测构建前动作对应的返回值是否为0,以确定构建前动作是否执行完成。若接收构建前动作的各个命令的返回值均为0,则确定构建前动作执行完成;若接收构建前动作的各个命令的返回值存在非0,则确定构建前动作执行失败,结束所述应用组件的构建打包流程。此外,若所述标准构建执行动作中不存在构建前动作,则也结束所述应用组件的构建打包流程。Similarly, when executing the pre-build action, each command defined by it can be sequentially executed. Specifically, each command line execution statement is executed. After the execution of any command line execution statement is completed, the corresponding return value can be 0. After describing each command in the installation action of the dependent package, the return value of each command can be received, that is, it can be determined whether the pre-build action is completed by detecting whether the return value corresponding to the pre-build action is 0. If the return value of each command receiving the pre-build action is 0, it is determined that the execution of the pre-build action is completed; if the return value of each command receiving the pre-build action is non-zero, it is determined that the execution of the pre-build action has failed, and the application is terminated The process of building and packaging components. In addition, if there is no pre-build action in the standard build execution action, the build and packaging process of the application component is also ended.
206、执行所述标准构建执行动作中的构建动作,并检测是否执行完成。若执行完成,则执行步骤207,若执行失败,则执行步骤209。206. Perform a construction action in the standard construction execution action, and detect whether execution is completed. If the execution is completed, step 207 is performed, and if the execution fails, step 209 is performed.
对于本发实施例,若所述构建动作可以包括依赖资源包和源代码编译命令,所述步骤206具体可以包括:执行所述构建动作,以执行所述编译命令,对所述应用组件的依赖资源包和源代码进行编译,得到所述依赖资源包和所述源代码的编译文件。此外,若所述构建动作可以包括构建动作打印命令和依赖资源包和源代码编译命令,所述步骤206具体可以包括:执行所述构建动作,以首先执行构建动作打印命令,打印输出一条信息begin build  action...然后执行所述编译命令,对所述应用组件的依赖资源包和源代码进行编译,得到所述依赖资源包和所述源代码的编译文件。For the embodiment of the present invention, if the constructing action may include a dependency resource package and a source code compiling command, the step 206 may specifically include: executing the constructing action to execute the compiling command and dependence on the application component Compile the resource package and source code to obtain the compiled file that depends on the resource package and the source code. In addition, if the build action may include a build action print command and a dependent resource package and source code compilation command, the step 206 may specifically include: executing the build action to first execute the build action print command and print out a message begin build action ... Then execute the compilation command to compile the dependent resource package and source code of the application component to obtain a compiled file of the dependent resource package and the source code.
同理地,执行所述构建动作可以顺序执行其定义的各个命令,具体地,执行各个命令行执行语句,任意命令行执行语句在执行完成后,对应的返回值可以为0,执行完所述构建动作中的各个命令后,可以接收到所述各个命令的返回值,即可以通过检测构建动作对应的返回值是否为0,以确定构建动作是否执行完成。若接收构建动作的各个命令的返回值均为0,则确定构建动作执行完成;若接收构建动作的各个命令的返回值存在非0,则确定构建动作执行失败,结束所述应用组件的构建打包流程。此外,若所述标准构建执行动作中不存在构建动作,则也结束所述应用组件的构建打包流程。Similarly, when executing the construction action, each command defined by it can be sequentially executed. Specifically, each command line execution statement is executed. After the execution of any command line execution statement is completed, the corresponding return value can be 0. After each command in the construction action, the return value of each command can be received, that is, it can be determined whether the execution of the construction action is completed by detecting whether the return value corresponding to the construction action is 0. If the return value of each command that receives the build action is 0, it is determined that the execution of the build action is complete; if the return value of each command that receives the build action is non-zero, it is determined that the execution of the build action has failed, and the build packaging of the application component is ended Process. In addition, if there is no build action in the standard build execution action, the build packaging process of the application component is also ended.
207、执行所述标准构建执行动作中的构建后动作,并检测是否执行完成。若执行完成,则执行步骤208,若执行失败,则执行步骤209。207. Perform the post-build action in the standard build execution action, and detect whether the execution is completed. If the execution is completed, step 208 is performed, and if the execution fails, step 209 is performed.
对于本申请实施例,若所述构建后动作包括依赖资源包和源代码的编译文件单元测试命令,所述步骤207具体可以包括:执行所述构建后动作,以执行所述测试命令,对所述编译文件进行单元测试,得到单元测试后的编译文件。此外,若所述构建后动作包括构建后动作打印命令和所述测试命令,,所述步骤207具体可以包括:行所述构建后动作,以首先执行所述构建后动作打印命令,输出打印输出一条信息after build action;然后执行所述测试命令,对所述编译文件进行单元测试,得到单元测试后的编译文件。For the embodiment of the present application, if the post-build action includes a unit test command of a compiled file that depends on a resource package and source code, the step 207 may specifically include: executing the post-build action to execute the test command, Describe the compiled files for unit testing and get the compiled files after unit testing. In addition, if the post-build action includes a post-build action print command and the test command, the step 207 may specifically include: performing the post-build action to first execute the post-build action print command and output a print output A message after the build action; and then executing the test command to perform a unit test on the compiled file to obtain a compiled file after the unit test.
同理地,执行所述构建后动作可以顺序执行其定义的各个命令,具体地,执行各个命令行执行语句,任意命令行执行语句在执行完成后,对应的返回值可以为0,执行完所述构建后动作中的各个命令后,可以接收到所述各个命令的返回值,即可以通过检测构建后动作对应的返回值是否为0,以确定构建后动作是否执行完成。若构建后动作的各个命令的返回值均为0,则确定构建后动作执行完成;若接收构建后动作的各个命令的返回值存在非0,则确定构建后动作执行失败,结束所述应用组件的构建打包流程。此外,若所述标准构建执行动作中不存在构建后动作,则也结束所述应用组件的构建打包流程。Similarly, executing the post-build actions can sequentially execute the commands defined by it. Specifically, each command line execution statement is executed. After the execution of any command line execution statement is completed, the corresponding return value can be 0. After describing each command in the post-build action, the return value of each command can be received, that is, it can be determined whether the post-build action is completed by detecting whether the return value corresponding to the post-build action is 0. If the return value of each command of the post-build action is 0, it is determined that the execution of the post-build action is completed; if the return value of each command receiving the post-build action is non-zero, it is determined that the execution of the post-build action fails, and the application component is ended Build packaging process. In addition, if there is no post-build action in the standard build execution action, the build packaging process of the application component is also ended.
208、对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。208. Pack and process the files obtained after executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
对于本申请实施例,所述执行完所述标准构建执行动作得到的文件可以为单元测试后的编译文件,所述步骤208具体可以包括:将所述单元测试后的编译文件和所述源代码配置文件一起打包,得到所述应用组件的构建打包文件。For the embodiment of the present application, the file obtained after executing the standard construction execution action may be a compiled file after unit testing. The step 208 may specifically include: compiling the compiled file after the unit test and the source code. The configuration files are packaged together to obtain a construction package file of the application component.
其中,执行完所述标准构建执行动作得到的文件和所述源代码配置文件可以存储在构建目标文件夹或者存储在构建目标文件列表中,通过存储在构建目标文件夹或者构建目标 文件列表中,能够方便将所述单元测试后的编译文件和所述源代码配置文件一起打包,且避免构建打包遗漏相应的文件。所述构建打包文件一般可以为压缩文件包,具体地,所述压缩文件包可以为zip压缩文件包、tar压缩文件包,通过打包处理成压缩文件包,能够方便构建打包文件存储、传输及分发等。The files and source code configuration files obtained after performing the standard build execution actions may be stored in a build target folder or a list of build target files, and by storing in the build target folder or the list of build target files, It is convenient to package the compiled file after the unit test and the source code configuration file, and to avoid missing the corresponding file during construction and packaging. The construction and packaging file may generally be a compressed file package. Specifically, the compressed file package may be a zip compressed file package or a tar compressed file package. By processing into a compressed file package, it is convenient to construct a packaged file for storage, transmission, and distribution. Wait.
209、结束所述应用组件的构建打包流程。209. End the construction and packaging process of the application component.
本申请实施例提供的另一种应用组件构建打包方法,与目前通过手动方式构建打包应用组件相比,本申请实施例能够接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;能够根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件,与此同时,能够执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件,从而能够实现自动完成应用组件构建打包,以及实现应用组件构建打包流程的标准化,加快构建打包的速度,控制构建打包节奏,降低构建打包的复杂度,减少手工操作的错误和风险,进而能够提高应用组件构建打包的效率和精确度。Compared with the current method of manually building a packaged application component, another embodiment of the present invention provides a method for building and packaging an application component. The embodiment of the present application can receive an application component construction and packaging instruction. The construction and packaging instruction includes a packaged application component to be constructed. Can obtain and parse the construction package configuration file of the application component according to the application component identification, and obtain the standard construction execution action and source code configuration file of the application component, and at the same time, can execute the standard Dependent package installation actions, pre-build actions, build actions, and post-build actions in the build execution actions; package processing of the files obtained by executing the standard build execution actions and the source code configuration file to obtain the application component's Build a packaging file, which can automatically complete the application component building and packaging, and standardize the application component building and packaging process, accelerate the speed of building and packaging, control the pace of building and packaging, reduce the complexity of building and packaging, and reduce errors and risks of manual operations. To be able to Construction assembly the application of high efficiency and accuracy packaged.
进一步地,作为图1的具体实现,本申请实施例提供了一种应用组件构建打包装置,如图3所示,所述装置包括:接收单元31、获取解析单元32、执行单元33和打包单元34。Further, as a specific implementation of FIG. 1, an embodiment of the present application provides an application component construction and packaging device. As shown in FIG. 3, the device includes a receiving unit 31, an obtaining and parsing unit 32, an execution unit 33, and a packaging unit. 34.
所述接收单元31,可以用于接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识。所述接收单元31是本装置中接收应用组件构建打包指令的主要功能模块。The receiving unit 31 may be configured to receive an application component construction packaging instruction, where the construction packaging instruction includes an application component identifier of a packaging application component to be constructed. The receiving unit 31 is a main functional module for receiving application component construction and packaging instructions in the device.
所述获取解析单元32,可以用于根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件。所述获取解析单元32是本装置中根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件的主要功能模块,也是核心模块。The acquisition and parsing unit 32 may be configured to acquire and parse a construction package configuration file of the application component according to the application component identifier, to obtain a standard construction execution action and a source code configuration file of the application component. The acquisition and parsing unit 32 is a main functional module in the device that obtains and parses the construction package configuration file of the application component according to the application component identifier, and obtains the standard construction execution action and source code configuration file of the application component. Core modules.
所述执行单元33,可以用于执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;所述执行单元33是本装置中执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作的主要功能模块。The execution unit 33 may be used to execute a dependent package installation action, a pre-build action, a build action, and a post-build action in the standard build execution action; the execution unit 33 is a device that executes the standard build execution action The main functional modules of the dependency package installation action, pre-build action, build action, and post-build action in.
所述打包单元34,可以用于对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。所述打包单元34是本装置中执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件的主要功能模块。The packaging unit 34 may be configured to perform packaging processing on the file and the source code configuration file obtained after executing the standard construction execution action to obtain a construction packaging file of the application component. The packaging unit 34 is a main function module for packaging and processing the files obtained by executing the standard construction execution action and the source code configuration file in this device to obtain the application component's construction and packaging file.
在具体应用场景中,所述执行单元33,具体用于执行所述依赖包安装动作;若所述依赖包安装动作执行失败,则结束所述应用组件的构建打包流程;若所述依赖包安装动作执行完成,则执行所述构建前动作;若所述构建前动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建前动作执行完成,则执行所述构建动作;若所述构建动作执行失败,则结束所述应用组件的构建打包流程;In a specific application scenario, the execution unit 33 is specifically configured to execute the installation action of the dependent package; if the execution of the installation action of the dependent package fails, the process of building and packaging the application component is ended; if the installation of the dependent package is completed If the execution of the action is completed, the pre-build action is executed; if the execution of the pre-build action fails, the build packaging process of the application component is ended; if the execution of the pre-build action is completed, the build action is executed; if If the execution of the construction action fails, the construction and packaging process of the application component ends;
若执行所述构建动作执行完成,则执行所述构建后动作;若所述构建后动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建后动作执行完成,则确定完成所述应用组件的构建打包流程。If the execution of the execution of the build action is completed, the post-build action is performed; if the execution of the post-build action fails, the build packaging process of the application component is ended; if the execution of the post-build action is completed, the completion is determined The process of building and packaging the application component.
对于本申请实施例,为了所述标准构建执行动作中的动作是否执行失败,所述装置还包括:检测单元35和确定单元36,如图4所示。For the embodiment of the present application, in order to determine whether an action in the standard construction execution action fails to be performed, the device further includes a detection unit 35 and a determination unit 36, as shown in FIG. 4.
所述检测单元35,可以用于检测所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值是否为0。所述检测单元35是本装置中检测所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值是否为0的主要功能模块。The detecting unit 35 may be configured to detect whether an execution return value corresponding to each of the dependent package installation action, the pre-build action, the build action, and the post-build action is 0. The detection unit 35 is a main functional module in this device that detects whether an execution return value corresponding to the dependent package installation action, the pre-build action, the build action, and the post-build action is 0.
所述确定单元36,可以用于若所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值为0,则确定执行完所述依赖包安装动作、所述构建前动作,所述构建动作,所述构建后动作;若为所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值中存在为非0的执行返回值,则确定对应执行返回值为非0的执行动作执行失败。The determining unit 36 may be configured to determine that the dependent package is executed after the dependent package installation action, the pre-build action, the build action, and the post-build action respectively have an execution return value of 0. The installation action, the pre-build action, the build action, and the post-build action; if it is the dependent package installation action, the pre-build action, the build action, and the post-build action, the corresponding execution returns respectively. If there is a non-zero execution return value in the value, it is determined that the execution action corresponding to the non-zero execution return value is not executed.
此外,所述执行单元33,具体可以用于执行所述依赖包安装动作,以执行所述依赖包安装动作包括的应用组件构建所需的依赖资源包下载命令,得到所述应用组件构建所需的依赖资源包;执行所述构建前动作,以执行所述构建前动作包括的上次构建遗留冗余文件清理命令;执行所述构建动作,以执行所述构建后动作包括的依赖资源包和源代码编译命令,得到所述依赖资源包和所述应用组件的源代码的编译文件;执行所述构建后动作,以执行所述构建后动作包括的依赖资源包和源代码的编译文件单元测试命令,得到单元测试后的编译文件。In addition, the execution unit 33 may be specifically configured to execute the installation action of the dependent package to execute the download command of the dependent resource package required for the application component construction included in the installation action of the dependency package to obtain the application component construction required. Execute the pre-build action to execute the last build residual redundant file cleanup command included in the pre-build action; execute the build action to execute the dependent resource pack and Source code compilation command to obtain the compiled file of the source code of the dependent resource package and the application component; execute the post-build action to execute a unit test of the compiled file of the dependent resource package and source code included in the post-build action Command to get the compiled file after the unit test.
所述打包单元34,具体可以用于将所述单元测试后的编译文件和所述源代码配置文件一起打包,得到所述应用组件的构建打包文件。The packaging unit 34 may be specifically configured to package the compiled file after the unit test and the source code configuration file together to obtain a construction and packaging file of the application component.
对于本申请实施例,为了能够将应用组件的源代码和构建打包配置文件一体化,简化应用组件的源代码和构建打包配置文件管理,避免源代码版本与构建打包配置文件需要对应的问题,所述获取解析单元32,具体可以包括:查找模块321、获取模块322和解析模 块323。For the embodiment of the present application, in order to be able to integrate the source code of the application component and the build package configuration file, simplify the management of the source code of the application component and the build package configuration file, and avoid the problem that the source code version and the need to build the package configuration file correspond, The acquisition and analysis unit 32 may specifically include a search module 321, an acquisition module 322, and an analysis module 323.
所述查找模块321,可以用于根据所述应用组件标识查找所述应用组件的源代码版本管理目录,不同应用组件对应不同的源代码版本管理目录。The search module 321 may be configured to search a source code version management directory of the application component according to the application component identifier, and different application components correspond to different source code version management directories.
所述获取模块322,可以用于从所述源代码版本管理目录中获取所述应用组件的构建打包配置文件,所述源代码版本管理目录中保存有所述构建打包配置文件和所述应用计算机可读指令的源代码。The obtaining module 322 may be configured to obtain a build package configuration file of the application component from the source code version management directory, where the build package configuration file and the application computer are stored in the source code version management directory. Source code for readable instructions.
所述解析模块323,可以用于对所述构建打包配置文件进行解析。The parsing module 323 may be configured to parse the constructed packaging configuration file.
对于本申请实施例,所述装置还包括:添加单元37。For the embodiment of the present application, the apparatus further includes: an adding unit 37.
所述添加单元37,可以用于获取不同应用组件分别对应的不同构建打包配置文件;将所述不同构建打包配置文件分别添加到所述不同应用组件各自对应的源代码版本管理目录中。The adding unit 37 may be configured to obtain different construction packaging configuration files corresponding to different application components; and add the different construction packaging configuration files to respective source code version management directories corresponding to the different application components.
需要说明的是,本申请实施例提供的一种应用组件构建打包装置所涉及各功能模块的其他相应描述,可以参考图1所示方法的对应描述,在此不再赘述。It should be noted that, for other corresponding descriptions of the functional modules involved in the application component construction and packaging device provided by the embodiment of the present application, reference may be made to the corresponding description of the method shown in FIG.
基于上述如图1所示方法,相应的,本申请实施例还提供了一种计算机非易失性可读存储介质,其上存储有计算机可读指令,该计算机可读指令被处理器执行时实现以下步骤:接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。Based on the method shown in FIG. 1, correspondingly, an embodiment of the present application further provides a computer non-volatile readable storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are executed by a processor, The following steps are implemented: receiving an application component construction packaging instruction, the construction packaging instruction including an application component identification of a packaging application component to be constructed; obtaining and parsing the construction packaging configuration file of the application component according to the application component identification to obtain the application The component's standard build execution actions and source code configuration files; execute the dependent package installation actions, pre-build actions, build actions, and post-build actions in the standard build execution actions; the files obtained by executing the standard build execution actions and The source code configuration file is packaged to obtain a construction package file of the application component.
基于上述如图1所示方法和如图3所示应用组件构建打包装置的实施例,本申请实施例还提供了一种计算机设备的实体结构图,如图5所示,该计算机设备包括:处理器41、存储器42、及存储在存储器42上并可在处理器上运行的计算机可读指令,其中存储器42和处理器41均设置在总线43上所述处理器41执行所述计算机可读指令时实现以下步骤:接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。该计算机设备还包括:总线43,被配置为耦接处理器41及存储器42。Based on the foregoing embodiment of the method shown in FIG. 1 and the application component shown in FIG. 3 to construct a packaging device, an embodiment of the present application further provides a physical structure diagram of a computer device. As shown in FIG. 5, the computer device includes: The processor 41, the memory 42, and computer-readable instructions stored on the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are all disposed on the bus 43, and the processor 41 executes the computer-readable In the instruction, the following steps are implemented: receiving an application component construction packaging instruction, the construction packaging instruction including an application component identifier of a packaging application component to be constructed; obtaining and parsing the application component's construction packaging configuration file according to the application component identification, and obtaining The standard build execution action and source code configuration file of the application component are described; the dependent package installation action, pre-build action, build action, and post-build action in the standard build execution action are performed; Files and the source code configuration file for packaging processing to obtain the construction and packaging of the application component Pieces. The computer device further includes a bus 43 configured to be coupled to the processor 41 and the memory 42.
通过本申请的技术方案,能够接收应用组件构建打包指令,所述构建打包指令包括待 构建打包应用组件的应用组件标识;能够根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件,与此同时,能够执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件,从而能够实现自动完成应用组件构建打包,以及实现应用组件构建打包流程的标准化,加快构建打包的速度,控制构建打包节奏,降低构建打包的复杂度,减少手工操作的错误和风险,进而能够提高应用组件构建打包的效率和精确度。此外,通过从所述源代码版本管理目录中获取所述应用组件的构建打包配置文件,能够将应用组件的源代码和构建打包配置文件一体化,简化应用组件的源代码和构建打包配置文件管理,避免源代码版本与构建打包配置文件需要对应的问题。Through the technical solution of this application, an application component construction package instruction can be received, where the construction package instruction includes an application component identifier of a packaged application component to be constructed, and the application component construction package configuration file can be obtained and parsed according to the application component identifier. To obtain the standard construction execution action and source code configuration file of the application component, and at the same time, can execute the dependent package installation action, pre-build action, build action, and post-build action in the standard build execution action; The file obtained by the standard construction execution action and the source code configuration file are packaged to obtain a construction package file of the application component, so that the application component construction package can be automatically completed, and the application component construction and packaging process can be standardized. Accelerate the speed of building and packaging, control the pace of building and packaging, reduce the complexity of building and packaging, reduce manual operation errors and risks, and then improve the efficiency and accuracy of building and packaging application components. In addition, by obtaining the build package configuration file of the application component from the source code version management directory, the source code of the application component and the build package configuration file can be integrated to simplify the management of the source code and build package configuration file of the application component , To avoid the corresponding problems of the source code version and the need to build the package configuration file.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的计算机可读指令代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application may be implemented by a general-purpose computing device, and they may be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Above, optionally, they may be implemented with computer-readable instruction code executable by a computing device, so that they may be stored in a storage device and executed by the computing device, and in some cases, may be different from this. The steps shown or described are performed in sequence, either by making them into individual integrated circuit modules, or by making multiple modules or steps into a single integrated circuit module. As such, this application is not limited to any particular combination of hardware and software.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The above description is only a preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, or improvement made within the spirit and principle of this application shall be included in the protection scope of this application.

Claims (20)

  1. 一种应用组件构建打包方法,其特征在于,包括:An application component construction and packaging method is characterized in that it includes:
    接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;Receiving an application component construction packaging instruction, where the construction packaging instruction includes an application component identification of a packaging application component to be constructed;
    根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;Obtaining and analyzing the construction package configuration file of the application component according to the application component identifier, and obtaining a standard construction execution action and a source code configuration file of the application component;
    执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;Execute the dependent package installation action, pre-build action, build action, and post-build action in the standard build execution action;
    对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。Package the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component.
  2. 根据权利要求1所述的方法,其特征在于,所述执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作,包括:The method according to claim 1, characterized in that said performing a package installation action, a pre-build action, a build action, and a post-build action in said standard building execution action comprises:
    执行所述依赖包安装动作;Perform the dependent package installation action;
    若所述依赖包安装动作执行失败,则结束所述应用组件的构建打包流程;If the installation action of the dependent package fails, the process of building and packaging the application component ends;
    若所述依赖包安装动作执行完成,则执行所述构建前动作;If the installation action of the dependent package is completed, execute the pre-build action;
    若所述构建前动作执行失败,则结束所述应用组件的构建打包流程;If the execution of the pre-build action fails, ending the build and packaging process of the application component;
    若执行所述构建前动作执行完成,则执行所述构建动作;If the execution of the pre-build action is completed, execute the build action;
    若所述构建动作执行失败,则结束所述应用组件的构建打包流程;If the execution of the construction action fails, ending the construction and packaging process of the application component;
    若执行所述构建动作执行完成,则执行所述构建后动作;If the execution of the execution of the construction action is completed, execute the post-build action;
    若所述构建后动作执行失败,则结束所述应用组件的构建打包流程;If the execution of the post-build action fails, ending the process of building and packaging the application component;
    若执行所述构建后动作执行完成,则确定完成所述应用组件的构建打包流程。If the execution of the actions after the execution of the construction is completed, it is determined that the construction and packaging process of the application component is completed.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:
    检测所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值是否为0;Detecting whether the execution return value corresponding to each of the dependent package installation action, the pre-build action, the build action, and the post-build action is 0;
    若为0,则确定执行完所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作;If it is 0, it is determined that the dependent package installation action, the pre-build action, the build action, and the post-build action are completed;
    若存在为非0的执行返回值,则确定对应执行返回值为非0的执行动作执行失败。If there is a non-zero execution return value, it is determined that the execution action corresponding to the non-zero execution return value is not executed.
  4. 根据权利要求1所述的方法,其特征在于,所述执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作,包括:The method according to claim 1, characterized in that said performing a package installation action, a pre-build action, a build action, and a post-build action in said standard building execution action comprises:
    执行所述依赖包安装动作,以执行所述依赖包安装动作包括的应用组件构建所需的依 赖资源包下载命令,得到所述应用组件构建所需的依赖资源包;Executing the dependent package installation action to execute a dependent resource package download command required for application component construction included in the dependent package installation action to obtain the dependent resource package required for the application component construction;
    执行所述构建前动作,以执行所述构建前动作包括的上次构建遗留冗余文件清理命令;Executing the pre-build action to execute a last build legacy redundant file cleaning command included in the pre-build action;
    执行所述构建动作,以执行所述构建动作包括的依赖资源包和源代码编译命令,得到所述依赖资源包和所述应用组件的源代码的编译文件;Executing the constructing action to execute the dependent resource package and source code compilation command included in the constructing action to obtain a compiled file of the dependent resource package and source code of the application component;
    执行所述构建后动作,以执行所述构建后动作包括的依赖资源包和源代码的编译文件单元测试命令,得到单元测试后的编译文件。The post-build action is executed to execute a unit test command for a compiled file that depends on the resource package and source code included in the post-build action to obtain a compiled file after the unit test.
  5. 根据权利要求4所述的方法,其特征在于,所述对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件,包括:The method according to claim 4, wherein the step of packaging the file obtained by performing the standard construction execution action and the source code configuration file to obtain a construction package file of the application component comprises:
    将所述单元测试后的编译文件和所述源代码配置文件一起打包,得到所述应用组件的构建打包文件。The compiled file after the unit test is packaged with the source code configuration file to obtain a construction package file of the application component.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述应用组件标识获取并解析所述应用组的构建打包配置文件,包括:The method according to claim 1, wherein the acquiring and parsing the construction package configuration file of the application group according to the application component identifier comprises:
    根据所述应用组件标识查找所述应用组件的源代码版本管理目录,不同应用组件对应不同的源代码版本管理目录;Find the source code version management directory of the application component according to the application component identifier, and different application components correspond to different source code version management directories;
    从所述源代码版本管理目录中获取所述应用组件的构建打包配置文件并解析,所述源代码版本管理目录中保存有所述构建打包配置文件和所述应用计算机可读指令的源代码。Obtain and parse the build package configuration file of the application component from the source code version management directory, and store the build package configuration file and the source code of the application computer-readable instructions in the source code version management directory.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, further comprising:
    获取不同应用组件分别对应的不同构建打包配置文件;Obtain different build packaging configuration files corresponding to different application components;
    将所述不同构建打包配置文件分别添加到所述不同应用组件各自对应的源代码版本管理目录中。Add the different build packaging configuration files to the source code version management directories corresponding to the different application components, respectively.
  8. 一种应用组件构建打包装置,其特征在于,包括:An application component construction packaging device is characterized in that it includes:
    接收单元,用于接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;A receiving unit, configured to receive an application component construction packaging instruction, where the construction packaging instruction includes an application component identifier of a packaging application component to be constructed;
    获取解析单元,用于根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;An obtaining and parsing unit, configured to obtain and parse a construction package configuration file of the application component according to the application component identifier, and obtain a standard construction execution action and a source code configuration file of the application component;
    执行单元,用于执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;An execution unit, configured to execute a dependent package installation action, a pre-build action, a build action, and a post-build action in the standard build execution action;
    打包单元,用于对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。The packaging unit is configured to perform packaging processing on the file obtained by executing the standard construction execution action and the source code configuration file to obtain a construction packaging file of the application component.
  9. 根据权利要求8所述的装置,其特征在于,所述执行单元,具体用于执行所述依赖包安装动作;若所述依赖包安装动作执行失败,则结束所述应用组件的构建打包流程;若所述依赖包安装动作执行完成,则执行所述构建前动作;若所述构建前动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建前动作执行完成,则执行所述构建动作;若所述构建动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建动作执行完成,则执行所述构建后动作;若所述构建后动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建后动作执行完成,则确定完成所述应用组件的构建打包流程。The apparatus according to claim 8, wherein the execution unit is specifically configured to execute the installation action of the dependent package; if the execution of the installation action of the dependent package fails, ending the process of building and packaging the application component; If the execution of the dependent package installation action is completed, the pre-build action is executed; if the execution of the pre-build action fails, the build and packaging process of the application component is ended; if the execution of the pre-build action is completed, execute The construction action; if the execution of the construction action fails, ending the construction packaging process of the application component; if the execution of the execution of the construction action is completed, executing the post-build action; if the execution of the post-build action fails, Then, the construction and packaging process of the application component is ended; if the execution of the action after the execution is completed is completed, it is determined that the construction and packaging process of the application component is completed.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:检测单元和确定单元;The apparatus according to claim 9, further comprising: a detecting unit and a determining unit;
    所述检测单元,用于检测所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值是否为0;The detection unit is configured to detect whether an execution return value corresponding to the dependent package installation action, the pre-build action, the build action, and the post-build action is 0;
    所述确定单元,用于若所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值为0,则确定执行完所述依赖包安装动作、所述构建前动作,所述构建动作,所述构建后动作;若所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值中存在为非0的执行返回值,则确定对应执行返回值为非0的执行动作执行失败。The determining unit is configured to determine that if the execution return value of the dependent package installation action, the pre-build action, the build action, and the post-build action is 0 respectively, the execution of the dependent package installation action is completed. And the pre-build action, the build action, and the post-build action; if the dependent package installation action, the pre-build action, the build action, and the post-build action respectively exist in an execution return value corresponding to If the execution return value is non-zero, it is determined that the execution action corresponding to a non-zero execution return value is not executed.
  11. 根据权利要求8所述的装置,其特征在于,所述执行单元,具体用于执行所述依赖包安装动作,以执行所述依赖包安装动作包括的应用组件构建所需的依赖资源包下载命令,得到所述应用组件构建所需的依赖资源包;执行所述构建前动作,以执行所述构建前动作包括的上次构建遗留冗余文件清理命令;执行所述构建动作,以执行所述构建后动作包括的依赖资源包和源代码编译命令,得到所述依赖资源包和所述应用组件的源代码的编译文件;执行所述构建后动作,以执行所述构建后动作包括的依赖资源包和源代码的编译文件单元测试命令,得到单元测试后的编译文件。The device according to claim 8, wherein the execution unit is specifically configured to execute the installation action of the dependent package to execute a download command of a dependent resource package required for building an application component included in the installation action of the dependent package. To obtain a dependent resource package required for the construction of the application component; execute the pre-build action to execute a last build residual redundant file cleanup command included in the pre-build action; execute the build action to execute the Compile commands for the dependent resource package and source code included in the post-build action to obtain a compiled file of the source code of the dependent resource package and the application component; execute the post-build action to execute the dependent resources included in the post-build action Package and source code compile file unit test command to get the compiled file after unit test.
  12. 根据权利要求11所述的装置,其特征在于,所述打包单元,具体用于将所述单元测试后的编译文件和所述源代码配置文件一起打包,得到所述应用组件的构建打包文件。The device according to claim 11, wherein the packaging unit is specifically configured to package the compiled file after the unit test and the source code configuration file to obtain a construction and packaging file of the application component.
  13. 根据权利要求8所述的装置,其特征在于,所述获取解析单元包括:The apparatus according to claim 8, wherein the acquisition and analysis unit comprises:
    查找模块,用于根据所述应用组件标识查找所述应用组件的源代码版本管理目录,不同应用组件对应不同的源代码版本管理目录;A search module, configured to search a source code version management directory of the application component according to the application component identifier, and different application components correspond to different source code version management directories;
    获取模块,用于从所述源代码版本管理目录中获取所述应用组件的构建打包配置文 件,所述源代码版本管理目录中保存有所述构建打包配置文件和所述应用计算机可读指令的源代码;An obtaining module, configured to obtain a build package configuration file of the application component from the source code version management directory, where the build package configuration file and the application computer-readable instructions are stored in the source code version management directory; Source code
    解析模块,用于对所述构建打包配置文件进行解析。A parsing module, configured to parse the constructed packaging configuration file.
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:The apparatus according to claim 13, further comprising:
    添加单元,用于获取不同应用组件分别对应的不同构建打包配置文件;将所述不同构建打包配置文件分别添加到所述不同应用组件各自对应的源代码版本管理目录中。The adding unit is configured to obtain different construction packaging configuration files corresponding to different application components; and add the different construction packaging configuration files to respective source code version management directories corresponding to the different application components.
  15. 一种计算机非易失性可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现应用组件构建打包方法,包括:A computer non-volatile readable storage medium having computer readable instructions stored thereon, characterized in that when the computer readable instructions are executed by a processor, a method for building and packaging application components is implemented, including:
    接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。Receiving an application component construction packaging instruction, the construction packaging instruction including an application component identification of a packaging application component to be constructed; obtaining and parsing a construction packaging configuration file of the application component according to the application component identification to obtain a standard construction of the application component Execute actions and source code configuration files; execute dependent package installation actions, pre-build actions, build actions, and post-build actions in the standard build execution actions; files obtained by executing the standard build execution actions and the source code The configuration file is subjected to packaging processing to obtain a construction packaging file of the application component.
  16. 根据权利要求15所述的计算机非易失性可读存储介质,其特征在于,所述计算机可读指令被处理器执行时实现所述执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作,包括:The computer non-volatile readable storage medium according to claim 15, characterized in that, when the computer-readable instructions are executed by a processor, the dependent package installation action, construction in the execution of the standard construction execution action is implemented Pre-action, build action, and post-build action, including:
    执行所述依赖包安装动作;若所述依赖包安装动作执行失败,则结束所述应用组件的构建打包流程;若所述依赖包安装动作执行完成,则执行所述构建前动作;若所述构建前动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建前动作执行完成,则执行所述构建动作;若所述构建动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建动作执行完成,则执行所述构建后动作;若所述构建后动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建后动作执行完成,则确定完成所述应用组件的构建打包流程。Execute the installation action of the dependent package; if the installation action of the dependent package fails, the process of building and packaging the application component ends; if the execution of the installation action of the dependent package is completed, execute the pre-build action; if the If the execution of the pre-build action fails, the construction and packaging process of the application component is ended; if the execution of the pre-build action is completed, the build action is executed; if the execution of the build action fails, the construction of the application component is ended The packaging process; if the execution of the execution of the build action is completed, the post-build action is performed; if the execution of the post-build action fails, the build and packaging process of the application component is ended; if the execution of the post-build action is completed, Then it is determined to complete the construction and packaging process of the application component.
  17. 根据权利要求16所述的计算机非易失性可读存储介质,其特征在于,所述计算机可读指令被处理器执行时实现所述方法还包括:The computer non-volatile readable storage medium according to claim 16, wherein when the computer-readable instructions are executed by a processor, implementing the method further comprises:
    检测所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值是否为0;若为0,则确定执行完所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作;若存在为非0的执行返回值,则确定对应执行返回值为非0的执行动作执行失败。Detecting whether the execution return value corresponding to the dependent package installation action, the pre-build action, the build action, and the post-build action is 0; if it is 0, it is determined that the dependency package installation action, The pre-build action, the build action, and the post-build action are described; if there is a non-zero execution return value, it is determined that the execution action corresponding to the non-zero execution return value has failed to execute.
  18. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现应用组件构建 打包方法,包括:A computer device includes a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, characterized in that, when the processor executes the computer-readable instructions, an application component construction and packaging method is implemented. ,include:
    接收应用组件构建打包指令,所述构建打包指令包括待构建打包应用组件的应用组件标识;根据所述应用组件标识获取并解析所述应用组件的构建打包配置文件,得到所述应用组件的标准构建执行动作和源代码配置文件;执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作;对执行完所述标准构建执行动作得到的文件和所述源代码配置文件进行打包处理,得到所述应用组件的构建打包文件。Receiving an application component construction packaging instruction, the construction packaging instruction including an application component identification of a packaging application component to be constructed; obtaining and parsing a construction packaging configuration file of the application component according to the application component identification to obtain a standard construction of the application component Execute actions and source code configuration files; execute dependent package installation actions, pre-build actions, build actions, and post-build actions in the standard build execution actions; files obtained by executing the standard build execution actions and the source code The configuration file is subjected to packaging processing to obtain a construction packaging file of the application component.
  19. 根据权利要求18所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时实现所述执行所述标准构建执行动作中的依赖包安装动作、构建前动作、构建动作和构建后动作,包括:The computer device according to claim 18, wherein when the processor executes the computer-readable instructions, the dependent package installation action, pre-build action, build action, and Post-build actions, including:
    执行所述依赖包安装动作;若所述依赖包安装动作执行失败,则结束所述应用组件的构建打包流程;若所述依赖包安装动作执行完成,则执行所述构建前动作;若所述构建前动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建前动作执行完成,则执行所述构建动作;若所述构建动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建动作执行完成,则执行所述构建后动作;若所述构建后动作执行失败,则结束所述应用组件的构建打包流程;若执行所述构建后动作执行完成,则确定完成所述应用组件的构建打包流程。Execute the installation action of the dependent package; if the installation action of the dependent package fails, the process of building and packaging the application component ends; if the execution of the installation action of the dependent package is completed, execute the pre-build action; if the If the execution of the pre-build action fails, the construction and packaging process of the application component is ended; if the execution of the pre-build action is completed, the build action is executed; if the execution of the build action fails, the construction of the application component is ended The packaging process; if the execution of the execution of the build action is completed, the post-build action is performed; if the execution of the post-build action fails, the build and packaging process of the application component is ended; if the execution of the post-build action is completed, Then it is determined to complete the construction and packaging process of the application component.
  20. 根据权利要求19所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时实现所述方法还包括:The computer device according to claim 19, wherein implementing the method when the processor executes the computer-readable instructions further comprises:
    检测所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作分别对应的执行返回值是否为0;若为0,则确定执行完所述依赖包安装动作、所述构建前动作、所述构建动作和所述构建后动作;若存在为非0的执行返回值,则确定对应执行返回值为非0的执行动作执行失败。Detecting whether the execution return value corresponding to the dependent package installation action, the pre-build action, the build action, and the post-build action is 0; if it is 0, it is determined that the dependency package installation action, The pre-build action, the build action, and the post-build action are described; if there is a non-zero execution return value, it is determined that the execution action corresponding to the non-zero execution return value has failed to execute.
PCT/CN2018/111666 2018-06-29 2018-10-24 Application component construction packaging method and device, and computer storage medium WO2020000810A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810697491.8 2018-06-29
CN201810697491.8A CN109144563A (en) 2018-06-29 2018-06-29 Application component constructs packaging method, device and computer storage medium

Publications (1)

Publication Number Publication Date
WO2020000810A1 true WO2020000810A1 (en) 2020-01-02

Family

ID=64802454

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/111666 WO2020000810A1 (en) 2018-06-29 2018-10-24 Application component construction packaging method and device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN109144563A (en)
WO (1) WO2020000810A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857396B (en) * 2019-01-11 2023-11-17 平安科技(深圳)有限公司 Component construction method and device, storage medium and electronic equipment
CN110764778B (en) * 2019-10-21 2024-02-06 深圳市珍爱捷云信息技术有限公司 Pre-compiling method, device, equipment and storage medium in application construction

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006111000A1 (en) * 2005-04-18 2006-10-26 Research In Motion Limited System and method of testing wireless component applications
CN103838572A (en) * 2013-12-20 2014-06-04 北京掌阔技术有限公司 System and method for packing Android SDK
CN104407856A (en) * 2014-11-10 2015-03-11 北京国双科技有限公司 SDK (Software Development Kit) file packaging method and SDK file packaging device
CN106020725A (en) * 2016-05-20 2016-10-12 努比亚技术有限公司 Application file processing apparatus and method
CN106293687A (en) * 2015-06-25 2017-01-04 腾讯科技(深圳)有限公司 The control method of a kind of flow process of packing, and device
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404381A (en) * 2011-09-02 2012-04-04 西安交通大学 Software deployment system and deployment method based on workflow in cloud computing environment
CN104615466B (en) * 2015-02-05 2017-08-25 广州亦云信息技术有限公司 A kind of cloud platform dispositions method and system
CN104731692B (en) * 2015-03-12 2018-08-31 用友网络科技股份有限公司 Monitor the method and device of continuous integrating state
US10447812B2 (en) * 2015-06-05 2019-10-15 Apple Inc. On demand resources
CN107315586A (en) * 2017-06-20 2017-11-03 网易(杭州)网络有限公司 Using the methods, devices and systems of packing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006111000A1 (en) * 2005-04-18 2006-10-26 Research In Motion Limited System and method of testing wireless component applications
CN103838572A (en) * 2013-12-20 2014-06-04 北京掌阔技术有限公司 System and method for packing Android SDK
CN104407856A (en) * 2014-11-10 2015-03-11 北京国双科技有限公司 SDK (Software Development Kit) file packaging method and SDK file packaging device
CN106293687A (en) * 2015-06-25 2017-01-04 腾讯科技(深圳)有限公司 The control method of a kind of flow process of packing, and device
CN106020725A (en) * 2016-05-20 2016-10-12 努比亚技术有限公司 Application file processing apparatus and method
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management

Also Published As

Publication number Publication date
CN109144563A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
US11281570B2 (en) Software testing method, system, apparatus, device medium, and computer program product
US10067863B1 (en) Feature targeting of test automation lab machines
CN109086051B (en) Application component deployment method and device and computer storage medium
US20070277163A1 (en) Method and tool for automatic verification of software protocols
US7689973B2 (en) Language for development of test harness files
CN107241315B (en) Access method and device of bank gateway interface and computer readable storage medium
CN112394942B (en) Distributed software development compiling method and software development platform based on cloud computing
US20180322037A1 (en) Impersonation in test automation
US20080209405A1 (en) Distributed debugging for a visual programming language
US10866803B2 (en) Generating interaction libraries
WO2020000810A1 (en) Application component construction packaging method and device, and computer storage medium
US10459698B2 (en) Framework for generating adapters in an integrated development environment
US20200133823A1 (en) Identifying known defects from graph representations of error messages
US20190073292A1 (en) State machine software tester
CN110659022B (en) Method for automatically calling Python script based on Java
CN115344268A (en) Multi-platform embedded development environment compiling method and device
CN106250123B (en) A kind of system test mode and operational mode compatibility method
CN110674024A (en) Electronic equipment integration test system and method thereof
CN112328503A (en) Task acceptance method for software development working platform
Burgey Continuous Integration of Performance Models for Lua-Based Sensor Applications
CN110765020B (en) Test case generation method based on domain knowledge
Skazhenik et al. Debugger for declarative DSL for telecommunication
RAS Klever Documentation
US10073768B1 (en) Smart migration/remediation engine
Alghamdi Queued and Pooled Semantics for State Machines in the Umple Model-Oriented Programming Language

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18924241

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18924241

Country of ref document: EP

Kind code of ref document: A1