Application publishing method, device, computer equipment and storage medium

By automatically obtaining and packaging application packages and publishing them to the target platform based on target data configuration, the complex and error-prone existing application publishing methods are solved, and release efficiency and reliability are improved.

CN114840246BActive Publication Date: 2025-06-06SHENZHEN BINCENT TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210375568.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-11
Publication Date
2025-06-06
Estimated Expiration
2042-04-11

AI Technical Summary

Technical Problem

Existing application publishing methods are complex and error-prone, resulting in low release efficiency and poor reliability.

Method used

By obtaining the environment configuration parameters in the application publishing request, the application package is automatically obtained, data assembled to obtain the target data configuration, and publishing the application package to the target platform based on this configuration.

Benefits of technology

Improves the efficiency and reliability of application publishing and avoids manual upload errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840246B_ABST
    Figure CN114840246B_ABST
Patent Text Reader

Abstract

The present invention discloses an application publishing method, device, computer equipment and storage medium, including: obtaining an application publishing request, the application publishing request includes environment configuration parameters; obtaining an application package based on the environment configuration parameters; assembling data of the application package to obtain target data configuration; and publishing the application package to a target platform based on the target data configuration. The technical solution can improve the efficiency and reliability of application package publishing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an application publishing method, device, computer equipment and storage medium. Background Art

[0002] With the increase in demand for applications and the development of computer technology, people's requirements for specific settings of applications have increased, and the improvement of various application functions has been continuously innovated.

[0003] Existing application releases are packaged by relevant developers through IDE or packaging commands, and then the packaged application package is manually uploaded to the designated application server, and then the old version of the application package is replaced, and finally the application package is started. Through a series of operations, the release of the application package is finally completed.

[0004] However, the above-mentioned application publishing method involves a relatively complicated process, and during the operation, due to the operator's negligence, the packaged application package may be uploaded to the wrong application server, resulting in application publishing failure and affecting application publishing efficiency. Summary of the invention

[0005] The embodiments of the present invention provide an application publishing method, an apparatus, a computer device and a storage medium to solve the problem of low efficiency in application publishing.

[0006] A method for publishing an application, comprising:

[0007] Obtaining an application publishing request, wherein the application publishing request includes environment configuration parameters;

[0008] Based on the environment configuration parameters, obtaining an application package;

[0009] Assembling data of the application package to obtain target data configuration;

[0010] Based on the target data configuration, the application package is published to a target platform.

[0011] Further, obtaining the application package based on the environment configuration parameters includes:

[0012] Based on the environment configuration parameters, call the code packaging command;

[0013] Based on the code packaging command, obtain the application project;

[0014] The application project is packaged to obtain an application package.

[0015] Furthermore, the step of assembling data of the application package to obtain target data configuration includes:

[0016] Packaging the application package into a channel package to obtain an application channel package;

[0017] Data is assembled for the application channel package to obtain target data configuration.

[0018] Furthermore, the step of packaging the application package into a channel package to obtain an application channel package includes:

[0019] Based on the application package, obtaining an application hardening tool;

[0020] Using the application hardening tool to harden the application program package to obtain a hardened program package;

[0021] The reinforcement program package is packaged into a channel package to obtain an application channel package.

[0022] Furthermore, obtaining an application hardening tool based on the application package includes:

[0023] Acquire a target interface corresponding to the application package;

[0024] Based on the target interface, an application hardening tool corresponding to the target interface is obtained.

[0025] Furthermore, the data assembly of the application channel package to obtain the target data configuration includes:

[0026] Performing signature processing on the application channel package to obtain a target path corresponding to the application channel package;

[0027] According to the target path, obtaining the original data configuration corresponding to the target path;

[0028] Perform data assembly on the original data configuration to obtain the target data configuration.

[0029] Further, publishing the application package to the target platform based on the target data configuration includes:

[0030] Parsing the target data configuration to obtain target parameters;

[0031] Generate a path management class according to the target parameter, wherein the path management class includes a target path;

[0032] Target application information is obtained, and based on the target application information and the target path, the application package is published to a target platform.

[0033] An application publishing device, comprising:

[0034] A request acquisition module, used to acquire an application publishing request, wherein the application publishing request includes environment configuration parameters;

[0035] An application acquisition module, used to acquire an application package based on the environment configuration parameters;

[0036] A configuration acquisition module, used to assemble data of the application package and acquire target data configuration;

[0037] An application publishing module is used to publish the application package to a target platform based on the target data configuration.

[0038] Furthermore, the application acquisition module includes:

[0039] A command calling submodule, used to call the code packaging command based on the environment configuration parameters;

[0040] A project acquisition submodule, used to acquire an application project based on the code packaging command;

[0041] The project packaging submodule is used to package the application project and obtain the application package.

[0042] Furthermore, the configuration acquisition module includes:

[0043] The channel acquisition submodule is used to package the application package into a channel package and obtain an application channel package;

[0044] The data assembly submodule is used to assemble data of the application channel package and obtain target data configuration.

[0045] Furthermore, the channel acquisition submodule includes:

[0046] A tool acquisition unit, used to acquire an application hardening tool based on the application package;

[0047] A program package reinforcement unit, used to use the application reinforcement tool to reinforce the application package and obtain a reinforced program package;

[0048] The channel package packaging unit is used to package the reinforced program package into a channel package to obtain an application channel package.

[0049] Furthermore, the tool acquisition unit includes:

[0050] A hardening script subunit, used to obtain a target interface corresponding to the application package;

[0051] The target interface subunit is used to obtain an application hardening tool corresponding to the target interface based on the target interface.

[0052] Furthermore, the data assembly submodule includes:

[0053] A target path unit, used to perform signature processing on the application channel package and obtain a target path corresponding to the application channel package;

[0054] An original data configuration unit, configured to obtain, according to the target path, an original data configuration corresponding to the target path;

[0055] The configuration acquisition unit is used to perform data assembly on the original data configuration to acquire the target data configuration.

[0056] Furthermore, the application publishing module includes:

[0057] A target parameter submodule is used to parse the target data configuration and obtain target parameters;

[0058] A path management submodule, used to generate a path management class according to the target parameter, wherein the path management class includes a target path;

[0059] The application publishing submodule is used to obtain target application information and publish the application package to the target platform based on the target application information and the target path.

[0060] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned application publishing method when executing the computer program.

[0061] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the application program release method is implemented.

[0062] In the above-mentioned application publishing method, apparatus, computer equipment and storage medium, the server obtains an application publishing request, and obtains an application package based on the environment configuration parameters in the application publishing request, thereby avoiding manual packaging of application projects, automatically packaging application projects, obtaining application packages, and improving the efficiency of the application publishing process. Then, the application package data is assembled to obtain the target data configuration, and finally, based on the target data configuration, the application package is published to the target platform, thereby avoiding errors in manually uploading application packages and improving the reliability of application package publishing. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0064] Figure 1 is a schematic diagram of an application environment of an application publishing method in one embodiment of the present invention;

[0065] Figure 2 is a flow chart of an application publishing method in one embodiment of the present invention;

[0066] Figure 3 is another flow chart of the application publishing method in one embodiment of the present invention;

[0067] Figure 4 is another flow chart of the application publishing method in one embodiment of the present invention;

[0068] Figure 5 is another flow chart of the application publishing method in one embodiment of the present invention;

[0069] Figure 6 is another flow chart of the application publishing method in one embodiment of the present invention;

[0070] Figure 7 is another flow chart of the application publishing method in one embodiment of the present invention;

[0071] Figure 8 is another flow chart of the application publishing method in one embodiment of the present invention;

[0072] Fig. 9 is a schematic diagram of an application publishing device in one embodiment of the present invention;

[0073] Fig.10 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0075] The application publishing method provided by the embodiment of the present invention can be applied as follows: Figure 1Specifically, the application publishing method is applied in an application publishing system, and the application publishing system includes: Figure 1 The client and server shown in the figure communicate with each other through the network to avoid errors in manually uploading application packages and improve the reliability and efficiency of application package release. The client, also known as the user end, refers to a program corresponding to the server that provides local services to customers. The client can be installed on, but not limited to, various personal computers, laptops, smart phones, tablets, and portable wearable devices. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0076] In one embodiment, if Figure 2 As shown, a method for publishing an application is provided, which is applied in Figure 1 The server in the example is used as an example to illustrate the process, including the following steps:

[0077] S201: Obtain an application publishing request, where the application publishing request includes environment configuration parameters.

[0078] The application publishing request is a request for publishing an application. The environment configuration parameters refer to the development environment parameters of the application. Optionally, the environment configuration parameters include but are not limited to test environment parameters, UAT (User Acceptance Test, referred to as UAT) environment parameters and production environment parameters.

[0079] As an example, the server can obtain the application publishing request through the continuous integration tool installed on the client. Optionally, the continuous integration tool can be an application project corresponding to the continuous integration application. Preferably, the continuous integration tool is Jenkins. By installing Jenkins on the client, the developer can send the application publishing request to the server based on Jenkins, so that the server publishes the application based on Jenkins.

[0080] As an example, after the server obtains the application publishing request, it creates an application publishing task based on Jenkins. Optionally, the application publishing request may also include operating parameters. The operating parameters are used to configure Jenkins. After creating the application publishing task, the server configures Jenkins based on the operating parameters so that Jenkins runs normally.

[0081] Optionally, the application release request also includes a script for executing the application release task. After configuring Jenkins, the server adds a script for executing the application release task in Jenkins. Among them, the script for executing the application release task can be configured by the developer according to actual needs. Optionally, the script for executing the application release task includes but is not limited to shell scripts, python scripts and NodeJS scripts. Optionally, the application release task includes but is not limited to packaging, reinforcement, channel package packaging, signing, data assembly and release of the application.

[0082] S202: Obtain an application package based on the environment configuration parameters.

[0083] The application package refers to the program package obtained by packaging the application project.

[0084] As an example, the server obtains an application package based on the environment configuration parameters. In this example, after the server obtains the application release request, it obtains the application package based on the environment configuration parameters in the application release request. Exemplarily, the server uses a shell script in Jenkins to configure or modify the development environment parameters of the application based on the environment configuration parameters. After the server configures or modifies the development environment parameters of the application based on the environment configuration parameters, it can use a shell script to package the application project corresponding to the application according to the pre-set packaging processing logic to obtain the application package.

[0085] Optionally, the server may use a shell script to call a preset code packaging command or code packaging tool to package the application project corresponding to the application to obtain the application package.

[0086] In this embodiment, the server obtains the application package based on the environment configuration parameters, thereby avoiding manual packaging of the application project, automatically packaging the application project, obtaining the application package, and improving the efficiency of the application release process.

[0087] S203: Assemble data of the application package to obtain target data configuration.

[0088] The target data configuration refers to the data configuration obtained after data assembly of the application package. Exemplarily, the target data configuration includes a mapping relationship between the channel path of the application package and the target platform. The target platform is the client receiving the application package.

[0089] As an example, after obtaining the application package based on the environment configuration parameters, the server assembles the data of the application package to obtain the target data configuration. For example, the server uses a shell script to package the application project corresponding to the application, and after obtaining the application package, the application package is passed to the python script in Jenkins by using a shell script. Finally, the server uses the python script to assemble the data of the application package to obtain the target data configuration.

[0090] As an example, the server uses a preset data assembly algorithm based on a python script to assemble the data of the application package and obtain the target data configuration. The data assembly algorithm is used to obtain the channel path corresponding to the application package and the mapping relationship between the channel path and the target platform to which the application package is to be released.

[0091] As an example, the server assembles data based on a python script on the channel path corresponding to the application package and the mapping relationship between the channel path and the target platform on which the application package is to be released, thereby obtaining the target data configuration.

[0092] Optionally, the target data configuration may also include update instructions corresponding to the application package. For example, the server assembles data on the channel path corresponding to the application package, the update instructions corresponding to the application package, and the mapping relationship between the channel path and the target platform on which the application package is to be released, and obtains the target data configuration. It should be noted that the update instructions corresponding to the application package can be customized by the developer and sent to the server through the client.

[0093] In this embodiment, by assembling data of the application package and obtaining the target data configuration, the target platform on which the application package is to be released can be determined in the subsequent steps according to the target data configuration, thereby sending the application package to the application markets corresponding to different target platforms.

[0094] S204: Based on the target data configuration, the application package is published to the target platform.

[0095] The target platform is the platform on which the application package is to be released. Optionally, the CPU type of the target platform can be 32-bit or 64-bit. The application package can be released to the application market installed on the target platform.

[0096] As an example, after the server obtains the target data configuration through Python, it passes the target data configuration to the NodeJS script in Jenkins through Python. The server parses the target data configuration through the NodeJS script to determine the channel path corresponding to the application package required for the target platform of different CPU types, thereby publishing different application packages to the target platform of different CPU types.

[0097] In this example, the server adds shell scripts, python scripts, and NodeJS scripts in Jenkins to implement the series connection of the application package release process, that is, first obtain the application release request, which includes environment configuration parameters, and then use the shell script in Jenkins to configure or modify the development environment parameters of the application, and package the application project corresponding to the application to obtain the application package, and then pass the application package to the python script in Jenkins by using the shell script, and use the python script to assemble the application package data to obtain the target data configuration, and finally pass the target data configuration to the NodeJS script in Jenkins through python, and parse the target data configuration through the NodeJS script to determine the channel path corresponding to the application package required by the target platform of different CPU types, so as to realize the release of different application packages to target platforms of different CPU types.

[0098] In this embodiment, the server obtains an application publishing request, and obtains an application package based on the environment configuration parameters in the application publishing request, thereby avoiding manual packaging of application projects, automatically packaging application projects, obtaining application packages, and improving the efficiency of the application publishing process. The application package is then assembled to obtain the target data configuration, and finally, based on the target data configuration, the application package is published to the target platform, thereby avoiding errors in manually uploading application packages and improving the reliability of application package publishing.

[0099] In one embodiment, if Figure 3 As shown, in step S202, based on the environment configuration parameters, the application package is obtained, including:

[0100] S301: Based on the environment configuration parameters, call the code packaging command.

[0101] The code packaging command refers to a command for packaging an application project.

[0102] As an example, the server determines the development environment parameters in the environment configuration parameters through a shell script based on the environment configuration parameters, thereby calling the code packaging command corresponding to the development environment parameters. In this example, since different environment configuration parameters correspond to different development environment parameters, and different development environment parameters correspond to different application projects, the server calls the code packaging command corresponding to the development environment parameters according to the environment configuration parameters to package the application projects corresponding to the development environment parameters in the environment configuration parameters, so as to ensure that the correct application projects are packaged and improve the accuracy of packaging the application projects.

[0103] S302: Based on the code packaging command, obtain the application project.

[0104] The application project is the project where the application is located.

[0105] As an example, after the server calls the code packaging command corresponding to the environment configuration parameters based on the environment configuration parameters, the corresponding application project is obtained based on the code packaging command. Preferably, the code packaging command is a Gradle packaging command, and the server can directly call the Gradle packaging command through a shell script, thereby improving the efficiency of packaging the application project.

[0106] S303: Package the application project to obtain an application package.

[0107] As an example, after obtaining the application project based on the code packaging command, the server packages the application project to obtain the application package. In this example, the server can call the Gradle packaging command through a shell script to package the application project, obtain the application package, and pass the packaged application package and the channel path corresponding to the application package to the python script, so that the python script assembles data for the application package and obtains the target data configuration.

[0108] In this embodiment, the server first calls the code packaging command based on the environment configuration parameters, and then obtains the application project based on the code packaging command, and packages the application project to obtain the application package, so as to pass the packaged application package and the channel path corresponding to the application package to the python script, so that the python script assembles data for the application package, obtains the target data configuration, ensures that the correct application project is packaged, and improves the accuracy of application project packaging.

[0109] In one embodiment, if Figure 4As shown, in step S203, data is assembled for the application package to obtain the target data configuration, including:

[0110] S401: Pack the application package into a channel package to obtain an application channel package.

[0111] Among them, the application channel package refers to the program package obtained by packaging the application program package into a channel package.

[0112] As an example, the server automatically packages the application package into a channel package through a python script to obtain the application channel package. In this example, the developer can pre-write a python script that can perform the channel package packaging task and add the python script to Jenkins. When the server passes the application package to the python script through a shell script, the python script can automatically package the application package into a channel package to obtain the application channel package.

[0113] S402: Assemble data of the application channel package to obtain target data configuration.

[0114] As an example, the server assembles data for the application channel package to obtain the target data configuration. Exemplarily, after the server obtains the application channel package through a python script, it assembles data for the application channel package to obtain the target data configuration. Specifically, based on the python script, the server obtains the channel path corresponding to the application channel package, and the mapping relationship between the channel path corresponding to the application channel package and the target platform to which the application package is to be released, and assembles to obtain the target data configuration.

[0115] In this embodiment, the server packages the application package into a channel package, obtains the application channel package, assembles data for the application channel package, obtains the target data configuration to determine the target platform on which the application package is to be released, thereby sending the application package to the application markets corresponding to different target platforms.

[0116] In one embodiment, if Figure 5 As shown, in step S401, the application package is packaged into a channel package to obtain an application channel package, including:

[0117] S501: Based on the application package, obtain an application hardening tool.

[0118] Among them, the application hardening tool refers to a tool for hardening the application package.

[0119] As an example, the server obtains the application hardening tool corresponding to the application package through a python script. The application hardening tool may be a third-party application hardening tool, or a tool in the prior art that can harden the application package. The server only needs to call the application hardening tool according to the application package to harden the application package.

[0120] As an example, the server can obtain multiple application packages through a python script. Since the application hardening tools required for each application package may be different, when hardening multiple application packages, the server needs to obtain the application hardening tools corresponding to each application package through a python script.

[0121] S502: Use an application hardening tool to harden the application program package and obtain a hardened program package.

[0122] The reinforced program package refers to a program package obtained by reinforcing the application package.

[0123] As an example, the server uses an application hardening tool to harden the application package and obtain the hardening package. In this example, the server uses the python script in Jenkins. When the shell script passes the application package to the python script, the server can automatically obtain the application hardening tool corresponding to the application package through the python script, and use the application hardening tool to harden the application package and obtain the hardening package, so as to avoid manual hardening operations on the application package and improve the efficiency of application package hardening. It should be noted that the use of the python script to obtain the application hardening tool in this example is only an example, and the application hardening tool can also be obtained by other means.

[0124] S503: Pack the reinforced program package into a channel package to obtain an application channel package.

[0125] As an example, after the server uses the application hardening tool to harden the application package and obtains the hardened program package, it can obtain the application channel package by packaging the hardened program package into a channel package. In this example, after the server uses the python script to call the application hardening tool to harden the application package, it can automatically package the hardened program package into a channel package through the python script to obtain the application channel package, thereby improving the efficiency of obtaining the application channel package.

[0126] In this embodiment, the server obtains an application reinforcement tool based on the application package, and uses the application reinforcement tool to reinforce the application package to obtain a reinforcement program package, so as to avoid manual reinforcement operations on the application package and improve the efficiency of application package reinforcement. The reinforcement program package is packaged as a channel package to obtain an application channel package, thereby automatically packaging the reinforcement program package as a channel package through a python script to obtain an application channel package, thereby improving the efficiency of obtaining the application channel package.

[0127] In one embodiment, if Figure 6 As shown, in step S501, based on the application package, an application hardening tool is obtained, including:

[0128] S601: Acquire a target interface corresponding to an application package.

[0129] The target interface refers to the interface of the application hardening tool corresponding to the application package.

[0130] As an example, the server obtains the target interface corresponding to the application package. In this example, the server calls the target interface corresponding to the application package through a python script to obtain the corresponding application hardening tool through the target interface, and hardens the application package, thereby improving the security of the application package.

[0131] S602: Based on the target interface, obtain an application hardening tool corresponding to the target interface.

[0132] As an example, after obtaining the target interface, the server can automatically obtain the application hardening tool corresponding to the target interface, and then use the application hardening tool to harden the application package. In this example, the application hardening tool is obtained by calling the target interface, which facilitates the rapid acquisition of the corresponding application hardening tool and improves the efficiency of obtaining the application hardening tool.

[0133] In this embodiment, the server obtains the target interface corresponding to the application package, and based on the target interface, obtains the application hardening tool corresponding to the target interface, so as to facilitate the rapid acquisition of the corresponding application hardening tool, improve the efficiency of obtaining the application hardening tool, and ensure the security of the application package.

[0134] In one embodiment, if Figure 7 As shown, in step S402, data is assembled for the application channel package to obtain the target data configuration, including:

[0135] S701: Sign the application channel package and obtain the target path corresponding to the application channel package.

[0136] The target path refers to the channel path corresponding to the application channel package.

[0137] As an example, the server signs the application channel package so that users can use it normally after the subsequent application package is released.

[0138] As an example, the server may sign the application channel package through a signature tool and obtain a target path corresponding to the application channel package. Exemplarily, the signature tool may be an apksigner tool.

[0139] Optionally, the server may also perform alignment processing on the application channel package through a byte alignment tool to optimize the application channel package. Exemplarily, the byte alignment tool may be a zipalign tool.

[0140] In this example, the server calls the signature tool through a Python script to sign the application channel package and obtain the target path corresponding to the application channel package so that users can use it normally after the subsequent application package is released.

[0141] S702: According to the target path, obtain the original data configuration corresponding to the target path.

[0142] The original data configuration refers to the data configuration corresponding to the target path.

[0143] As an example, the server traverses all application channel packages through a python script, signs and aligns the reinforced application channel packages, obtains the signed and aligned application channel packages, and obtains the mapping relationship between the channel path of each signed and aligned application channel package and the CPU information of the target platform, that is, the original data configuration corresponding to the target path. The CPU information includes the CPU type.

[0144] As an example, the original data configuration may also include an update description corresponding to the application package. For example, the update description corresponding to the application package may be customized by a developer and sent to the server via the client.

[0145] S703: Assemble the original data configuration to obtain the target data configuration.

[0146] As an example, the server performs data assembly on the original data configuration to obtain the target data configuration. Optionally, the target data configuration is a recognizable data configuration. Exemplarily, the target data configuration is a data configuration that can be recognized by a parameter recognition plug-in. Preferably, the parameter recognition plug-in is a minimist plug-in.

[0147] As an example, the server performs data assembly on the mapping relationship between the channel path of the application channel package in the original data configuration and the CPU information of the target platform to obtain the target data configuration. Optionally, the target data configuration may also include an update description corresponding to the application package.

[0148] In this embodiment, the server signs the application channel package and obtains the target path corresponding to the application channel package so that users can use the subsequent application package normally after it is released. According to the target path, the server obtains the original data configuration corresponding to the target path, assembles the original data configuration, and obtains the target data configuration to determine the target platform on which the application package is to be released, thereby sending the application package to the application markets corresponding to different target platforms.

[0149] In one embodiment, if Figure 8 As shown, in step S204, based on the target data configuration, the application package is published to the target platform, including:

[0150] S801: Analyze the target data configuration and obtain target parameters.

[0151] The target parameters refer to the parameters obtained after parsing the target data configuration.

[0152] As an example, the server parses the target data configuration to obtain the target parameters. In this example, since the target data configuration is a data configuration that can be recognized by the parameter recognition plug-in, the server parses the target data configuration through the parameter recognition plug-in based on the NodeJS script in Jenkins to obtain the target parameters. It can be understood that the target parameters include the channel path of the application channel package, the CPU information of the target platform, or the update instructions corresponding to the application package.

[0153] S802: Generate a path management class according to the target parameters, where the path management class includes the target path.

[0154] The path management class refers to a class that can provide the channel paths required by target platforms of different CPU types. The target path refers to the channel path corresponding to the target platform.

[0155] As an example, the server generates a path management class based on the NodeJS script according to the target parameters, so that the channel path required for the target platform of different CPU types can be obtained from the path management, so that the application package can be published to the target platform based on the target path in the subsequent steps.

[0156] S803: Obtain target application information, and publish the application package to the target platform based on the target application information and the target path.

[0157] The target application information refers to the information that is customized by the user when publishing the application package.

[0158] As an example, the target application information includes information such as a target platform list and a package name of an application package.

[0159] As an example, the server obtains the target application information through the NodeJS script, and based on the target application information and the target path, it can publish the application package to the target platform, thereby avoiding errors in manually uploading the application package and improving the reliability of the application package release.

[0160] In this embodiment, the server parses the target data configuration to obtain the target parameters, and generates a path management class based on the target parameters, the path management class including the target path, and finally obtains the target application information. Based on the target application information and the target path, the application package is published to the target platform. The application package can be published to the target platform, thereby avoiding errors in manually uploading the application package and improving the reliability of the application package release.

[0161] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0162] In one embodiment, an application publishing device is provided, and the application publishing device corresponds to the application publishing method in the above embodiment. Fig. 9 As shown, the application publishing device includes a request acquisition module 10, an application acquisition module 20, a configuration acquisition module 30 and an application publishing module 40. Each functional module is described in detail as follows:

[0163] A request acquisition module 10 is used to acquire an application publishing request, where the application publishing request includes environment configuration parameters;

[0164] The application acquisition module 20 is used to acquire the application package based on the environment configuration parameters;

[0165] The configuration acquisition module 30 is used to assemble data of the application package and obtain the target data configuration;

[0166] The application publishing module 40 is used to publish the application package to the target platform based on the target data configuration.

[0167] Furthermore, the application acquisition module 20 includes:

[0168] The command calling submodule is used to call the code packaging command based on the environment configuration parameters;

[0169] The project acquisition submodule is used to obtain application projects based on code packaging commands;

[0170] The project packaging submodule is used to package the application project and obtain the application package.

[0171] Furthermore, the configuration acquisition module 30 includes:

[0172] The channel acquisition submodule is used to package the application package into a channel package and obtain the application channel package;

[0173] The data assembly submodule is used to assemble the data of the application channel package and obtain the target data configuration.

[0174] Furthermore, the channel acquisition submodule includes:

[0175] A tool acquisition unit, used for acquiring an application hardening tool based on an application package;

[0176] A program package reinforcement unit, used to reinforce the application program package using an application reinforcement tool and obtain a reinforced program package;

[0177] The channel package packaging unit is used to package the reinforced program package into a channel package and obtain an application channel package.

[0178] Furthermore, the tool acquisition unit includes:

[0179] A hardening script subunit is used to obtain a target interface corresponding to an application package;

[0180] The target interface subunit is used to obtain the application hardening tool corresponding to the target interface based on the target interface.

[0181] Furthermore, the data assembly submodule includes:

[0182] The target path unit is used to sign the application channel package and obtain the target path corresponding to the application channel package;

