CN110858143A - 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
CN110858143A
CN110858143A CN201810960846.8A CN201810960846A CN110858143A CN 110858143 A CN110858143 A CN 110858143A CN 201810960846 A CN201810960846 A CN 201810960846A CN 110858143 A CN110858143 A CN 110858143A
Authority
CN
China
Prior art keywords
installation package
environment information
domain name
target
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.)
Granted
Application number
CN201810960846.8A
Other languages
Chinese (zh)
Other versions
CN110858143B (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

Images

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 a filling position 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 a filling position in the basic installation package generation codes to generate configuration installation package generation codes matched with the target environment information; and executing the configuration installation package generation code to generate an installation package matched with the target environment information.

Description

Installation package generation method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to an installation package generation method, device, equipment and storage medium.
Background
With the development of science and technology, computer technology has become a key element for measuring the science and technology level, and a computer program generates 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 the user is a tester, an installation package corresponding to a test environment is generated, and if the 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 a computer group on the Internet, which is composed of a string of names separated by points, and is used for identifying the electronic direction of the computer during data transmission, wherein each environment corresponds to a domain name, for example, a formal environment corresponds to a domain name of the formal environment, a test environment corresponds to a domain name of the test environment, and a development environment corresponds to a domain name of the development environment.
In the prior art, a method for generating a software installation package manually writes a domain name in a basic installation package generation code to further generate a corresponding software installation package, and generating the software installation package in the above manner requires that a user has a certain software programming level, and only a software installation package under a certain environment can be generated, and installation packages suitable for various environments cannot be generated at one time.
Disclosure of Invention
The embodiment of the invention provides an installation package generation method, device, equipment and storage medium, so as to generate installation packages suitable for 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 a filling position of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to a 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 generation code, and generating a configured installation package generation code matched with the target environment information;
and executing the configuration installation package generation codes 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 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 includes:
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 includes:
and establishing an environment file through a compiling tool, wherein the environment file comprises target environment information.
Further, the compilation tool is a gradle.
In a second aspect, an embodiment of the present invention further provides an installation package generating apparatus, where the apparatus includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a basic installation package generation code and a filling position 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 generating module is used for executing the configuration installation package generating codes and generating the 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 also comprises the following steps:
the establishing module is used for establishing 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 on the memory and executable on the processor, where the processor executes the computer program to implement the installation package generation method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the installation package generation method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the basic installation package generation code and the filling position of the domain name information in the basic installation package generation code are obtained, and 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 a filling position in the basic installation package generation codes to generate configuration installation package generation codes matched with the target environment information; and executing the configuration installation package generation codes, and generating an installation package matched with the target environment information so as to generate installation packages suitable for various environments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart of an installation package generation method in a first embodiment of the present invention;
fig. 2A is a flowchart of an installation package generation method in the second embodiment of the present invention;
fig. 2B is a flowchart of a method for determining domain name information according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an installation package generating apparatus in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example one
Fig. 1 is a flowchart of an installation package generating method provided in an embodiment of the present invention, where this embodiment is applicable to a situation of installation package generation, and the method may be executed by an installation package generating device in an embodiment of the present invention, where the device may be implemented in a software and/or hardware manner, as shown in fig. 1, the method specifically includes the following steps:
s110, acquiring a basic installation package generation code and a filling position 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.
And the basic installation package generation code is a basic code for generating an installation package.
And the filling position of the domain name information in the basic installation package generation code is the position for filling the domain name information in the basic installation package generation code.
The association between the domain name information and the environment information applicable to the generated installation package means that one domain name information corresponds to one 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; and if the domain name information is B, filling the domain name information B into a filling position in the basic installation package generation code, and then setting the environment information suitable for 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, the domain name information corresponding to the formal environment is obtained; and if the environment information is a test environment, the domain name information corresponds to the test environment, and if the environment information is a development environment, the domain name information corresponds to the development environment. For example, the formal environment offisial, the development environment dev, the test environment qa, "offisial Url" corresponds to "http:// udb3.huhu. tv"; "devUrl" corresponds to "http:// udb 3-a.huhu.tv".
And S120, acquiring the target environment information, and determining the target domain name information according to the target environment information.
The target environment information is obtained by pre-creating a file for storing environment information to which the generated installation package needs to be adapted, and all the environment information stored in the file is the target environment information, for example, a file may be pre-created by a compiling tool, and a formal environment of the office, a development environment dev, and a test environment qa are stored in the file, and then the target environment information is: formal environment, development environment dev and test environment qa.
The method for determining the target domain name information according to the target environment information includes pre-storing a corresponding relationship between the environment information and the domain name information, then querying the corresponding relationship between the environment information and the domain name information according to the target environment information, and further determining the target domain name information, for example, 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 acquired, and the corresponding relationship 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.
And S130, filling the target domain name information in the filling position in the basic installation package generation codes, and generating configuration installation package generation codes matched with the target environment information.
If the target environment information comprises at least two kinds of environment information, filling domain name information corresponding to the environment information in the target environment information in the filling position respectively to obtain matched configured installation package generation codes.
Specifically, in the basic installation package generation code, filling target domain name information determined according to the target environment information in a filling position, and generating a configured installation package generation code matched with the target environment information, for example, if the target environment information is environment information Q and environment information W, determining the target domain name information as 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 the filling position, and generating a configured installation package generation code matched with the environment information Q; and filling the domain name information B in the filling position, and generating a configured installation package generation code matched with the environment information W. And S140, executing the configuration installation package generation code, and generating an installation package matched with the target environment information.
For example, if the target environment information includes 3 pieces of environment information, the generated installation package matching the target environment information includes 3 installation packages, and each installation package is respectively matched with the environment information.
Specifically, the configured installation package generation code is executed, and an installation package matched with the target environment information is generated, for example, if the target environment information is environment information Q and environment information W, the target domain name information is determined to be domain name information a and domain name information B according to the environment information Q and the environment information W, the domain name information a is filled in the filling position, and the configured installation package generation code X matched with the environment information Q is generated; filling the domain name information B in a filling position, and generating a configuration installation package generation code Y matched with the environment information W; executing the configured installation package generation code X to generate an installation package matched with the environment information Q, and executing the configured installation package generation code Y to generate an installation package matched with the environment information W.
According to the technical scheme of the embodiment, the generation code of the basic installation package and the filling position of the domain name information in the generation code of the basic installation package are obtained, and 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 a filling position in the basic installation package generation codes to generate configuration installation package generation codes matched with the target environment information; the configured installation package generation code is executed, an installation package matched with the target environment information is generated, and installation packages suitable for various environments can be generated.
Example two
Fig. 2A is a flowchart of an installation package generating method in the second embodiment of the present invention, where this embodiment is optimized based on the foregoing embodiment, and in this embodiment, 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 includes: 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 a filling position 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 a project automation construction open source tool based on the concepts of Apache Ant and Apache Maven.
Optionally, the compilation tool is a gradle.
The environment file is used for storing environment information, and may be, for example, a formal environment office, a development environment dev, and a test environment qa.
And 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 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, "offisalurl" corresponds to "http:// udb3. huhu.tv"; "devUrl" corresponds to "http:// udb 3-a.huhu.tv"; "qaUrl" corresponds to "http:// udb 3-b.huhu.tv".
And S230, acquiring the target environment information.
Specifically, the environment information in the environment file is acquired as the target environment information.
S240, searching the application program file according to the target environment information to obtain the target domain name information corresponding to the target environment information.
Specifically, the application program 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 the formal environment offit, the development environment dev, and the test environment qa, the application program file is searched according to the target environment information for the formal environment offit, the development environment dev, and the test environment qa, and if the application program file is: "offisial Url" corresponds to http:// udb3. huhu.tv; "devUrl" corresponds to http:// udb 3-a.huhu.tv; the target domain name information http:// udb3.huhu.tv corresponding to http:// udb3-b. huhu.tv corresponding to "qaUrl", and the target domain name information http:// udb3.huhu.tv corresponding to dev in the formal environment are obtained, and the target domain name information http:// udb3-a.huhu.tv corresponding to dev in the development environment are obtained; http:// udb3-b.huhu.tv corresponding to test environment qa.
And S250, filling the target domain name information in the filling position in the basic installation package generation codes, and generating configuration installation package generation codes matched with the target environment information.
And S260, executing the configured installation package generation codes and generating the installation package matched with the target environment information.
In a specific example, as shown in fig. 2B, a gradle script is used to establish a BuildConfig class in the basic installation package generation code, and establish an appdata. A login interface: { "oficialUrl" corresponds to http:// udb3. huhu.tv; "devUrl" corresponds to http:// udb 3-a.huhu.tv; "qaUrl" corresponds to http:// udb3-b. Create an environment txt file in which is stored what environments are mainly contained, such as: the method comprises the steps of reading target environment information in an environment of official, a development environment dev and a test environment qa, searching an appDomains.json file according to the read target environment information to obtain 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 in an apk through a login interface.
According to the technical scheme of the embodiment, the installation package suitable for various environments can be generated by acquiring a basic installation package generation code and a filling position of domain name information in the basic installation package generation code, associating the domain name information with environment information suitable for the generated installation package, establishing an application program file comprising a corresponding relation between the environment information and a domain name through a compiling tool, acquiring target environment information, searching the application program file according to the target environment information to obtain target domain name information corresponding to the target environment information, filling the target domain name information in the filling position in the basic installation package generation code, generating a configured installation package generation code matched with the target environment information, executing the configured installation package generation code, generating the installation package matched with the target environment information.
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 generating an installation package, where the apparatus may be implemented in a software and/or hardware manner, 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 padding module 330, and a generation module 340.
The obtaining module 310 is configured to obtain a basic installation package generation code and a filling position of domain name information in the basic installation package generation code, where the domain name information is associated with environment information applicable to a 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 basic installation package generation code to generate a configured installation package generation code matched with the target environment information;
a generating module 340, configured to execute the configured installation package generating code, and 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 includes:
the establishing module is used for establishing 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 includes:
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 compilation tool is a gradle.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
According to the technical scheme of the embodiment, the generation code of the basic installation package and the filling position of the domain name information in the generation code of the basic installation package are obtained, and 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 a filling position in the basic installation package generation codes to generate configuration installation package generation codes matched with the target environment information; the configured installation package generation code is executed, an installation package matched with the target environment information is generated, and installation packages suitable for various environments can be generated.
Example four
Fig. 4 is a schematic structural diagram of a computer device in the 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 only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, 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 may 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. 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 and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are 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, for example, in 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 of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. In the computer device 12 of the present embodiment, the display 24 is not provided as a separate body but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement the installation package generation method provided by the embodiment of the present invention: acquiring a basic installation package generation code and a filling position of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to a 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 generation code, and generating a configured installation package generation code matched with the target environment information; and executing the configuration installation package generation codes to generate an installation package matched with the target environment information.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the installation package generating method provided in all the inventive embodiments of the present application: acquiring a basic installation package generation code and a filling position of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to a 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 generation code, and generating a configured installation package generation code matched with the target environment information; and executing the configuration installation package generation codes 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. 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 (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 the context of 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.
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 any of a variety of 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, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects 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 + + or the like 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An installation package generation method, comprising:
acquiring a basic installation package generation code and a filling position of domain name information in the basic installation package generation code, wherein the domain name information is associated with environment information applicable to a 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 generation code, and generating a configured installation package generation code matched with the target environment information;
and executing the configuration installation package generation codes to generate an installation package matched with the target environment information.
2. The method of claim 1, wherein the environment information comprises at least one of a formal environment, a test environment, and a development environment.
3. The method of claim 1, wherein before obtaining the target environment information and determining the target domain name information according to the target environment 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 includes:
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 before obtaining the target environment information and determining the target domain name information according to the target environment 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 generation apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a basic installation package generation code and a filling position 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 generating module is used for executing the configuration installation package generating codes and generating the installation package matched with the target environment information.
7. The apparatus of claim 6, wherein the environment information comprises at least one of a formal environment, a testing environment, and a development environment.
8. The apparatus of claim 6, further comprising:
the establishing module is used for establishing 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, characterized in that the processor implements the method according to any of claims 1-5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one 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 true CN110858143A (en) 2020-03-03
CN110858143B 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)

Cited By (2)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120266135A1 (en) * 2011-01-03 2012-10-18 Ebay Inc. On-demand software test environment generation
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 广东小天才科技有限公司 Generation method, device, electronic equipment and the storage medium of application program installation kit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120266135A1 (en) * 2011-01-03 2012-10-18 Ebay Inc. On-demand software test environment generation
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 广东小天才科技有限公司 Generation method, device, electronic equipment and the storage medium of application program installation kit

Cited By (4)

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

Also Published As

Publication number Publication date
CN110858143B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
US11151024B2 (en) Dynamic automation of DevOps pipeline vulnerability detecting and testing
CN109062563B (en) Method and device for generating page
US20160117150A1 (en) Code validation using content assist
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN110968305A (en) Applet visualization generation method, device, equipment and storage medium
CN112685029A (en) Visual template generation method, device, equipment and storage medium
CN113076104A (en) Page generation method, device, equipment and storage medium
CN106648569B (en) Target serialization realization method and device
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
US20180060207A1 (en) On-demand automated locale seed generation and verification
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN110858143B (en) Installation package generation method, device, equipment and storage medium
CN113778897B (en) Automatic test method, device and equipment for interface and storage medium
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
CN112988578A (en) Automatic testing method and device
CN112650521A (en) Software development kit SDK (software development kit) hot repair method and device and electronic equipment
CN110908882A (en) Performance analysis method and device of application program, terminal equipment and medium
CN111506904A (en) Method and device for online vulnerability repair
CN111400623B (en) Method and device for searching information
CN111124627A (en) Method, device, terminal and storage medium for determining application program caller
CN110753136B (en) Domain name resolution method, device, equipment and storage medium
CN114035804A (en) Code conversion method, device, medium and electronic equipment
CN112256252B (en) Interface generation method and device, storage medium and electronic equipment
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN112364268A (en) Resource acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant