CN108319460A - Generation method, device, electronic equipment and the storage medium of application program installation kit - Google Patents

Generation method, device, electronic equipment and the storage medium of application program installation kit Download PDF

Info

Publication number
CN108319460A
CN108319460A CN201810069800.7A CN201810069800A CN108319460A CN 108319460 A CN108319460 A CN 108319460A CN 201810069800 A CN201810069800 A CN 201810069800A CN 108319460 A CN108319460 A CN 108319460A
Authority
CN
China
Prior art keywords
version
classification
application program
installation kit
name
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
CN201810069800.7A
Other languages
Chinese (zh)
Other versions
CN108319460B (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201810069800.7A priority Critical patent/CN108319460B/en
Publication of CN108319460A publication Critical patent/CN108319460A/en
Application granted granted Critical
Publication of CN108319460B publication Critical patent/CN108319460B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of generation method, device, electronic equipment and the storage mediums of application program installation kit.This method includes:Receive the code update notice of application program;The code and configuration file of application program are obtained from the storage address in code update notice;According to version number corresponding with the setting version name each version classification of acquisition of setting version number in configuration file and version name, and the corresponding placeholder of version number's configuration item of each version classification in configuration file is revised as the corresponding version number of version classification and the corresponding placeholder of version name configuration item of each version classification is revised as the corresponding version name of the version classification;Respectively according to the configuration information compiled code of each version classification in modified configuration file and be packaged generate the corresponding installation kit of version classification.The present invention can generate the installation kit of the consistent different editions classification of user experience simultaneously, and the installation kit to a version classification is only needed to test, and save manpower and test resource.

Description

Generation method, device, electronic equipment and the storage medium of application program installation kit
Technical field
The present embodiments relate to technical field of software development more particularly to a kind of generation sides of application program installation kit Method, device, electronic equipment and storage medium.
Background technology
In daily development process, it is often necessary to be updated to the version of a certain application program.Currently, for a certain The publication flow of the application program (application program of the code building i.e. based on a certain version) of version, usually firstly generates this The corresponding beta version installation kit of version, then tester beta version installation kit is tested, after test passes through, then The corresponding grayscale version installation kit of the version is generated, tester again tests grayscale version installation kit and passes through in test Grayscale version is issued afterwards, so that certain customers experience the application program of the version to determine according to the feedback result of user It is fixed whether to issue official release, if it is determined that issue the official release of the version, then generate official release installation kit, tester Alignment type version installation kit carries out test and issues official release after test passes through to be somebody's turn to do so that whole users use again The application program of version.
Under normal conditions, three beta version installation kit, grayscale version installation kit and official release installation kit installation kits In in addition to version number information and version name information, other information should all it is identical.However, in the above method, due to previous After installation kit (such as grayscale version installation kit) generates, in the process for being subsequently generated next installation kit (such as official release installation kit) In, the environment of compiled code or compiled code may be caused different from previous installation kit by artificial origin, and then cause There is difference in the installation kit that different phase generates, therefore, need to be carried out respectively to three installation kits after three installation kits generate Test, still, wastes a large amount of manpower and materials, and even if three installation kits are successfully tested in this way, still can not ensure three peaces Difference is not present between dress packet, causes to generate three inconsistent installation kits of user experience, and then official release may be caused to send out After cloth, occurs in grayscale version the not problem during user's use.
Invention content
The embodiment of the present invention provides a kind of generation method, device, electronic equipment and the storage medium of application program installation kit, To realize the installation kit for generating the consistent different editions classification of user experience with translation and compiling environment based on identical code simultaneously, in turn It realizes in the issuing process of application program, it is only necessary to the installation kit of one of version classification be tested, substantially reduce and answer With to the testing time of installation kit, saving manpower and test resource in program issuing process.
In a first aspect, an embodiment of the present invention provides a kind of generation method of application program installation kit, device, electronic equipments And storage medium, this method include:
Receive the code update notice of application program;The wherein described code update notice includes the application program in generation Storage address in code warehouse;
The code of the application program and the configuration file of the application program are obtained from the storage address;Wherein Setting version number, setting version name and the corresponding configuration information of at least two version classifications are included at least in the configuration file, The configuration information includes at least version number's configuration item, version name configuration item, placeholder corresponding with version number's configuration item And placeholder corresponding with the version name configuration item;
The corresponding version number of each version classification and version are obtained according to the setting version number and the setting version name Name, and the corresponding placeholder correspondence of version number's configuration item of each version classification in the configuration file is revised as the version class Not corresponding version number and the version name configuration item of each version classification corresponding placeholder correspondence is revised as the version class Not corresponding version name;
The generation of the application program is compiled according to the configuration information of each version classification in modified configuration file respectively Code is simultaneously packaged the installation kit for generating the corresponding application program of version classification.
Second aspect, the embodiment of the present invention additionally provide a kind of generating means of application program installation kit, which includes:
Notify receiving module, the code update for receiving application program notifies;It is wrapped in the wherein described code update notice Include storage address of the application program in code storage;
Configuration file acquisition module, code for obtaining the application program from the storage address and described is answered With the configuration file of program;Setting version number is included at least in the wherein described configuration file, sets version name and at least two editions The corresponding configuration information of this classification, the configuration information include at least version number's configuration item, version name configuration item and the version Number corresponding placeholder of configuration item and placeholder corresponding with the version name configuration item;
Placeholder modified module, for obtaining each version classification according to the setting version number and the setting version name Corresponding version number and version name, and by the corresponding placeholder of version number's configuration item of each version classification in the configuration file Correspondence is revised as the corresponding version number of version classification and the corresponding placeholder of version name configuration item by each version classification Correspondence is revised as the corresponding version name of the version classification;
Installation kit generation module, for being compiled respectively according to the configuration information of each version classification in modified configuration file It translates the code of the application program and is packaged the installation kit for generating the corresponding application program of version classification.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, which includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processing Device realizes the generation method for the application program installation kit that any embodiment of the present invention provides.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes the generation method for the application program installation kit that any embodiment of the present invention provides when the program is executed by processor.
The embodiment of the present invention notifies that wherein code update notice includes application by receiving the code update of application program Storage address of the program in code storage;The code of application program and the configuration text of application program are obtained from storage address Part;It is corresponding with confidence that setting version number, setting version name and at least two version classifications are included at least wherein in configuration file Breath, configuration information include at least version number's configuration item, version name configuration item, placeholder corresponding with version number's configuration item and with The corresponding placeholder of version name configuration item;According to setting version number version corresponding with the setting version name each version classification of acquisition Number and version name, and the corresponding placeholder of version number's configuration item of each version classification in configuration file is corresponded to and is revised as the version The corresponding version number of this classification and the version name configuration item of each version classification corresponding placeholder correspondence is revised as the version The corresponding version name of this classification;Journey is applied according to the configuration information compiling of each version classification in modified configuration file respectively The code of sequence simultaneously be packaged generate the corresponding application program of version classification installation kit, solve due to beta version installation kit, The different phase of grayscale version installation kit and official release installation kit in application issued flow generates, and causes to need to distinguish Three beta version installation kit, grayscale version installation kit and official release installation kit installation kits are tested, waste of manpower The problem of material resources and the problem for causing the user experience between three installation kits inconsistent are realized based on the same of application program Part code, under identical translation and compiling environment, while generating the installation kit of different editions classification, and then ensures the peace of each version classification The user experience for filling packet is consistent, and tester only needs the installation kit to one of version classification to test, significantly Application issued is reduced in the process to the testing time of installation kit, saves manpower and test resource.
Description of the drawings
A kind of flow chart of the generation method of application program installation kit in Fig. 1 embodiment of the present invention one;
Fig. 2 is a kind of flow chart of the generation method of application program installation kit in the embodiment of the present invention two;
Fig. 3 is a kind of structure diagram of the generating means of application program installation kit in the embodiment of the present invention three;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment in the embodiment of the present invention four.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart for the method that a kind of application program installation kit that the embodiment of the present invention one provides generates, this implementation The case where example is applicable to that the installation kit of the consistent different editions classification of user experience need to be generated, this method can be by application program The generating means of installation kit execute, the device can by software and or hardware form, which can generally be integrated in terminal. Referring to Fig. 1, method provided in this embodiment specifically comprises the following steps:
Step 110, the code update notice for receiving application program;
Wherein, code update notice includes storage address of the application program in code storage.
Illustratively, Jenkins can be installed in the terminal, and using Gitlab as code storage.When needing to answer a certain When being updated with the code of program, newer code and corresponding configuration file can be submitted to code storage by developer In in the corresponding storage address of the application program, wherein code storage can be established by hook (hook) with Jenkins and be connected, As long as the code update of a certain application program in code storage, then Jenkins can receive the application program code update it is logical Know, wherein code update notice includes storage address of the application program in code storage.
The configuration file of step 120, the code that application program is obtained from storage address and application program.
After Jenkins receives code update notice, then this is obtained from the storage address of code storage automatically and applies journey The configuration file of the code of sequence and the application program.
Wherein, it is corresponding that setting version number, setting version name and at least two version classifications are included at least in configuration file Configuration information, configuration information include at least version number's configuration item, version name configuration item, placeholder corresponding with version number's configuration item And placeholder corresponding with version name configuration item.
Optionally, further include relying on library configuration item, SDK (Software Development Kit, software in configuration information Development kit) configuration items, each configuration item such as configuration item and installation kit packet name configuration item have corresponding Configuration Values.
It should be noted that removing version number's configuration item and version in the corresponding configuration information of each version classification in configuration file The corresponding placeholder of real name configuration item is different outer, the corresponding Configuration Values all same of remaining all same configuration item, to ensure each version The corresponding installation kit of this classification generates under identical translation and compiling environment, and then realizes while generating the consistent different versions of user experience The installation kit of this classification.
Illustratively, version classification includes beta version, grayscale version and official release.
Wherein, the Configuration Values of version number's configuration item (versionCode) are an integer values, represent the publication of application program Number, for the version to terminal device recognition application whether to determine the application program being currently installed in terminal device It can be upgraded;The Configuration Values of version name configuration item (versionName) are string value, represent the version letter of application program Breath, for being shown to user so that user identifies version.The configuration of the Configuration Values and version name configuration item of version number's configuration item Value is general to be occurred in pairs.
Specifically, the correspondence between the Configuration Values and the Configuration Values of version name configuration item of version number's configuration item of application program Relationship can be specifically configured by developer.For example, if application program A is to issue for the first time, the version of official release The corresponding Configuration Values of this number configuration item can be 1, and the corresponding Configuration Values of version name configuration item can be 1.0.0, if application program A is the Secondary publication, then the corresponding Configuration Values of version number's configuration item of official release can be 2, and the corresponding Configuration Values of version name configuration item can For 1.0.1.
By needing to generate the installation kit of the application program of the consistent different editions classification of user experience in this present embodiment, and Only corresponding Configuration Values are different with version name configuration item for version number's configuration item between each installation kit, therefore, will in configuration file Version name configuration item and the corresponding Configuration Values of version number's configuration item in the configuration information of each version classification are disposed as corresponding Remaining corresponding Configuration Values of same configuration item is set as identical by placeholder in order to subsequent modification, to ensure each version class The translation and compiling environment of other installation kit is identical, in addition, further including that setting version number and setting version name are set with basis in configuration file Determine version number corresponding with setting version name each version classification of acquisition of version number and version name.
Wherein, setting version number and setting version name can according to actual needs be set by developer.
Specifically, configuration file can be build.gradle configuration files.
Step 130 obtains the corresponding version number of each version classification and version according to setting version number and setting version name Name, and the corresponding placeholder correspondence of version number's configuration item of each version classification in configuration file is revised as the version classification pair The version number answered and the corresponding placeholder correspondence of the version name configuration item of each version classification is revised as the version classification pair The version name answered.
After getting the code and configuration file of application program, can according in configuration file setting version number and setting version Real name obtains the corresponding version number of each version classification and version name.
Wherein, the corresponding version number of each version classification and version name are obtained according to setting version number and setting version name Obtaining rule can be set according to actual conditions, and the present embodiment is to this without limiting.
Illustratively, developer, which can will set version number and set version name, is respectively set to this formal version issued This version number and version name.If setting version number as 10, the entitled 1.0.10 of version is set, then the corresponding version of official release Number can be 10, the entitled 1.0.10 of version, the corresponding version number of grayscale version can be that setting version number subtract 1, i.e., 9, version name can be Last position of setting version name subtracts 0.1, i.e. 1.0.0.9, and the corresponding version number of beta version can be that setting version number subtracts 2, i.e., 8, version name can be that last position of setting version name subtracts 0.2, i.e. 1.0.0.8 as a result, can be according to setting version number and setting version Real name obtains the corresponding version number of each version classification and version name.
After obtaining the corresponding version number of each version classification and version name, by the version of each version classification in configuration file The corresponding placeholder correspondence of number configuration item is revised as the corresponding version number of version classification and by the version of each version classification The corresponding placeholder correspondence of name configuration item is revised as the corresponding version number of version classification, as a result, can be from modified configuration text The corresponding version number of each version classification and version name are got in part.
Step 140, respectively according in modified configuration file each version classification configuration information compile application program Code and be packaged generate the corresponding application program of version classification installation kit.
After placeholder in configuration file is modified, then respectively according to each version class in modified configuration file The code of other configuration information compiling application program is simultaneously packaged the installation kit for generating the corresponding application program of version classification.
Illustratively, after the placeholder in configuration file is modified, three processes can be started simultaneously, wherein one It executes in a process and is answered according to what the configuration information compiling of beta version in modified configuration file was obtained from code storage The installation kit of beta version is generated with the code of program and being packaged;It is executed in one process according to grey in modified configuration file The code for the application program that the configuration information compiling of degree version is obtained from code storage is simultaneously packaged the installation for generating grayscale version Packet;It executes to be compiled according to the configuration information of official release in modified configuration file in one process and be obtained from code storage Application program code and be packaged the installation kit for generating official release, and then pass through different process and generate different editions classification Installation kit.
Same a code of a certain application program based on acquisition as a result, being generated simultaneously under identical translation and compiling environment should The installation kit of application program different editions classification, and then ensure to generate the installation kit of the consistent different editions classification of user experience, And the installation kit to any of which version classification is only needed to test, you can using test result as this all version class of generation The test result of other installation kit greatly reduces the testing time to installation kit during application issued, save manpower with And test resource.
The embodiment of the present invention notifies that wherein code update notice includes application by receiving the code update of application program Storage address of the program in code storage;The code of application program and the configuration text of application program are obtained from storage address Part;It is corresponding with confidence that setting version number, setting version name and at least two version classifications are included at least wherein in configuration file Breath, configuration information include at least version number's configuration item, version name configuration item, placeholder corresponding with version number's configuration item and with The corresponding placeholder of version name configuration item;According to setting version number version corresponding with the setting version name each version classification of acquisition Number and version name, and the corresponding placeholder of version number's configuration item of each version classification in configuration file is corresponded to and is revised as the version The corresponding version number of this classification and the version name configuration item of each version classification corresponding placeholder correspondence is revised as the version The corresponding version name of this classification;Journey is applied according to the configuration information compiling of each version classification in modified configuration file respectively The code of sequence is simultaneously packaged the installation kit for generating the corresponding application program of version classification.Solve due to beta version installation kit, The different phase of grayscale version installation kit and official release installation kit in application issued flow generates, and causes to need to distinguish Three beta version installation kit, grayscale version installation kit and official release installation kit installation kits are tested, waste of manpower The problem of material resources and the problem for causing the user experience between three installation kits inconsistent are realized based on the same of application program Part code, under identical translation and compiling environment, while generating the installation kit of different editions classification, and then ensures the peace of each version classification It is consistent to fill packet user experience, and tester only needs the installation kit to one of version classification to test, and substantially reduces and answers With to the testing time of installation kit, saving manpower and test resource in program issuing process..
Embodiment two
A kind of flow chart of the generation method for application program installation kit that Fig. 2 provides for the embodiment of the present invention.This implementation Example is to be further limited on the basis of the above embodiments.Version classification is optimized for including at least in the present embodiment:It surveys Test run sheet, grayscale version and official release;By respectively according in modified configuration file each version classification match confidence The code of breath compiling application program is simultaneously packaged after the installation kit for generating the corresponding application program of version classification, further includes:Point The installation kit of the corresponding application program of each version classification the corresponding target of version classification in destination server is not copied to In catalogue;It will be in the code for compiling application program according to the configuration information of each version classification in modified configuration file respectively And be packaged after the installation kit for generating the corresponding application program of version classification, further include:Mail is sent to target mailbox address So that tester tests the installation kit of the corresponding application program of beta version.
Referring to Fig. 2, method provided in this embodiment specifically includes:
Step 210, the code update notice for receiving application program;
Wherein, code update notice includes storage address of the application program in code storage.
The configuration file of step 220, the code that application program is obtained from storage address and application program.
Wherein, it is corresponding that setting version number, setting version name and at least two version classifications are included at least in configuration file Configuration information, configuration information include at least version number's configuration item, version name configuration item, placeholder corresponding with version number's configuration item And placeholder corresponding with version name configuration item.
Wherein, version classification includes at least beta version, grayscale version and official release.
Step 230 obtains the corresponding version number of each version classification and version according to setting version number and setting version name Name, and the corresponding placeholder correspondence of version number's configuration item of each version classification in configuration file is revised as the version classification pair The version number answered and the corresponding placeholder correspondence of the version name configuration item of each version classification is revised as the version classification pair The version name answered.
Step 240, respectively according in modified configuration file each version classification configuration information compile application program Code and be packaged generate the corresponding application program of version classification installation kit.
Wherein, step 210- steps 240 repeat no more in the above-described embodiments to be described in detail in the present embodiment.
The installation kit of the corresponding application program of each version classification is copied in destination server is somebody's turn to do respectively by step 250 In the corresponding target directory of version classification.
Illustratively, in corresponding process, after the installation kit of corresponding application program for generating some version classification, Then the installation kit is copied in destination server in the corresponding target directory of version classification, and then by the peace of each version classification Dress packet is automatically stored into destination server, so that tester obtains the installation kit of each version classification from destination server.
Step 260 sends mail to target mailbox address so that tester is to the corresponding application program of beta version Installation kit tested.
Preferably, in the present embodiment, after generating the corresponding installation kit of each version classification, then mail can be transmitted to target postal Case address, to notify tester to test the corresponding installation kit of beta version in time.
Preferably, if the corresponding installation kit test of beta version does not pass through, developer changes the code of application program With or configuration file and by modified code and or configuration file be submitted in code storage again, then execute step again 210;If the corresponding installation kit test of beta version passes through, directly the corresponding installation kit of the grayscale version of this generation is carried out The application program generated for code of certain customers' experience based on this submission is issued, without to the corresponding peace of grayscale version Dress packet is tested, and decides whether publication official release according to the feedback result of user, if the feedback result according to user is true The application program that the fixed code based on this submission is generated has certain defect, then developer carries out according to user feedback result Improve, again change application program code and or configuration file and by modified code and or configuration file submit again Into code storage, then step 210 is executed again;If it is determined that publication official release, then issue official release, be not necessarily to The corresponding installation kit of alignment type version is tested, and is generated so that all users can download code of the installation based on this submission Application program.
The embodiment of the present invention according to the configuration information of each version classification in modified configuration file by compiling respectively It translates the code of application program and is packaged after the installation kit for generating the corresponding application program of version classification, respectively by each version The installation kit of the corresponding application program of classification be copied in destination server in the corresponding target directory of version classification, it can be achieved that Automatically the installation kit of each version classification of generation is preserved to the corresponding target directory of destination server, for tester and When the installation kit of each version classification is obtained from destination server;By sending mail to target mailbox address so that tester Member tests the installation kit of the corresponding application program of beta version, realizes after the installation kit for generating each version classification in time Notify tester that can test test installation kit.
Embodiment three
Fig. 3 is a kind of structure diagram of the generating means for application program installation kit that the embodiment of the present invention four provides.The dress Set can by software and or hardware form, which can generally be integrated in terminal.Referring to Fig. 3, device packet provided in this embodiment It includes:Notify receiving module 310, configuration file acquisition module 320, placeholder modified module 330 and installation kit generation module 340, Wherein,
Notify receiving module 310, the code update for receiving application program notifies;In the wherein described code update notice Include storage address of the application program in code storage;
Configuration file acquisition module 320, the code for obtaining the application program from the storage address and institute State the configuration file of application program;Setting version number, setting version name and at least two are included at least in the wherein described configuration file The corresponding configuration information of a version classification, the configuration information include at least version number's configuration item, version name configuration item, with it is described The corresponding placeholder of version number's configuration item and placeholder corresponding with the version name configuration item;
Placeholder modified module 330, for obtaining each version according to the setting version number and the setting version name The corresponding version number of classification and version name, and account for version number's configuration item of each version classification in the configuration file is corresponding Position symbol is corresponding to be revised as the corresponding version number of version classification and accounts for the version name configuration item of each version classification is corresponding Position symbol correspondence is revised as the corresponding version name of the version classification;
Installation kit generation module 340, for respectively according in modified configuration file each version classification with confidence Breath compiles the code of the application program and is packaged the installation kit for generating the corresponding application program of version classification.
The embodiment of the present invention is by notifying the code update that receiving module receives application program to notify that wherein code update is logical Know the storage address in code storage including application program, configuration file acquisition module is obtained from storage address applies journey The configuration file of the code of sequence and the application program includes at least setting version number, setting version wherein in configuration file The corresponding at least two version classifications configuration information of name, configuration information including at least version number's configuration item, version name configuration item, And the corresponding placeholder of version number's configuration item and placeholder corresponding with version name configuration item, placeholder modified module is according to setting Determine version number and setting version name and obtain the corresponding version number of each version classification and version name, and by each version in configuration file The corresponding placeholder correspondence of version number's configuration item of this classification is revised as the corresponding version number of version classification and by each version The corresponding placeholder correspondence of version name configuration item of this classification is revised as the corresponding version name of the version classification;Installation kit generates mould Block compiles the code of application program according to the configuration information of each version classification in modified configuration file respectively and is packaged life At the installation kit of the corresponding application program of version classification.Solve due to beta version installation kit, grayscale version installation kit with And the time difference that official release installation kit generates is larger, causing need to be respectively to beta version installation kit, grayscale version installation kit And three installation kits of official release installation kit are tested, and the problem of wasting manpower and material resources and are caused between three installation kits The inconsistent problem of user experience, realize same a code based on application program simultaneously, it is raw under identical translation and compiling environment At the installation kit of different editions classification, and then ensure that the installation kit user experience of each version classification is consistent, and tester only needs The installation kit of one of version classification is tested, testing efficiency is improved, uses manpower and material resources sparingly.
In said program, optionally, the version classification includes at least beta version, grayscale version and official release.
In said program, optionally, described device further includes:
Installation kit copies module, for the installation kit of the corresponding application program of each version classification to be copied to target respectively In server in the corresponding target directory of version classification.
In said program, optionally, described device further includes:Mail sending module, for sending mail to target postal Case address is so that tester tests the installation kit of the corresponding application program of beta version.
Example IV
Fig. 4 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides, as shown in figure 4, the electronics is set Standby includes processor 410, memory 420, input unit 430 and output device 440;The quantity of processor 410 in electronic equipment Can be one or more, in Fig. 4 by taking a processor 410 as an example;It is processor 410, memory 420 in electronic equipment, defeated Enter device 430 to connect by bus or other modes with output device 440, in Fig. 4 for connecting by bus.
Memory 420 is used as a kind of computer readable storage medium, can be used for storing software program, computer can perform journey Sequence and module, as the User Status in any embodiment of the present invention the corresponding program instruction/module of based reminding method (for example, Notice receiving module 310, configuration file acquisition module 320, placeholder in the generating means of application program installation kit change mould Block 330 and installation kit generation module 340).Processor 410 by operation be stored in software program in memory 420, instruction with And module is realized above-mentioned for electronic equipment to execute various function application and the data processing of electronic equipment Operation.
Memory 420 can include mainly storing program area and storage data field, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data field can be stored uses created data according to electronic equipment Deng.In addition, memory 420 may include high-speed random access memory, can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 420 can Further comprise that the memory remotely located relative to processor 410, these remote memories can pass through network connection to electricity Sub- equipment.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 430 can be used for receiving the number or character information of input, and generates and set with the user of electronic equipment It sets and the related key signals of function control inputs.Output device 440 may include that display screen etc. shows equipment.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium including computer executable instructions, is stored thereon with calculating Machine program realizes the generation side for the application program installation kit that any embodiment of the present invention provides when the program is executed by processor Method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in computer readable storage medium In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes the method described in any embodiment of the present invention.
It is worth noting that, in the embodiment of the generating means of above application program installation kit, included each unit It is only divided according to function logic with module, but is not limited to above-mentioned division, as long as corresponding work(can be realized Energy;In addition, the specific name of each functional unit is also only to facilitate mutually distinguish, the guarantor being not intended to restrict the invention Protect range.
The said goods can perform the method that any embodiment of the present invention is provided, and have the corresponding function module of execution method And advantageous effect.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of generation method of application program installation kit, which is characterized in that including:
Receive the code update notice of application program;The wherein described code update notice includes the application program in code storehouse Storage address in library;
The code of the application program and the configuration file of the application program are obtained from the storage address;It is wherein described Setting version number, setting version name and the corresponding configuration information of at least two version classifications are included at least in configuration file, it is described Configuration information include at least version number's configuration item, version name configuration item, placeholder corresponding with version number's configuration item and Placeholder corresponding with the version name configuration item;
The corresponding version number of each version classification and version name are obtained according to the setting version number and the setting version name, and The corresponding placeholder correspondence of version number's configuration item of each version classification in the configuration file is revised as the version classification pair The version number answered and the corresponding placeholder correspondence of the version name configuration item of each version classification is revised as the version classification pair The version name answered;
The code of the application program is compiled simultaneously according to the configuration information of each version classification in modified configuration file respectively It is packaged the installation kit for generating the corresponding application program of version classification.
2. according to the method described in claim 1, it is characterized in that, the version classification includes at least beta version, gray scale version Sheet and official release.
3. according to the method described in claim 1, it is characterized in that, described respectively according to each in modified configuration file The configuration information of version classification, which compiles the code of the application program and is packaged, generates the corresponding application program of version classification After installation kit, further include:
The installation kit of the corresponding application program of each version classification the version classification in destination server is copied to respectively to correspond to Target directory in.
4. according to the method described in claim 1, it is characterized in that, described respectively according to each in modified configuration file The configuration information of version classification, which compiles the code of the application program and is packaged, generates the corresponding application program of version classification After installation kit, further include:
Mail is sent to target mailbox address so that tester carries out the installation kit of the corresponding application program of beta version Test.
5. a kind of generating means of application program installation kit, which is characterized in that including:
Notify receiving module, the code update for receiving application program notifies;The wherein described code update notice includes institute State storage address of the application program in code storage;
Configuration file acquisition module, code for obtaining the application program from the storage address and described applies journey The configuration file of sequence;Setting version number, setting version name and at least two version classes are included at least in the wherein described configuration file Not corresponding configuration information, the configuration information include at least version number's configuration item, version name configuration item, match with the version number Set the corresponding placeholder of item and placeholder corresponding with the version name configuration item;
Placeholder modified module is corresponded to for obtaining each version classification according to the setting version number and the setting version name Version number and version name, and the corresponding placeholder of version number's configuration item of each version classification in the configuration file is corresponded to It is revised as the corresponding version number of version classification and corresponds to the corresponding placeholder of the version name configuration item of each version classification It is revised as the corresponding version name of the version classification;
Installation kit generation module, for compiling institute according to the configuration information of each version classification in modified configuration file respectively It states the code of application program and is packaged the installation kit for generating the corresponding application program of version classification.
6. device according to claim 5, which is characterized in that the version classification includes at least beta version, gray scale version Sheet and official release.
7. device according to claim 5, which is characterized in that further include:
Installation kit copies module, for the installation kit of the corresponding application program of each version classification to be copied to destination service respectively In device in the corresponding target directory of version classification.
8. device according to claim 5, which is characterized in that further include:
Mail sending module, for sending mail to target mailbox address so that tester is to the corresponding application of beta version The installation kit of program is tested.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now generation method of the application program installation kit as described in claim 1-4 is any.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The generation method of the application program installation kit as described in claim 1-4 is any is realized when execution.
CN201810069800.7A 2018-01-24 2018-01-24 Method and device for generating application program installation package, electronic equipment and storage medium Active CN108319460B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810069800.7A CN108319460B (en) 2018-01-24 2018-01-24 Method and device for generating application program installation package, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810069800.7A CN108319460B (en) 2018-01-24 2018-01-24 Method and device for generating application program installation package, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108319460A true CN108319460A (en) 2018-07-24
CN108319460B CN108319460B (en) 2021-09-17

Family

ID=62887697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810069800.7A Active CN108319460B (en) 2018-01-24 2018-01-24 Method and device for generating application program installation package, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108319460B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388571A (en) * 2018-10-15 2019-02-26 五八有限公司 Obtain method, apparatus, computer equipment and the storage medium of identification information
CN110244977A (en) * 2019-05-21 2019-09-17 深圳壹账通智能科技有限公司 Customized software generation method, system, electronic equipment and storage medium
CN110858143A (en) * 2018-08-22 2020-03-03 广州虎牙信息科技有限公司 Installation package generation method, device, equipment and storage medium
CN110895471A (en) * 2018-09-12 2020-03-20 北京京东尚科信息技术有限公司 Installation package generation method, device, medium and electronic equipment
CN111273963A (en) * 2020-02-14 2020-06-12 广州极尚网络技术有限公司 Application program configuration information generation method and device, computer equipment and medium
CN112000364A (en) * 2020-08-20 2020-11-27 广州市百果园信息技术有限公司 Application program packaging method, device, equipment and storage medium
CN112667498A (en) * 2020-12-22 2021-04-16 北京像素软件科技股份有限公司 Server building method and device, computer equipment and readable storage medium
CN112685048A (en) * 2021-01-05 2021-04-20 南方电网深圳数字电网研究院有限公司 Application program packaging method, electronic device and storage medium
CN112698852A (en) * 2020-11-30 2021-04-23 厦门亿联网络技术股份有限公司 APP gray scale upgrading method and device, terminal equipment and computer readable storage medium
CN112783533A (en) * 2021-02-03 2021-05-11 北京达佳互联信息技术有限公司 Version information updating method, version information updating device, terminal and storage medium
CN113094121A (en) * 2021-04-30 2021-07-09 腾讯科技(成都)有限公司 Data processing method, data processing equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8572580B2 (en) * 2008-07-28 2013-10-29 Microsoft Corporation Computer application packages with customizations
CN104252364A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Increment updating method, equipment and system
CN105653287A (en) * 2015-12-31 2016-06-08 北京元心科技有限公司 Automatic program version issuing method and device
CN106155651A (en) * 2015-03-31 2016-11-23 广州四三九九信息科技有限公司 The method and system that the automation of application version is issued and updated

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8572580B2 (en) * 2008-07-28 2013-10-29 Microsoft Corporation Computer application packages with customizations
CN104252364A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Increment updating method, equipment and system
CN106155651A (en) * 2015-03-31 2016-11-23 广州四三九九信息科技有限公司 The method and system that the automation of application version is issued and updated
CN105653287A (en) * 2015-12-31 2016-06-08 北京元心科技有限公司 Automatic program version issuing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANTHONY_TESTER: "Jenkins项目实战之-Android基于Gradle参数化打不同环境安装包(二)", 《HTTPS://BLOG.CSDN.NET/U011541946/ARTICLE/DETAILS/78278494?UTM_MEDIUM=DISTRIBUTE.PC_RELEVANT.NONE-TASK-BLOG-BLOGCOMMENDFROMMACHINELEARNPAI2-3.CHANNEL_PARAM&DEPTH_1-UTM_SOURCE=DISTRIBUTE.PC_RELEVANT.NONE-TASK-BLOG-BLOGCOMMENDFROMMACHINELEARNPAI2-3.CHA *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110858143A (en) * 2018-08-22 2020-03-03 广州虎牙信息科技有限公司 Installation package generation method, device, equipment and storage medium
CN110858143B (en) * 2018-08-22 2023-07-28 广州虎牙信息科技有限公司 Installation package generation method, device, equipment and storage medium
CN110895471A (en) * 2018-09-12 2020-03-20 北京京东尚科信息技术有限公司 Installation package generation method, device, medium and electronic equipment
CN109388571B (en) * 2018-10-15 2021-11-23 五八有限公司 Method and device for acquiring identification information, computer equipment and storage medium
CN109388571A (en) * 2018-10-15 2019-02-26 五八有限公司 Obtain method, apparatus, computer equipment and the storage medium of identification information
CN110244977A (en) * 2019-05-21 2019-09-17 深圳壹账通智能科技有限公司 Customized software generation method, system, electronic equipment and storage medium
CN111273963A (en) * 2020-02-14 2020-06-12 广州极尚网络技术有限公司 Application program configuration information generation method and device, computer equipment and medium
CN111273963B (en) * 2020-02-14 2023-02-24 广州极尚网络技术有限公司 Application program configuration information generation method and device, computer equipment and medium
CN112000364A (en) * 2020-08-20 2020-11-27 广州市百果园信息技术有限公司 Application program packaging method, device, equipment and storage medium
CN112000364B (en) * 2020-08-20 2024-05-28 广州市百果园信息技术有限公司 Application program packaging method, device, equipment and storage medium
CN112698852A (en) * 2020-11-30 2021-04-23 厦门亿联网络技术股份有限公司 APP gray scale upgrading method and device, terminal equipment and computer readable storage medium
CN112667498A (en) * 2020-12-22 2021-04-16 北京像素软件科技股份有限公司 Server building method and device, computer equipment and readable storage medium
CN112685048A (en) * 2021-01-05 2021-04-20 南方电网深圳数字电网研究院有限公司 Application program packaging method, electronic device and storage medium
CN112783533A (en) * 2021-02-03 2021-05-11 北京达佳互联信息技术有限公司 Version information updating method, version information updating device, terminal and storage medium
CN113094121A (en) * 2021-04-30 2021-07-09 腾讯科技(成都)有限公司 Data processing method, data processing equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN108319460B (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN108319460A (en) Generation method, device, electronic equipment and the storage medium of application program installation kit
Balalaie et al. Microservices migration patterns
CN109358858B (en) Automatic deployment method, device, medium and electronic equipment
US8978015B2 (en) Self validating applications
US11288055B2 (en) Model-based differencing to selectively generate and deploy images in a target computing environment
CN105740093A (en) Backup Method, Pre-Testing Method For Environment Updating And System Thereof
US20150220308A1 (en) Model-based development
US11106448B2 (en) Management of updates to externally managed libraries
CN108776643B (en) Target code merging control method and system based on version control process
US10169222B2 (en) Apparatus and method for expanding the scope of systems management applications by runtime independence
CN112685035A (en) Project development method and device, computer-readable storage medium and electronic device
US20230342288A1 (en) Executing integration scenario regression tests in customer landscapes
US8661414B2 (en) Method and system for testing an order management system
CN106897223A (en) A kind of software kit delivery method and device based on continuous integrating
CN116069341A (en) Automatic deployment method, equipment and storage medium for application program
CN111158730A (en) System updating method and device, electronic equipment and readable storage medium
CN107341106A (en) Application compatibility detection method, exploitation terminal and storage medium
US9760364B2 (en) Checks for software extensions
CN107943504A (en) The dynamic update method of software module in a kind of embedded system
CN103064783A (en) System and method to carry out function tests by means of repeatedly used dynamic link library (DLL)
CN111078236A (en) Automatic software installation method and system, electronic equipment and storage medium
CN112667491B (en) Function test method and device for virtual machine
CN114035786A (en) Dependency-based micro-front-end compatible migration method and system
CN113032004B (en) Method, apparatus and program product for managing development jobs in a development environment
US8813034B2 (en) System and method for testing a software unit of an application

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