CN111580834A - Method and device for generating application installation package - Google Patents
Method and device for generating application installation package Download PDFInfo
- Publication number
- CN111580834A CN111580834A CN202010281157.1A CN202010281157A CN111580834A CN 111580834 A CN111580834 A CN 111580834A CN 202010281157 A CN202010281157 A CN 202010281157A CN 111580834 A CN111580834 A CN 111580834A
- Authority
- CN
- China
- Prior art keywords
- data
- resource
- application
- basic
- installation package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a method and a device for generating an application installation package, wherein at least one piece of application data of an application program and resource data matched with the application data are obtained, then the resource dependency of the resource data is determined, then a basic installation package and an extended installation package aiming at the application data are constructed in parallel according to the resource dependency and the resource data, and then the application installation package matched with the application program can be generated according to the basic installation package and the at least one extended installation package.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for generating an application installation package.
Background
The application installation package is a collection of all files when the application program is installed, and all files of the application program are released to a disk of the electronic equipment by running the application installation package on the electronic equipment (such as a mobile phone, a notebook computer and the like) so as to finish the loading of the application program on the electronic equipment.
With the continuous enrichment of the functions of the application program, developers need to integrate data, an operation framework and the like required by the application program at the beginning of developing the application program, so as to generate an installation package of the application program. However, as the function of the application program iterates, corresponding codes and resources need to be added continuously in the development and maintenance process, which easily causes that the memory of the application program installation package is larger and the building efficiency is low on one hand, and on the other hand, as the codes and resources are continuously increased, developers need to process redundant codes and resources, which causes that the time required for updating and maintaining the application program is longer and longer, and the maintenance efficiency of the application program is seriously affected. Therefore, a way for quickly constructing an application and facilitating the maintenance of developers during the subsequent maintenance process of the application is needed.
Disclosure of Invention
The embodiment of the invention provides a method for generating an application installation package, which aims to solve the problem of low development and maintenance efficiency of an application installation package in the prior art.
Correspondingly, the embodiment of the invention also provides a device for generating the application installation package, which is used for ensuring the realization and the application of the method.
In order to solve the above problem, an embodiment of the present invention discloses a method for generating an application installation package, including:
acquiring at least one application data of an application program and resource data matched with the application data;
determining resource dependencies for the resource data;
according to the resource dependency relationship and the resource data, a basic installation package and an extended installation package aiming at the application data are constructed in parallel;
and generating an application installation package matched with the application program according to the basic installation package and at least one expansion installation package.
Optionally, the application data includes basic application data and extended application data, and the parallel construction of the basic installation package and the extended installation package for the application data according to the resource dependency relationship and the resource data includes:
according to the resource dependency relationship, basic resource data matched with the basic application data and extended resource data matched with the extended application data are determined from the resource data;
constructing the basic installation package by adopting the basic resource data and the basic application data;
and constructing the extension installation package by adopting the extension resource data and the extension application data.
Optionally, the determining a resource dependency relationship for the resource data includes:
when the basic application data depends on first resource data, establishing a first dependency relationship between the basic application data and the first resource data;
when the basic application data and the extended application data depend on second resource data, establishing a second dependency relationship between the basic application data and the second resource data;
when at least one piece of expansion application data depends on third resource data, establishing a third dependency relationship between the basic application data and the third resource data;
and when the extended application data depends on fourth resource data, establishing a fourth dependency relationship between the extended application data and the fourth resource data.
Optionally, the determining, according to the resource dependency relationship, basic resource data matched with the basic application data and extended resource data matched with the extended application data from the resource data includes:
determining basic resource data matched with the basic application data by adopting the first dependency relationship, the second dependency relationship and the third dependency relationship;
and determining the extended resource data matched with the extended application data by adopting the fourth dependency relationship.
The embodiment of the invention also discloses a device for generating the application installation package, which comprises the following steps:
the data acquisition module is used for acquiring at least one application data of an application program and resource data matched with the application data;
a resource dependency relationship determination module for determining a resource dependency relationship for the resource data;
the installation package construction module is used for parallelly constructing a basic installation package and an extended installation package aiming at the application data according to the resource dependency relationship and the resource data;
and the application installation package generating module is used for generating an application installation package matched with the application program according to the basic installation package and at least one extended installation package.
Optionally, the application data includes basic application data and extended application data, and the installation package building module includes:
the resource data determining sub-module is used for determining basic resource data matched with the basic application data and expanded resource data matched with the expanded application data from the resource data according to the resource dependency relationship;
a basic installation package construction submodule, configured to construct the basic installation package by using the basic resource data and the basic application data;
and the expansion installation package construction submodule is used for constructing the expansion installation package by adopting the expansion resource data and the expansion application data.
Optionally, the resource dependency relationship determining module is specifically configured to:
when the basic application data depends on first resource data, establishing a first dependency relationship between the basic application data and the first resource data;
when the basic application data and the extended application data depend on second resource data, establishing a second dependency relationship between the basic application data and the second resource data;
when at least one piece of expansion application data depends on third resource data, establishing a third dependency relationship between the basic application data and the third resource data;
and when the extended application data depends on fourth resource data, establishing a fourth dependency relationship between the extended application data and the fourth resource data.
Optionally, the resource data determination sub-module is specifically configured to:
determining basic resource data matched with the basic application data by adopting the first dependency relationship, the second dependency relationship and the third dependency relationship;
and determining the extended resource data matched with the extended application data by adopting the fourth dependency relationship.
The embodiment of the invention also discloses an electronic device, which comprises:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform one or more methods as described above.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more of the methods described above.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, at least one application data of an application program and resource data matched with the application data are obtained, then the resource dependency relationship of the resource data is determined, then a basic installation package and an extended installation package aiming at the application data are constructed in parallel according to the resource dependency relationship and the resource data, and then the application installation package matched with the application program can be generated according to the basic installation package and the at least one extended installation package, so that the installation packages can be constructed in parallel for different application data in the construction process of the application installation package, the construction efficiency of the application installation package is effectively improved, the corresponding installation packages can be updated and maintained in the process of maintaining the application program, and the convenience of the maintenance of the installation package is improved.
Drawings
FIG. 1 is a flowchart illustrating steps of an embodiment of a method for generating an application installation package according to the present invention;
FIG. 2 is a schematic diagram of an application module splitting rule in an embodiment of the present invention;
FIG. 3 is a schematic diagram of an application module splitting rule in an embodiment of the present invention;
FIG. 4 is a schematic diagram of an application module splitting rule in an embodiment of the present invention;
FIG. 5 is a schematic diagram of APK generation in an embodiment of the present invention;
FIG. 6 is a diagram illustrating application installation package generation in an embodiment of the present invention;
fig. 7 is a block diagram of an embodiment of an apparatus for generating an application installation package according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The basic installation package may be an installation package of the application program, which includes basic resources and codes for running the application program, and if the user runs the application program after installing the application program, the application program may load the resources in the basic installation package to provide a basic application function of the application program.
The extended installation package may include extended resources and codes of a certain module in the application program, the application program may include a plurality of modules, for example, in a home page of the application program, a plurality of different application modules may be provided, and when a user enters a corresponding application module, the application program may load the extended installation package and provide a corresponding application service for the user. For the application installation package of the application program, at least one expansion installation package can be included.
When an Android program is developed, besides basic function blocks (Application items), one or more expansion function blocks (or dependent items) are generally provided, the expansion function blocks are generally similar to the Application items, and you can use the same task to construct and test the expansion function blocks, except that the Application items generate an APK (Android Application Package) file which can be installed and run on an Android device, and the expansion function blocks generate an aar file which can be used as a dependent library by the Android Application items (main items).
However, when each moudlet library publishes aar (android archive) files, the codes of each moudlet library need to be pre-compiled into Dex to be uploaded, the time for publishing aar is long, the resources of each moudlet library cannot be processed simultaneously, and the efficiency of application program construction is easily reduced. Therefore, one of the core concepts of the embodiment of the present invention is to construct different installation packages for different application data in the process of application program development, so as to effectively improve the construction efficiency of the application installation package, and then perform a full installation package when the application program is released, that is, combine all installation packages into the application installation package of the application program to be released, thereby ensuring the integrity of the application program data, and when the application needs to be updated, the installation package of the corresponding module can be updated, so as to improve the convenience of installation package maintenance.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for generating an application installation package according to the present invention is shown, which may specifically include the following steps:
in the embodiment of the present invention, the application data may be application module data of an application program, different application modules may provide different application functions, and different application modules may correspond to different resource data or may correspond to the same resource data. The resource data may be a library (library), which includes an ordered set of various brick programs, subroutines, files, and corresponding information that can be used, and the application data depends on the code and resources in the library during the running process of the application program. The application data may include basic application data and extended application data, where the basic application data may be a basic application function that can be provided by the application program, and the extended application data may be an extended application function that is provided by the application program.
in a specific implementation, since different application modules may correspond to different resource data, or may correspond to the same resource data, it is necessary to determine resource data on which each application data in an application program depends, so as to determine a resource dependency relationship corresponding to the resource data in the application program, and guide the construction of the application module through the resource dependency relationship.
It should be noted that the resource dependency relationship may be a corresponding relationship between application data and resource data in the application program, for example, the application data one depends on the resource data (i), the application data two depends on the resource data (ii), the application data three depends on the resource data (i) or the resource data (ii), and the like.
In an optional embodiment of the present invention, when the base application data depends on the first resource data, a first dependency relationship between the base application data and the first resource data is established; when the basic application data and the extended application data depend on the second resource data, establishing a second dependency relationship between the basic application data and the second resource data; when the at least one expansion application data depends on the third resource data, establishing a third dependency relationship between the basic application data and the third resource data; when the extended application data depends on the fourth resource data, a fourth dependency relationship between the extended application data and the fourth resource data is established, so that the resource dependency relationship can be determined according to the dependency relationship between the application data and the resource data.
In an example, as shown in fig. 2, fig. 3, and fig. 4, schematic diagrams of an application module splitting rule in an embodiment of the present invention are shown, where app represents basic application data, Dynamic-feature N represents extended application data, library represents library on which the extended application data depends, and Common represents a Common resource library on which the basic application data depends. In FIG. 2, the resource dependency may be that App depends on Common Library, and that Dynamic-Feature A depends on Library; in fig. 3, the resource dependency relationship may be that App depends on a Common Library, Dynamic-Feature a depends on a Library, and Dynamic-Feature B depends on a Library, however, the Feature module cannot depend on the same Library together, and the Library needs to be added to App to obtain the resource dependency relationship shown in fig. 4, that is, App depends on a Common Library and a Library.
Specifically, a library directly or indirectly dependent on App library can be placed in the basic APK, a library directly or indirectly dependent on featuremedle without being dependent on App can be placed in the extended application APK, and a same library cannot be simultaneously dependent between featuremedles and needs to be placed in the dependence of App library.
103, according to the resource dependency relationship and the resource data, a basic installation package and an extended installation package for the application data are constructed in parallel;
after the resource dependency relationship is determined, the construction of the application module can be guided through the resource dependency relationship, so that the installation package corresponding to the application data is constructed in parallel or constructed independently according to the resource dependency relationship and the resource data, the construction efficiency of the application installation package is effectively improved, the corresponding installation package can be updated when the application needs to be updated, and the convenience of maintenance of the installation package is improved.
In a specific implementation, the installation package may include a basic installation package and an extended installation package, where the basic installation package may be a basic APK, the extended installation package may be an extended application APK, the basic APK may provide a basic application function, and the extended application APK may provide a corresponding extended application function.
In an alternative embodiment of the present invention, step 103 may comprise the steps of: according to the resource dependency relationship, basic resource data matched with the basic application data and expanded resource data matched with the expanded application data are determined from the resource data; constructing a basic installation package by adopting basic resource data and basic application data; and establishing an extended installation package by adopting the extended resource data and the extended application data, so that the resource data corresponding to each application data can be quickly determined through the resource dependency relationship, and the efficiency of establishing the application program is further accelerated.
In a specific implementation, the first dependency relationship, the second dependency relationship, and the third dependency relationship may be adopted to determine the basic resource data matched with the basic application data; and determining extended resource data matched with the extended application data by adopting the fourth dependency relationship, so as to construct a basic installation package by adopting the basic resource data and the basic application data, and construct an extended installation package by adopting the extended resource data and the extended application data.
In an example, the application data may include data such as codes and resources, and for the resource dependency relationship shown in fig. 2, a basic APK may be constructed by using the codes and resources of the App Library and the codes and resources of the Common Library, and an extended application APK may be constructed by using the codes and resources of the Dynamic-Feature a and the codes and resources of the Library.
In another example, for the resource dependency relationship shown in fig. 4, a basic APK may be constructed using the codes and resources of App Library and the codes and resources of Library, and the codes and resources of Common Library, and an application APK may be constructed using the codes and resources of Dynamic-Feature a, and an extended application APK may be constructed using the codes and resources of Dynamic-Feature B.
And 104, generating an application installation package according to the basic installation package and at least one expansion installation package.
After the basic installation package and the at least one extended installation package are constructed, each installation package can be used as a sub-installation package of the application program, all the sub-installation packages are uniformly constructed into an integral application installation package and are issued, and therefore a user can download the application installation package and install the application installation package in a user terminal.
As an example, an application program can be developed based on an Android APP Bundle module splitting rule, and for different application data, APKs can be constructed in parallel or individually constructed, so that different application modules of an application program can be developed in a multithread manner, the efficiency of application program development is effectively improved, when resources or codes of a certain application module need to be maintained, the corresponding application module can be maintained individually, and the convenience of installation package maintenance is improved. After the construction of each APK is completed, the APKs corresponding to each application module can be uniformly constructed into an integral APK and issued, and the basic application data can depend on the resource data corresponding to each extended application module.
In the embodiment of the invention, at least one application data of an application program and resource data matched with the application data are obtained, then the resource dependency relationship of the resource data is determined, then a basic installation package and an extended installation package aiming at the application data are constructed in parallel according to the resource dependency relationship and the resource data, and then the application installation package matched with the application program can be generated according to the basic installation package and the at least one extended installation package, so that the installation packages can be constructed in parallel for different application data in the construction process of the application installation package, the construction efficiency of the application installation package is effectively improved, the corresponding installation packages can be updated and maintained in the process of maintaining the application program, and the convenience of the maintenance of the installation package is improved.
In order to enable those skilled in the art to better understand the embodiments of the present application, the following description is given by way of an example:
as shown in fig. 5, which shows a schematic diagram of APK generation in the embodiment of the present invention, an application may include application function modules such as client application, housefall Feature, ajkhousfall Feature, and card Feature, where a resource dependency relationship may include: the client application depends on Base Library, HouseFakeFeatur depends on HouseLibrary, AJKhouseFakeFeatur depends on Housejk Library and 58aujukeLibrary, Carfake Featur depends on Car Library, etc. The client application and the BaseLibrary can be adopted to construct a Base APK, the HouseFake Feature and the HouseLibrary are adopted to construct a HouseAPK, the AJKUSefe Feature, the Housejk Library and the 58aujuke Library are adopted to construct an Anjuke APK, and the Carfake Feature and the CarLibrary are adopted to construct a Care APK, so that the APKs corresponding to the application function modules can be constructed in parallel or separately, different application modules of the multi-thread development application program are realized, the efficiency of the development of the application program is effectively improved, and when resources or codes of a certain application module need to be maintained, the corresponding application module can be maintained separately, and the convenience of maintenance of an installation package is improved.
As shown in fig. 6, which illustrates a schematic diagram of application installation package generation in the embodiment of the present invention, when the APKs are constructed, the APKs corresponding to the application modules may be uniformly constructed into an overall APK, and then released, where the basic application data may depend on the resource data corresponding to the expansion application modules.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 7, a block diagram of an embodiment of an application installation package generation apparatus according to the present invention is shown, and specifically includes the following modules:
a data obtaining module 701, configured to obtain at least one application data of an application program, and resource data matched with the application data;
a resource dependency determination module 702, configured to determine a resource dependency for the resource data;
an installation package constructing module 703, configured to construct a basic installation package and an extended installation package for the application data in parallel according to the resource dependency relationship and the resource data;
an application installation package generating module 704, configured to generate an application installation package matched with the application program according to the basic installation package and the at least one extended installation package.
In an optional embodiment of the present invention, the application data includes basic application data and extended application data, and the installation package building module 703 includes:
the resource data determining sub-module is used for determining basic resource data matched with the basic application data and expanded resource data matched with the expanded application data from the resource data according to the resource dependency relationship;
a basic installation package construction submodule, configured to construct the basic installation package by using the basic resource data and the basic application data;
and the expansion installation package construction submodule is used for constructing the expansion installation package by adopting the expansion resource data and the expansion application data.
In an optional embodiment of the present invention, the resource dependency relationship determining module 702 is specifically configured to:
when the basic application data depends on first resource data, establishing a first dependency relationship between the basic application data and the first resource data;
when the basic application data and the extended application data depend on second resource data, establishing a second dependency relationship between the basic application data and the second resource data;
when at least one piece of expansion application data depends on third resource data, establishing a third dependency relationship between the basic application data and the third resource data;
and when the extended application data depends on fourth resource data, establishing a fourth dependency relationship between the extended application data and the fourth resource data.
In an optional embodiment of the present invention, the resource data determining sub-module is specifically configured to:
determining basic resource data matched with the basic application data by adopting the first dependency relationship, the second dependency relationship and the third dependency relationship;
and determining the extended resource data matched with the extended application data by adopting the fourth dependency relationship.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform methods as described in embodiments of the invention.
Embodiments of the invention also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods described in embodiments of the invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. 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 terminal that comprises the element.
The method for generating the application installation package and the device for generating the application installation package provided by the invention are described in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A method for generating an application installation package is characterized by comprising the following steps:
acquiring at least one application data of an application program and resource data matched with the application data;
determining resource dependencies for the resource data;
according to the resource dependency relationship and the resource data, a basic installation package and an extended installation package aiming at the application data are constructed in parallel;
and generating an application installation package matched with the application program according to the basic installation package and at least one expansion installation package.
2. The method according to claim 1, wherein the application data includes basic application data and extended application data, and the parallel construction of the basic installation package and the extended installation package for the application data according to the resource dependency relationship and the resource data includes:
according to the resource dependency relationship, basic resource data matched with the basic application data and extended resource data matched with the extended application data are determined from the resource data;
constructing the basic installation package by adopting the basic resource data and the basic application data;
and constructing the extension installation package by adopting the extension resource data and the extension application data.
3. The method of claim 2, wherein the determining resource dependencies for the resource data comprises:
when the basic application data depends on first resource data, establishing a first dependency relationship between the basic application data and the first resource data;
when the basic application data and the extended application data depend on second resource data, establishing a second dependency relationship between the basic application data and the second resource data;
when at least one piece of expansion application data depends on third resource data, establishing a third dependency relationship between the basic application data and the third resource data;
and when the extended application data depends on fourth resource data, establishing a fourth dependency relationship between the extended application data and the fourth resource data.
4. The method according to claim 3, wherein the determining, from the resource data according to the resource dependency relationship, base resource data matching the base application data and extension resource data matching the extension application data comprises:
determining basic resource data matched with the basic application data by adopting the first dependency relationship, the second dependency relationship and the third dependency relationship;
and determining the extended resource data matched with the extended application data by adopting the fourth dependency relationship.
5. An apparatus for generating an application installation package, comprising:
the data acquisition module is used for acquiring at least one application data of an application program and resource data matched with the application data;
a resource dependency relationship determination module for determining a resource dependency relationship for the resource data;
the installation package construction module is used for parallelly constructing a basic installation package and an extended installation package aiming at the application data according to the resource dependency relationship and the resource data;
and the application installation package generating module is used for generating an application installation package matched with the application program according to the basic installation package and at least one extended installation package.
6. The apparatus of claim 5, wherein the application data comprises basic application data and extension application data, and wherein the installation package building module comprises:
the resource data determining sub-module is used for determining basic resource data matched with the basic application data and expanded resource data matched with the expanded application data from the resource data according to the resource dependency relationship;
a basic installation package construction submodule, configured to construct the basic installation package by using the basic resource data and the basic application data;
and the expansion installation package construction submodule is used for constructing the expansion installation package by adopting the expansion resource data and the expansion application data.
7. The apparatus of claim 6, wherein the resource dependency determination module is specifically configured to:
when the basic application data depends on first resource data, establishing a first dependency relationship between the basic application data and the first resource data;
when the basic application data and the extended application data depend on second resource data, establishing a second dependency relationship between the basic application data and the second resource data;
when at least one piece of expansion application data depends on third resource data, establishing a third dependency relationship between the basic application data and the third resource data;
and when the extended application data depends on fourth resource data, establishing a fourth dependency relationship between the extended application data and the fourth resource data.
8. The apparatus of claim 7, wherein the resource data determination submodule is specifically configured to:
determining basic resource data matched with the basic application data by adopting the first dependency relationship, the second dependency relationship and the third dependency relationship;
and determining the extended resource data matched with the extended application data by adopting the fourth dependency relationship.
9. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the method of one or more of claims 1-4.
10. One or more machine readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method of one or more of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010281157.1A CN111580834B (en) | 2020-04-10 | 2020-04-10 | Method and device for generating application installation package |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010281157.1A CN111580834B (en) | 2020-04-10 | 2020-04-10 | Method and device for generating application installation package |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111580834A true CN111580834A (en) | 2020-08-25 |
CN111580834B CN111580834B (en) | 2021-10-29 |
Family
ID=72126286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010281157.1A Active CN111580834B (en) | 2020-04-10 | 2020-04-10 | Method and device for generating application installation package |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111580834B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314351A (en) * | 2011-09-29 | 2012-01-11 | 用友软件股份有限公司 | Installation program generating device and installation program generating method |
CN105446757A (en) * | 2014-08-21 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Data packet processing method and device |
CN106569869A (en) * | 2016-11-14 | 2017-04-19 | 平安科技(深圳)有限公司 | Plug-in packaging method and device |
WO2017124025A1 (en) * | 2016-01-15 | 2017-07-20 | Google Inc. | Identifiers across application instances |
US20180046446A1 (en) * | 2016-08-10 | 2018-02-15 | Jisto Inc. | Efficient workload deployment using containers and unikernels |
CN107817978A (en) * | 2017-09-28 | 2018-03-20 | 聚好看科技股份有限公司 | The generation method and device of a kind of executable file |
CN108287722A (en) * | 2018-01-09 | 2018-07-17 | 北京大学 | A kind of decoupling method of Android application |
CN108519874A (en) * | 2017-02-27 | 2018-09-11 | 腾讯科技(深圳)有限公司 | The generation method and device of Python project packets |
CN108595180A (en) * | 2018-03-14 | 2018-09-28 | 广东能龙教育股份有限公司 | Micro-service automatic deployment method based on dependency chain |
CN110442327A (en) * | 2018-05-03 | 2019-11-12 | 阿里巴巴集团控股有限公司 | A kind of application builds method, apparatus, server |
CN110554867A (en) * | 2018-05-30 | 2019-12-10 | 阿里巴巴集团控股有限公司 | Application processing method and device |
CN110704096A (en) * | 2019-09-12 | 2020-01-17 | 北京达佳互联信息技术有限公司 | Packaging method and device of front-end item, storage medium and electronic equipment |
-
2020
- 2020-04-10 CN CN202010281157.1A patent/CN111580834B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102314351A (en) * | 2011-09-29 | 2012-01-11 | 用友软件股份有限公司 | Installation program generating device and installation program generating method |
CN105446757A (en) * | 2014-08-21 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Data packet processing method and device |
WO2017124025A1 (en) * | 2016-01-15 | 2017-07-20 | Google Inc. | Identifiers across application instances |
US20180046446A1 (en) * | 2016-08-10 | 2018-02-15 | Jisto Inc. | Efficient workload deployment using containers and unikernels |
CN106569869A (en) * | 2016-11-14 | 2017-04-19 | 平安科技(深圳)有限公司 | Plug-in packaging method and device |
CN108519874A (en) * | 2017-02-27 | 2018-09-11 | 腾讯科技(深圳)有限公司 | The generation method and device of Python project packets |
CN107817978A (en) * | 2017-09-28 | 2018-03-20 | 聚好看科技股份有限公司 | The generation method and device of a kind of executable file |
CN108287722A (en) * | 2018-01-09 | 2018-07-17 | 北京大学 | A kind of decoupling method of Android application |
CN108595180A (en) * | 2018-03-14 | 2018-09-28 | 广东能龙教育股份有限公司 | Micro-service automatic deployment method based on dependency chain |
CN110442327A (en) * | 2018-05-03 | 2019-11-12 | 阿里巴巴集团控股有限公司 | A kind of application builds method, apparatus, server |
CN110554867A (en) * | 2018-05-30 | 2019-12-10 | 阿里巴巴集团控股有限公司 | Application processing method and device |
CN110704096A (en) * | 2019-09-12 | 2020-01-17 | 北京达佳互联信息技术有限公司 | Packaging method and device of front-end item, storage medium and electronic equipment |
Non-Patent Citations (3)
Title |
---|
ALEXANDRE DECAN: "When GitHub Meets CRAN: An Analysis of Inter-Repository Package Dependency Problems", 《2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER)》 * |
江梦涛等: "Linux内核中编译选项、文件以及函数之间依赖关系的解析方法", 《计算机科学 软件工程与数据库技术》 * |
赵慧: "师生交互软件跨平台研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN111580834B (en) | 2021-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109445827B (en) | Game updating method and device, electronic equipment and storage medium | |
CN106547527B (en) | JavaScript file construction method and device | |
CN109344619B (en) | Hot repair method and device for application program | |
CN111381825B (en) | Method and device for generating small program | |
JPWO2016016975A1 (en) | Development support system | |
JP2015153191A (en) | Method for testing optimized binary module, computer for testing optimized binary module, and computer program therefor | |
CN108429787B (en) | Container deployment method and device, computer storage medium and terminal | |
CN106055375B (en) | Application program installation method and device | |
US9396095B2 (en) | Software verification | |
CN105446874A (en) | Method and device for detecting resource configuration file | |
US9116771B2 (en) | Merging weighted recommendations for installation and configuration of software products | |
CN110597611B (en) | Task scheduling method and device | |
CN111459465A (en) | Method and device for generating Flutter engineering file | |
CN111988429A (en) | Algorithm scheduling method and system | |
CN108572892B (en) | PowerPC multi-core processor-based offline test method and device | |
CN111596951A (en) | Method and device for configuring engineering file | |
US20090055805A1 (en) | Method and System for Testing Software | |
CN111580834B (en) | Method and device for generating application installation package | |
US9396239B2 (en) | Compiling method, storage medium and compiling apparatus | |
CN113360156B (en) | IOS compiling method and related equipment | |
CN110032407B (en) | Method and device for improving parallel performance of CPU (Central processing Unit) and electronic equipment | |
CN110471828B (en) | Operating system testing method, device and equipment thereof | |
CN107291439B (en) | Target incremental data construction method and device | |
Danmin et al. | A formal specification in B of an operating system | |
CN114443075A (en) | Mirror image construction method and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |