CN112463155A - Packaging method of application package, packaging terminal and computer readable storage medium - Google Patents

Packaging method of application package, packaging terminal and computer readable storage medium Download PDF

Info

Publication number
CN112463155A
CN112463155A CN202011334315.1A CN202011334315A CN112463155A CN 112463155 A CN112463155 A CN 112463155A CN 202011334315 A CN202011334315 A CN 202011334315A CN 112463155 A CN112463155 A CN 112463155A
Authority
CN
China
Prior art keywords
packaging
file
package
directory
files
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
CN202011334315.1A
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202011334315.1A priority Critical patent/CN112463155A/en
Publication of CN112463155A publication Critical patent/CN112463155A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Abstract

The invention discloses a packaging method of an application program package, which comprises the following steps: acquiring an outsource and an inner package, wherein files in the inner package are files of a project, and the files in the outsource are not the files of the project; when the outsourcing is detected to comprise a first file, adding directory information of the first file into a packaging directory in a packaging script to obtain a target directory, wherein the packaging directory is determined according to the directory information of each second file in the inner package, and the first file is a file required by the inner package; and controlling the packaging script to compile the first file and the second file based on the target directory to obtain an application program package. The invention also discloses a packaging terminal and a computer readable storage medium. The invention realizes the purpose of packaging the files available in the outsourcing into the application program package.

Description

Packaging method of application package, packaging terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for packaging an application package, a packaging terminal, and a computer-readable storage medium.
Background
When a developer develops an application program, such as an application program in a smart watch, it is inevitable that files need to be packaged into an application program package.
At present, when files in a project inner package are input into an application program package, the packages in an outer package cannot be packed into the application program package. Therefore, when a developer finds a file available for a project in outsourcing, the file cannot be typed into an application package, i.e., the outsourcing file available for the project cannot be packaged into the application package.
Disclosure of Invention
The invention mainly aims to provide a packaging method of an application program package, a packaging terminal and a computer readable storage medium, and aims to solve the problem that an available outsourced file in a project cannot be packaged into the application program package.
In order to achieve the above object, the present invention provides a method for packaging an application package, including the steps of:
acquiring an outsource and an inner package, wherein files in the inner package are files of a project, and the files in the outsource are not the files of the project;
when the outsourcing is detected to comprise a first file, adding directory information of the first file into a packaging directory in a packaging script to obtain a target directory, wherein the packaging directory is determined according to the directory information of each second file in the inner package, and the first file is a file required by the inner package;
and controlling the packaging script to compile the first file and the second file based on the target directory to obtain an application program package.
In an embodiment, after the step of acquiring the outsource and the inner package, the method further includes:
and when detecting that the outsourcing does not comprise the first file, controlling the packaging script to compile the second file based on the packaging directory to obtain an application program package.
In an embodiment, before the step of acquiring the outsource and the inner package, the method further includes:
acquiring a packaging instruction;
and when the packaging instruction comprises preset parameters, executing the step of acquiring the outsourcing and the inner packaging.
In an embodiment, after the step of receiving the packing instruction, the method further includes:
and when the packaging instruction does not comprise preset parameters, controlling the packaging script to compile the second file based on the packaging directory to obtain an application program package.
In an embodiment, the step of controlling the packaging script to compile the first file and the second file based on the target directory to obtain the application package includes:
acquiring a first file according to directory information of the first file, and adding the first file to the inner package, wherein the directory information at least comprises a path and a file name;
and controlling the packaging script to compile the files in the inner package added with the first file based on the target directory to obtain an application program package.
In an embodiment, after the step of controlling the packaging script to compile the file in the internal package to which the first file is added based on the target directory to obtain the application package, the method further includes:
deleting the first file in the inner package.
In an embodiment, after the step of controlling the packaging script to compile the first file and the second file based on the target directory to obtain the application package, the method further includes:
and deleting the directory information of the first file in the target directory to restore and obtain the packaging directory of the packaging program.
In an embodiment, after the step of acquiring the outsource and the inner package, the method further includes:
determining a service scene corresponding to the inner package;
determining whether a file required by the service scene is included in the outsourcing;
and when the outsourcing comprises the files required by the service scene, executing the step of adding the directory information of the first file into a packaging directory in a packaging script, wherein the outsourcing comprises the files required by the service scene, and judging that the outsourcing comprises the first file.
In order to achieve the above object, the present invention further provides a packaging terminal, which includes a memory, a processor, and a packaging program stored in the memory and executable on the processor, wherein the packaging program, when executed by the processor, implements the steps of the packaging method for the application package as described above.
To achieve the above object, the present invention also provides a computer-readable storage medium including a packaging program, which when executed by a processor implements the steps of the packaging method of the application package as described above.
According to the packaging method of the application package, the packaging terminal and the computer readable storage medium, the packaging terminal obtains outsourcing outside a project and an inner package inside the project, when the fact that the outsourcing contains a first file required by the project is detected, directory information of the file is added into a packaging directory of a packaging script to obtain a target directory, and finally the packaging script is controlled to compile the first file and a second file in the inner package based on the target directory to obtain the application package. The packaging terminal adds the catalog information of the outsourcing file required by the project into the packaging catalog of the packaging script, so that the purpose of packaging the file available in the outsourcing into the application program package is realized through the packaging script.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a packet terminal according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for packaging application packages according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a method for packaging application packages according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a method for packaging application packages according to the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a method for packaging an application package according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The main solution of the embodiment of the invention is as follows: acquiring an outsource and an inner package, wherein files in the inner package are files of a project, and the files in the outsource are not the files of the project; when the outsourcing is detected to comprise a first file, adding directory information of the first file into a packaging directory in a packaging script to obtain a target directory, wherein the packaging directory is determined according to the directory information of each second file in the inner package, and the first file is a file required by the inner package; and controlling the packaging script to compile the first file and the second file based on the target directory to obtain an application program package.
The packaging terminal adds the catalog information of the outsourcing file required by the project into the packaging catalog of the packaging script, so that the purpose of packaging the file available in the outsourcing into the application program package is realized through the packaging script.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware structure of a packet terminal according to an embodiment of the present invention.
As shown in fig. 1, the scheme of the embodiment of the present invention relates to a packaging terminal, which may include: a processor 101, e.g. a CPU, a communication bus 102, a memory 103. Wherein the communication bus 102 is used for enabling connection communication between these components. The memory 103 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 103 may alternatively be a storage device separate from the aforementioned processor 101. Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting of the packaging terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a packaged program may be included in the memory 103, which is a kind of computer storage medium.
In the apparatus shown in fig. 1, the processor 101 may be configured to call the packaging program stored in the memory 103 and perform the following operations:
acquiring an outsource and an inner package, wherein files in the inner package are files of a project, and the files in the outsource are not the files of the project;
when the outsourcing is detected to comprise a first file, adding directory information of the first file into a packaging directory in a packaging script to obtain a target directory, wherein the packaging directory is determined according to the directory information of each second file in the inner package, and the first file is a file required by the inner package;
and controlling the packaging script to compile the first file and the second file based on the target directory to obtain an application program package.
In one embodiment, the processor 101 may call a wrapper program stored in the memory 103, and further perform the following operations:
and when detecting that the outsourcing does not comprise the first file, controlling the packaging script to compile the second file based on the packaging directory to obtain an application program package.
In one embodiment, the processor 101 may call a wrapper program stored in the memory 103, and further perform the following operations:
acquiring a packaging instruction;
and when the packaging instruction comprises preset parameters, executing the step of acquiring the outsourcing and the inner packaging.
In one embodiment, the processor 101 may call a wrapper program stored in the memory 103, and further perform the following operations:
and when the packaging instruction does not comprise preset parameters, controlling the packaging script to compile the second file based on the packaging directory to obtain an application program package.
In one embodiment, the processor 101 may call a wrapper program stored in the memory 103, and further perform the following operations:
acquiring a first file according to directory information of the first file, and adding the first file to the inner package, wherein the directory information at least comprises a path and a file name;
and controlling the packaging script to compile the files in the inner package added with the first file based on the target directory to obtain an application program package.
In one embodiment, the processor 101 may call a wrapper program stored in the memory 103, and further perform the following operations:
deleting the first file in the inner package.
In one embodiment, the processor 101 may call a wrapper program stored in the memory 103, and further perform the following operations:
and deleting the directory information of the first file in the target directory to restore and obtain the packaging directory of the packaging program.
In one embodiment, the processor 101 may call a wrapper program stored in the memory 103, and further perform the following operations:
determining a service scene corresponding to the inner package;
determining whether a file required by the service scene is included in the outsourcing;
and when the outsourcing comprises the files required by the service scene, executing the step of adding the directory information of the first file into a packaging directory in a packaging script, wherein the outsourcing comprises the files required by the service scene, and judging that the outsourcing comprises the first file.
According to the scheme, the packaging terminal obtains outsources outside the project and inner packages inside the project, when the fact that the outsources contain the first file needed by the project is detected, the directory information of the file is added into the packaging directory of the packaging script to obtain the target directory, and finally the packaging script is controlled to compile the first file and the second file in the inner packages based on the target directory to obtain the application package. The packaging terminal adds the catalog information of the outsourcing file required by the project into the packaging catalog of the packaging script, so that the purpose of packaging the file available in the outsourcing into the application program package is realized through the packaging script.
Based on the hardware architecture of the packaging terminal, the embodiment of the packaging method of the application program package is provided.
Referring to fig. 2, fig. 2 is a first embodiment of the packaging method of the application package of the present invention, and the packaging method of the application package includes the following steps:
step S10, acquiring an outsource and an inner package, wherein the file in the inner package is the file of the project, and the file in the outsource is not the file of the project;
in this embodiment, the execution body is a packing terminal. And a plug-in is arranged in the packaging terminal, and the packaging terminal realizes the packaging of the application package through the plug-in. The application package may be an Android Package (APK), that is, the application package is an installation package of an application of an Android system. The plug-in may be a Gradle plug-in. Gradle is a project automation construction open source tool based on the concepts of Apache Ant and Apache Maven. The script constructed by Gradle uses a specific domain Language based on Groovy to declare the project setting, and abandons various complicated configurations based on XML (Extensible Markup Language). And the script constructed by the Gradle plug-in is the packaging script. That is, the packaging terminal is provided with a packaging script. The packaging script may be a Grovvy script. The application package can be an installation package of an application program on the wearable device, and the wearable device can be an intelligent watch, an intelligent bracelet and the like.
When a project is developed, the files within the project are configured to be included, and the files outside the project are configured to be outsourced. It will be appreciated that the files in the inner package are files of the project, while the files in the outer package are not files of the project. The internal package and the external package are stored in the storage area corresponding to the project, and when the packaging terminal needs to package, the internal package and the external package are acquired from the storage area.
It should be noted that the package script includes a package directory. After the inner package is built, the catalog information of all files in the inner package is recorded into the packaging catalog. The directory information includes at least a file name and a path of the file. It will be understood that the files entered by the packaging directory are files in the inner package, and the files outside the packaging directory are files in the outer package.
Step S20, when detecting that the outsource includes a first file, adding directory information of the first file into a packaging directory in a packaging script to obtain a target directory, wherein the packaging directory is determined according to directory information of each second file in the inner package, and the first file is a file required by the inner package;
the outsource is provided with a corresponding directory which is determined according to directory information of each file in the outsource. And (5) packaging the terminal. The packaging terminal packaging script traverses the directory to determine whether the first file is included in the outsource. The first file is the file needed by the inner package. Specifically, the packaging script detects whether there is a first file available in the outsource based on the project lifecycle function projectsactuated. When the outsourcing is determined to comprise the first file, the packaging terminal acquires the directory information of the first file from the directory, the directory information of the first file at least comprises a path and a file name of the first file, and the path is a storage path of the first file. And the packaging terminal adds the directory information of the first file to a packaging directory to obtain a target directory, the packaging directory is determined by the directory information of each second file in the inner package, and the target directory is determined by the directory information of the first file and the directory information of the second files.
Step S30, controlling the packaging script to compile the first file and the second file based on the target directory, so as to obtain an application package.
And after the target directory is obtained, the packaging terminal controls the packaging script to compile the first file and the second file based on the target directory to obtain the application program package.
Specifically, the packaging terminal extracts the first file in the outsourcing based on the directory information of the first file in the target directory, and then adds the first file to the inner package. And compiling the files in the inner package added with the first file by the packaging script through the target directory to obtain the application program package. The packaging script needs to compare the files in the inner package through the target directory, that is, the packaging script compiles all the files corresponding to the target directory.
In addition, the packaging terminal can directly acquire the first file through the directory information of the first file and then add the first file into the inner package, so that the packaging script compiles the file in the inner package added with the first file based on the target directory to obtain the application package.
In the technical scheme provided by this embodiment, the packaging terminal obtains an outsource outside the project and an inner package inside the project, and when detecting that the outsource contains a first file required by the project, adds directory information of the file to a packaging directory of the packaging script to obtain a target directory, and finally controls the packaging script to compile the first file and a second file in the inner package based on the target directory to obtain the application package. The packaging terminal adds the catalog information of the outsourcing file required by the project into the packaging catalog of the packaging script, so that the purpose of packaging the file available in the outsourcing into the application program package is realized through the packaging script.
Referring to fig. 3, fig. 3 is a second embodiment of the packaging method of the application package according to the present invention, and based on the first embodiment, after step S10, the method further includes:
and step S40, when detecting that the outsource does not include the first file, controlling the packaging script to compile the second file based on the packaging directory to obtain the application package.
In this embodiment, the packaging terminal traverses a directory corresponding to the outsource based on the packaging script to find whether the outsource includes a file required by the inner package. The files required for the internal package are understood to be the files required by the application corresponding to the application package.
If the outsourcing does not contain the files required by the inner package, the packaging terminal does not need to package the files in the outsourcing into the application program package. At this time, the packaging terminal controls the packaging script to compile each second file in the inner package based on the packaging directory, thereby obtaining the application package.
And after the packaging terminal obtains the application program package, the packaging terminal deletes the first file added to the internal package through the packaging script. That is, the packaging terminal can restore the files in the inner package after packaging is finished, so that the default packaging flow is not influenced. The packaging terminal can judge whether preset parameters exist in the life cycle function, if the preset parameters exist, it can be determined that the first file exists in the inner package in the packaging, and the packaging terminal deletes the first file in the inner package.
Further, after the application program is obtained, the packaging terminal deletes the directory information of the first file in the target directory, so that the packaging directory of the packaging program is restored, and the default packaging process is prevented from being influenced.
In the technical solution provided in this embodiment, when the packaging terminal obtains the inner package and the outer package, if it is detected that the outer package does not contain the file required by the inner package, the packaging script is controlled to compile each file in the inner package based on the packaging directory to obtain the application package, that is, when there is no available file in the outer package, there is no influence on the default packaging process.
Referring to fig. 4, fig. 4 is a third embodiment of the packaging method of the application package of the present invention, and based on the first or second embodiment, before the step S10, the method further includes:
step S50, acquiring a packaging instruction;
step S60, when the packaging instruction includes a preset parameter, executing the step of acquiring an outsource and an inner package, where a file in the inner package is a file of a project, and a file in the outsource is not a file of the project.
In this embodiment, a developer of a project may send a packaging instruction to the packaging terminal, and of course, an openers may operate at the packaging terminal to trigger the packaging instruction. If the files in the outsourcing need to be packaged into the application program package, a developer needs to input parameters in a packaging terminal, the packaging terminal generates a packaging instruction based on the parameters, and the parameters are defined as preset parameters. The preset parameter may be gradleew aDebug-PBUILD _ TYPE.
After the packaging terminal acquires the packaging instruction, if the packaging instruction contains the preset parameters, it can be determined that a developer has a requirement for driving the file in the outer package into the application program package, and at this time, the packaging terminal acquires the outer package and the inner package, namely, the step S10-the step S30 are executed.
If the packaging instruction does not include the preset parameters, the packaging script is controlled to compile the second files to obtain the application program package based on the packaging directory, namely, developers do not have the requirement of packaging the files in the outsourcing to the application program package, and the packaging terminal only needs to compile the second files in the inner package.
In the technical scheme provided by this embodiment, the packaging terminal acquires the packaging instruction, the packaging instruction includes the preset parameters, and the packaging terminal packages the available files in the outsourcing into the inner package.
Referring to fig. 5, fig. 5 is a fourth embodiment of the packaging method of the application package according to the present invention, and based on any one of the first to third embodiments, after step S10, the method further includes:
step S70, determining the corresponding business scene of the inner package;
step S80, determining whether the outsource includes the files required by the service scene;
step S90, when the outsource includes the file required by the service scene, executing the step of adding the directory information of the first file into the packaging directory in the packaging script, where the outsource includes the file required by the service scene, and determining that the outsource includes the first file.
In this embodiment, a corresponding application program is included, and the application program may include a plurality of service scenarios. For example, if the application is a game application, the service scenario includes a recharge scenario. It can be appreciated that the inner package corresponds to a plurality of business scenarios. The packaging terminal determines in the outsource whether the files required for the service scenario are included. For example, if the service scenario is a recharge scenario, it needs to determine whether the outsource includes a recharge-related file, for example, a recharge-verified file may be used as the first file. It can be understood that the file in the outsourcing is associated with the service scene, and if the service scene of the file management in the outsourcing is the service scene corresponding to the inner package, it can be determined that the outsourcing includes the first file. By putting the business scenario into the outsource, the maintenance cost of the inner package can be reduced.
And the packaging terminal determines whether the files required by the service scene are included in the outsourcing based on the service scene. If the outsource includes the files required by the service scene, it is determined that the outsource includes the first file, and the packaging terminal performs steps S20 and S30.
In the technical solution provided in this embodiment, the packaging terminal determines a service scene corresponding to the inner package, determines whether the outer package includes a file required by the service scene, and packages the file into the application package if the outer package includes the file required by the service scene.
Based on the above embodiment, the method for packaging an application package provided by the present invention is briefly described, specifically referring to the following steps:
step 1, putting resource files outside projects into a created outsource;
step 2, acquiring a packaging instruction, if the packaging instruction comprises a parameter which is gradleew aDebug-PBUILD _ TYPE, starting to construct a project, and performing a process of outsourcing and driving into an inner package;
step 3, detecting whether an available file exists in the outsourcing in a project life cycle function projectsactuated, specifically detecting whether an available file of an inner package exists in an outsourcing directory through a Grovvy script, if so, performing step 4, and if not, performing step 5;
step 4, traversing the outsourcing catalog by using the Grovvy script, adding the available files into the outsourcing and the internal package in the outsourcing, and adding the paths and file names of the available files into the packaging catalog of the Grovvy script;
step 5, compiling files in the packaging directory by adopting a development tool of the Grovvy script to obtain an application program package;
and 6, after the application program is obtained, judging whether preset parameters exist in the life cycle function buildFinished of the project, if so, using a Grovvy script in the inner package, and deleting the file copied in the outer package.
The invention has the beneficial effects that:
1. the problem that the development tool cannot drive the outsourcing content into the APK is solved;
2. optimizing the APK volume;
3. when the outsourcing is not involved, the default packaging flow is not influenced;
4. a special service scene is put into the outsourcing, so that the maintenance cost is reduced, and the control and the use of service functions are facilitated;
5. when the outsourcing is related, files of the inner package can be restored after the packaging operation is completed, and the default packaging flow is not affected.
6. Outsourcing and inner packaging files are separated, and the function of multiple channels can be realized.
The present invention also provides a packaging terminal, which includes a memory, a processor, and a packaging program stored in the memory and capable of running on the processor, and when the packaging program is executed by the processor, the packaging terminal implements the steps of the packaging method of the application package according to the above embodiment.
The present invention also provides a computer-readable storage medium including a packaging program, and the control program implements the steps of the packaging method of the packaging program package according to the above embodiment when executed by a processor.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. 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 (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A packaging method of an application package is characterized by comprising the following steps:
acquiring an outsource and an inner package, wherein files in the inner package are files of a project, and the files in the outsource are not the files of the project;
when the outsourcing is detected to comprise a first file, adding directory information of the first file into a packaging directory in a packaging script to obtain a target directory, wherein the packaging directory is determined according to the directory information of each second file in the inner package, and the first file is a file required by the inner package;
and controlling the packaging script to compile the first file and the second file based on the target directory to obtain an application program package.
2. The method for packaging application packages of claim 1, wherein the step of obtaining the outsourced package and the internal package is followed by the step of:
and when detecting that the outsourcing does not comprise the first file, controlling the packaging script to compile the second file based on the packaging directory to obtain an application program package.
3. The method of packaging application packages of claim 1, wherein said step of obtaining the outsourced and the included packages is preceded by the step of:
acquiring a packaging instruction;
and when the packaging instruction comprises preset parameters, executing the step of acquiring the outsourcing and the inner packaging.
4. The method for packaging an application package of claim 3, wherein said step of receiving a packaging instruction is followed by further comprising:
and when the packaging instruction does not comprise preset parameters, controlling the packaging script to compile the second file based on the packaging directory to obtain an application program package.
5. The method for packaging an application package according to claim 1, wherein the step of controlling the packaging script to compile the first file and the second file based on the target directory to obtain the application package comprises:
acquiring a first file according to directory information of the first file, and adding the first file to the inner package, wherein the directory information at least comprises a path and a file name;
and controlling the packaging script to compile the files in the inner package added with the first file based on the target directory to obtain an application program package.
6. The method for packaging an application package according to claim 5, wherein after the step of controlling the packaging script to compile the files in the internal package to which the first file is added based on the target directory to obtain the application package, the method further comprises:
deleting the first file in the inner package.
7. The method for packaging an application package according to any one of claims 1 to 6, wherein after the step of controlling the packaging script to compile the first file and the second file based on the target directory to obtain the application package, the method further comprises:
and deleting the directory information of the first file in the target directory to restore and obtain the packaging directory of the packaging program.
8. The method for packaging application packages of any of claims 1-6, wherein the step of obtaining the outsourced package and the internal package is followed by the step of:
determining a service scene corresponding to the inner package;
determining whether a file required by the service scene is included in the outsourcing;
and when the outsourcing comprises the files required by the service scene, executing the step of adding the directory information of the first file into a packaging directory in a packaging script, wherein the outsourcing comprises the files required by the service scene, and judging that the outsourcing comprises the first file.
9. A packaging terminal, characterized in that the packaging terminal comprises a memory, a processor and a packaging program stored in the memory and executable on the processor, the packaging program, when executed by the processor, implementing the steps of the packaging method of the application package according to any one of claims 1-8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a packaging program which, when executed by a processor, implements the steps of the packaging method of an application package according to any one of claims 1 to 8.
CN202011334315.1A 2020-11-24 2020-11-24 Packaging method of application package, packaging terminal and computer readable storage medium Pending CN112463155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011334315.1A CN112463155A (en) 2020-11-24 2020-11-24 Packaging method of application package, packaging terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011334315.1A CN112463155A (en) 2020-11-24 2020-11-24 Packaging method of application package, packaging terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112463155A true CN112463155A (en) 2021-03-09

Family

ID=74799096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011334315.1A Pending CN112463155A (en) 2020-11-24 2020-11-24 Packaging method of application package, packaging terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112463155A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020789A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Method and system for channel information adding of application program package and channel packaging server
CN106168901A (en) * 2016-06-23 2016-11-30 北京奇虎科技有限公司 Application program font customizing method and control method and related device
CN106502715A (en) * 2016-09-19 2017-03-15 乐视控股(北京)有限公司 A kind of application program collocation method and device by all kinds of means
WO2018086268A1 (en) * 2016-11-14 2018-05-17 平安科技(深圳)有限公司 Packaging method, device, and terminal employing plugin format, and storage medium
CN109857455A (en) * 2018-12-29 2019-06-07 深圳Tcl新技术有限公司 Installation kit packaging method, system, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020789A (en) * 2016-04-29 2016-10-12 乐视控股(北京)有限公司 Method and system for channel information adding of application program package and channel packaging server
CN106168901A (en) * 2016-06-23 2016-11-30 北京奇虎科技有限公司 Application program font customizing method and control method and related device
CN106502715A (en) * 2016-09-19 2017-03-15 乐视控股(北京)有限公司 A kind of application program collocation method and device by all kinds of means
WO2018086268A1 (en) * 2016-11-14 2018-05-17 平安科技(深圳)有限公司 Packaging method, device, and terminal employing plugin format, and storage medium
CN109857455A (en) * 2018-12-29 2019-06-07 深圳Tcl新技术有限公司 Installation kit packaging method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
US20190324772A1 (en) Method and device for processing smart contracts
CN107391104B (en) Client and reactive native code update dependence management method, device and system
CN108491216B (en) Method for installing and upgrading non-sensory application of Android system
CN108121594B (en) Process management method and device
US20130086625A1 (en) Enforcing security rules at runtime
CN110321131B (en) Service component packaging method, system and server
CN110874236B (en) Cross-platform application device, terminal and storage medium
CN111176722B (en) Method, device and storage medium for detecting file version of third party library
US20230036357A1 (en) Method and apparatus for authority control, computer device and storage medium
CN110659031A (en) Compiling method and device of application program, electronic equipment and storage medium
US20130185626A1 (en) METHOD, TERMINAL AND COMPUTER-READABLE RECORDING MEDIUM FOR COMPILING JAVASCRIPT INCLUDED IN WEB APPLICATION USING Ahead-Of-Time (AOT)
CN115658237A (en) Container application automatic deployment method, device, apparatus, equipment and medium
CN109857432A (en) A kind of hot update method and device of game application
CN110333872B (en) Application processing method, device, equipment and medium
CN108182070B (en) Method and device for customizing android system ROM and terminal equipment
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN111651169B (en) Block chain intelligent contract operation method and system based on web container
CN112256249A (en) Method and equipment for expanding Android system function and computer storage medium
CN112463155A (en) Packaging method of application package, packaging terminal and computer readable storage medium
CN108681491B (en) File decoupling method and system
CN110941443A (en) Method and device for modifying file name in SDK and electronic equipment
CN113641389B (en) Software upgrading method, device and equipment based on OpenCPU
CN111651179B (en) Earphone, program upgrading method thereof, control device and readable storage medium
CN113282363A (en) Method and device for optimizing hybrid APP
US20170161125A1 (en) Method and module in operating system for controlling hardware device

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