CN115904384A - Configuration method, device and equipment for application program release and storage medium - Google Patents

Configuration method, device and equipment for application program release and storage medium Download PDF

Info

Publication number
CN115904384A
CN115904384A CN202211391330.9A CN202211391330A CN115904384A CN 115904384 A CN115904384 A CN 115904384A CN 202211391330 A CN202211391330 A CN 202211391330A CN 115904384 A CN115904384 A CN 115904384A
Authority
CN
China
Prior art keywords
application program
application
target
server
package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211391330.9A
Other languages
Chinese (zh)
Inventor
闫心现
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qianzhen Information Technology Co ltd
Original Assignee
Shanghai Qianzhen Information Technology Co ltd
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 Shanghai Qianzhen Information Technology Co ltd filed Critical Shanghai Qianzhen Information Technology Co ltd
Priority to CN202211391330.9A priority Critical patent/CN115904384A/en
Publication of CN115904384A publication Critical patent/CN115904384A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of computers, and discloses a configuration method, a configuration device, configuration equipment and a storage medium for application program release, which are used for improving the efficiency of application program release. The configuration method for the application program release comprises the following steps: responding to a server configuration request, packaging application program data based on the server configuration request, and generating an initial application program package; carrying out parameter configuration on the initial application program package to generate a candidate application program package; compiling the candidate application program package to generate a server configuration file; and responding to the application publishing request, and generating a target application program corresponding to the application publishing request based on the server configuration file.

Description

Configuration method, device and equipment for application program release and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a configuration method, an apparatus, a device, and a storage medium for application distribution.
Background
Application publishing, also known as application deployment or packaging, refers to the process of separating an application or component from a software programming environment in a software programming environment to enable it to run independently.
Each time of application program release, the configuration file needs to be manually modified by related developers, the corresponding server configuration environment, the interface accessed during the application program use period and the server address are selected, and the application program release is finally completed through a series of operations.
However, the operation process of the application distribution is complicated, and the configuration file may be forgotten to be modified due to carelessness of a related developer during the operation process, so that the application is uploaded to an incorrect application server, the application distribution is failed, and the efficiency of the application distribution is low.
Disclosure of Invention
The invention provides a configuration method, a configuration device, equipment and a storage medium for application program release, which are used for improving the efficiency of application program release.
The invention provides a configuration method for application program release in a first aspect, which comprises the following steps: responding to a server configuration request, packaging application program data based on the server configuration request, and generating an initial application program package; performing parameter configuration on the initial application program package to generate a candidate application program package; compiling the candidate application program package to generate a server configuration file; responding to an application publishing request, and generating a target application program corresponding to the application publishing request based on the server configuration file.
In one possible implementation, the generating an initial application package in response to a server configuration request and packaging application data based on the server configuration request includes: responding to a server configuration request, wherein the server configuration request comprises application name information, channel information and dependency base information, the channel information carries channel keywords, and the dependency base information carries dependency base identification; determining a target name corresponding to application program data based on the application name information; if the channel keyword is matched with a target preset keyword in a preset channel keyword set, determining a preset channel corresponding to the target preset keyword as a target channel corresponding to the application program data; if the dependency library identification is matched with a target preset identification in a preset dependency library identification set, determining a preset dependency library corresponding to the target preset identification as a target dependency library corresponding to the application program data; and generating a corresponding initial application program package based on the application program data, the target name, the target channel and the target dependency library.
In a possible implementation manner, the performing parameter configuration on the initial application package to generate a candidate application package includes: calling a preset function to perform server parameter configuration on the initial application program package to obtain a plurality of server parameters, wherein the plurality of server parameters comprise a target server configuration environment parameter, a target application access interface parameter and a target server address, and each server parameter comprises a field type, a field name and a field value; generating a corresponding candidate application package based on the initial application package and the plurality of server parameters.
In a possible implementation, the compiling the candidate application package to generate a server configuration file includes: deleting the historical compiled file of the candidate application program package; recompiling the candidate application program package to obtain a target application program package; deleting the historical compiled file and the executable file of the target application program package; and recompiling the target application program package to obtain a server configuration file.
In one possible implementation manner, the generating, in response to the application publishing request and based on the server configuration file, a target application program corresponding to the application publishing request includes: responding to an application issuing request, wherein the application issuing request carries an application program package to be issued, and the application program package to be issued comprises an initial server configuration environment parameter, an initial application access interface parameter and an initial server address; performing parameter proofreading on the application package to be issued and the server configuration file, wherein the server configuration file comprises a target server configuration environment parameter, a target application access interface parameter and a target server address; and if the application program package to be issued meets preset conditions, performing signature processing on the application program package to be issued to generate a target application program corresponding to the application program package to be issued, wherein the preset conditions are that the initial server configuration environment parameters are the same as the target server configuration environment parameters, the initial application access interface parameters are the same as the target application access interface parameters, and the initial server address is the same as the target server address.
In a possible implementation manner, after the parameter checking the application package to be published and the server configuration file, the method further includes: if the application program package to be issued does not accord with the preset conditions, modifying the initial server configuration environment parameters into the target server configuration environment parameters; modifying the initial application access interface parameter into the target application access interface parameter; modifying the initial server address to the target server address; and performing signature processing on the application program package to be issued to generate a target application program corresponding to the application program package to be issued.
In a possible implementation, after the compiling the candidate application package to generate the server configuration file, the method includes: generating a test application program based on the server configuration file, and installing and starting the test application program; analyzing the test parameter file of the test application program to obtain a plurality of test parameters; and if each test parameter is the same as the corresponding preset application use parameter, determining that the test application program is in a normal operation state.
The second aspect of the present invention provides a configuration apparatus for application program distribution, including: the response packaging module is used for responding to the server configuration request, packaging the application program data based on the server configuration request and generating an initial application program package; the parameter configuration module is used for carrying out parameter configuration on the initial application program package to generate a candidate application program package; the compiling generation module is used for compiling the candidate application program package to generate a server configuration file; and the response generation module is used for responding to the application release request and generating a target application program corresponding to the application release request based on the server configuration file.
In a possible implementation, the response packaging module is specifically configured to: responding to a server configuration request, wherein the server configuration request comprises application name information, channel information and dependency base information, the channel information carries channel keywords, and the dependency base information carries dependency base identification; determining a target name corresponding to application program data based on the application name information; if the channel keyword is matched with a target preset keyword in a preset channel keyword set, determining a preset channel corresponding to the target preset keyword as a target channel corresponding to the application program data; if the dependency library identification is matched with a target preset identification in a preset dependency library identification set, determining a preset dependency library corresponding to the target preset identification as a target dependency library corresponding to the application program data; and generating a corresponding initial application program package based on the application program data, the target name, the target channel and the target dependency library.
In a possible implementation manner, the parameter configuration module is specifically configured to: calling a preset function to carry out server parameter configuration on the initial application program package to obtain a plurality of server parameters, wherein the plurality of server parameters comprise target server configuration environment parameters, target application access interface parameters and target server addresses, and each server parameter comprises a field type, a field name and a field value; generating a corresponding candidate application package based on the initial application package and the plurality of server parameters.
In a possible implementation manner, the compiling generation module is specifically configured to: deleting the historical compiled file of the candidate application program package; recompiling the candidate application program package to obtain a target application program package; deleting the historical compiled file and the executable file of the target application program package; and recompiling the target application program package to obtain a server configuration file.
In one possible implementation, the response generation module includes: the response unit is used for responding to an application release request, wherein the application release request carries an application program package to be released, and the application program package to be released comprises an initial server configuration environment parameter, an initial application access interface parameter and an initial server address; the verification unit is used for performing parameter verification on the application package to be issued and the server configuration file, and the server configuration file comprises a target server configuration environment parameter, a target application access interface parameter and a target server address; the first generating unit is configured to perform signature processing on the application package to be published if the application package to be published meets a preset condition, and generate a target application program corresponding to the application package to be published, where the preset condition is that the initial server configuration environment parameter is the same as the target server configuration environment parameter, the initial application access interface parameter is the same as the target application access interface parameter, and the initial server address is the same as the target server address.
In one possible implementation, the response generation module further includes: a first modification unit, configured to modify the initial server configuration environment parameter to the target server configuration environment parameter if the application package to be released does not meet the preset condition; the second modification unit is used for modifying the initial application access interface parameter into the target application access interface parameter; a third modifying unit, configured to modify the initial server address into the target server address; and the second generation unit is used for performing signature processing on the application program package to be issued and generating a target application program corresponding to the application program package to be issued.
In a possible implementation manner, the configuration device for application program publishing further includes: the generation starting module is used for generating a test application program based on the server configuration file and installing and starting the test application program; the analysis module is used for analyzing the test parameter file of the test application program to obtain a plurality of test parameters; and the determining module is used for determining that the test application program is in a normal running state if each test parameter is the same as the corresponding preset application use parameter.
A third aspect of the present invention provides a configuration device for application distribution, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor calls the instructions in the memory to cause the application program issuing configuration device to perform the application program issuing configuration method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-described configuration method of application distribution.
In the technical scheme provided by the invention, a server configuration request is responded, and application program data is packaged based on the server configuration request to generate an initial application program package; carrying out parameter configuration on the initial application program package to generate a candidate application program package; compiling the candidate application program package to generate a server configuration file; and responding to the application publishing request, and generating a target application program corresponding to the application publishing request based on the server configuration file. In the embodiment of the invention, the server configuration request is responded, the application program data is packaged, the parameters are configured and compiled to generate the server configuration file, the application release request is responded, and the target application program is generated based on the server configuration file, so that the relevant parameters of the application program release are automatically configured, the problem that the application program is uploaded to the wrong application server due to carelessness of relevant developers is avoided, and the efficiency of the application program release is improved.
Drawings
FIG. 1 is a diagram of an embodiment of a configuration method for application distribution according to an embodiment of the present invention;
FIG. 2 is a diagram of another embodiment of a configuration method for application publishing in an embodiment of the present invention;
FIG. 3 is a diagram of an embodiment of a configuration apparatus for application distribution according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of a configuration device for application distribution according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a configuration device for application distribution in the embodiment of the present invention.
Detailed Description
The invention provides a configuration method, a configuration device, equipment and a storage medium for application program release, which are used for improving the efficiency of application program release.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a configuration method for application distribution in the embodiment of the present invention includes:
101. responding to a server configuration request, packaging application program data based on the server configuration request, and generating an initial application program package;
it is understood that the execution subject of the present invention may be a configuration device issued by an application program, and may also be a terminal, which is not limited herein. The embodiment of the present invention is described by taking a terminal as an execution subject.
In this embodiment, the application data may be packaged by a project automation building open source tool (Gradle), may be packaged by a project management tool (Maven), and may also be packaged by another project building tool, which is not limited herein.
In this embodiment, the Gradle is used to package the application data, and a multi-channel packaging structure (productFlavors) is added to the Gradle, so as to package the application data, the productFlavors are used to respectively define different characteristics of the product, and different products can be created by using one set of codes. For example, application programs with different names, application programs with different channels (i.e., different application markets), and application programs with different dependent libraries may be configured, where a needs to call a dynamic library B when calling a dynamic library a, that is, B is a dependent library of a.
102. Carrying out parameter configuration on the initial application program package to generate a candidate application program package;
in this embodiment, parameter configuration is performed by calling a preset function in the product scenarios, where the preset function is a configuration field function (buildconfigugfield) generated, and the field type, the field name, and the field value of the buildconfigugfield configurable parameter, where the field type is used to indicate a data type of the parameter, the field name is used to indicate a specific attribute of the parameter, and the field value is used to indicate a specific content of the parameter.
103. Compiling the candidate application program package to generate a server configuration file;
the present embodiment compiles the candidate application package by a rebuild Project or a clean Project.
104. And responding to the application publishing request, and generating a target application program corresponding to the application publishing request based on the server configuration file.
In the embodiment, parameter proofreading and modification are performed on the application package to be issued through the server configuration file configured in advance, so that relevant parameters issued by the application program are automatically configured.
In the embodiment of the invention, the server configuration request is responded, the application program data is packaged, the parameters are configured and compiled to generate the server configuration file, the application release request is responded, and the target application program is generated based on the server configuration file, so that the relevant parameters of the application program release are automatically configured, the problem that the application program is uploaded to the wrong application server due to carelessness of relevant developers is avoided, and the efficiency of the application program release is improved.
Referring to fig. 2, another embodiment of the configuration method for application distribution according to the embodiment of the present invention includes:
201. responding to a server configuration request, packaging application program data based on the server configuration request, and generating an initial application program package;
specifically, (1) the terminal responds to a server configuration request, wherein the server configuration request comprises application name information, channel information and dependency base information, the channel information carries channel keywords, and the dependency base information carries dependency base identification; (2) The terminal determines a target name corresponding to the application program data based on the application name information; (3) If the channel keywords are matched with target preset keywords in a preset channel keyword set, the terminal determines a preset channel corresponding to the target preset keywords as a target channel corresponding to the application program data; (4) If the dependency library identification is matched with the target preset identification in the preset dependency library identification set, the terminal determines the preset dependency library corresponding to the target preset identification as a target dependency library corresponding to the application program data; (5) And the terminal generates a corresponding initial application program package based on the application program data, the target name, the target channel and the target dependency library.
For example, the terminal responds to a server configuration request, the server configuration request comprises application name information, channel information and dependency base information, the channel information carries channel keywords, the dependency base information carries dependency base identification, the channel keywords are logistics, the dependency base identification is a, the terminal determines a target name corresponding to application program data based on the application name information, and if the channel keywords are matched with a target preset keyword logistics in a preset channel keyword set, the terminal determines a preset channel logistics application market corresponding to the target preset keywords as a target channel corresponding to the application program data; if the dependency library identification is matched with a target preset identification 'A' in a preset dependency library identification set, the terminal determines a preset dependency library 'B' corresponding to the target preset identification as a target dependency library corresponding to the application program data; and the terminal generates a corresponding initial application program package based on the application program data, the target name, the target channel and the target dependency library.
202. Carrying out parameter configuration on the initial application program package to generate a candidate application program package;
specifically, (1) the terminal calls a preset function to perform server parameter configuration on an initial application program package to obtain a plurality of server parameters, wherein the plurality of server parameters comprise a target server configuration environment parameter, a target application access interface parameter and a target server address, and each server parameter comprises a field type, a field name and a field value; (2) The terminal generates a corresponding candidate application package based on the initial application package and the plurality of server parameters.
In this embodiment, parameter configuration is performed by calling a preset function in the productflags, where the preset function is a configuration field function (buildconfigugfield), and the buildconfigugfield can configure a field type, a field name, and a field value of a parameter, where the field type is used to indicate a data type of the parameter, the field name is used to indicate a specific attribute of the parameter, and the field value is used to indicate a specific content of the parameter.
For example, the terminal calls the buildConfigField to perform server parameter configuration on the initial application package to obtain a plurality of server parameters, where the plurality of server parameters include a target server configuration environment parameter, a target application access interface parameter, and a target server address, each server parameter includes a field type (type), a field name (name), and a field value (value), and for example, the field type of the target server address is: string, field name: the HTTP SERVER 'CONFIG QT HTTP SERVER URL' has the field values as follows: the terminal generates a corresponding candidate application package based on the initial application package and a plurality of server parameters.
203. Compiling the candidate application program package to generate a server configuration file;
specifically, (1) the terminal deletes the history compiled file of the candidate application package; (2) The terminal recompiles the candidate application program package to obtain a target application program package; (3) The terminal deletes the historical compiled file and the executable file of the target application program package; (4) And the terminal recompiles the target application program package to obtain a server configuration file.
For example, in this embodiment, rebuild Project is adopted for compiling, and first, the terminal performs the same steps as the clean Project: the terminal deletes the historical compilation file of the candidate application program package, recompiles the candidate application program package to obtain a target application program package, deletes the historical compilation file and the executable file of the target application program package, and finally recompiles the target application program package to obtain a server configuration file.
204. Responding to an application issuing request, wherein the application issuing request carries an application program package to be issued, and the application program package to be issued comprises an initial server configuration environment parameter, an initial application access interface parameter and an initial server address;
for example, the terminal responds to the application publishing request, the application publishing request carries an application package to be published, the application package to be published includes an initial server configuration environment parameter, an initial application access interface parameter and an initial server address, and the initial server configuration environment parameter is as follows: in the LAMP server environment, LAMP refers to a group of components which are used together to run a dynamic website or a server, LAMP comprises an operating system Linux, a web server Apache, a database server MySQL and a script language PHP/Perl/Python, and initial application access interface parameters are as follows: the third party interface C, the initial server address is: www.1234.com.
205. Performing parameter proofreading on the application package to be issued and a server configuration file, wherein the server configuration file comprises a target server configuration environment parameter, a target application access interface parameter and a target server address;
for example, the terminal performs parameter proofreading on the application package to be issued and a server configuration file, where the server configuration file includes a target server configuration environment parameter, a target application access interface parameter, and a target server address, where the target server configuration environment parameter is: in the LAMP server environment, the parameters of a target application access interface are as follows: the third party interface C, the address of the target server is: www.1234.com.
206. And if the application program package to be released meets the preset conditions, performing signature processing on the application program package to be released to generate a target application program corresponding to the application program package to be released, wherein the preset conditions are that the initial server configuration environment parameters are the same as the target server configuration environment parameters, the initial application access interface parameters are the same as the target application access interface parameters, and the initial server address is the same as the target server address.
It is understood that in order to ensure that each application developer is legally coded, to prevent some openers from possibly confusing and replacing an installed application by using the same Package Name (Package Name), a unique signature needs to be applied to the application Package to be released to ensure consistency of each release version, for example, automatic updates cannot be installed due to inconsistent versions.
For example, based on the examples in step 204 and step 205, if the initial server configuration environment parameter of the application package to be published is the same as the target server configuration environment parameter, the initial application access interface parameter is the same as the target application access interface parameter, and the initial server address is the same as the target server address, the terminal performs signature processing on the application package to be published, and generates the target application corresponding to the application package to be published.
In a feasible implementation mode, (1) if the application program package to be released does not meet the preset condition, the terminal modifies the initial server configuration environment parameter into the target server configuration environment parameter; (2) The terminal modifies the initial application access interface parameter into a target application access interface parameter; (3) The terminal modifies the initial server address into a target server address; (4) And the terminal carries out signature processing on the application program package to be issued and generates a target application program corresponding to the application program package to be issued.
For example, based on the example of step 205, if the initial server configuration environment parameters of the application package to be published are: in the LNMP server environment, the initial application access interface parameters are: and the third party interface D, the address of the initial server is as follows: www.123.com, if the application package to be released does not meet the preset conditions, the terminal modifies the initial server configuration environment parameters to: in the LAMP server environment, the terminal modifies the initial application access interface parameters into: and C, the terminal modifies the initial server address to www.1234.Com, and the terminal signs the application package to be published to generate a target application program corresponding to the application package to be published.
In one possible implementation, the terminal (1) generates a test application based on the server configuration file, and installs and starts the test application; (2) The terminal analyzes a test parameter file of the test application program to obtain a plurality of test parameters; (3) And if each test parameter is the same as the corresponding preset application use parameter, the terminal determines that the test application program is in a normal running state.
For example, the terminal generates a test application program based on the server configuration file, installs and starts the test application program, analyzes the test parameter file of the test application program to obtain a plurality of test parameters, the plurality of test parameters include response time, response speed, memory occupation size, CPU occupancy rate and application smoothness, and if each test parameter is the same as a corresponding preset application use parameter, the terminal determines that the test application program is in a normal operation state.
In the embodiment of the invention, the server configuration request is responded, the application program data is packaged, the parameters are configured and compiled to generate the server configuration file, the application release request is responded, and the target application program is generated based on the server configuration file, so that the relevant parameters of the application program release are automatically configured, the problem that the application program is uploaded to the wrong application server due to carelessness of relevant developers is avoided, and the efficiency of the application program release is improved.
With reference to fig. 3, the configuration method for publishing an application program in the embodiment of the present invention is described above, and a configuration apparatus for publishing an application program in the embodiment of the present invention is described below, where an embodiment of the configuration apparatus for publishing an application program in the embodiment of the present invention includes:
a response packaging module 301, configured to respond to the server configuration request, package application data based on the server configuration request, and generate an initial application package;
a parameter configuration module 302, configured to perform parameter configuration on the initial application package, and generate a candidate application package;
a compiling generation module 303, configured to compile the candidate application package to generate a server configuration file;
and the response generating module 304 is configured to respond to the application publishing request and generate a target application program corresponding to the application publishing request based on the server configuration file.
In the embodiment of the invention, the server configuration request is responded, the application program data is packaged, the parameters are configured and compiled to generate the server configuration file, the application release request is responded, and the target application program is generated based on the server configuration file, so that the relevant parameters of the application program release are automatically configured, the problem that the application program is uploaded to the wrong application server due to carelessness of relevant developers is avoided, and the efficiency of the application program release is improved.
Referring to fig. 4, another embodiment of the configuration apparatus for application distribution according to the embodiment of the present invention includes:
a response packaging module 301, configured to respond to the server configuration request, package application data based on the server configuration request, and generate an initial application package;
a parameter configuration module 302, configured to perform parameter configuration on the initial application package, and generate a candidate application package;
a compiling generation module 303, configured to compile the candidate application package to generate a server configuration file;
and the response generating module 304 is configured to respond to the application publishing request and generate a target application program corresponding to the application publishing request based on the server configuration file.
Optionally, the response packaging module 301 is specifically configured to:
responding to a server configuration request, wherein the server configuration request comprises application name information, channel information and dependency base information, the channel information carries channel keywords, and the dependency base information carries dependency base identification;
determining a target name corresponding to the application program data based on the application name information;
if the channel keyword is matched with a target preset keyword in a preset channel keyword set, determining a preset channel corresponding to the target preset keyword as a target channel corresponding to the application program data;
if the dependency library identification is matched with a target preset identification in the preset dependency library identification set, determining a preset dependency library corresponding to the target preset identification as a target dependency library corresponding to the application program data;
and generating a corresponding initial application program package based on the application program data, the target name, the target channel and the target dependency library.
Optionally, the parameter configuration module 302 is specifically configured to:
calling a preset function to perform server parameter configuration on the initial application program package to obtain a plurality of server parameters, wherein the plurality of server parameters comprise a target server configuration environment parameter, a target application access interface parameter and a target server address, and each server parameter comprises a field type, a field name and a field value;
based on the initial application package and the plurality of server parameters, a corresponding candidate application package is generated.
Optionally, the compiling and generating module 303 is specifically configured to:
deleting the historical compiled files of the candidate application packages;
recompiling the candidate application program package to obtain a target application program package;
deleting the historical compiled file and the executable file of the target application program package;
and recompiling the target application program package to obtain a server configuration file.
Optionally, the response generating module 304 includes:
a responding unit 3041, configured to respond to an application publishing request, where the application publishing request carries an application package to be published, and the application package to be published includes an initial server configuration environment parameter, an initial application access interface parameter, and an initial server address;
the proofreading unit 3042 is configured to perform parameter proofreading on the application package to be issued and a server configuration file, where the server configuration file includes a target server configuration environment parameter, a target application access interface parameter, and a target server address;
the first generating unit 3043 is configured to perform signature processing on the application package to be published if the application package to be published meets a preset condition, and generate a target application program corresponding to the application package to be published, where the preset condition is that an initial server configuration environment parameter is the same as a target server configuration environment parameter, an initial application access interface parameter is the same as a target application access interface parameter, and an initial server address is the same as a target server address.
Optionally, the response generating module 304 further includes:
a first modifying unit 3044, configured to modify the initial server configuration environment parameter to the target server configuration environment parameter if the application package to be issued does not meet the preset condition;
a second modifying unit 3045, configured to modify the initial application access interface parameter into a target application access interface parameter;
a third modifying unit 3046, configured to modify the initial server address into a target server address;
the second generating unit 3047 is configured to perform signature processing on the application package to be published, and generate a target application program corresponding to the application package to be published.
Optionally, the configuration device for application distribution further includes:
a generation starting module 305, configured to generate a test application based on the server configuration file, and install and start the test application;
the analysis module 306 is used for analyzing the test parameter file of the test application program to obtain a plurality of test parameters;
the determining module 307 is configured to determine that the test application program is in a normal running state if each test parameter is the same as the corresponding preset application usage parameter.
In the embodiment of the invention, the server configuration request is responded, the application program data is packaged, the parameters are configured and compiled to generate the server configuration file, the application release request is responded, and the target application program is generated based on the server configuration file, so that the relevant parameters of the application program release are automatically configured, the problem that the application program is uploaded to the wrong application server due to carelessness of relevant developers is avoided, and the efficiency of the application program release is improved.
Fig. 3 and fig. 4 describe the configuration apparatus for application distribution in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the configuration device for application distribution in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of an application publishing configuration apparatus 500 according to an embodiment of the present invention, which may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the configuration device 500 issued to the application program. Further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the configuration device 500 issued by the application program.
The application publishing configuration device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows Server, mac OS X, unix, linux, freeBSD, and the like. Those skilled in the art will appreciate that the configuration device architecture of application publication shown in FIG. 5 does not constitute a limitation of the configuration device of application publication, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The invention further provides a configuration device for application program distribution, where the computer device includes a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the configuration method for application program distribution in the foregoing embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the configuration method as issued by the application program.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A configuration method for application program release is characterized by comprising the following steps:
responding to a server configuration request, packaging application program data based on the server configuration request, and generating an initial application program package;
performing parameter configuration on the initial application program package to generate a candidate application program package;
compiling the candidate application program package to generate a server configuration file;
responding to an application publishing request, and generating a target application program corresponding to the application publishing request based on the server configuration file.
2. The method for configuring application distribution according to claim 1, wherein the generating an initial application package by packaging application data in response to a server configuration request and based on the server configuration request comprises:
responding to a server configuration request, wherein the server configuration request comprises application name information, channel information and dependency base information, the channel information carries channel keywords, and the dependency base information carries dependency base identification;
determining a target name corresponding to application program data based on the application name information;
if the channel keyword is matched with a target preset keyword in a preset channel keyword set, determining a preset channel corresponding to the target preset keyword as a target channel corresponding to the application program data;
if the dependency library identification is matched with a target preset identification in a preset dependency library identification set, determining a preset dependency library corresponding to the target preset identification as a target dependency library corresponding to the application program data;
and generating a corresponding initial application program package based on the application program data, the target name, the target channel and the target dependency library.
3. The method according to claim 1, wherein the performing parameter configuration on the initial application package to generate the candidate application package comprises:
calling a preset function to perform server parameter configuration on the initial application program package to obtain a plurality of server parameters, wherein the plurality of server parameters comprise a target server configuration environment parameter, a target application access interface parameter and a target server address, and each server parameter comprises a field type, a field name and a field value;
generating a corresponding candidate application package based on the initial application package and the plurality of server parameters.
4. The method according to claim 1, wherein compiling the candidate application package to generate a server configuration file comprises:
deleting the historical compiled files of the candidate application program packages;
recompiling the candidate application program package to obtain a target application program package;
deleting the historical compiled file and the executable file of the target application program package;
and recompiling the target application program package to obtain a server configuration file.
5. The method according to claim 1, wherein the generating a target application corresponding to the application publication request based on the server configuration file in response to the application publication request comprises:
responding to an application issuing request, wherein the application issuing request carries an application program package to be issued, and the application program package to be issued comprises an initial server configuration environment parameter, an initial application access interface parameter and an initial server address;
the application program package to be issued and the server configuration file are subjected to parameter proofreading, and the server configuration file comprises target server configuration environment parameters, target application access interface parameters and a target server address;
and if the application program package to be issued meets preset conditions, performing signature processing on the application program package to be issued to generate a target application program corresponding to the application program package to be issued, wherein the preset conditions are that the initial server configuration environment parameters are the same as the target server configuration environment parameters, the initial application access interface parameters are the same as the target application access interface parameters, and the initial server address is the same as the target server address.
6. The method according to claim 5, further comprising, after the parameter checking the application package to be published and the server configuration file, the following steps:
if the application program package to be released does not accord with the preset conditions, the initial server configuration environment parameters are modified to the target server configuration environment parameters;
modifying the initial application access interface parameter into the target application access interface parameter;
modifying the initial server address to the target server address;
and performing signature processing on the application program package to be issued to generate a target application program corresponding to the application program package to be issued.
7. The method for configuring application distribution according to any one of claims 1 to 6, wherein after compiling the candidate application package to generate a server configuration file, the method comprises:
generating a test application program based on the server configuration file, and installing and starting the test application program;
analyzing the test parameter file of the test application program to obtain a plurality of test parameters;
and if each test parameter is the same as the corresponding preset application use parameter, determining that the test application program is in a normal running state.
8. An apparatus for configuring application distribution, the apparatus comprising:
the response packaging module is used for responding to the server configuration request, packaging the application program data based on the server configuration request and generating an initial application program package;
the parameter configuration module is used for carrying out parameter configuration on the initial application program package to generate a candidate application program package;
the compiling generation module is used for compiling the candidate application program package to generate a server configuration file;
and the response generation module is used for responding to the application release request and generating a target application program corresponding to the application release request based on the server configuration file.
9. A configuration device for application distribution, the configuration device for application distribution comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the application-issued configuration device to perform the application-issued configuration method of any of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement a configuration method as issued by an application program according to any one of claims 1-7.
CN202211391330.9A 2022-11-08 2022-11-08 Configuration method, device and equipment for application program release and storage medium Pending CN115904384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211391330.9A CN115904384A (en) 2022-11-08 2022-11-08 Configuration method, device and equipment for application program release and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211391330.9A CN115904384A (en) 2022-11-08 2022-11-08 Configuration method, device and equipment for application program release and storage medium

Publications (1)

Publication Number Publication Date
CN115904384A true CN115904384A (en) 2023-04-04

Family

ID=86470312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211391330.9A Pending CN115904384A (en) 2022-11-08 2022-11-08 Configuration method, device and equipment for application program release and storage medium

Country Status (1)

Country Link
CN (1) CN115904384A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116755713A (en) * 2023-08-16 2023-09-15 深圳传趣网络技术有限公司 Application program generation method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116755713A (en) * 2023-08-16 2023-09-15 深圳传趣网络技术有限公司 Application program generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
EP2932374B1 (en) Systems, methods, and computer program products for a software build and load process using a compilation and deployment service
KR101154730B1 (en) Method for configuring a computer program
CN110990020A (en) Software compiling method and device, electronic equipment and storage medium
CN109032631B (en) Application program patch package obtaining method and device, computer equipment and storage medium
US7069474B2 (en) System and method for assessing compatibility risk
CN106648755B (en) Method and device for dynamically loading dex in android art environment
CN112905447B (en) Test method and system for block chain virtual machine
CN115904384A (en) Configuration method, device and equipment for application program release and storage medium
CN114691188A (en) Compatibility evaluation method, device, equipment and storage medium
US20090119651A1 (en) System and method for directing recompilation of a class with a java static variable
CN115543781A (en) Method and interactive system for automatically verifying automobile software model
CN115220863A (en) Operation and maintenance method and device for container application, computer equipment and storage medium
CN110806891B (en) Method and device for generating software version of embedded device
CN110674474B (en) Operation control method and device for application program
US11221844B2 (en) Automated application partitioning system
CN115048082A (en) Micro front-end system construction method and device, server and readable storage medium
CN115098158A (en) SDK packaging method and device, computer equipment and storage medium
CN115658069A (en) Project packaging and online compiling method for release platform
CN113254020A (en) System and method for automatically compiling and packaging firmware
CN115168175A (en) Program error solving method, device, electronic equipment and storage medium
CN110928798A (en) Code testing method, device and equipment
CN111881056A (en) Automatic test framework and test method
CN111078231A (en) Visualization interface component heat deployment method, client and server
CN113672238B (en) Operation method, device and equipment based on real-time operating system modularized management
CN114297089B (en) Python remote dynamic debugging method and system based on container

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination