CN112685048A - Application program packaging method, electronic device and storage medium - Google Patents

Application program packaging method, electronic device and storage medium Download PDF

Info

Publication number
CN112685048A
CN112685048A CN202110006254.4A CN202110006254A CN112685048A CN 112685048 A CN112685048 A CN 112685048A CN 202110006254 A CN202110006254 A CN 202110006254A CN 112685048 A CN112685048 A CN 112685048A
Authority
CN
China
Prior art keywords
packaging
application
configuration
application program
resource 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
CN202110006254.4A
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.)
Southern Power Grid Digital Grid Research Institute Co Ltd
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Original Assignee
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid 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 Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd filed Critical Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Priority to CN202110006254.4A priority Critical patent/CN112685048A/en
Publication of CN112685048A publication Critical patent/CN112685048A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses an application program packaging method, electronic equipment and a storage medium, and relates to the technical field of program packaging. The application program packaging method comprises the following steps: configuring and generating an application project, and compiling the application project to generate resource package information; acquiring a packaging configuration according to the application project and a preset application type; and uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program. According to the embodiment of the application, the resource package information is generated by compiling the application project, a configuration environment does not need to be installed by a user, the packaging configuration is obtained through the application project and the preset application type, and different packaging functions are provided.

Description

Application program packaging method, electronic device and storage medium
Technical Field
The present application relates to the field of program packaging technologies, and in particular, to an application packaging method, an electronic device, and a storage medium.
Background
At present, for projects with separated front and back ends, the front-end project engineering construction and the application program packaging environment construction are indispensable links in the project development process. Front-end engineering is not friendly to most developers, requiring users to install the configuration environment themselves.
Disclosure of Invention
The present application is directed to solving at least one of the problems in the prior art. Therefore, the application program packaging method, the electronic device and the storage medium are provided, different packaging functions are provided according to preset application types, and a user does not need to install a configuration environment.
The application program packaging method according to the embodiment of the first aspect of the application comprises the following steps:
configuring and generating an application project;
compiling the application engineering to generate resource package information;
acquiring a packaging configuration according to the application project and a preset application type;
and uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program.
According to the application program packaging method, at least the following beneficial effects are achieved:
configuring and generating an application project, and compiling the application project to generate resource package information; acquiring a packaging configuration according to the application project and a preset application type; and uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program. According to the embodiment of the application, the resource package information is generated by compiling the application project, a configuration environment does not need to be installed by a user, the packaging configuration is obtained through the application project and the preset application type, and different packaging functions are provided.
According to some embodiments of the present application, uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program includes:
generating a packaging configuration corresponding to the application type according to the application type, and obtaining the server corresponding to the packaging configuration;
sending the packaging configuration and the resource package information to the corresponding server, and obtaining a packaging script by the server according to the packaging configuration;
and acquiring an application program generated by the server, wherein the application program is generated by the server according to the packaging script in a packaging manner.
According to some embodiments of the application, the method further comprises:
acquiring a packaged log generated by the server;
and inquiring the packaging progress of the application program based on the packaging log.
According to some embodiments of the present application, the resource package information comprises: plug-in information;
correspondingly, the method further comprises the following steps:
and configuring a first pre-added plug-in into the plug-in information, and updating the packaging configuration, wherein the first plug-in is acquired from a preset plug-in library.
According to some embodiments of the application, the method further comprises:
acquiring identification information of a pre-deleted second plug-in;
judging whether the plug-in information has the second plug-in according to the identification information;
and if so, deleting the second plug-in from the plug-in information and updating the packaging configuration.
According to some embodiments of the application, the method further comprises:
acquiring a configuration address of the application program;
generating a configuration file according to the configuration address;
verifying the correctness of the configuration file to obtain a verification result;
if the verification result is correct, updating the resource package information according to the configuration file to obtain the updated resource package information;
and uploading the updated resource package information to a corresponding server according to the packaging configuration for packaging, and generating an updated application program.
According to some embodiments of the present application, the resource package information comprises page information;
correspondingly, the method further comprises the following steps:
and uploading the page information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program.
According to some embodiments of the application, the method further comprises:
updating the resource package information by recompiling and processing the application project to obtain updated resource package information;
and carrying out hot updating on the application program according to the updated resource package information.
An electronic device according to a second aspect embodiment of the present application includes:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions that are executed by the at least one processor, so that the at least one processor, when executing the instructions, implements the application packaging method according to any one of the embodiments of the first aspect of the present application.
According to the electronic equipment of the embodiment of the application, at least the following beneficial effects are achieved: configuring and generating an application project by executing the application program packaging method according to the embodiment of the first aspect, and compiling the application project to generate resource package information; acquiring a packaging configuration according to the application project and a preset application type; and uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program. According to the embodiment of the application, the resource package information is generated by compiling the application project, a configuration environment does not need to be installed by a user, the packaging configuration is obtained through the application project and the preset application type, and different packaging functions are provided.
A computer-readable storage medium according to an embodiment of the third aspect of the application, comprising:
the computer-readable storage medium stores computer-executable instructions for performing the method for packaging application programs according to the embodiment of the first aspect of the present application.
The computer-readable storage instructions according to the embodiments of the present application have at least the following advantages: configuring and generating an application project by executing the application program packaging method according to the embodiment of the first aspect, and compiling the application project to generate resource package information; acquiring a packaging configuration according to the application project and a preset application type; and uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program. According to the embodiment of the application, the resource package information is generated by compiling the application project, a configuration environment does not need to be installed by a user, the packaging configuration is obtained through the application project and the preset application type, and different packaging functions are provided.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The present application is further described with reference to the following figures and examples, in which:
FIG. 1 is a flow diagram of an application packaging method provided by some embodiments of the present application;
FIG. 2 is a flowchart of an application packaging method according to another embodiment of the present application;
FIG. 3 is a flowchart of an application packaging method according to another embodiment of the present application;
FIG. 4 is a flowchart of an application packaging method according to another embodiment of the present application;
FIG. 5 is a flowchart of an application packaging method according to another embodiment of the present application;
FIG. 6 is a flowchart of an application packaging method according to another embodiment of the present application;
FIG. 7 is an application flow diagram of project engineering creation provided by some embodiments of the present application;
FIG. 8 is a diagram illustrating an example of an application of the application packaging method according to some embodiments of the present application;
FIG. 9 is an application flow diagram of cross-platform packaging provided by some embodiments of the present application;
FIG. 10 is a flowchart of an application of plug-in management provided by some embodiments of the present application;
FIG. 11 is a flowchart of a first application of dynamic Debug provided by some embodiments of the present application;
fig. 12 is a flowchart of a second application of dynamic Debug provided by some embodiments of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In the description of the present application, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and larger, smaller, larger, etc. are understood as excluding the present number, and larger, smaller, inner, etc. are understood as including the present number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present application, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
At present, for projects with separated front and back ends, the front-end project engineering construction and the application program packaging environment construction are indispensable links in the project development process. Front-end engineering is not friendly to most developers, requiring users to install the configuration environment themselves.
Therefore, the application program packaging method, the electronic device and the storage medium are provided, and can configure and generate an application project, compile the application project and generate resource package information; acquiring a packaging configuration according to the application project and a preset application type; and uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program. According to the embodiment of the application, the resource package information is generated by compiling the application project, a configuration environment does not need to be installed by a user, the packaging configuration is obtained through the application project and the preset application type, and different packaging functions are provided.
In a first aspect, an embodiment of the present application provides an application packaging method.
First, the present application provides a packaging tool that completes a process from project building to project completion and packages an application. Firstly, the packaging tool of the embodiment of the application can execute different commands in a command line mode through parameters input by a user on a console. For example, a user may input a create project command, a package command, and a debug command to the console, and the packaging tool performs an operation corresponding to the command by receiving the parameters input by the user from the console.
Referring to fig. 1, fig. 1 is a flowchart of an application packaging method according to some embodiments of the present application, which specifically includes the steps of:
s100, configuring and generating an application project;
s200, compiling the application program to generate resource package information;
s300, obtaining packaging configuration according to the application project and a preset application type;
and S400, uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program.
In step S100, a user inputs a project creating command to the console, where the project creating command refers to a project that needs to be created locally, and the packaging tool collects and processes input parameters of the user based on a standard project template, and completes configuration of the project in a file reading and writing manner. The configuration of the project engineering according to different project requirements is expressed in a file reading and writing mode, and an application engineering is generated.
In step S200, the created project is compiled to generate resource package information, where the resource package information refers to page information and plug-in information required by the application. The page information refers to all resources of the application program for displaying the page, and the plug-in information is used for calling some native capabilities of the application program according to actual requirements so as to realize some functions of the application program. According to the embodiment of the application, the application program can be compiled by means of the front-end engineering tool webpack.
In step S300, a packaging configuration is obtained according to the application project and a preset application type, where a specific operating platform includes Android and ios. After the user selects the corresponding operation platform, the packaging tool generates the packaging configuration of the corresponding platform in the engineering catalog. The packaging configuration is obtained through application engineering and a preset application type, different packaging functions are provided, and packaging requirements of users of different operation platforms are met.
In step S400, the resource package information refers to page information and plug-in information required by the application. And uploading the page information and the plug-in information to a corresponding server for packaging the application program, generating a corresponding download link after packaging is finished, and downloading the corresponding application program by clicking the download link by a user. It should be noted that the page information here can be obtained from a page of the simulated application program.
In some embodiments, as shown in fig. 7, the application flow of project engineering creation is: firstly, a user can output an initialization engineering command, wherein a poros-devtools, namely a development tool, is utilized, the poros-devtools are used for debugging project engineering, then, gitlab verifies user information, wherein the gitlab is a project management and code hosting tool and is used for improving the efficiency of code writing, the poros-devtools acquire specific addresses downloaded from the gitlab to the project engineering and download the specific addresses to a temporary catalog of a packaging tool, and the user inputs engineering configuration according to specific problems and then creates the project.
In some embodiments, as shown in fig. 8, an application example of the application packaging method is: firstly, an h5 project is created through a packaging tool, namely, a webpage project is created, then an h5 application publishing package is generated through an h5 project, namely, packaging configuration, a native application is constructed to an h5 container (comprising ios and an Android platform), the h5 application publishing package is uploaded to Jenkins and combined with an h5 container to generate APP, namely, an application program, then the APP is uploaded to an upgrading service module, the APP is updated subsequently, a user can download corresponding APP according to a download link, the download link can be in a two-dimensional code form, the user can download the APP through scanning the two-dimensional code and update the APP. Jenkins is an open source software project, is a continuous integration tool developed based on Java, is used for monitoring continuous and repeated work, and aims to provide an open and easy-to-use software platform to enable continuous integration of software to be possible.
In some embodiments, as shown in fig. 2, step S400 specifically includes the steps of:
s410, generating a packaging configuration corresponding to the application type according to the application type, and obtaining a server corresponding to the packaging configuration;
s420, sending the packaging configuration and the resource package information to a corresponding server, and obtaining a packaging script by the server according to the packaging configuration;
and S430, acquiring the application program generated by the server, wherein the application program is generated by the server by packaging the resource package information according to the packaging script.
In step S410, the user selects different operation platforms, such as ios or Android, generates different application types after packaging, generates a packaging configuration corresponding to the application type according to the different application types, and obtains a corresponding server.
In step S420, the obtained packaging configuration and resource package information are sent to a corresponding server, and the server obtains a packaging script according to the packaging configuration.
In step S430, the server packages the resource package information according to the packaging script to generate a corresponding application program.
In some embodiments, as shown in fig. 3, step S400 further includes the following steps:
s440, acquiring a packaged log generated by the server;
s450, inquiring the packaging progress of the application program based on the packaging log.
In step S440, the server generates a packaging log in the packaging process, so as to record the packaged data in the packaging process.
In step S450, the packaging tool may query the packaging progress of the application program according to the packaging log, and may debug the code according to the packaging log.
In some embodiments, as shown in fig. 9, the application flow of cross-platform packaging is:
firstly, a developer inputs a packaging command, namely a user, APP resources are built by a terminal and uploaded to Jenkins, a packaging server executes a packaging script according to packaging configuration, a packaging log is output, the terminal can inquire the packaging progress in real time, for example, the packaging progress can be obtained in a packaging progress bar mode, in the packaging process, the packaged data can be continuously fed back to the terminal, a notification of packaging completion is received, a downloading link can be generated after packaging completion, and the user can click the downloading link to download and install an application program.
In some embodiments, the resource package information includes plug-in information, and the method for packaging an application program in this embodiment specifically further includes: and configuring the first pre-added plug-in into plug-in information, and updating the packaging configuration, wherein the first plug-in is obtained from a preset plug-in library. The preset plug-in library can be downloaded from the plug-in server, and the first plug-in is obtained from the preset plug-in library. The method specifically comprises the following steps: the packaging tool automatically downloads the plug-ins on the plug-in server according to the names of the plug-ins added by the user, deletes the local plug-in directory and modifies the corresponding packaging plug-in configuration.
In some embodiments, as shown in fig. 4, the method for packaging an application program mentioned in the embodiments of the present application specifically further includes the steps of:
s500, acquiring identification information of a pre-deleted second plug-in;
s600, judging whether the plug-in information has a second plug-in according to the identification information;
and S700, if the second plug-in exists, deleting the second plug-in from the plug-in information, and updating the packaging configuration.
In step S500, identification information of the second plugin to be deleted is obtained, for example, the identification information may be a type of the second plugin or a name of the second plugin, where the second plugin represents the plugin that the user needs to delete.
In step S600, determining whether a second plugin to be deleted exists in the plugin information according to the identification information;
in step S700, if there is, the second plug-in is deleted from the plug-in information, and then the packaging configuration is updated.
In some embodiments, if the second plug-in does not exist in the plug-in information, the second plug-in cannot be deleted from the plug-in information, and the user may be prompted that the plug-in does not exist and the deletion of the plug-in fails.
In some embodiments, as shown in FIG. 10, plug-ins that need to be added or deleted are selected, and if add-ins are selected, then the plug-ins that need to be added are written to the project engineering and the project configuration is written; if the plug-in is selected to be deleted, whether the plug-in which needs to be deleted exists needs to be judged, if yes, the plug-in and the configuration are deleted, and if not, prompt information is sent to prompt a user that the plug-in deletion fails.
In some embodiments, as shown in fig. 5, the method for packaging an application program mentioned in the embodiments of the present application specifically further includes the steps of:
s800, acquiring a configuration address of the application program;
s900, generating a configuration file according to the configuration address;
s1000, checking the correctness of the configuration file to obtain a checking result;
s1100, if the verification result is correct, updating the resource package information according to the configuration file to obtain updated resource package information;
and S1200, uploading the updated resource package information to a corresponding server according to the packaging configuration for packaging, and generating an updated application program.
In step S800, the configuration address of the application is obtained, where the configuration address refers to the h5 address, that is, the top page address of the application.
In step S900, a configuration file in the application page, that is, a page resource and a plug-in resource of the application, is obtained according to the home page address of the application.
In step S1000, the configuration file is checked to determine whether the configuration file is normal;
in step S1100, if the verified result is normal, updating the resource package information according to the configuration file to obtain updated resource package information; if the verified result is abnormal, the resource package cannot be updated, and the user can be prompted to fail to update.
In step S1200, the updated resource package information is uploaded to the corresponding server according to the packaging configuration and packaged to generate an updated application program, where dynamic code compilation and synchronous page update can be implemented by using the webpack front-end engineering tool.
In some embodiments, as shown in fig. 11, the Debug dynamic debugging, i.e. the computer troubleshooting process, is:
inputting an online h5 address, namely a home page address of the application program, checking the configuration file of the application program, if the checking is successful, indicating that the configuration file is normal, uploading to Jenkins and constructing plug-in resources according to the configuration, inquiring the construction progress in real time in the process of constructing the plug-in resources, if the packaging is finished, generating a download address, and downloading the application program according to the download address. If the configuration file is checked to be wrong, the configuration file is abnormal, and the application program cannot be packaged at this time. If the feedback obtained while inquiring the progress is that the packaging is not completed, a certain time, such as 2 seconds, may be waited and then the packaging progress is inquired again.
In some embodiments, the resource package information includes page information, and the method for packaging an application program in the embodiments of the present application specifically further includes: and uploading the page information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program. The embodiment of the application comprises an online mode and an offline mode, if the online mode is selected, the packaged resources do not contain page information, and the page information is uploaded to another server, such as an online service server, and is not directly embedded in a packaged application program. The h5 container is included in the application program, and when the application program is opened, the h5 container jumps to the online h5 application address, so that the packaged resources can be saved. If the offline mode is selected, the packaged resources simultaneously contain page information and plug-in information, and when the application program is opened, the page information can be directly obtained through the packaged resources without accessing a network. The online mode and the offline mode of the embodiment of the application can be selected according to actual requirements, and user experience is improved.
In some embodiments, as shown in fig. 6, the method for packaging an application program mentioned in the embodiments of the present application specifically further includes the steps of:
s1300, updating the resource package information through recompiling the application project to obtain updated resource package information;
and S1400, performing hot update on the application program according to the updated resource package information.
In step S1300, after the application program is downloaded, if the application program is to be updated, the Debug mode may be started, and at this time, the application program of the client may establish a socket connection with the local computer, and the change of the local engineering may be notified to the application program in real time, so as to achieve the effect of dynamic debugging. Specifically, the local engineering recompiles the code, and the recompiled resource package is updated to obtain updated resource package information.
In step S1400, the page is updated hot, that is, locally updated, according to the updated resource package information, in the embodiment of the present application, when the engineering code is changed, only part of information modified by the engineering code is updated in the client application, and one-time update is not needed, so that the update time is reduced, and the update efficiency of the application is improved.
In some embodiments, as shown in fig. 12, the Debug dynamic debugging, i.e. the computer troubleshooting process, may further be:
the user modifies the code in the local engineering, the webpack tool compiles and updates h5 application, and the webpack tool informs the webview component through socket, wherein the webview is a browser component built in android and ios, and can analyze DOM elements and display a control of an html page. Then applied by webpack hot update h5, i.e. locally updating the h5 application for the code of the user-modified part.
In the embodiment of the application, an application project is configured and generated, and the application project is compiled to generate resource package information; acquiring a packaging configuration according to the application project and a preset application type; and uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program. According to the embodiment of the application, the resource package information is generated by compiling the application project, a configuration environment does not need to be installed by a user, the packaging configuration is obtained through the application project and the preset application type, and different packaging functions are provided.
In a second aspect, an embodiment of the present application further provides an electronic device.
In some embodiments, an electronic device includes: at least one processor, and a memory communicatively coupled to the at least one processor; the storage stores instructions, and the instructions are executed by the at least one processor, so that when the at least one processor executes the instructions, the application packaging method in any embodiment of the application is implemented.
The processor and memory may be connected by a bus or other means.
The memory, which is a non-transitory computer readable storage medium, may be used to store a non-transitory software program and a non-transitory computer executable program, such as the application packaging method described in the embodiments of the present application. The processor implements the application packaging method described above by executing non-transitory software programs and instructions stored in the memory.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store and execute the above-described application packaging method. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The non-transitory software programs and instructions needed to implement the application packaging method described above are stored in a memory and, when executed by one or more processors, perform the application packaging method mentioned in the above-mentioned first aspect embodiment.
In a third aspect, embodiments of the present application further provide a computer-readable storage medium.
In some embodiments, a computer-readable storage medium stores computer-executable instructions for performing the application packaging method mentioned in the embodiments of the first aspect.
In some embodiments, the storage medium stores computer-executable instructions that, when executed by one or more control processors, for example, by a processor in the electronic device, cause the one or more processors to perform the application packaging method.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The embodiments of the present application have been described in detail with reference to the drawings, but the present application is not limited to the embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present application. Furthermore, the embodiments and features of the embodiments of the present application may be combined with each other without conflict.

