CN110858143B - Installation package generation method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN110858143B
CN110858143B CN201810960846.8A CN201810960846A CN110858143B CN 110858143 B CN110858143 B CN 110858143B CN 201810960846 A CN201810960846 A CN 201810960846A CN 110858143 B CN110858143 B CN 110858143B
Authority
CN
China
Prior art keywords
installation package
target
information
domain name
environment information
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.)
Active
Application number
CN201810960846.8A
Other languages
Chinese (zh)
Other versions
CN110858143A (en
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.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya 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 Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201810960846.8A priority Critical patent/CN110858143B/en
Publication of CN110858143A publication Critical patent/CN110858143A/en
Application granted granted Critical
Publication of CN110858143B publication Critical patent/CN110858143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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 discloses a method, a device, equipment and a storage medium for generating an installation package. The method comprises the following steps: acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to the generated installation package; acquiring target environment information, and determining target domain name information according to the target environment information; filling target domain name information in filling positions in basic installation package generating codes to generate configuration installation package generating codes matched with target environment information; the method and the device execute the configurated installation package generating code to generate the installation package matched with the target environment information, and can generate the installation package applicable to various environments.

Description

Installation package generation method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a device, equipment and a storage medium for generating an installation package.
Background
With the development of technology, computer technology has become a key element for measuring the level of technology, and computer programs generate different installation packages for different users, for example, if a user is a user using an application program, an installation package corresponding to a formal environment is generated, if a user is a tester, an installation package corresponding to a test environment is generated, and if a user is a developer, an installation package corresponding to a development environment is generated.
The domain name is a name of a certain computer or computer group on the Internet, which is formed by a series of names separated by dots, and is used for identifying the electronic orientation of the computer during data transmission, and each environment corresponds to a domain name, for example, a formal environment corresponds to a formal environment domain name, a test environment corresponds to a test environment domain name, and a development environment corresponds to a development environment domain name.
In the prior art, the method for generating the software installation package is to manually write a domain name in a basic installation package generation code so as to generate a corresponding software installation package, and the method for generating the software installation package in the mode requires a user to have a certain software programming level, only generates the software installation package under a certain environment, and cannot generate the installation package applicable to various environments at one time.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for generating an installation package, which are used for generating the installation package applicable to various environments.
In a first aspect, an embodiment of the present invention provides an installation package generation method, including:
acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to the generated installation package;
acquiring target environment information, and determining target domain name information according to the target environment information;
filling the target domain name information in the filling position in the basic installation package generating code to generate a configured installation package generating code matched with the target environment information;
and executing the configured installation package generating code to generate an installation package matched with the target environment information.
Further, the environment information includes at least one of a formal environment, a test environment, and a development environment.
Further, before obtaining the target environment information and determining the target domain name information according to the target environment information, the method further comprises:
establishing an application program file comprising the corresponding relation between the environment information and the domain name through a compiling tool;
correspondingly, determining the target domain name information according to the target environment information comprises:
and searching the application program file according to the target environment information to obtain target domain name information corresponding to the target environment information.
Further, before obtaining the target environment information and determining the target domain name information according to the target environment information, the method further comprises:
and establishing an environment file through a compiling tool, wherein the environment file comprises target environment information.
Further, the compiling tool is a gradle.
In a second aspect, an embodiment of the present invention further provides an installation package generating apparatus, including:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, and the domain name information is associated with environment information applicable to a generated installation package;
the determining module is used for acquiring target environment information and determining target domain name information according to the target environment information;
the filling module is used for filling the target domain name information in the filling position in the basic installation package generation code to generate a configured installation package generation code matched with the target environment information;
and the generation module is used for executing the configurable installation package generation code and generating an installation package matched with the target environment information.
Further, the environment information includes at least one of a formal environment, a test environment, and a development environment.
Further, the method further comprises the following steps:
the building module is used for building an application program file comprising the corresponding relation between the environment information and the domain name through a compiling tool;
correspondingly, the determining module is specifically configured to:
and searching the application program file according to the target environment information to obtain target domain name information corresponding to the target environment information.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for generating an installation package according to any one of the embodiments of the present invention when the processor executes the program.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the installation package generation method according to any of the embodiments of the present invention.
According to the embodiment of the invention, the basic installation package generation code is obtained, and the filling position of the domain name information in the basic installation package generation code is obtained, so that the domain name information is associated with the environment information applicable to the generated installation package; acquiring target environment information, and determining target domain name information according to the target environment information; filling target domain name information in filling positions in basic installation package generating codes to generate configuration installation package generating codes matched with target environment information; and executing the configured installation package generating code to generate an installation package matched with the target environment information so as to generate the installation package applicable to various environments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of generating an installation package in accordance with a first embodiment of the present invention;
FIG. 2A is a flow chart of a method of generating an installation package in accordance with a second embodiment of the present invention;
fig. 2B is a flowchart of a domain name information determining method in the second embodiment of the present invention;
fig. 3 is a schematic structural view of an installation package generating device in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1
Fig. 1 is a flowchart of an installation package generating method according to a first embodiment of the present invention, where the method may be executed by an installation package generating device according to the first embodiment of the present invention, and the device may be implemented in software and/or hardware, and as shown in fig. 1, the method specifically includes the following steps:
s110, acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to the generated installation package.
The basic installation package generation code is basic code for generating an installation package.
The filling position of the basic installation package generation code is taken as the position for filling in the domain name information in the basic installation package generation code.
The association of the domain name information with the environment information applicable to the generated installation package refers to that one domain name information corresponds to the environment information applicable to the generated installation package, for example, if the domain name information is a, the domain name information a is filled in a filling position in a basic installation package generation code, and then the environment information applicable to the generated installation package is Q; if the domain name information is B, filling the domain name information B into a filling position in a basic installation package generating code, and then obtaining the environment information applicable to the generated installation package as W.
Specifically, a basic installation package generation code and a filling position of domain name information in the basic installation package generation code are obtained, and the domain name information is associated with environment information used by the generated installation package.
Optionally, the environment information includes at least one of a formal environment, a test environment, and a development environment.
Specifically, if the environment information is a formal environment, domain name information corresponding to the formal environment is obtained; if the environment information is the test environment, the domain name information corresponding to the test environment, and if the environment information is the development environment, the domain name information corresponding to the development environment. For example, the formal environment of office, the development environment dev, the test environment qa, the "office Url" corresponds to "https:// udb3. Huhuhu. Tv"; "devUrl" corresponds to "https:// udb 3-a.huhuhu.tv".
S120, acquiring target environment information, and determining target domain name information according to the target environment information.
The method for obtaining the target environment information is to pre-establish a file for storing environment information to be applied to the generated installation package, and all environment information stored in the file is the target environment information, for example, a file is pre-established through a compiling tool, a formal environment of a specific environment is stored in the file, a development environment dev and a test environment qa are stored in the file, and the target environment information is: formal environment of office, development environment dev and test environment qa.
The method for determining the target domain name information according to the target environment information includes storing corresponding relation between environment information and domain name information in advance, inquiring corresponding relation between the environment information and the domain name information according to the target environment information, and determining the target domain name information, for example, the method can be that the environment information Q corresponds to the domain name information A, the environment information W corresponds to the domain name information B, and the environment information E corresponds to the domain name information C, and if the target environment information is the environment information Q and the environment information W, the target domain name information is the domain name information A and the domain name information B.
Specifically, target environment information is obtained, and the corresponding relation between the environment information and the domain name information is searched according to the target environment information, so that the target domain name information is determined.
S130, filling the target domain name information in the filling position in the basic installation package generation code to generate a configured installation package generation code matched with the target environment information.
And if the target environment information comprises at least two types of environment information, filling domain name information corresponding to the environment information in the target environment information in filling positions to obtain matched configuration installation package generation codes.
Specifically, in the basic installation package generating code, the target domain name information determined according to the target environment information is filled in the filling position to generate the configuration installation package generating code matched with the target environment information, for example, if the target environment information is environment information Q and environment information W, the target domain name information is domain name information a and domain name information B determined according to the environment information Q and environment information W, the domain name information a is filled in the filling position to generate the configuration installation package generating code matched with the environment information Q; and filling the domain name information B in the filling position to generate a configuration installation package generation code matched with the environment information W. S140, executing the configured installation package generating code to generate an installation package matched with the target environment information.
The number of installation packages matching the target environmental information is related to the number of environmental information included in the target environmental information, for example, if the target environmental information includes 3 pieces of environmental information, the installation packages matching the target environmental information may be generated to include 3 installation packages, and each installation package is respectively matched with the environmental information.
Specifically, executing the configuration installation package generating code to generate an installation package matched with the target environment information, for example, if the target environment information is environment information Q and environment information W, determining that the target domain name information is domain name information a and domain name information B according to the environment information Q and the environment information W, filling the domain name information a in a filling position, and generating a configuration installation package generating code X matched with the environment information Q; filling the domain name information B in the filling position to generate a configuration installation package generation code Y matched with the environment information W; the configurable installation package generating code X is executed to generate an installation package matched with the environment information Q, and the configurable installation package generating code Y is executed to generate an installation package matched with the environment information W.
According to the technical scheme, a basic installation package generation code is obtained, and the filling position of domain name information in the basic installation package generation code is obtained, so that the domain name information is associated with environment information applicable to the generated installation package; acquiring target environment information, and determining target domain name information according to the target environment information; filling target domain name information in filling positions in basic installation package generating codes to generate configuration installation package generating codes matched with target environment information; the execution of the configured installation package generation code generates an installation package matching the target environment information, and can generate an installation package suitable for various environments.
Example two
Fig. 2A is a flowchart of a method for generating an installation package according to a second embodiment of the present invention, where the method is optimized based on the foregoing embodiment, and before obtaining target environment information and determining target domain name information according to the target environment information, the method further includes: establishing an application program file comprising the corresponding relation between the environment information and the domain name through a compiling tool; correspondingly, determining the target domain name information according to the target environment information comprises: searching the application program file according to the target environment information to obtain target domain name information corresponding to the target environment information
As shown in fig. 2A, the method of this embodiment specifically includes the following steps:
s210, acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to the generated installation package.
Optionally, before obtaining the target environment information and determining the target domain name information according to the target environment information, the method further includes:
and establishing an environment file through a compiling tool, wherein the environment file comprises target environment information.
The compiling tool is an open source tool for project automation construction based on Apache Ant and Apache Maven concepts.
Optionally, the compiling tool is a gradle.
The environment file is used for storing environment information, for example, a formal environment office, a development environment dev and a test environment qa.
The environment information in the environment file is target environment information.
Specifically, an environment file is established through a compiling tool, and environment information is stored in the environment file.
S220, establishing an application program file comprising the corresponding relation between the environment information and the domain name through a compiling tool.
The application program file is a file which is established through a compiling tool and is used for storing the corresponding relation between the environment information and the domain name.
Specifically, an application program file is established through a compiling tool, and the corresponding relation between the environment information and the domain name is stored in the application program file, for example, the corresponding relation of 'office Url' can be 'https:// udb3. Huhuu. Tv'; "devUrl" corresponds to "https:// udb 3-a.huhuu.tv"; "qaUrl" corresponds to "https:// udb3-b.huhu.tv".
S230, acquiring target environment information.
Specifically, the environmental information in the environmental file is acquired as the target environmental information.
S240, searching the application program file according to the target environment information to obtain target domain name information corresponding to the target environment information.
Specifically, the application file is searched according to the target environment information, and the target domain name information corresponding to the target environment information is obtained, for example, if the target environment information is a formal environment official, the development environment dev and the test environment qa, the application file is searched according to the target environment information as the formal environment official, the development environment dev and the test environment qa, and if the application file is: "officialUrl" corresponds to https:// udb3. Huhuhu. Tv; "devUrl" corresponds to https:// udb 3-a.huhuhu.tv; the corresponding https:// udb3-b.huhu.tv, the target domain name information https:// udb3.huhu.tv corresponding to the formal environment of office is obtained, and the corresponding https:// udb 3-a.hu.tv corresponding to the development environment dev. Http:https:// udb3-b.huhu. Tv corresponding to the test environment qa.
S250, filling the target domain name information in the filling position in the basic installation package generation code, and generating the configured installation package generation code matched with the target environment information.
S260, executing the configured installation package generating code to generate an installation package matched with the target environment information.
In a specific example, as shown in fig. 2B, a gradle script is used to create a BuildConfig class in the basic installation package generating code, create an appdomain.json file, and store a domain name of a corresponding environment corresponding to a login interface in the appdomain.json file, for example: login interface: { "officialUrl" corresponds to https:// udb3. Huhuhu. Tv; "devUrl" corresponds to https:// udb 3-a.huhuhu.tv; "qaUrl" corresponds to https:// udb 3-b.huhuu.tv. An environment. Txt file is created, in which environments are stored that are mainly contained, for example: the method comprises the steps of formally developing an environment, dev, testing the environment qa, reading target environment information in an environment. Txt file, searching an appDomain. Json file according to the read target environment information, obtaining target domain name information corresponding to the target environment information, storing the target domain name information into a buildConfig class, and accessing a domain name corresponding to the target environment information through a login interface in an apk.
According to the technical scheme, the basic installation package generation code is obtained, the domain name information is associated with the environment information applicable to the generated installation package by the filling position of the domain name information in the basic installation package generation code, the application program file comprising the corresponding relation between the environment information and the domain name is established by the compiling tool, the target environment information is obtained, the application program file is searched according to the target environment information, the target domain name information corresponding to the target environment information is obtained, the target domain name information is filled in the filling position in the basic installation package generation code, the configuration installation package generation code matched with the target environment information is generated, the configuration installation package generation code is executed, the installation package matched with the target environment information is generated, and the installation package applicable to various environments can be generated.
Example III
Fig. 3 is a schematic structural diagram of an installation package generating device according to a third embodiment of the present invention. The present embodiment may be applicable to the case of installation package generation, where the apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in any device that provides an installation package generation function, as shown in fig. 3, where the installation package generation apparatus specifically includes: an acquisition module 310, a determination module 320, a population module 330, and a generation module 340.
The acquiring module 310 is configured to acquire a basic installation package generating code and a filling position of domain name information in the basic installation package generating code, where the domain name information is associated with environment information applicable to the generated installation package;
a determining module 320, configured to obtain target environment information, and determine target domain name information according to the target environment information;
a filling module 330, configured to fill the target domain name information in the filling location in the basic installation package generation code, and generate a configured installation package generation code matched with the target environment information;
and the generating module 340 is configured to execute the configured installation package generating code to generate an installation package matched with the target environment information.
Optionally, the environment information includes at least one of a formal environment, a test environment, and a development environment.
Optionally, the method further comprises:
the building module is used for building an application program file comprising the corresponding relation between the environment information and the domain name through a compiling tool;
correspondingly, the determining module is specifically configured to:
and searching the application program file according to the target environment information to obtain target domain name information corresponding to the target environment information.
Optionally, the method further comprises:
the environment file establishing module is used for establishing an environment file through a compiling tool before acquiring target environment information and determining target domain name information according to the target environment information, wherein the environment file comprises the target environment information.
Optionally, the compiling tool is a gradle.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme, a basic installation package generation code is obtained, and the filling position of domain name information in the basic installation package generation code is obtained, so that the domain name information is associated with environment information applicable to the generated installation package; acquiring target environment information, and determining target domain name information according to the target environment information; filling target domain name information in filling positions in basic installation package generating codes to generate configuration installation package generating codes matched with target environment information; the execution of the configured installation package generation code generates an installation package matching the target environment information, and can generate an installation package suitable for various environments.
Example IV
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 4, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. In addition, in the computer device 12 of the present embodiment, the display 24 is not present as a separate body but is embedded in the mirror surface, and the display surface of the display 24 and the mirror surface are visually integrated when the display surface of the display 24 is not displayed. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the installation package generation method provided by the embodiment of the present invention: acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to the generated installation package; acquiring target environment information, and determining target domain name information according to the target environment information; filling the target domain name information in the filling position in the basic installation package generating code to generate a configured installation package generating code matched with the target environment information; and executing the configured installation package generating code to generate an installation package matched with the target environment information.
Example five
A fifth embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the installation package generation method as provided in all the inventive embodiments of the present application: acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to the generated installation package; acquiring target environment information, and determining target domain name information according to the target environment information; filling the target domain name information in the filling position in the basic installation package generating code to generate a configured installation package generating code matched with the target environment information; and executing the configured installation package generating code to generate an installation package matched with the target environment information.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: 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 this document, 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A method of generating an installation package, comprising:
acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to the generated installation package;
acquiring target environment information, and determining target domain name information according to the target environment information, wherein the target environment information comprises at least two environment information;
filling the target domain name information in the filling position in the basic installation package generating code to generate a configured installation package generating code matched with the target environment information;
and executing the configured installation package generating code to generate an installation package matched with the target environment information.
2. The method of claim 1, wherein the environmental information comprises at least one of a formal environment, a test environment, and a development environment.
3. The method of claim 1, wherein prior to obtaining the target context information and determining the target domain name information from the target context information, further comprising:
establishing an application program file comprising the corresponding relation between the environment information and the domain name through a compiling tool;
correspondingly, determining the target domain name information according to the target environment information comprises:
and searching the application program file according to the target environment information to obtain target domain name information corresponding to the target environment information.
4. The method of claim 1, wherein prior to obtaining the target context information and determining the target domain name information from the target context information, further comprising:
and establishing an environment file through a compiling tool, wherein the environment file comprises target environment information.
5. The method of claim 3 or 4, wherein the compilation tool is a gradle.
6. An installation package generating apparatus, comprising:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a basic installation package generation code and filling positions of domain name information in the basic installation package generation code, and the domain name information is associated with environment information applicable to a generated installation package;
the determining module is used for acquiring target environment information and determining target domain name information according to the target environment information, wherein the target environment information comprises at least two environment information;
the filling module is used for filling the target domain name information in the filling position in the basic installation package generation code to generate a configured installation package generation code matched with the target environment information;
and the generation module is used for executing the configurable installation package generation code and generating an installation package matched with the target environment information.
7. The apparatus of claim 6, wherein the environmental information comprises at least one of a formal environment, a test environment, and a development environment.
8. The apparatus as recited in claim 6, further comprising:
the building module is used for building an application program file comprising the corresponding relation between the environment information and the domain name through a compiling tool;
correspondingly, the determining module is specifically configured to:
and searching the application program file according to the target environment information to obtain target domain name information corresponding to the target environment information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-5 when the program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-5.
CN201810960846.8A 2018-08-22 2018-08-22 Installation package generation method, device, equipment and storage medium Active CN110858143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810960846.8A CN110858143B (en) 2018-08-22 2018-08-22 Installation package generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810960846.8A CN110858143B (en) 2018-08-22 2018-08-22 Installation package generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110858143A CN110858143A (en) 2020-03-03
CN110858143B true CN110858143B (en) 2023-07-28

Family

ID=69634929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810960846.8A Active CN110858143B (en) 2018-08-22 2018-08-22 Installation package generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110858143B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099814B (en) * 2020-09-24 2023-04-11 智道网络科技(天津)有限公司 System and method for managing vehicle-mounted machine application software installation environment
CN113014690B (en) * 2021-03-04 2023-09-01 北京慧达软讯科技有限公司 Dynamic domain name allocation method and system based on mobile phone APP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645900A (en) * 2013-12-13 2014-03-19 上海浦东物流云计算有限公司 Method and device for releasing software
CN105991797A (en) * 2016-07-01 2016-10-05 北京奇虎科技有限公司 Method and device for network access by mobile terminal
CN107357558A (en) * 2016-05-10 2017-11-17 阿里巴巴集团控股有限公司 Build the method and device of code
CN108319460A (en) * 2018-01-24 2018-07-24 广东小天才科技有限公司 Method and device for generating application program installation package, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9104803B2 (en) * 2011-01-03 2015-08-11 Paypal, Inc. On-demand software test environment generation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645900A (en) * 2013-12-13 2014-03-19 上海浦东物流云计算有限公司 Method and device for releasing software
CN107357558A (en) * 2016-05-10 2017-11-17 阿里巴巴集团控股有限公司 Build the method and device of code
CN105991797A (en) * 2016-07-01 2016-10-05 北京奇虎科技有限公司 Method and device for network access by mobile terminal
CN108319460A (en) * 2018-01-24 2018-07-24 广东小天才科技有限公司 Method and device for generating application program installation package, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110858143A (en) 2020-03-03

Similar Documents

Publication Publication Date Title
US11151024B2 (en) Dynamic automation of DevOps pipeline vulnerability detecting and testing
CN110489101B (en) Interface simulation method, system, medium and electronic equipment
CN110968305A (en) Applet visualization generation method, device, equipment and storage medium
US10382313B2 (en) Test building for testing server operation
CN107193747B (en) Code testing method and device and computer equipment
US10248535B2 (en) On-demand automated locale seed generation and verification
CN110858143B (en) Installation package generation method, device, equipment and storage medium
CN111506904B (en) Method and device for online bug repair
CN112954056B (en) Method and device for processing monitoring data, electronic equipment and storage medium
CN112084114B (en) Method and apparatus for testing interfaces
CN108399128A (en) A kind of generation method of user data, device, server and storage medium
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN112083982B (en) Information processing method and device
CN110716859A (en) Method for automatically pushing test cases for modified codes and related device
CN110908882A (en) Performance analysis method and device of application program, terminal equipment and medium
CN113535568B (en) Verification method, device, equipment and medium for application deployment version
CN117034923A (en) Training method, text evaluation method, device, medium and equipment
CN112905455B (en) Method, device, equipment and storage medium for checking interface information
CN114338846B (en) Message testing method and device
CN109189332A (en) A kind of disk hanging method, device, server and storage medium
CN117667663A (en) Control positioning path determining method, device, equipment, storage medium and product
CN113626301B (en) Method and device for generating test script
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN112364268A (en) Resource acquisition method and device, electronic equipment and storage medium
CN111176718A (en) Script online method and device, storage medium and electronic equipment

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