CN111611007A - Script-based application program installation package packaging method and device - Google Patents
Script-based application program installation package packaging method and device Download PDFInfo
- Publication number
- CN111611007A CN111611007A CN202010437195.1A CN202010437195A CN111611007A CN 111611007 A CN111611007 A CN 111611007A CN 202010437195 A CN202010437195 A CN 202010437195A CN 111611007 A CN111611007 A CN 111611007A
- Authority
- CN
- China
- Prior art keywords
- built
- channel
- resources
- installation package
- application program
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and equipment for packaging an application program installation package based on script, wherein the method comprises the following steps: generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource; decompressing a basic installation package of an application program to a preset file directory; aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources; and carrying out compressed signature processing on the files in the preset file directory to obtain an application program installation package for issuing through a channel to be issued. By adopting the mode, the automatic packaging of the application program installation package containing the built-in resources is realized through the custom script, the packaging time can be saved, the packaging complexity is reduced, and the packaging efficiency can be improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and equipment for packaging an application program installation package based on script realization.
Background
The built-in resource refers to a resource recommended to be displayed when the application program is started for the first time after the application program is downloaded and installed. In order to realize the functions, the built-in resources need to be packaged and compressed, the resource compression package is downloaded to the client along with the installation package of the application program, and after the installation and the starting of the application program are completed, the built-in resources in the resource compression package can be read and loaded for display. At present, the packaging work of the application program installation package containing built-in resources is completed in a manual mode.
However, the inventor finds out in the process of implementing the invention that: the operation flow of the manual packing process is very complicated and heavy, and along with the gradual increase of the number of distribution channels, the operation requirements of built-in resources recommended by different channels are different, namely, the built-in resources of the application program installation packages distributed by different channels are different, and the disadvantage of the manual packing mode in the aspect of packing efficiency is increasingly highlighted.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and apparatus for packaging a script-based implementation of an application installation package that overcomes or at least partially solves the above-mentioned problems.
According to one aspect of the invention, a packaging method for an application program installation package based on script implementation is provided, which comprises the following steps:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compressed signature processing on the files in the preset file directory to obtain an application program installation package for issuing through a channel to be issued.
According to yet another aspect of the present invention, there is provided an apparatus comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compressed signature processing on the files in the preset file directory to obtain an application program installation package for issuing through a channel to be issued.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compressed signature processing on the files in the preset file directory to obtain an application program installation package for issuing through a channel to be issued.
According to the method and the device for packaging the application program installation package based on the script, the method comprises the following steps: generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource; decompressing a basic installation package of an application program to a preset file directory; aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources; and carrying out compressed signature processing on the files in the preset file directory to obtain an application program installation package for issuing through a channel to be issued. By adopting the mode, the automatic packaging of the application program installation package containing the built-in resources is realized through the custom script, the packaging time can be saved, the packaging complexity is reduced, and the packaging efficiency can be improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a method for packaging an application installation package based on script implementation according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for packaging an application installation package based on script implementation according to another embodiment of the present invention;
fig. 3 shows a schematic structural diagram of an apparatus provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart illustrating a method for packaging an application installation package based on script implementation according to an embodiment of the present invention, where as shown in fig. 1, the method includes the following steps:
and step S110, generating a mapping table for recording the mapping relation between the channel to be issued and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource.
The channels refer to the distribution channels of the application programs, the operation requirements for recommending the built-in resources are different for different channels, and the recommended built-in resources are also different, that is, the resources built in the application program installation package are also different for different distribution channels. For example, for one application, there are a versioned application installation package and a market edition application installation package, and the resources in the two versions of application installation packages are different.
When the method is implemented specifically, the corresponding relation between the channels and the built-in resources is configured in advance, namely, which built-in resources correspond to each channel is configured, and the configuration data of the channels and the built-in resources are obtained. For example, the correspondence between channels and built-in resources may be recorded using files.
And according to the corresponding relation between the configured channel and the built-in resource, establishing a mapping relation between the channel to be published of the application program installation package and the built-in resource, recording the mapping relation in a mapping table, and in the subsequent process, packaging the application program installation package for each channel to be published according to the record in the mapping table.
And step S120, decompressing the basic installation package of the application program to a preset file directory.
The basic installation package of an application refers to an APK package that has not been signed after development is complete. And decompressing the basic installation package of the application program, and putting the basic installation package of the application program under a specified preset file directory.
Step S130, aiming at any channel to be published, reading the built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources.
And reading the built-in resources which have a mapping relation with the channel to be published aiming at any channel to be published recorded in the mapping table, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources which have a mapping relation with the channel to be published.
And in the step, the built-in resources which have a mapping relation with the channel to be published are read from the specified catalogue.
Step S140, the files in the preset file directory are subjected to compression signature processing, and an application program installation package for issuing through a channel to be issued is obtained.
And compressing and signing all resource files in the preset directory to obtain an application program installation package which is published through the channel to be published, wherein recommended built-in resources are built in the application program installation package.
Optionally, after the application installation package is installed, the built-in resource is displayed according to the opening instruction for the application, that is, after the application installation package is installed, when the user opens the application for the first time, the application program may first read the built-in resource for display. Further optionally, according to the opening instruction of the application, an option is provided for the user, the built-in resource is read for displaying according to the selection of the user, that is, when the user opens the application for the first time, the user selects whether to display the built-in resource. Of course, the scheme of the present invention is not limited to this, and those skilled in the art can set the scheme according to actual needs.
In addition, for different types of application programs, different resources may be built in, for example, book resources may be built in for a reading type application program, video resources may be built in for a video player, audio may be built in for a music player, and the like.
According to the method for packaging the application program installation package based on the script, which is provided by the embodiment of the invention, the mapping relation between the channel to be issued and the built-in resource of the application program installation package is established according to the configuration data of the channel and the built-in resource and is recorded in the mapping table; decompressing a basic installation package of an application program to a preset file directory; aiming at any channel to be published recorded in a mapping table, reading a built-in resource which has a mapping relation with the publishing channel, and replacing a resource specified in a basic installation package with the built-in resource; and finally, performing compression signature and processing on all resource files in the preset file directory to obtain the application program installation package for issuing through the channel to be issued. The mode of this embodiment is through the automatic application installation package that contains built-in resource of packing of self-defined script, can save the time of packing and reduce the complexity of packing, can promote packing efficiency.
Fig. 2 is a flowchart illustrating a method for packaging an application installation package based on script implementation according to another embodiment of the present invention, where the script hook is used to execute a task of a packaging operation, and in this embodiment, a built-in resource is a built-in book resource, and an application is a reading application, as shown in fig. 2, the method includes the following steps:
step S210, generating a mapping table for recording the mapping relation between the channel to be issued and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource.
The configuration data of the channels and the built-in resources represents the corresponding relationship between the channels and the built-in resources, namely, which built-in resources correspond to one channel. In the embodiment, the configuration data of the channel and the built-in resource are placed in the specified directory configured in the extended parameters of the build. And reading the configuration data of the channel and the built-in resource by the script, establishing a mapping relation between the channel to be issued and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource, and recording the mapping relation in a mapping table.
Alternatively, the configuration data of the channel and the built-in resource may be file data recorded with a channel identifier and a built-in resource identifier, for example, a table file recorded with a channel identifier and a book identifier, and a header of the table includes: the method comprises channel identification, book identification and identification for controlling whether to open built-in books by default, wherein when the channel identification corresponds to a plurality of book identifications, the book identifications are separated by separators. Then, the correspondence between the channel identification and the book identification can be determined through the table. The script reads the table file and generates a mapping table of the mapping relation between the channel identification to be issued and the book identification according to the corresponding relation between the channel identification and the book identification recorded in the table file. It should be noted that the table file recorded with the channel identifier and the book identifier is an entity table, such as an Excel table, and the mapping table is a data table executable by a code level, and the script mainly performs a packaging operation through the mapping table.
Optionally, after the form file recorded with the channel identifier and the book identifier is obtained, the recorded book identifier is checked and corrected, so as to avoid the problem that the book resource download fails due to incorrect book identifier. The form file recorded with the channel identifier and the book identifier may be provided by the operation-related personnel.
Step S220, decompressing the basic installation package of the application program to a preset file directory.
Step S230, for any channel to be published, reading book resources which are downloaded to a specified directory according to configuration data of the channel and the built-in resources in advance and have a mapping relation with the channel to be published, extracting the built-in book resources from the read book resources according to built-in book recommendation information, and replacing the resources under the specified path of the basic installation package of the application program with the built-in book resources.
In specific implementation, the built-in resource is downloaded in advance according to the configuration data of the channel and the built-in resource, for example, the built-in resource is downloaded to an assets directory, and the built-in resource is downloaded specifically through a code execution command. And if so, downloading the book resource corresponding to the book identification according to the book identification recorded in the table file.
In this embodiment, the resource downloaded according to the configuration data is a book resource, and a part of necessary resources are extracted from the book resource as built-in resources built in the application installation package, so that the size of the application installation package can be reduced. Specifically, the script extracts the built-in book resource from the read book resources according to the built-in book recommendation information, for example, the built-in book resource may include one or more of an EPUB file resource, book chapter information, and book cover pictures. In the prior art, when the built-in book resources are packed manually, all necessary files of the book resources need to be found manually, the built-in book resources are obtained through packing, the operation is quite complicated, the necessary resource files of the book resources are automatically extracted through the script, and the efficiency can be improved to a great extent.
Then, replacing the resources under the specified path of the basic installation package of the application program with built-in book resources, and simultaneously modifying the configuration table and the channel information of the basic installation package correspondingly.
Step S240, performing compression signature processing on the file in the preset file directory to obtain an application installation package for publishing through the channel to be published.
And compressing and signing all resource files in the preset file directory to obtain an application program installation package for issuing through a channel to be issued. Therefore, an installation package of the reading application containing the built-in book resource is obtained, and after the reading application is installed and a user starts the reading application for the first time, the user can jump to a reading page of the built-in book for the user to read.
In specific implementation, the script can sequentially read the mapping table and serially execute the packaging work, that is, after the application program installation package corresponding to one channel to be published is packaged, the next channel to be published is determined, and the application program installation package is packaged for the next channel to be published.
Optionally, when the application installation package for being published through the channel to be published is obtained, the application installation package is uploaded to the specified FTP directory, and when the application installation package is published, the application installation package is downloaded from the directory first and then published.
Therefore, in the packaging mode of the embodiment, the self-defined script automatically packages the data, automatically searches the book resources with the mapping relation for each channel to be published, extracts necessary resource files as built-in book resources, embeds the built-in book resources in the basic installation package of the application program, and obtains the application program installation package for publishing through the channel to be published by signature compression. According to the method, the application program installation package containing the built-in resources is automatically packaged through the script, and meanwhile, necessary recommended resources can be automatically extracted through the script to serve as the built-in book resources, so that the packaging time can be saved, the complex packaging degree is reduced, and the packaging efficiency is obviously improved.
The embodiment of the invention provides a nonvolatile computer storage medium, wherein at least one executable instruction is stored in the computer storage medium, and the computer executable instruction can execute the packaging method of the application program installation package based on the script realization in any method embodiment.
The executable instructions may be specifically configured to cause the processor to:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compression signature processing on the files in the preset file directory to obtain an application program installation package for issuing through the channel to be issued.
In an alternative, after the application installation package is installed, the built-in resource is exposed according to an opening instruction for the application.
In an alternative, the executable instructions cause the processor to:
and reading the built-in resources which are downloaded to the specified catalogue in advance according to the configuration data of the channel and the built-in resources.
In an alternative approach, the built-in resource comprises a built-in book resource; the executable instructions cause the processor to:
reading the book resources downloaded in advance according to the channel and the configuration data of the built-in resources, and extracting the built-in book resources from the read book resources according to the built-in book recommendation information.
In an alternative approach, the built-in book resource includes one or more of the following: EPUB file resources, book chapter information, book cover pictures.
In an alternative mode, the configuration data of the channel and the built-in resource are placed in a specified directory configured in the extended parameters of the build.
Fig. 3 shows a schematic structural diagram of an embodiment of the apparatus of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the apparatus.
As shown in fig. 3, the apparatus may include: a processor (processor)302, a communication interface 304, a memory 306, and a communication bus 308.
Wherein: the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308. A communication interface 304 for communicating with network elements of other devices, such as clients or other servers. The processor 302 is configured to execute the program 310, and may specifically execute relevant steps in the above-described embodiment of the packaging method for the script-based application installation package for the device.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an application specific Integrated circuit (asic), or one or more Integrated circuits configured to implement an embodiment of the present invention. The device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compressed signature processing on the files in the preset file directory to obtain an application program installation package for issuing through a channel to be issued.
In an alternative, after the application installation package is installed, the built-in resource is exposed according to an opening instruction for the application.
In an alternative manner, the program 310 causes the processor 302 to:
and reading the built-in resources which are downloaded to the specified catalogue in advance according to the configuration data of the channel and the built-in resources.
In an alternative approach, the built-in resource comprises a built-in book resource; the program 310 causes the processor 302 to:
reading the book resources downloaded in advance according to the channel and the configuration data of the built-in resources, and extracting the built-in book resources from the read book resources according to the built-in book recommendation information.
In an alternative approach, the built-in book resource includes one or more of the following: EPUB file resources, book chapter information, book cover pictures.
In an alternative mode, the configuration data of the channel and the built-in resource are placed in a specified directory configured in the extended parameters of the build.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The invention discloses: A1. a packaging method of an application program installation package based on script realization comprises the following steps:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compression signature processing on the files in the preset file directory to obtain an application program installation package for issuing through the channel to be issued.
A2. The method of a1, wherein, after the application installation package is installed, the built-in resource is exposed according to an open instruction for an application.
A3. The method according to a1 or a2, wherein the reading the built-in resource having a mapping relationship with the channel to be published further comprises:
and reading the built-in resources which are downloaded to the specified catalogue in advance according to the configuration data of the channel and the built-in resources.
A4. The method of any of a1-A3, wherein the built-in resource comprises a built-in book resource; the reading of the built-in resource having the mapping relation with the channel to be published further comprises:
reading the book resources downloaded in advance according to the channel and the configuration data of the built-in resources, and extracting the built-in book resources from the read book resources according to the built-in book recommendation information.
A5. The method of a4, wherein the built-in book resource includes one or more of: EPUB file resources, book chapter information, book cover pictures.
A6. The method according to any of a1-a5, wherein the configuration data of the channel and the built-in resource is placed under a specified directory configured in the extended parameters of the build.
B7. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compression signature processing on the files in the preset file directory to obtain an application program installation package for issuing through the channel to be issued.
B8. The device of B7, wherein, after the application installation package is installed, the built-in resource is exposed according to an open instruction for an application.
B9. The apparatus of B7 or B8, the executable instructions further cause the processor to:
and reading the built-in resources which are downloaded to the specified catalogue in advance according to the configuration data of the channel and the built-in resources.
B10. The device of any one of B7-B9, wherein the built-in resource comprises a built-in book resource; the executable instructions further cause the processor to:
reading the book resources downloaded in advance according to the channel and the configuration data of the built-in resources, and extracting the built-in book resources from the read book resources according to the built-in book recommendation information.
B11. The apparatus of B10, the built-in book resource comprising one or more of: EPUB file resources, book chapter information, book cover pictures.
B12. The device according to any one of B7-B11, wherein the configuration data of the channel and the built-in resource is placed under a specified directory configured in the extended parameters of the build.
C13. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compression signature processing on the files in the preset file directory to obtain an application program installation package for issuing through the channel to be issued.
C14. The computer storage medium of C13, wherein the built-in resource is exposed according to an open instruction for an application after the application installation package is installed.
C15. The computer storage medium of C13 or C14, the executable instructions further cause the processor to:
and reading the built-in resources which are downloaded to the specified catalogue in advance according to the configuration data of the channel and the built-in resources.
C16. The computer storage medium of any one of C13-C15, wherein the built-in resource comprises a built-in book resource; the executable instructions further cause the processor to:
reading the book resources downloaded in advance according to the channel and the configuration data of the built-in resources, and extracting the built-in book resources from the read book resources according to the built-in book recommendation information.
C17. The computer storage medium of C16, wherein the built-in book resources include one or more of: EPUB file resources, book chapter information, book cover pictures.
C18. The computer storage medium of any of C13-C17, wherein the configuration data for the channels and built-in resources is placed under specified directories configured in extended parameters of build.
Claims (10)
1. A packaging method of an application program installation package based on script realization comprises the following steps:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compression signature processing on the files in the preset file directory to obtain an application program installation package for issuing through the channel to be issued.
2. The method of claim 1, wherein the built-in resource is exposed according to an open instruction for an application after the application installation package is installed.
3. The method according to claim 1 or 2, wherein the reading the built-in resource having a mapping relation with the channel to be published further comprises:
and reading the built-in resources which are downloaded to the specified catalogue in advance according to the configuration data of the channel and the built-in resources.
4. The method of any of claims 1-3, wherein the built-in resource comprises a built-in book resource; the reading of the built-in resource having the mapping relation with the channel to be published further comprises:
reading the book resources downloaded in advance according to the channel and the configuration data of the built-in resources, and extracting the built-in book resources from the read book resources according to the built-in book recommendation information.
5. The method of claim 4, wherein the built-in book resources comprise one or more of: EPUB file resources, book chapter information, book cover pictures.
6. The method of any of claims 1-5, wherein the configuration data for the channel and built-in resources is placed under a specified directory configured in an extended parameter of the build.
7. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compression signature processing on the files in the preset file directory to obtain an application program installation package for issuing through the channel to be issued.
8. The apparatus of claim 7, wherein the built-in resource is exposed according to an open instruction for an application after the application installation package is installed.
9. The apparatus of claim 7 or 8, the executable instructions further causing the processor to:
and reading the built-in resources which are downloaded to the specified catalogue in advance according to the configuration data of the channel and the built-in resources.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
generating a mapping table for recording the mapping relation between the channel to be published and the built-in resource of the application program installation package according to the configuration data of the channel and the built-in resource;
decompressing a basic installation package of an application program to a preset file directory;
aiming at any channel to be published, reading built-in resources which have a mapping relation with the channel to be published, and replacing the resources under the specified path of the basic installation package of the application program with the built-in resources;
and carrying out compression signature processing on the files in the preset file directory to obtain an application program installation package for issuing through the channel to be issued.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010437195.1A CN111611007B (en) | 2020-05-21 | 2020-05-21 | Method and equipment for packaging application program installation package based on script realization |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010437195.1A CN111611007B (en) | 2020-05-21 | 2020-05-21 | Method and equipment for packaging application program installation package based on script realization |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111611007A true CN111611007A (en) | 2020-09-01 |
| CN111611007B CN111611007B (en) | 2023-08-29 |
Family
ID=72199613
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010437195.1A Active CN111611007B (en) | 2020-05-21 | 2020-05-21 | Method and equipment for packaging application program installation package based on script realization |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111611007B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113127054A (en) * | 2021-05-08 | 2021-07-16 | 上海益世界信息技术集团有限公司广州分公司 | File processing method and related device |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040225459A1 (en) * | 2003-02-14 | 2004-11-11 | Advantest Corporation | Method and structure to develop a test program for semiconductor integrated circuits |
| US20050022087A1 (en) * | 2003-02-14 | 2005-01-27 | Ankan Pramanick | Method and system for controlling interchangeable components in a modular test system |
| US20140298324A1 (en) * | 2012-12-25 | 2014-10-02 | Kaspersky Lab Zao | System and method for automated configuration of software installation package |
| CN104346184A (en) * | 2013-08-01 | 2015-02-11 | 中兴通讯股份有限公司 | Application packaging device and application packaging method |
| CN105068813A (en) * | 2015-08-19 | 2015-11-18 | 北京奇虎科技有限公司 | Method and device for providing android package (APK) modification service |
| CN105893008A (en) * | 2015-11-16 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Method and device for customizing multi-channel installation package |
| CN106201161A (en) * | 2014-09-23 | 2016-12-07 | 北京三星通信技术研究有限公司 | Display method and system for electronic equipment |
| CN106502715A (en) * | 2016-09-19 | 2017-03-15 | 乐视控股(北京)有限公司 | A kind of application program collocation method and device by all kinds of means |
| CN106897049A (en) * | 2015-12-21 | 2017-06-27 | 五八同城信息技术有限公司 | The packaging method and device of a kind of installation kit |
| CN107844301A (en) * | 2017-12-12 | 2018-03-27 | 苏州蜗牛数字科技股份有限公司 | A kind of Android application channel closes bag method and device |
| CN109933355A (en) * | 2017-12-18 | 2019-06-25 | 优酷网络技术(北京)有限公司 | Application program updating method and device |
-
2020
- 2020-05-21 CN CN202010437195.1A patent/CN111611007B/en active Active
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040225459A1 (en) * | 2003-02-14 | 2004-11-11 | Advantest Corporation | Method and structure to develop a test program for semiconductor integrated circuits |
| US20050022087A1 (en) * | 2003-02-14 | 2005-01-27 | Ankan Pramanick | Method and system for controlling interchangeable components in a modular test system |
| US20140298324A1 (en) * | 2012-12-25 | 2014-10-02 | Kaspersky Lab Zao | System and method for automated configuration of software installation package |
| CN104346184A (en) * | 2013-08-01 | 2015-02-11 | 中兴通讯股份有限公司 | Application packaging device and application packaging method |
| CN106201161A (en) * | 2014-09-23 | 2016-12-07 | 北京三星通信技术研究有限公司 | Display method and system for electronic equipment |
| CN105068813A (en) * | 2015-08-19 | 2015-11-18 | 北京奇虎科技有限公司 | Method and device for providing android package (APK) modification service |
| CN105893008A (en) * | 2015-11-16 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Method and device for customizing multi-channel installation package |
| CN106897049A (en) * | 2015-12-21 | 2017-06-27 | 五八同城信息技术有限公司 | The packaging method and device of a kind of installation kit |
| CN106502715A (en) * | 2016-09-19 | 2017-03-15 | 乐视控股(北京)有限公司 | A kind of application program collocation method and device by all kinds of means |
| CN107844301A (en) * | 2017-12-12 | 2018-03-27 | 苏州蜗牛数字科技股份有限公司 | A kind of Android application channel closes bag method and device |
| CN109933355A (en) * | 2017-12-18 | 2019-06-25 | 优酷网络技术(北京)有限公司 | Application program updating method and device |
Non-Patent Citations (2)
| Title |
|---|
| MARTINA LINDORFER等: "MARVIN: Efficient and Comprehensive Mobile App Classification through Static and Dynamic Analysis", 《2015 IEEE 39TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE》, pages 422 - 433 * |
| 黄浩华等: "静动态结合的恶意Android应用自动检测技术", 《信息安全学报》, pages 27 - 40 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113127054A (en) * | 2021-05-08 | 2021-07-16 | 上海益世界信息技术集团有限公司广州分公司 | File processing method and related device |
| CN113127054B (en) * | 2021-05-08 | 2022-05-27 | 上海益世界信息技术集团有限公司广州分公司 | File processing method and related device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111611007B (en) | 2023-08-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8762937B2 (en) | Model driven deployment of composite applications | |
| CN105389191B (en) | A kind of method for upgrading software based on LAN, device and system | |
| CN107528718B (en) | Method, device and system for acquiring resources | |
| CN110764791A (en) | Channel adaptation method and device of applet and electronic equipment | |
| CN109885324B (en) | Processing method, device, terminal and storage medium of application program installation package | |
| CN107291759B (en) | Method and device for processing browser page resources | |
| CN105490860A (en) | Method, device and system for deploying application program operation environment | |
| CN113885935A (en) | Resource packaging method and device, electronic equipment and computer readable storage medium | |
| CN111930382B (en) | Application page access method, device and equipment | |
| CN109933350B (en) | Method and device for embedding codes in application and electronic equipment | |
| CN107798064B (en) | Page processing method, electronic device and computer readable storage medium | |
| CN109840096A (en) | The installation method and device of operating system | |
| CN111984887A (en) | Web page component library loading method, device, storage medium and electronic device | |
| CN111352641B (en) | Automatic packing method, apparatus, computer device and storage medium by batch processing | |
| CN109688472A (en) | Upgrading TV system method, apparatus, equipment and storage medium | |
| CN103677979B (en) | Interactive method and device for application software and plugin | |
| CN111611007A (en) | Script-based application program installation package packaging method and device | |
| CN106649114A (en) | Method and device for positioning application program crash | |
| CN109766123B (en) | Application program packaging method and device | |
| CN107590064A (en) | A kind of application upgrade method of testing, device and system | |
| EP4394593B1 (en) | Skin changing method and apparatus for display interface, vehicle and storage medium | |
| CN113609073A (en) | Epub file format conversion method, electronic device and computer storage medium | |
| CN117707635A (en) | Method and system for realizing uboot support for guiding multi-system starting | |
| CN110989978A (en) | Page packaging method and device, electronic equipment and storage medium | |
| CN107844309B (en) | System data processing method and 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |