CN107894891A - Program packaging method and device and program installation method and device - Google Patents

Program packaging method and device and program installation method and device Download PDF

Info

Publication number
CN107894891A
CN107894891A CN201711142262.1A CN201711142262A CN107894891A CN 107894891 A CN107894891 A CN 107894891A CN 201711142262 A CN201711142262 A CN 201711142262A CN 107894891 A CN107894891 A CN 107894891A
Authority
CN
China
Prior art keywords
program
script file
file
installation
identification 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.)
Pending
Application number
CN201711142262.1A
Other languages
Chinese (zh)
Inventor
徐聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen City Spring Network Technology Co Ltd
Original Assignee
Shenzhen City Spring Network 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 Shenzhen City Spring Network Technology Co Ltd filed Critical Shenzhen City Spring Network Technology Co Ltd
Priority to CN201711142262.1A priority Critical patent/CN107894891A/en
Publication of CN107894891A publication Critical patent/CN107894891A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of program packaging method and device and program installation method and device, applied to field of computer technology, its Program packaging method includes:When packing task is triggered, the installation file and script file of program to be packed are obtained, the configuration parameter of the startup interface of program is included in script file, the related customized information of program distribution platform is included in startup interface;Packing script file and installation file obtain the installation kit of program;The acquisition request that receiving terminal apparatus is sent, obtains the identification information for including program distribution platform in request;Obtain the target program installation kit corresponding with identification information and be sent to terminal device.The present invention, which improves, to be provided the installation kit of program for different program distribution platforms and configures the efficiency of startup interface.

Description