[0183] The original data configuration unit is used to obtain the original data configuration corresponding to the target path according to the target path;

[0184] The configuration acquisition unit is used to assemble the original data configuration and obtain the target data configuration.

[0185] Furthermore, the application publishing module 40 includes:

[0186] The target parameter submodule is used to parse the target data configuration and obtain the target parameters;

[0187] The path management submodule is used to generate a path management class according to target parameters, and the path management class includes a target path;

[0188] The application publishing submodule is used to obtain target application information and publish the application package to the target platform based on the target application information and target path.

[0189] For the specific definition of the application publishing device, please refer to the definition of the application publishing method above, which will not be repeated here. Each module in the above-mentioned application publishing device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0190] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data in the application package release process. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an application release method is implemented.

[0191] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the application publishing method in the above embodiment is implemented, such as steps S201 to S204. To avoid repetition, they are not described here. Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of the application publishing device are implemented, such as modules 10 to 40. To avoid repetition, they are not described here.

[0192] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the application publishing method in the above embodiment is implemented, such as steps S201 to S204, which are not described here to avoid repetition. Alternatively, when the computer program is executed by a processor, the functions of each module / unit in the above embodiment of the application publishing device are implemented, such as modules 10 to 40, which are not described here to avoid repetition.

[0193] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0194] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0195] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for publishing an application program, It is characterized in that include: Obtaining an application publishing request, wherein the application publishing request includes environment configuration parameters; Based on the environment configuration parameters, obtaining an application package; Assembling data of the application package to obtain target data configuration; Parsing the target data configuration to obtain target parameters; Generate a path management class according to the target parameter, wherein the path management class includes a target path; Target application information is obtained, and based on the target application information and the target path, the application package is published to a target platform.

2. The application publishing method according to claim 1, It is characterized in that The step of obtaining the application package based on the environment configuration parameters includes: Based on the environment configuration parameters, call the code packaging command; Based on the code packaging command, obtain the application project; The application project is packaged to obtain an application package.

3. The application publishing method according to claim 1, It is characterized in that The step of assembling data of the application package to obtain target data configuration includes: Packaging the application package into a channel package to obtain an application channel package; Data is assembled for the application channel package to obtain target data configuration.

4. The application publishing method according to claim 3, It is characterized in that The step of packaging the application package into a channel package to obtain an application channel package includes: Based on the application package, obtaining an application hardening tool; Using the application hardening tool to harden the application program package to obtain a hardened program package; The reinforcement program package is packaged into a channel package to obtain an application channel package.

5. The application publishing method according to claim 4, It is characterized in that The obtaining of an application hardening tool based on the application package includes: Acquire a target interface corresponding to the application package; Based on the target interface, an application hardening tool corresponding to the target interface is obtained.

6. The application publishing method according to claim 3, It is characterized in that The step of assembling data of the application channel package to obtain target data configuration includes: Performing signature processing on the application channel package to obtain a target path corresponding to the application channel package; According to the target path, obtaining the original data configuration corresponding to the target path; Perform data assembly on the original data configuration to obtain the target data configuration.

7. An application publishing device, It is characterized in that include: A request acquisition module, used to acquire an application publishing request, wherein the application publishing request includes environment configuration parameters; An application acquisition module, used to acquire an application package based on the environment configuration parameters; A configuration acquisition module, used to assemble data of the application package and acquire target data configuration; The application publishing module is used to parse the target data configuration and obtain target parameters; generate a path management class based on the target parameters, and the path management class includes a target path; obtain target application information, and based on the target application information and the target path, publish the application package to the target platform.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the application publishing method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the application publishing method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Multi-channel SDK (software development kit) access system and multi-channel SDK access system for mobile terminal software

    CN104363264A

  • Application program processing method and device, computer equipment and storage medium

    CN109783129A

  • Mobile terminal APP automatic packaging method and system, electronic equipment and storage medium

    CN113064630A