CN110895471A - Installation package generation method, device, medium and electronic equipment - Google Patents

Installation package generation method, device, medium and electronic equipment Download PDF

Info

Publication number
CN110895471A
CN110895471A CN201811063850.0A CN201811063850A CN110895471A CN 110895471 A CN110895471 A CN 110895471A CN 201811063850 A CN201811063850 A CN 201811063850A CN 110895471 A CN110895471 A CN 110895471A
Authority
CN
China
Prior art keywords
configuration file
application program
installation package
target application
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811063850.0A
Other languages
Chinese (zh)
Inventor
郭旭锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201811063850.0A priority Critical patent/CN110895471A/en
Publication of CN110895471A publication Critical patent/CN110895471A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

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 embodiment of the invention provides an installation package generation method, an installation package generation device, an installation package generation medium and electronic equipment. The installation package generation method comprises the following steps: reading an index configuration file of a target application program according to the compiling script; acquiring an application configuration file corresponding to the index configuration file according to the index configuration file; and compiling and packaging the target application program according to the application configuration file to generate an installation package of the target application program. The technical scheme of the embodiment of the invention can improve the generation efficiency of the installation package.

Description

Installation package generation method, device, medium and electronic equipment
Technical Field
The invention relates to the technical field of computer software, in particular to an installation package generation method, an installation package generation device, an installation package generation medium and electronic equipment.
Background
With the rapid development of the mobile internet, the application software applied to the mobile device also has explosive growth, and especially under the condition that an Android (Android) system occupies a considerable mobile device market, a large number of mobile clients applied to the Android system continuously emerge in the market.
To meet different scene requirements, Android application developers develop different applications, and by providing an installation package (Android package, whose file format is APK) of the applications to users, the users can install and use the applications developed by the developers. Many small functional modules are common to different applications, for example, all use account names and passwords for login; developers also often need to offer different versions for the same application, e.g., paid versions, free versions, etc.; this causes many repetitive works and causes a problem of waste of resources and inefficient work of developers.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
An embodiment of the invention aims to provide an installation package generation method, an installation package generation device, an installation package generation medium and electronic equipment, and further solves the problem of low development efficiency of an application program to at least a certain extent.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to a first aspect of the embodiments of the present invention, there is provided an installation package generation method, including:
reading an index configuration file of a target application program according to the compiling script;
acquiring an application configuration file corresponding to the index configuration file according to the index configuration file;
and compiling and packaging the target application program according to the application configuration file to generate an installation package of the target application program.
In an exemplary embodiment of the present invention, before acquiring the application configuration file corresponding to the index configuration file according to the index configuration file, the method further includes:
acquiring a plurality of functional modules of an application program;
and configuring an application configuration file corresponding to the functional module.
In an exemplary embodiment of the present invention, after configuring the application configuration file corresponding to the functional module, the method further includes:
and determining an application configuration file corresponding to the target application program according to the functional module required by the target application program.
In an exemplary embodiment of the present invention, compiling and packaging the target application according to the application configuration file to generate an installation package of the target application includes:
copying the application configuration file to the project of a target application program;
and packaging the project to generate an installation package of the target application program.
In an exemplary embodiment of the present invention, after generating the installation package of the target application, the method further includes:
and when the target application program is installed, analyzing the functional module of the target application program based on the project.
In an exemplary embodiment of the present invention, before reading the index configuration file of the target application according to the compiling script, the method further includes:
and generating an index configuration file of the target application program according to the application configuration file corresponding to the target application program.
In an exemplary embodiment of the present invention, acquiring an application configuration file corresponding to the index configuration file according to the index configuration file includes:
and acquiring the application configuration file corresponding to the index configuration file according to the name of the application configuration file contained in the index configuration file.
According to a second aspect of the embodiments of the present invention, there is provided an installation package generating apparatus, including:
the index reading unit is used for reading an index configuration file of the target application program according to the compiling script;
the application configuration acquisition unit is used for acquiring an application configuration file corresponding to the index configuration file according to the index configuration file;
and the installation package generating unit is used for compiling and packaging the target application program according to the application configuration file so as to generate the installation package of the target application program.
According to a third aspect of embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program, when executed by a processor, implementing the installation package generation method according to the first aspect of the embodiments described above.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the installation package generation method according to the first aspect of the foregoing embodiments.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the technical solutions provided by some embodiments of the present invention, an index configuration file of a target application program is read through a compiling script, then an application configuration file corresponding to the index configuration file is obtained, the target application program is compiled and packaged according to the application configuration file to generate an installation package of the target application program, and different application programs can be quickly packaged to generate the installation package; on one hand, different application programs can use the same compiling script, so that the utilization rate of resources is improved; on the other hand, different installation packages can be generated by packaging according to different application configuration files, so that the development efficiency of the application program is greatly improved; on the other hand, the application program can be automatically packaged by executing the compiling script, so that a large amount of labor is saved, the error rate of the packaging process is reduced, and the packaging success rate is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic diagram of a system architecture for implementing an installation package generation method according to an embodiment of the present invention;
FIG. 2 schematically illustrates a flow diagram of an installation package generation method according to an embodiment of the invention;
FIG. 3 schematically illustrates a flow diagram of an installation package generation method according to another embodiment of the invention;
FIG. 4 schematically illustrates a flow diagram of an installation package generation method according to yet another embodiment of the present invention;
fig. 5 schematically shows a structural diagram of an installation package generating apparatus according to an embodiment of the present invention;
FIG. 6 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
At present, when the same part of codes exist in a plurality of application programs, developers establish independent projects for each application program, copy the codes which can be commonly used under the projects, and then package the codes to generate installation packages of different application programs. In addition, a product flavors tool is also provided in the compiling tool Gradle provided by the Android and used for constructing different installation packages for the same set of code, but the method depends on the use specification of a compiling script of the tool and has limitation.
Based on this, the present exemplary embodiment first provides a system architecture for implementing the installation package generation method, which can be applied to various scenarios, such as building an installation package, creating an application program, and the like. Referring to fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send request instructions or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a photo processing application, a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for shopping-like websites browsed by users using the terminal devices 101, 102, 103. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the installation package generation method provided by the embodiment of the present invention is generally executed by the server 105, and accordingly, the installation package generation apparatus is generally disposed in the terminal device 101.
Based on the system architecture 100 described above, an example embodiment of the present invention provides an installation package generation method. As shown in fig. 2, the method may include steps S210, S220, S230. Wherein:
s210, reading an index configuration file of a target application program according to a compiling script;
s220, acquiring an application configuration file corresponding to the index configuration file according to the index configuration file;
and step S230, compiling and packaging the target application program according to the application configuration file to generate an installation package of the target application program.
In the installation package generation method of the present example embodiment, the index configuration file of the target application program is read through the compiling script, then the application configuration file corresponding to the index configuration file is obtained, the target application program is compiled and packaged according to the application configuration file to generate the installation package of the target application program, and the installation package can be generated by quickly packaging different application programs; on one hand, different application programs can use the same compiling script, so that the utilization rate of resources is improved; on the other hand, different installation packages can be generated by packaging according to different application configuration files, so that the development efficiency of the application program is greatly improved; on the other hand, the application program can be automatically packaged by executing the compiling script, so that a large amount of labor is saved, the error rate of the packaging process is reduced, and the packaging success rate is improved.
Next, each step of the installation package generation method in the present exemplary embodiment will be described in more detail with reference to fig. 2 to 4.
And S210, reading the index configuration file of the target application program according to the compiling script.
The compiling script can comprise a script compiled by adopting a grammar rule of a script language and is used for compiling the code and compiling the code into an executable file; multiple commands can be compiled in one script, so that corresponding operations can be completed automatically according to the commands in the script by utilizing a compiling tool, and the compiling efficiency is improved; thus, the compilation script may also be used in a variety of compilation tools, such as, for example, Gradle, Ant, Buck, and the like. Also, parameters or information required for compiling the target application, such as a resource package on which the target application depends, a version of the application, a compiled version, a server address, and the like, may be included in the compilation script.
The target application may include an application for which an installation package is to be generated; software products with specific functions may also be included; for example, various clients installed on a cell phone, etc. Further, the development of applications may be aided by various development platforms or development tools; such as Eclipse, JBuilder, Myeclipse, and the like; when the application programs are developed in the development tools, a project can be created, and then a file directory for storing codes is created in the project; a project may include all code needed by an application; of course, according to actual requirements, multiple projects can be created to implement one application.
The configuration file may include a file defining attributes and attribute values of the application; parameters required by the running of the application program can be included in the configuration file, and parameters for initializing the application program can also be included. Different scenes and functions of the application program can be realized through the configuration file, for example, the application program of Chinese version, the application program of English version and the like. Further, the configuration file may be generated in any format, such as ini, properties, xml, config, and the like. The index configuration file may include a file generated by indexing the configuration file; finding a configuration file corresponding to the target application program through the index configuration file of the target application program; therefore, the index configuration file may further include information of the configuration file, such as a name of the configuration file, a path of deposit, and the like.
As can be seen from the above, in the exemplary embodiment, the index configuration file of the target application program is read according to the compiling script, the name or the path of the index configuration file may be written in the command of the compiling script, when the compiling script is executed, the corresponding index configuration file may be automatically read according to the name or the path, and then other information may be obtained according to the information configured in the index configuration file. Of course, other commands may be written in the compiling script to obtain the index configuration file, for example, other compiling scripts or configuration files may be called in the compiling script, information of the index configuration file may be written in other compiling scripts or configuration files, and the index configuration file may be read.
Step S220, acquiring an application configuration file corresponding to the index configuration file according to the index configuration file.
The application configuration file may include parameters required by the target application program, or parameters of a certain functional module of the target application program; parameters required for engineering of the target application may also be included; therefore, by configuring different parameter values in different application configuration files, various configurations can be carried out on the application programs, and therefore a set of codes can generate a plurality of application programs; for example, applications with different themes or scenes, applications with different main page functions, and so on. That is, different application profiles may configure different applications, and different applications may be implemented by different combinations of the plurality of application profiles.
Furthermore, a plurality of function modules of the application program can be acquired, and then application configuration files corresponding to the function modules are configured. In this case, a plurality of functional modules of the application program may be acquired in accordance with the effect that the application program can realize. For example, the target application may implement a password login, and the functional module includes a password login module, and the target application may implement common use by all users, and the functional module includes a common login module. Configuring each application configuration file according to each functional module; an application profile may include configuration information required for a functional module, or parameters required for the functional module; such as input parameters of the function module, information of the code corresponding to the function module, dependent resource packages, etc. Therefore, different application programs can be quickly generated by the same code by using different application configuration files or the combination of a plurality of application configuration files, the work of developers is reduced, and the development efficiency is improved.
Furthermore, after the application configuration file is configured, the application configuration file corresponding to the target application program can be determined according to the functional module required by the target application program. That is, the application configuration file corresponding to the target application program may be determined according to the application scenario and function of the target application program, for example, the target application program is a certain brand of mobile phone, the target application program is a red theme, and the like. The target application program can be rapidly and individually configured by determining the application configuration file corresponding to the target application program without compiling codes, so that the labor is greatly saved, and the efficiency is improved.
As can be seen from the above, after the application configuration file corresponding to the target application program is determined, the index configuration file of the target application program may be generated according to the application configuration file corresponding to the target application program. For example, the index profile may be generated based on the name of the application profile, or a saved path. Of course, the index configuration file may also be generated according to other information of the application configuration file, for example, the index configuration file may be generated according to a name of a function module corresponding to the application configuration file.
In the exemplary embodiment, after the index configuration file of the target application program is obtained, the corresponding application configuration file can be obtained according to the information in the index configuration file; the application configuration file corresponding to the name can be obtained according to the name of the application configuration file contained in the index configuration file; or acquiring the application configuration file under the corresponding path according to the storage path of the application configuration file included in the index configuration file; of course, the application configuration file may be obtained in other manners, for example, the application configuration file is obtained according to the name and the storage path of the application configuration file in the index configuration file. Preferably, the application configuration file corresponding to the index configuration file may be obtained according to a name of the application configuration file included in the index configuration file.
And step S230, compiling and packaging the target application program according to the application configuration file to generate an installation package of the target application program.
The installation package can comprise a set of files required by application program installation and can also comprise compressed files; the file format of the installation package can also be a zip file format of a compressed file; of course, the file format may be other, such as apk, exe, etc. Files required by application program installation can be compressed and packaged to generate an installation package; the application may also be installed on the device by executing the installation package to decompress the file.
In the exemplary embodiment, the target application program may be compiled and packaged according to the application configuration file, so that the file related to the target application program may be compressed to generate the installation package. When the target application program is created, a project can be established, and related files, such as a code file, a configuration file, a resource file and the like of the target application program, are saved through various file directories in the project; therefore, the installation package of the target application program can be generated by packaging the project. In addition, different personalized configurations can be carried out on the target application program according to the application configuration file, and a plurality of installation packages are generated; for example, the name of the application program, the flag information, the theme, the application resource package dependency relationship, the server environment, the page function module and the like can be configured differently through the configuration file. Therefore, the process of generating the installation package of the target application may further include step S301 and step S302. As shown in fig. 3, wherein:
s301, copying the application configuration file to a target application program project;
and S302, packaging the project to generate an installation package of the target application program.
The above project may include a code file or a collection of code files that can implement the configuration in the application configuration file; or may include a code file of the functional module of the application program, so that when the application program runs, the corresponding functional module is loaded; for example, if the page theme configured in the application configuration file is blue, then the code file may implement setting the page theme to blue. When the application program runs, the corresponding code can be selected and executed according to the corresponding application configuration file, and the corresponding configuration is realized.
In the present exemplary embodiment, in step S301, the application configuration file corresponding to the target application program is copied to the project of the target application program; a directory can be newly created in the project, and the application configuration file is stored; the application configuration file may also be stored in an existing directory in the project, or in a directory automatically created when the project is created, for example, assets and the like. In step S302, after the application configuration file is copied to the project, the project is packaged to generate an installation package of the target application program. Therefore, installation packages of application programs with different themes or functions can be obtained according to different application configuration files.
Further, after the installation package of the target application program is generated, when the target application program is installed, the application configuration file may be analyzed based on the codes in the project, so as to execute the codes corresponding to the application configuration file, and implement the configuration of the application configuration file on the target application program.
As shown in fig. 4, taking a compiler Gradle of an Android platform as an example, the exemplary embodiment may further include steps S401 to S409. Wherein:
s401, reading configuration; the compiling tool can read the relevant configuration of the target application program through the compiling script; that is, the basic information of the target application program can be written in a compiling script in a format supported by a compiling tool; when the script is executed, the configuration of the target application program is automatically read; the configuration may include the index configuration file in step S402. Therefore, after the configuration is read in step S401, the index configuration file index. config in step S402 may be acquired, and the index configuration file index. config may be the index configuration file of the target application program in this example. The application configuration file app1.config in step S403 may then be obtained according to the file name or path in index. config, where the app1.config file may include information required by the target application program, for example, the name, theme, application resource package dependency, server environment, function module, and the like of the target application program. The target application program may include a plurality of application configuration files, that is, a plurality of application configuration files may be obtained according to the index configuration file of the target application; therefore, by executing the above steps S402 and S403 multiple times, all the application profiles corresponding to the index profile index. config, that is, step S404. all the application profiles can be acquired. After all the application configuration files of the target application program are obtained, executing step S405, and copying the application configuration files to a project directory; wherein the project may include a code file of the target application. Then in step S406, apk files of different themes may be generated; that is, an installation package corresponding to the above-described project can be generated. After the installation package is generated, when the installation package is operated, the step S407 can be executed, the application configuration file is analyzed, the target application program is configured through the information contained in the application configuration file, and a code capable of realizing corresponding configuration is called, so that the personalized function module of the target application program is loaded; then the application program is displayed through step S408; i.e. the application can be used by the user.
As can be seen from the above, different application configuration files can be generated according to the functions and the style themes that the target application program needs to implement, wherein each application configuration file can configure one style theme or function module. When the script is executed, the corresponding application configuration file can be obtained by reading the index configuration file, so that an installation package of the target application program corresponding to the style theme or the function module is generated.
The following describes an embodiment of an apparatus of the present invention, which can be used to execute the installation package generating method of the present invention. As shown in fig. 5, the installation package generating apparatus 500 may include:
an index reading unit 510, configured to read an index configuration file of a target application according to a compilation script;
an application configuration obtaining unit 520, configured to obtain, according to the index configuration file, an application configuration file corresponding to the index configuration file;
an installation package generating unit 530, configured to compile and package the target application according to the application configuration file, so as to generate an installation package of the target application.
Since the functional modules of the installation package generation apparatus according to the exemplary embodiment of the present invention correspond to the steps of the exemplary embodiment of the installation package generation method described above, for details that are not disclosed in the embodiment of the apparatus according to the present invention, please refer to the above-described embodiment of the installation package generation method according to the present invention.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use with the electronic device implementing an embodiment of the present invention. The computer system 600 of the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of the use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for system operation are also stored. The CPU601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is enabled to implement the installation package generation method described in the above embodiment.
For example, the electronic device may implement the following as shown in fig. 2: s210, reading an index configuration file of a target application program according to a compiling script; s220, acquiring an application configuration file corresponding to the index configuration file according to the index configuration file; and step S230, compiling and packaging the target application program according to the application configuration file to generate an installation package of the target application program.
As another example, the electronic device may implement the steps shown in fig. 3.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. An installation package generation method, comprising:
reading an index configuration file of a target application program according to the compiling script;
acquiring an application configuration file corresponding to the index configuration file according to the index configuration file;
and compiling and packaging the target application program according to the application configuration file to generate an installation package of the target application program.
2. The installation package generating method according to claim 1, wherein before obtaining the application configuration file corresponding to the index configuration file according to the index configuration file, the method further comprises:
acquiring a plurality of functional modules of an application program;
and configuring an application configuration file corresponding to the functional module.
3. The installation package generating method according to claim 2, further comprising, after configuring the application configuration file corresponding to the functional module:
and determining an application configuration file corresponding to the target application program according to the functional module required by the target application program.
4. The installation package generating method of claim 3, wherein compiling and packaging the target application program according to the application configuration file to generate the installation package of the target application program comprises:
copying the application configuration file to the project of a target application program;
and packaging the project to generate an installation package of the target application program.
5. The installation package generating method according to claim 4, further comprising, after generating the installation package of the target application program:
and when the target application program is installed, analyzing the functional module of the target application program based on the project.
6. The installation package generating method of claim 2, wherein before reading the index configuration file of the target application according to the compiling script, the method further comprises:
and generating an index configuration file of the target application program according to the application configuration file corresponding to the target application program.
7. The installation package generating method according to claim 1, wherein obtaining the application configuration file corresponding to the index configuration file according to the index configuration file comprises:
and acquiring the application configuration file corresponding to the index configuration file according to the name of the application configuration file contained in the index configuration file.
8. An installation package generation apparatus, comprising:
the index reading unit is used for reading an index configuration file of the target application program according to the compiling script;
the application configuration acquisition unit is used for acquiring an application configuration file corresponding to the index configuration file according to the index configuration file;
and the installation package generating unit is used for compiling and packaging the target application program according to the application configuration file so as to generate the installation package of the target application program.
9. A computer-readable medium on which a computer program is stored, the program, when executed by a processor, implementing the installation package generation method of any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the installation package generation method of any one of claims 1 to 7.
CN201811063850.0A 2018-09-12 2018-09-12 Installation package generation method, device, medium and electronic equipment Pending CN110895471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811063850.0A CN110895471A (en) 2018-09-12 2018-09-12 Installation package generation method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811063850.0A CN110895471A (en) 2018-09-12 2018-09-12 Installation package generation method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN110895471A true CN110895471A (en) 2020-03-20

Family

ID=69785100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811063850.0A Pending CN110895471A (en) 2018-09-12 2018-09-12 Installation package generation method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110895471A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538488A (en) * 2020-04-17 2020-08-14 荏原冷热系统(中国)有限公司 Method and device for generating single-chip microcomputer driving program
CN112506518A (en) * 2020-12-01 2021-03-16 东软睿驰汽车技术(沈阳)有限公司 Compiling method and device based on configuration file
CN112685048A (en) * 2021-01-05 2021-04-20 南方电网深圳数字电网研究院有限公司 Application program packaging method, electronic device and storage medium
CN113268237A (en) * 2021-05-25 2021-08-17 平安科技(深圳)有限公司 Function page generation method, device, equipment and medium of function module
CN113342757A (en) * 2021-07-06 2021-09-03 上海渠杰信息科技有限公司 File compression method and equipment
CN113703787A (en) * 2020-05-20 2021-11-26 网神信息技术(北京)股份有限公司 Installation package processing method and device, electronic equipment and computer readable storage medium
CN114579135A (en) * 2022-03-01 2022-06-03 北京字节跳动网络技术有限公司 Installation package generation method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347110A1 (en) * 2014-06-02 2015-12-03 International Business Machines Corporation Software installation and configuration
WO2016000623A1 (en) * 2014-07-01 2016-01-07 北京奇虎科技有限公司 Method, apparatus and system for initializing intelligent terminal device
CN106815052A (en) * 2017-01-10 2017-06-09 南威软件股份有限公司 A kind of method of the rapid deployment system for being adapted to multi-environment configuration
CN106933609A (en) * 2015-12-29 2017-07-07 北京五八信息技术有限公司 The generation method and device of Android application program installation kits
CN108287694A (en) * 2017-08-08 2018-07-17 深圳壹账通智能科技有限公司 Application builds method, system, computer equipment and storage medium
CN108319460A (en) * 2018-01-24 2018-07-24 广东小天才科技有限公司 Generation method, device, electronic equipment and the storage medium of application program installation kit
CN108418717A (en) * 2018-03-02 2018-08-17 平安科技(深圳)有限公司 Android application is packaged method for uploading, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347110A1 (en) * 2014-06-02 2015-12-03 International Business Machines Corporation Software installation and configuration
WO2016000623A1 (en) * 2014-07-01 2016-01-07 北京奇虎科技有限公司 Method, apparatus and system for initializing intelligent terminal device
CN106933609A (en) * 2015-12-29 2017-07-07 北京五八信息技术有限公司 The generation method and device of Android application program installation kits
CN106815052A (en) * 2017-01-10 2017-06-09 南威软件股份有限公司 A kind of method of the rapid deployment system for being adapted to multi-environment configuration
CN108287694A (en) * 2017-08-08 2018-07-17 深圳壹账通智能科技有限公司 Application builds method, system, computer equipment and storage medium
CN108319460A (en) * 2018-01-24 2018-07-24 广东小天才科技有限公司 Generation method, device, electronic equipment and the storage medium of application program installation kit
CN108418717A (en) * 2018-03-02 2018-08-17 平安科技(深圳)有限公司 Android application is packaged method for uploading, device, computer equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538488A (en) * 2020-04-17 2020-08-14 荏原冷热系统(中国)有限公司 Method and device for generating single-chip microcomputer driving program
CN111538488B (en) * 2020-04-17 2023-05-02 荏原冷热系统(中国)有限公司 Method and device for generating single-chip microcomputer driver
CN113703787A (en) * 2020-05-20 2021-11-26 网神信息技术(北京)股份有限公司 Installation package processing method and device, electronic equipment and computer readable storage medium
CN112506518A (en) * 2020-12-01 2021-03-16 东软睿驰汽车技术(沈阳)有限公司 Compiling method and device based on configuration file
CN112506518B (en) * 2020-12-01 2023-07-14 东软睿驰汽车技术(沈阳)有限公司 Compiling method and device based on configuration file
CN112685048A (en) * 2021-01-05 2021-04-20 南方电网深圳数字电网研究院有限公司 Application program packaging method, electronic device and storage medium
CN113268237A (en) * 2021-05-25 2021-08-17 平安科技(深圳)有限公司 Function page generation method, device, equipment and medium of function module
CN113342757A (en) * 2021-07-06 2021-09-03 上海渠杰信息科技有限公司 File compression method and equipment
CN114579135A (en) * 2022-03-01 2022-06-03 北京字节跳动网络技术有限公司 Installation package generation method and device
CN114579135B (en) * 2022-03-01 2023-09-05 抖音视界有限公司 Installation package generation method and device

Similar Documents

Publication Publication Date Title
EP3605324B1 (en) Application development method and tool, and storage medium thereof
CN110895471A (en) Installation package generation method, device, medium and electronic equipment
US11188310B2 (en) Automatically generating an interface description in an interface description language
US20140173454A1 (en) Method and system for designing, deploying and executing transactional multi-platform mobile applications
CN110543297B (en) Method and apparatus for generating source code
CN111125064B (en) Method and device for generating database schema definition statement
CN113127361B (en) Application development method and device, electronic equipment and storage medium
CN111427579A (en) Plug-in, application program implementing method and system, computer system and storage medium
CN111324833A (en) Page display method, device, electronic design and computer readable medium
CN110597564A (en) Installation package construction and service component loading method, device and terminal equipment
CN110795181A (en) Application program interface display method and device based on skip protocol and electronic equipment
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN112631590A (en) Component library generation method and device, electronic equipment and computer readable medium
CN110928571A (en) Business program development method and device
CN112087370A (en) Method, system, electronic device and computer-readable storage medium for issuing GitHub Issues
CN111381899A (en) Method and apparatus for developing target system
CN113407165B (en) SDK generation and self-upgrade method, device, readable medium and equipment
CN112835568A (en) Project construction method and device
CN112214250A (en) Application program assembly loading method and device
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN110825622A (en) Software testing method, device, equipment and computer readable medium
CN114064176A (en) View interaction method and device, electronic equipment and computer readable medium
CN113805877A (en) Project engineering construction method and device based on IDEA plug-in
CN113760727A (en) Interface regression testing method and device
CN112068814A (en) Method, device, system and medium for generating executable file

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