Program packaging method and device and program installation method and device
Technical field
The invention belongs to field of computer technology, more particularly to a kind of program packaging method and device and program installation method And device.
Background technology
With the development of computer software technology, use of the people to mobile terminals such as smart mobile phone, tablet personal computers is more next It is more extensive, to the individual demand of the program on mobile terminal also more and more higher.User generally obtains oneself from application market and needed The program wanted, and the startup interface of program generally requires the title of application market and the version letter of program that display provides program Breath, i.e., when the program from different channels starts on mobile terminals, startup interface simultaneously differs.
At present, the solution being usually taken is to provide that corresponding program installation is provided separately for different application markets Bag, but this will be produced as the problem of different application markets provides program installation kit and low configuration startup interface efficiency.
The content of the invention
The present invention provides a kind of program packaging method and device and program installation method, can rise to different application markets The installation kit of program is provided and configures the efficiency of startup interface.
First aspect of the embodiment of the present invention provides a kind of program packaging method, applied to server, including:When packing is appointed When business is triggered, the installation file and script file of program to be packed are obtained, described program is included in the script file The configuration parameter of startup interface, the customized information that program distribution platform is related is included in the startup interface;Pack the script File and the installation file obtain the installation kit of described program;The acquisition request that receiving terminal apparatus is sent, the acquisition please The identification information of described program distribution platform is included in asking;It is concurrent to obtain the target program installation kit corresponding with the identification information Give the terminal device.
Second aspect of the embodiment of the present invention provides a kind of program installation method, applied to terminal device, including:Work as detection During to download program installation operation, sent to server and obtain instruction, it is described obtain in instruction comprising program distribution platform the Second identification information of one identification information and the program of installation to be downloaded;Receive being marked with described first for the server transmission Know information and program installation kit corresponding to second identification information, the installation that described program installation kit includes described program is literary Part and script file, the configuration parameter of the startup interface comprising described program in the script file, wrap in the startup interface The related customized information of distribution platform containing described program;The installation file is run to install described program, and in described program During startup, startup interface and the output of described program are generated according to the script file.
The third aspect of the embodiment of the present invention provides a kind of program packing apparatus, including:Acquisition module, for appointing when packing When business is triggered, the installation file and script file of program to be packed are obtained, described program is included in the script file The configuration parameter of startup interface, the customized information that program distribution platform is related is included in the startup interface;Packetization module, it is used for Pack the script file and the installation file obtains the installation kit of described program;Receiving module, for receiving terminal apparatus The acquisition request of transmission, it is described to obtain the identification information for including described program distribution platform in request;The acquisition module, is also used In the acquisition target program installation kit corresponding with the identification information and it is sent to the terminal device.
Fourth aspect of the embodiment of the present invention provides a kind of program erecting device, including:Sending module, detected for working as During download program installation operation, sent to server and obtain instruction, described obtain in instruction includes the first of program distribution platform Second identification information of identification information and the program of installation to be downloaded;Receiving module, for receiving the server transmission The program installation kit corresponding with first identification information and second identification information, described program installation kit include described The installation file and script file of program, the configuration parameter of the startup interface comprising described program, described in the script file The customized information that described program distribution platform is related is included in startup interface;Install module, for run the installation file with Described program is installed;Output module, for when described program starts, the startup of described program to be generated according to the script file Interface simultaneously exports.
In the embodiment of the present invention, the startup interface of program is configured by using script file, and the script is literary Part and installation file are packaged with so that terminal device is controlled using the script file in the startup interface of the program of installation Content, so as to meet the individual demand of startup interface, and greatly improve in different program distribution platform release process The efficiency of installation kit.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram for the program packaging method that one embodiment of the invention provides;
Fig. 2 is the implementation process schematic diagram for the program packaging method that another embodiment of the present invention provides;
Fig. 3 is the implementation process schematic diagram for the program installation method that one embodiment of the invention provides;
Fig. 4 is the structural representation for the program packing apparatus that one embodiment of the invention provides;
Fig. 5 is the structural representation for the program packing apparatus that another embodiment of the present invention provides;
Fig. 6 is the structural representation for the program erecting device that one embodiment of the invention provides.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiment in the present invention, people in the art The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is the implementation process schematic diagram for the program packaging method that one embodiment of the invention provides, the party Method can be applied in server.As shown in figure 1, this method mainly includes the following steps that:
101st, when packing task is triggered, the installation file and script file of program to be packed is obtained, is included in script file The configuration parameter of the startup interface of the program, the customized information that program distribution platform is related is included in the startup interface;
Specifically, in the development process of program, terminal device generates installation file and script text according to the operation of developer Part, and the preservation that uploads onto the server.It should be understood that store in server the different editions of multiple programs installation file and Script file.Therefore when packing task is triggered, it is necessary to determine installation file and script file according to demand.Wherein, whenever When uploading new installation file, installation file is replaced with into the installation file after renewal.
Exemplary, if desired the script file of the installation file of latest edition and latest edition, then obtain latest edition Installation file and script file.The configuration parameter of startup interface comprising program in script file.The configuration parameter is used to match somebody with somebody Put the startup interface of program.The startup interface includes the related customized information of program distribution platform, and the customized information is sent out with program Cloth platform is corresponding, such as:The version of the title of program distribution platform and the program installation kit on the program distribution platform Information.
102nd, packing script file and installation file obtain the installation kit of the program;
Specifically, the script file of program and installation file are packed to obtain corresponding installation kit in packing platform.At this During, it is necessary to according to the identification information of program to be packed, the title of such as program, it is determined that and obtaining the peace of the program File and script file are filled, the installation file and script file are the installation consistent with the identification information of program to be packed File and script file.Then installation file and script file are packed.In actual applications, the installation file of program is used In the installation of program, script file is then used for the individual demand for meeting the startup interface of program.Therefore, when in face of different journeys When the program installation kit of sequence distribution platform obtains request, by the way that the script file of needs and installation file are packed, and then improve In the efficiency of different program distribution platform release process installation kits, and meet individual requirements.
103rd, the acquisition request that receiving terminal apparatus is sent, the mark comprising program distribution platform is believed in acquisition request Breath;
Specifically, being mounted with the client-side program of program distribution platform on terminal device, the program distribution platform can be using city , or browser.Preferably, terminal device inputs in response to user on the client-side program of application market or browser Program identification information, such as the title of program, installed in the client-side program search utility of application market or browser Bag.If terminal device finds the program installation kit consistent with the program name in the server, then exported in terminal interface Download the page, be provided with download program button on the download page, terminal device listen to user click on download program installation by During the event of button, the acquisition request of program installation kit is sent to server.Comprising program distribution platform in acquisition request Identification information, such as the title of program distribution platform.
104th, obtain the target program installation kit corresponding with identification information and be sent to terminal device.
Exemplary, asked in response to the acquisition that terminal device is sent, comprising program distribution platform in acquisition request Identification information, the identification information can be the title of program distribution platform, then server determines that program is installed according to the identification information Wrap, then server obtains the target program installation kit corresponding with identification information and is sent to terminal device.In actual applications, The terminal device can be the electronic data-processing equipment that smart mobile phone, tablet personal computer, notebook computer etc. can use on the move And the non-electronic data-processing equipment that can be used on the move such as desktop computer.
In the embodiment of the present invention, the startup interface of program is configured by using script file, and the script is literary Part and installation file are packaged with so that terminal device is controlled using the script file in the startup interface of the program of installation Content, so as to meet the individual demand of startup interface, can greatly improve and issue journey in different program distribution platform The efficiency of sequence installation kit, and meet individual requirements.
Referring to Fig. 2, Fig. 2 is the implementation process schematic diagram for the program packaging method that another embodiment of the present invention provides, should Method can be applied in server.As shown in figure 3, this method mainly includes the following steps that:
201st, when packing task is triggered, the installation file of program to be packed is obtained;Specifically, in the development process of program In, terminal device generates installation file and script file, and the preservation that uploads onto the server according to the operation of developer.Can be with Understand, the installation file of the different editions of multiple programs to be packed is store in server.Therefore when packing task is triggered When, it is necessary to determine installation file according to demand.Wherein, whenever new installation file is uploaded, installation file is replaced with into renewal Installation file afterwards.
202nd, judge whether include target script file, target in multiple default script files comprising different customized informations The label information of script file label information corresponding with packing task is consistent;Specifically, in the development process of program, face The demand of different program distribution platforms, it is therefore desirable to configure the startup page of different programs, in the startup interface comprising pair The customized information answered, therefore the default script file for including each startup interface of different customized informations is committed to server. Label information is also included in script file, a label information corresponding with packing task, target pin are pre-set in server The label information of this document label information corresponding with packing task is consistent.When packing task is triggered, server can pass through Judge whether the label information of script file is unanimously believed from label information corresponding to packing task to judge to include different customizations Whether target script file is included in multiple default script files of breath.If the label information of script file is corresponding with packing task Label information it is consistent, illustrate to include target script file, then perform step 203.If label information and the packing of script file Label information is inconsistent corresponding to task, illustrates not including target script information, then performs step 204.
If the 203rd, obtain script file of the target script file as the program comprising target script file;
Specifically, when the label information of script file label information corresponding with packing task is consistent, illustrate to wrap in server Containing target script file, then script file is replaced with into target script file, then perform step 205.
If the 204, not including target script file, generic script file, the script file as program are obtained;
Specifically, when the label information of script file label information corresponding with packing task is inconsistent, illustrate in server Not comprising target script file, then generic script file, the script file as program are obtained.Then step 205 is performed.
205th, packing script file and installation file obtain the installation kit of program;
Specifically, the script file of program and installation file are packed to obtain corresponding installation kit in packing platform.At this During, it is necessary to according to the identification information of program to be packed, the title of such as program, it is determined that and obtaining the peace of the program File and script file are filled, the installation file and script file can be the installation file and script file of final updating.Then will Installation file and script file are packed.In actual applications, the installation file of program is used for the installation of program, script file Then it is used for the individual demand for meeting the startup interface of program.Therefore, when the program installation in face of different program distribution platforms When bag obtains request, by the way that the script file of needs and installation file are packed, and then improve in different program distribution platforms The efficiency of release process installation kit, and meet individual requirements.
Preferably, packing platform is Jenkins platforms, then based on Jenkins platforms packing script file and installation file. Jenkins platforms can greatly shorten the packing time, evade risk caused by modification installation file, raising program installation kit Packing efficiency.Preferably, script file is write using Python, there is readability and easy care in Python Characteristic.By the combination of Jenkins platforms and Python, the packing efficiency of program installation kit is not only greatly improved, And meet the individual demand of program.
206th, the acquisition request that receiving terminal apparatus is sent, obtains the identification information for including program distribution platform in request;
Specifically, being mounted with the client-side program of program distribution platform on terminal device, the program distribution platform can be using city , or browser.Preferably, terminal device inputs in response to user on the client-side program of application market or browser Program identification information, such as the title of program, installed in the client-side program search utility of application market or browser Bag.If terminal device finds the program installation kit consistent with the program name in the server, then exported in terminal interface Download the page, be provided with download program button on the download page, terminal device listen to user click on download program installation by During the event of button, the acquisition request of program installation kit is sent to server.Comprising program distribution platform in acquisition request Identification information, such as the title of program distribution platform.
207th, obtain the target program installation kit corresponding with identification information and be sent to the terminal device.
Specifically, being asked in response to the acquisition that terminal device is sent, the mark of program distribution platform is included in acquisition request Know information, the identification information can be the title of program distribution platform, then server determines program installation kit according to the identification information, Then server obtains the target program installation kit corresponding with identification information and is sent to terminal device.In actual applications, should Terminal device can be the electronic data-processing equipment that can use on the move such as smart mobile phone, tablet personal computer, notebook computer with And the non-electronic data-processing equipment that can be used on the move such as desktop computer.
The sender that program installation kit obtains request can be terminal device.The program installation kit sent in response to terminal device Request is obtained, program installation kit is sent to the sender of program installation kit acquisition request by server.Exemplary, terminal device On be mounted with the client-side program of program distribution platform, user is deposited by being searched in the client-side program of program distribution platform Store up the program installation kit in server.Server obtains request in response to the program installation kit that terminal device is sent, and server will Program installation kit is sent to terminal device.
In embodiments of the present invention, by judging that the label information label information corresponding with packing task of script file is It is no consistent, if the label information of script file label information corresponding with packing task is consistent, by installation file and target pin This document packs to obtain program installation kit.Finally obtain and ask in response to program installation kit, program installation kit is sent to program Installation kit obtains terminal device, completes the packing action of program, greatly improves the packing efficiency of program.And pass through script File meets the individual demand of program.
Referring to Fig. 3, Fig. 3 is the implementation process schematic diagram for the program installation method that one embodiment of the invention provides, the party Method can be applied to terminal, and terminal includes:The electron number that smart mobile phone, tablet personal computer, notebook computer etc. can use on the move According to the non-electronic data-processing equipment that can be used on the move such as processing equipment and desktop computer.As shown in figure 3, this method Mainly include the following steps that:
301st, when detecting download program installation operation, sent to server and obtain instruction, obtained in instruction and sent out comprising program Second identification information of the first identification information of cloth platform and the program of installation to be downloaded;
Specifically, when terminal device detects download program installation operation, sent to server and obtain instruction, obtained in instruction Second identification information of the program of the first identification information and installation to be downloaded comprising program distribution platform.Wherein, program is sent out First identification information of cloth platform can be the title of program distribution platform, the second program identification information of the program of installation to be downloaded It can be the title of the program of installation to be downloaded.
302nd, the program installation kit corresponding with the first identification information and the second identification information that the reception server is sent, program Installation kit includes the installation file and script file of program, and the configuration parameter of the startup interface of program is included in script file, The customized information that program distribution platform is related is included in startup interface;
Specifically, the program installation corresponding with the first identification information and the second identification information that terminal device the reception server is sent Bag, the program installation kit include the installation file and script file of program.Startup interface comprising program in script file Configuration parameter, the customized information that program distribution platform is related is included in startup interface.Wherein, the related customization of program distribution platform Information can be program distribution platform title and on the program distribution platform program to be downloaded version information.It is exemplary , the client-side program of program distribution platform is mounted with terminal device, user is deposited by being searched on client-side program Store up the program installation kit in server.When terminal device, which listens to user, clicks on download installation operation, then by program installation kit Request is obtained to send to server.Obtain and ask in response to program installation kit, program installation kit is sent to terminal and set by server It is standby.The configuration parameter of startup interface comprising program in script file.The configuration parameter is used for the startup interface for obtaining program Configuration file, to be shown on the terminal device when program starts.
303rd, installation file is run with installation procedure, and when program starts, and the startup of program is generated according to script file Interface simultaneously exports.
Specifically, after device end gets program installation kit, the installation file in the program installation kit is run to install Program, and when program starts, the startup interface of the script file generation program in the program installation kit and output.
Wherein, if the configuration parameter of the startup interface of the program is configuration file, the configuration file can be picture file, then Open and ask in response to program, startup interface and the output of the program are generated according to the configuration file.Exemplary, picture text Part can be scenery picture, be furnished with text information on picture, to illustrate the version information of the program installation kit and channel information, then When program starts, the picture is shown on the terminal device.
Wherein, if the configuration parameter of the startup interface of the program is address information and text file, the address information is used for Picture file is obtained, the text file is used for the version information and channel information for illustrating the program installation kit.Then in response to program Request is opened, the address is accessed, the configuration file is obtained from server, the configuration file can be picture file, further according to configuration File and text file generate the startup interface of the program and output.Exemplary, the picture can be scenery picture, in the landscape The text file is loaded on picture, then when program starts, shows the picture for being loaded with text file on the terminal device File.
In embodiments of the present invention, when detecting download program operation, send and instruct to server, obtain and wrapped in instruction Second identification information of the first identification information of the distribution platform containing program and the program of installation to be downloaded, according to first mark Information and the second identification information obtain program installation kit from server, and the program installation kit includes installation file and script text Part, the configuration parameter of the startup interface comprising described program in the script file.Then terminal device is according to the program installation kit Installation procedure, startup interface and the output of the program are generated according to the script file, passes through the startup of the program in script file The configuration parameter at interface meets the individual demand of program.
Referring to Fig. 4, Fig. 4 is the structural representation for the program packing apparatus that one embodiment of the invention provides.The device can Applied to server, for realizing the program packaging method in embodiment as shown in Figure 1 above.As shown in figure 4, the device is main Including:Acquisition module 401, for when packing task is triggered, obtaining the installation file and script file of program to be packed, The configuration parameter of the startup interface of the program is included in the script file, program distribution platform correlation is included in the startup interface Customized information.
Packetization module 402, for packing, the script file and the installation file obtain the installation kit of the program.
Receiving module 403, the acquisition request sent for receiving terminal apparatus, is issued in acquisition request comprising the program The identification information of platform.
Acquisition module 401, it is additionally operable to obtain the target program installation kit corresponding with the identification information and is sent to the terminal Equipment.
The details of the present embodiment not to the greatest extent, refers to the description of foregoing embodiment illustrated in fig. 1, here is omitted.
In embodiments of the present invention, the startup interface of program is configured by using script file, and by the script File and installation file are packaged with so that terminal device controls the startup interface of the program of installation using the script file In content, so as to meet the individual demand of startup interface, can greatly improve in different program distribution platform issues The efficiency of program installation kit, and meet individual requirements.
Referring to Fig. 5, Fig. 5 is the structural representation for the program packing apparatus that another embodiment of the present invention provides.The device Applied to server, for realizing such as the program packaging method in above-mentioned Fig. 1 and embodiment illustrated in fig. 2.Dress as shown in Figure 5 Put, essentially consisted in the device difference in embodiment illustrated in fig. 4, in the present embodiment:
Further, label information is also included in the script file, acquisition module 401 includes:
Judging submodule 501, for when the packing task is triggered, judging the multiple default scripts for including different customized informations Whether target script file, the label information of the target script file with the packing task corresponding label information are included in file Unanimously;
Acquisition submodule 502, if being judged as including the target script file specifically for the judging submodule 501, obtaining should Script file of the target script file as the program.
Further, acquisition submodule 502, it is judged as not including the target script if being additionally operable to the judging submodule 501 File, then obtain generic script file, the script file as the program.
Further, packetization module 402, it is additionally operable to pack the script file and the installation file based on Jenkins platforms Obtain the installation kit of the program.
The details of the present embodiment not to the greatest extent, refers to the description of earlier figures 1 and embodiment illustrated in fig. 2, here is omitted.
In the embodiment of the present invention, whether the label information label information corresponding with packing task by judging script file Unanimously, if the label information of script file label information corresponding with packing task is consistent, by installation file and target script File packs to obtain program installation kit.Finally obtain and ask in response to program installation kit, program installation kit is sent to program peace Dress bag obtains terminal device, completes the packing action of program, greatly improves the packing efficiency of program.And pass through script text Part meets the individual demand of program.
Referring to Fig. 6, Fig. 6 is the structural representation for the program erecting device that one embodiment of the invention provides.The device can Applied in terminal device, terminal device includes:What smart mobile phone, tablet personal computer, notebook computer etc. can use on the move The non-electronic data-processing equipment that can be used on the move such as electronic data-processing equipment and desktop computer, for realizing such as Program installation method shown in above-mentioned Fig. 3.As shown in fig. 6, the device mainly includes:
Sending module 601, for when detecting download program installation operation, being sent to server and obtaining instruction, the acquisition refers to The first identification information comprising program distribution platform and the second identification information of the program of installation to be downloaded in order.
Receiving module 602, for receive the server transmission with first identification information and second identification information pair The program installation kit answered, the program installation kit include the installation file and script file of the program, included in the script file The configuration parameter of the startup interface of the program, the customized information that the program distribution platform is related is included in the startup interface.
Module 603 is installed, for running the installation file to install the program.
Output module 604, when the program starts, startup interface and the output of the program are generated according to the script file.
The details of the present embodiment not to the greatest extent, refers to the description of foregoing embodiment illustrated in fig. 3, here is omitted.
In embodiments of the present invention, when detecting download program operation, send and instruct to server, obtain and wrapped in instruction Second identification information of the first identification information of the distribution platform containing program and the program of installation to be downloaded, according to first mark Information and the second identification information obtain program installation kit from server, and the program installation kit includes installation file and script text Part, the configuration parameter of the startup interface comprising described program in the script file.Then terminal device is according to the program installation kit Installation procedure, startup interface and the output of the program are generated according to the script file, passes through the startup of the program in script file The configuration parameter at interface meets the individual demand of program.
In multiple embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through Its mode is realized.For example, embodiments described above is only schematical, for example, the division of the module, is only A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple module or components can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication linkage can be by some interfaces, the INDIRECT COUPLING or communication linkage of module, can To be electrical, mechanical or other forms.
The module illustrated as separating component can be or may not be physically separate, show as module The part shown can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple On mixed-media network modules mixed-media.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional module in each embodiment of the present invention can be integrated in a processing module, can also That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.
It should be noted that for foregoing each method embodiment, in order to which simplicity describes, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs Necessary to bright.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is the description to program packaging method provided by the present invention and device and program installation method and device above, it is right In those of ordinary skill in the art, according to the thought of the embodiment of the present invention, can in specific embodiments and applications There is change part, to sum up, this specification content should not be construed as limiting the invention.

Claims (9)

  1. A kind of 1. program packaging method, applied to server, it is characterised in that methods described includes:
    When packing task is triggered, the installation file and script file of program to be packed are obtained, is wrapped in the script file The configuration parameter of startup interface containing described program, the customized information that program distribution platform is related is included in the startup interface;
    Pack the script file and the installation file obtains the installation kit of described program;
    The acquisition request that receiving terminal apparatus is sent, it is described to obtain the identification information for including described program distribution platform in request;
    Obtain the target program installation kit corresponding with the identification information and be sent to the terminal device.
  2. 2. program packaging method as claimed in claim 1, it is characterised in that label information is also included in the script file, It is described to obtain the script file of program to be packed when packing task is triggered, including:
    When the packing task is triggered, judge whether include mesh in multiple default script files comprising different customized informations Script file is marked, the label information of target script file label information corresponding with the packing task is consistent;
    If comprising the target script file, script file of the target script file as described program is obtained.
  3. 3. program packaging method as claimed in claim 2, it is characterised in that it is described when the packing task is triggered, sentence After whether target script file being included in disconnected multiple default script files comprising different customized informations, in addition to:
    If not including the target script file, generic script file, the script file as described program are obtained.
  4. 4. the program packaging method as described in any one of claims 1 to 3, it is characterised in that the script file uses Python is write, and the peace of described program is obtained based on the Jenkins platforms packing script file and the installation file Dress bag.
  5. 5. a kind of program installation method, applied to terminal device, it is characterised in that methods described includes:
    When detecting download program installation operation, sent to server and obtain instruction, described obtain in instruction is sent out comprising program Second identification information of the first identification information of cloth platform and the program of installation to be downloaded;
    The program installation kit corresponding with first identification information and second identification information that the server is sent is received, Described program installation kit includes the installation file and script file of described program, and described program is included in the script file The configuration parameter of startup interface, the customized information that described program distribution platform is related is included in the startup interface;
    The installation file is run to install described program, and when described program starts, institute is generated according to the script file State the startup interface of program and output.
  6. 6. a kind of program packing apparatus, it is characterised in that described device includes:
    Acquisition module, it is described for when packing task is triggered, obtaining the installation file and script file of program to be packed The configuration parameter of the startup interface of described program is included in script file, program distribution platform correlation is included in the startup interface Customized information;
    Packetization module, for packing the script file and the installation file obtains the installation kit of described program;
    Receiving module, the acquisition request sent for receiving terminal apparatus are flat comprising described program issue in the acquisition request The identification information of platform;
    The acquisition module, it is additionally operable to obtain the target program installation kit corresponding with the identification information and is sent to the terminal Equipment.
  7. 7. program packing apparatus as claimed in claim 7, it is characterised in that label information is also included in the script file, The acquisition module includes:
    Judging submodule, for when the packing task is triggered, judging the multiple default scripts for including different customized informations Whether target script file, the label information of the target script file with the packing task corresponding label are included in file Information is consistent;
    Acquisition submodule, if being judged as including the target script file for the judging submodule, obtain the target Script file of the script file as described program.
  8. 8. program packing apparatus as claimed in claim 8, it is characterised in that
    The acquisition submodule, it is judged as not including the target script file if being additionally operable to the judging submodule, obtains Generic script file, the script file as described program;
    The packetization module, be additionally operable to based on Jenkins platforms pack the script file and the installation file obtain it is described The installation kit of program.
  9. 9. a kind of program erecting device, it is characterised in that described device includes:
    Sending module, it is described to obtain instruction for when detecting download program installation operation, being sent to server and obtaining instruction In comprising program distribution platform the first identification information and installation to be downloaded program the second identification information;
    Receiving module, for receiving the corresponding with first identification information and second identification information of the server transmission Program installation kit, described program installation kit includes the installation file and script file of described program, in the script file The configuration parameter of startup interface comprising described program, the customization that described program distribution platform is related is included in the startup interface Information;
    Module is installed, for running the installation file to install described program;
    Output module, for when described program starts, the startup interface of described program and defeated is generated according to the script file Go out.
CN201711142262.1A 2017-11-17 2017-11-17 Program packaging method and device and program installation method and device Pending CN107894891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711142262.1A CN107894891A (en) 2017-11-17 2017-11-17 Program packaging method and device and program installation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711142262.1A CN107894891A (en) 2017-11-17 2017-11-17 Program packaging method and device and program installation method and device

Publications (1)

Publication Number Publication Date
CN107894891A true CN107894891A (en) 2018-04-10

Family

ID=61805367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711142262.1A Pending CN107894891A (en) 2017-11-17 2017-11-17 Program packaging method and device and program installation method and device

Country Status (1)

Country Link
CN (1) CN107894891A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833482A (en) * 2018-05-21 2018-11-16 平安科技(深圳)有限公司 MDL file automatic downloading method, system, computer equipment and storage medium
CN109725912A (en) * 2018-12-11 2019-05-07 北京城市网邻信息技术有限公司 Application program configuration method, device, terminal, server and readable storage medium storing program for executing
CN110888639A (en) * 2018-09-10 2020-03-17 北京京东尚科信息技术有限公司 Business code compiling and packaging method and device
CN113377432A (en) * 2021-06-17 2021-09-10 上海臣星软件技术有限公司 Advertisement running method, device, equipment and storage medium
CN113760356A (en) * 2021-09-10 2021-12-07 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1271310A1 (en) * 2001-06-26 2003-01-02 Aladdin Knowledge Systems GmbH& Co. KG Method to extend application that is to be installed with an installation program with a function and a computer program product
CN105278971A (en) * 2014-06-17 2016-01-27 中国移动通信集团浙江有限公司 Mobile terminal installation package batch generation method and device
CN105718276A (en) * 2014-12-02 2016-06-29 北京奇虎科技有限公司 Method and device for providing APK download and NGINX server
CN105867950A (en) * 2016-05-31 2016-08-17 广东能龙教育股份有限公司 Gradle and Svn-based online automatic packaging method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1271310A1 (en) * 2001-06-26 2003-01-02 Aladdin Knowledge Systems GmbH& Co. KG Method to extend application that is to be installed with an installation program with a function and a computer program product
CN105278971A (en) * 2014-06-17 2016-01-27 中国移动通信集团浙江有限公司 Mobile terminal installation package batch generation method and device
CN105718276A (en) * 2014-12-02 2016-06-29 北京奇虎科技有限公司 Method and device for providing APK download and NGINX server
CN105867950A (en) * 2016-05-31 2016-08-17 广东能龙教育股份有限公司 Gradle and Svn-based online automatic packaging method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833482A (en) * 2018-05-21 2018-11-16 平安科技(深圳)有限公司 MDL file automatic downloading method, system, computer equipment and storage medium
WO2019223176A1 (en) * 2018-05-21 2019-11-28 平安科技(深圳)有限公司 Automatic mdl file downloading method and system, and computer device and storage medium
CN110888639A (en) * 2018-09-10 2020-03-17 北京京东尚科信息技术有限公司 Business code compiling and packaging method and device
CN109725912A (en) * 2018-12-11 2019-05-07 北京城市网邻信息技术有限公司 Application program configuration method, device, terminal, server and readable storage medium storing program for executing
CN109725912B (en) * 2018-12-11 2022-05-31 北京城市网邻信息技术有限公司 Application program configuration method, device, terminal, server and readable storage medium
CN113377432A (en) * 2021-06-17 2021-09-10 上海臣星软件技术有限公司 Advertisement running method, device, equipment and storage medium
CN113760356A (en) * 2021-09-10 2021-12-07 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product
CN113760356B (en) * 2021-09-10 2024-03-19 北京百度网讯科技有限公司 Differential configuration method, device, equipment and medium of program product

Similar Documents

Publication Publication Date Title
CN102819461B (en) Desktop synchronous method, device, equipment and system
CN107894891A (en) Program packaging method and device and program installation method and device
US9367403B2 (en) Terminal and application restoring method
CN109358936A (en) Information processing method, device, storage medium, electronic equipment and system
CN110502245A (en) Data processing method, terminal, server and application and development equipment
CN107515764A (en) Application program page deployment method, terminal and computer-readable recording medium
CN106557319A (en) The method and apparatus that negative one screen loads object
WO2017071358A1 (en) Software upgrade method and apparatus
CN105718313A (en) Application operation method and device
CN105867714A (en) Application downloading method, apparatus and system
US10235030B2 (en) Electronic device and user interface display method for the same
CN107451244A (en) File naming method, mobile terminal and computer-readable recording medium
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN109446442A (en) Method and apparatus for handling information
CN108132945A (en) For generating the method and apparatus of report
CN105589631B (en) Information displaying method and device
EP2897053B1 (en) Device management method and apparatus
CN106547833A (en) Web browser method and device
CN105808307B (en) Page display method and device
JP2002342189A (en) Bookmark frame and method of launching browser using bookmark in internet terminal
CN104268162A (en) Data storage method and device
CN109597912A (en) Method for handling picture
CN107562302A (en) Method and apparatus for operating the file on mobile terminal
CN110442416B (en) Method, electronic device and computer-readable medium for presenting information
CN111309307B (en) Method and device for integrating VUE page and workflow system

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180410

WD01 Invention patent application deemed withdrawn after publication