Claims (10)

1. The application program packaging method is characterized by comprising the following steps:
configuring and generating an application project;
compiling the application engineering to generate resource package information;
acquiring a packaging configuration according to the application project and a preset application type;
and uploading the resource package information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program.
2. The method for packaging an application program according to claim 1, wherein the uploading the resource package information to a corresponding server according to the packaging configuration for packaging and generating a corresponding application program comprises:
generating a packaging configuration corresponding to the application type according to the application type, and obtaining the server corresponding to the packaging configuration;
sending the packaging configuration and the resource package information to the corresponding server, and obtaining a packaging script by the server according to the packaging configuration;
and acquiring an application program generated by the server, wherein the application program is generated by the server according to the packaging script in a packaging manner.
3. The application packaging method of claim 2, further comprising:
acquiring a packaged log generated by the server;
and inquiring the packaging progress of the application program based on the packaging log.
4. The method of claim 1, wherein the resource package information comprises: plug-in information;
correspondingly, the method further comprises the following steps:
and configuring a first pre-added plug-in into the plug-in information, and updating the packaging configuration, wherein the first plug-in is acquired from a preset plug-in library.
5. The application packaging method of claim 4, further comprising:
acquiring identification information of a pre-deleted second plug-in;
judging whether the plug-in information has the second plug-in according to the identification information;
and if so, deleting the second plug-in from the plug-in information and updating the packaging configuration.
6. The application packaging method of claim 1, further comprising:
acquiring a configuration address of the application program;
generating a configuration file according to the configuration address;
verifying the correctness of the configuration file to obtain a verification result;
if the verification result is correct, updating the resource package information according to the configuration file to obtain the updated resource package information;
and uploading the updated resource package information to a corresponding server according to the packaging configuration for packaging, and generating an updated application program.
7. The application packaging method of claim 1, wherein the resource package information comprises page information;
correspondingly, the method further comprises the following steps:
and uploading the page information to a corresponding server according to the packaging configuration for packaging, and generating a corresponding application program.
8. The application packaging method of claim 1, further comprising:
updating the resource package information by recompiling and processing the application project to obtain updated resource package information;
and carrying out hot updating on the application program according to the updated resource package information.
9. An electronic device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions for execution by the at least one processor to cause the at least one processor, when executing the instructions, to implement the application packaging method of any of claims 1 to 8.
10. Computer-readable storage media, characterized in that it stores computer-executable instructions for performing the application packaging method according to any of claims 1 to 8.
CN202110006254.4A 2021-01-05 2021-01-05 Application program packaging method, electronic device and storage medium Pending CN112685048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110006254.4A CN112685048A (en) 2021-01-05 2021-01-05 Application program packaging method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110006254.4A CN112685048A (en) 2021-01-05 2021-01-05 Application program packaging method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN112685048A true CN112685048A (en) 2021-04-20

Family

ID=75457144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110006254.4A Pending CN112685048A (en) 2021-01-05 2021-01-05 Application program packaging method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112685048A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885013A (en) * 2022-05-06 2022-08-09 北京达佳互联信息技术有限公司 Method and device for reporting package information, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294526A1 (en) * 2005-06-28 2006-12-28 Hambrick Geoffrey M Method and apparatus for generating service frameworks
US20120311526A1 (en) * 2011-06-02 2012-12-06 Recursion Software, Inc. System and method for pervasive software platform-based model driven architecture application generator
CN106155751A (en) * 2016-08-02 2016-11-23 传线网络科技(上海)有限公司 Application packing and issuing method and device
CN106569869A (en) * 2016-11-14 2017-04-19 平安科技(深圳)有限公司 Plug-in packaging method and device
CN108319460A (en) * 2018-01-24 2018-07-24 广东小天才科技有限公司 Generation method, device, electronic equipment and the storage medium of application program installation kit
CN109343871A (en) * 2018-12-07 2019-02-15 武汉掌游科技有限公司 Method, apparatus, equipment and the storage medium that application program is packaged
CN109783129A (en) * 2018-12-15 2019-05-21 深圳壹账通智能科技有限公司 Applied program processing method, device, computer equipment and storage medium
CN110780917A (en) * 2019-10-25 2020-02-11 深圳市同洲电子股份有限公司 Method and system for automatically packaging and releasing read Native application
CN110895471A (en) * 2018-09-12 2020-03-20 北京京东尚科信息技术有限公司 Installation package generation method, device, medium and electronic equipment
CN111309335A (en) * 2020-02-28 2020-06-19 腾讯音乐娱乐科技(深圳)有限公司 Plug-in application compiling method and device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294526A1 (en) * 2005-06-28 2006-12-28 Hambrick Geoffrey M Method and apparatus for generating service frameworks
US20120311526A1 (en) * 2011-06-02 2012-12-06 Recursion Software, Inc. System and method for pervasive software platform-based model driven architecture application generator
CN106155751A (en) * 2016-08-02 2016-11-23 传线网络科技(上海)有限公司 Application packing and issuing method and device
CN106569869A (en) * 2016-11-14 2017-04-19 平安科技(深圳)有限公司 Plug-in packaging method and device
CN108319460A (en) * 2018-01-24 2018-07-24 广东小天才科技有限公司 Generation method, device, electronic equipment and the storage medium of application program installation kit
CN110895471A (en) * 2018-09-12 2020-03-20 北京京东尚科信息技术有限公司 Installation package generation method, device, medium and electronic equipment
CN109343871A (en) * 2018-12-07 2019-02-15 武汉掌游科技有限公司 Method, apparatus, equipment and the storage medium that application program is packaged
CN109783129A (en) * 2018-12-15 2019-05-21 深圳壹账通智能科技有限公司 Applied program processing method, device, computer equipment and storage medium
CN110780917A (en) * 2019-10-25 2020-02-11 深圳市同洲电子股份有限公司 Method and system for automatically packaging and releasing read Native application
CN111309335A (en) * 2020-02-28 2020-06-19 腾讯音乐娱乐科技(深圳)有限公司 Plug-in application compiling method and device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885013A (en) * 2022-05-06 2022-08-09 北京达佳互联信息技术有限公司 Method and device for reporting package information, electronic equipment and storage medium
CN114885013B (en) * 2022-05-06 2024-03-12 北京达佳互联信息技术有限公司 Method and device for reporting package information, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10379846B1 (en) Systems and methods for real time version control for integrating updated web-based components with a native application
CN105657191B (en) Application increment upgrading method and system based on Android system
CN107704238B (en) Method and device for packaging items
CA2698066A1 (en) System and method for remotely compiling multi-platform native applications for mobile devices
US20070073724A1 (en) System and method for automatic or semi-automatic software integration
US20170262263A1 (en) Process and system for the generation of an operating program in the form of a mobile application that is capable of operating on a mobile device
CN112104501A (en) Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment
CN113064630A (en) Mobile terminal APP automatic packaging method and system, electronic device and storage medium
CN110780917A (en) Method and system for automatically packaging and releasing read Native application
CN110908670A (en) Method and device for automatically publishing service
CN112685048A (en) Application program packaging method, electronic device and storage medium
CN112965731B (en) Method, device, equipment and storage medium for Flutter hot update based on Tinker
CN111984520A (en) Buried point testing method, computer device and computer-readable storage medium
CN110221855B (en) Method for app and server collaborative updating and offline running
CN110647349B (en) Method for realizing continuous delivery of iOS APP
CN117407312A (en) Application testing method, device, computer equipment and storage medium
CN116643761A (en) Customized mirror image manufacturing and deploying method, device, terminal and medium
CN115658069A (en) Project packaging and online compiling method for release platform
CN115509560A (en) Engineering code packaging method and device and electronic equipment
CN110362320B (en) Command implementation method and device of application development platform
CN112445513A (en) Installation package processing method and device
CN112241286A (en) Resource package configuration method and device and storage medium
CN113849181A (en) Cross compiling tool chain construction method and device, electronic equipment and storage medium
CN112926011A (en) Station group creating method and system
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium

Legal Events

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