CN106033335A - An installation package generating method and device - Google Patents
An installation package generating method and device Download PDFInfo
- Publication number
- CN106033335A CN106033335A CN201510107742.9A CN201510107742A CN106033335A CN 106033335 A CN106033335 A CN 106033335A CN 201510107742 A CN201510107742 A CN 201510107742A CN 106033335 A CN106033335 A CN 106033335A
- Authority
- CN
- China
- Prior art keywords
- file
- application program
- configuration
- configuration information
- installation kit
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides an installation package generating method and device and belongs to the field of internet communication. The method comprises the steps of obtaining configuration information of an application program and a basic data file; generating a configuration file corresponding to the application program according to a preset configuration template and the configuration information of the application program; compressing a preset parsing file used for parsing the configuration file, the configuration file and the basic data file into an installation package of the application program. The device comprises an acquiring module, a generating module and a compressing module. The installation package generating efficiency is increased.
Description
Technical field
The present invention relates to field of Internet communication, particularly to a kind of method and device generating installation kit.
Background technology
At present, technical staff often develops application program, in order to make more user can use this application journey
Sequence, needs to generate the installation kit of this application program, so that user downloads installation kit the basis of this application program
This installation kit installs this application program, in order to user uses this application program.
Currently, prior art provides a kind of method generating installation kit, including: technical staff passes through NSIS
(Nullsoft Scriptable Install Systerm, installation procedure tools) create an installation script program,
The code for configuring the file of application program, registration table and shortcut is write in this installation script program,
By NSIS, this installation script program is compiled, then compresses the installation script program after compiling and should answer
The installation kit of this application program is obtained by the essence data files of program.User downloads the installation of this application program
After wrapping and decompress this installation kit, perform installation script program that this installation kit includes to install this application journey
Sequence.
During realizing the present invention, inventor finds that prior art at least there is problems in that
Technical staff needs to write code in installation script program, writes code and spends the time the longest, causes
The efficiency of the installation kit generating application program is the lowest.
Summary of the invention
In order to improve the efficiency generating installation kit, the invention provides a kind of method and device generating installation kit.
Described technical scheme is as follows:
A kind of method generating installation kit, described method includes:
Obtain configuration information and the essence data files of application program;
According to default profile template and the configuration information of described application program, generate described application program
Corresponding configuration file;
Default being used for is resolved the resolution file of described configuration file, described configuration file and described basis number
The installation kit of described application program is become according to compressing file.
A kind of device generating installation kit, described device includes:
Acquisition module, for obtaining configuration information and the essence data files of application program;
Generation module, for according to the profile template preset and the configuration information of described application program, raw
Become the configuration file that described application program is corresponding;
Compression module, for resolving the resolution file of described configuration file, described configuration literary composition by default being used for
Part and described essence data files are compressed into the installation kit of described application program.
In embodiments of the present invention, configuration information and the essence data files of application program are obtained;According to presetting
Profile template and the configuration information of application program, generate configuration file corresponding to application program;Will be pre-
If be compressed into application for resolving the resolution file of this configuration file, this configuration file and essence data files
The installation kit of program.Owing to according to the profile template preset and the configuration information of application program, automatically giving birth to
Become the configuration file that application program is corresponding, therefore avoid and write code to realize corresponding the joining of this application program
Put file, improve the efficiency generating installation kit.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram generating installation kit that the embodiment of the present invention 1 provides;
Fig. 2-1 is a kind of method flow diagram generating installation kit that the embodiment of the present invention 2 provides;
Fig. 2-2 is a kind of flow chart generating installation kit that the embodiment of the present invention 2 provides;
Fig. 2-3 is a kind of for selecting the schematic diagram of the dialog box of installation directory of the embodiment of the present invention 2 offer;
Fig. 2-4 is the schematic diagram of a kind of shortcut that the embodiment of the present invention 2 provides;
Fig. 2-5 is the flow chart of a kind of set up applications that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of apparatus structure schematic diagram generating installation kit that the embodiment of the present invention 3 provides;
Fig. 4 is the structural representation of a kind of server that the embodiment of the present invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention
Embodiment is described in further detail.
Embodiment 1
See Fig. 1, embodiments provide a kind of method generating installation kit, including:
Step 101: obtain configuration information and the essence data files of application program;
Step 102: according to default profile template and the configuration information of application program, generates application program
Corresponding configuration file;
Step 103: default being used for is resolved the resolution file of this configuration file, this configuration file and basis number
The installation kit of application program is become according to compressing file.
Preferably, preset profile template include file configuration item, registration table configuration item and fast side
Formula configuration item;
According to default profile template and the configuration information of application program, generate corresponding the joining of application program
Put file, including:
File configuration information, registration table configuration information and shortcut is obtained from the configuration information of application program
Information;
By file configuration information, registration table configuration information and shortcut information, it is respectively written into default configuration
In file configuration item, registration table configuration item and shortcut configuration item that file template includes, be applied journey
The configuration file that ordered pair is answered.
Preferably, according to this installation kit, the method for this application program is installed to include:
Transmission downloading request message, to server, is carried the mark of application program, is made in this downloading request message
Server obtains the installation kit of application program according to the mark of application program;
Receive the installation kit that server sends;
Installation kit is decompressed, obtains resolution file, corresponding the joining of application program that installation kit includes
Put file and essence data files;
The configuration file corresponding according to resolution file, application program and essence data files set up applications.
Preferably, installing according to configuration file corresponding to resolution file, application program and essence data files should
By program, including:
By resolution file, the configuration file that application program is corresponding is resolved, the configuration of the program that is applied
Information;
According to configuration information and essence data files, this application program is installed.
Further, default being used for is resolved the resolution file of this configuration file, this configuration file and basis
Before data file compression becomes the installation kit of this application program, also include:
Obtain the file format of this configuration file, according to this document form, from default multiple resolution files
Selecting the resolution file that this document form is corresponding, it is this document form that the resolution file of selection is used for resolving form
File.
In embodiments of the present invention, configuration information and the essence data files of application program are obtained;According to presetting
Profile template and the configuration information of application program, generate configuration file corresponding to application program;Will be pre-
If be compressed into application for resolving the resolution file of this configuration file, this configuration file and essence data files
The installation kit of program.Owing to according to the profile template preset and the configuration information of application program, automatically giving birth to
Become the configuration file that application program is corresponding, therefore avoid and write code to realize corresponding the joining of this application program
Put file, improve the efficiency generating installation kit.
Embodiment 2
See Fig. 2-1, embodiments provide a kind of method generating installation kit, including:
Step 201: server obtains configuration information and the essence data files of application program;
Wherein, the configuration information of application program include file configuration information, registration table configuration information and fast side
Formula information.Technical staff determines the configuration information of this application program when developing this application program.Wherein,
File configuration information includes the installation mesh that in the mark of multiple file and this multiple files, each file is corresponding
Record.Registration table configuration information includes each registry entry in multiple registry entry and multiple registry entry
Processing mode, this processing mode can be to create, revise or deletion etc..Shortcut information includes fast
The icon of mode and processing mode, this processing mode can also be for creating, revise or deletion etc..
Wherein, essence data files at least includes this application program client realize code, install
This application program is started when user opens this application program according to essence data files after this application program
Client.Wherein, technical staff has write essence data files when developing this application program.
Wherein, when generating the installation kit of this application program, technical staff is by the configuration information of this application program
Upload onto the server with essence data files.The configuration of this application program that server reception technique personnel upload
Information and essence data files.
Such as, the configuration information of the application program 1 that server reception technique personnel upload and essence data files.
Wherein, configuration information includes that file configuration information as shown in table 1, registration table as shown in table 2 configure
Information and shortcut information as shown in table 3.Essence data files includes the client of application program 1
App1 realizes code.Wherein, corresponding for file File1 in file configuration information as shown in table 1 installation
Catalogue is bin, represents the installation directory needing User Defined file File1 when mounted, and by file File1
Copy under user-defined installation directory.
Table 1
Table 2
Table 3
Step 202: server, according to the profile template preset and the configuration information of this application program, generates
The configuration file that this application program is corresponding;
Wherein, the profile template preset includes file configuration item, registration table configuration item and shortcut
Configuration item.The profile template preset is that technical staff develops and uploads onto the server, the configuration preset
File template may be used for generating the installation kit of any application.Wherein, file configuration item is for installation
File in bag configures, and registration table configuration item is used for configuring the registration table of terminal, shortcut
Configuration item is for configuring the shortcut of application program.
This step is specifically, obtain file configuration information, registration table and join from the configuration information of this application program
Confidence breath and shortcut configuration information.File configuration information, registration table configuration information and shortcut are joined
Confidence cease, be respectively written into this preset profile template include file configuration item, registration table configuration item and
In shortcut configuration item, obtain the configuration file that this application program is corresponding.
Such as, from the configuration information of application program 1, file configuration information as shown in table 1 is obtained, such as table 2
Shown registration table configuration information and shortcut information as shown in table 3.As described in Table 1 by obtain
File configuration information, registration table configuration information as described in Table 2 and shortcut information as shown in table 3,
It is respectively written into file configuration item, registration table configuration item and shortcut that default profile template includes to join
Put in item, the configuration file of the program that is applied 1 correspondence.
Wherein, the form of profile template preset can be xml (Extensible Markup Language,
Extensible markup language) form etc..In the profile template preset to realize code as follows:
Step 203: server obtains the file format of this configuration file, according to this document form, from default
Selecting the resolution file that this document form is corresponding in multiple resolution files, the resolution file of selection is used for analytic checks
Formula is the file of this document form;
Wherein, technical staff develops multiple resolution file, resolution file correspondence one file format, resolves literary composition
Part can only resolve the configuration file of the file format of its correspondence.Technical staff is by this multiple resolution files and every
During the file format that individual resolution file is corresponding is uploaded onto the server, and store as shown in table 4 in the server
Resolution file and the corresponding relation of file format.Wherein, file format can be xml form etc..
Table 4
Resolution file | File format |
Parse1 | xml |
… … | … … |
This step is specifically, server obtains this configuration file from the configuration file that this application program is corresponding
File format.According to the file format obtained, it is right analytically to obtain in file and the corresponding relation of file format
The resolution file answered.
For example, it is assumed that the form of the configuration file of application program 1 correspondence is xml form.Server is from application
The configuration file of program 1 correspondence obtains the file format xml form of this configuration file.According to the literary composition obtained
Part form xml form is corresponding with acquisition the corresponding relation of file format from resolution file as shown in table 4
Resolution file Parse1.
Wherein, server generates, by the operation of above-mentioned steps 201-203, the configuration literary composition that this application program is corresponding
Part, and after getting the resolution file for resolving this configuration file, can as follows 204
Operation generate the installation kit of this application program.
Step 204: server by default be used for resolving the resolution file of this configuration file, this configuration file and
Essence data files is compressed into the installation kit of this application program;
Further, after server generates the installation kit of application program, it is also possible to by the mark of this application program
Know and installation kit is stored in the mark of application program and the corresponding relation of installation kit.
For example, it is assumed that application program 1 be designated ID1.Server by obtain resolution file Parse1, should
The installation kit package1 of application program 1 it is compressed into by the configuration file of program 1 correspondence and essence data files.
The mark ID1 and installation kit package1 of application program 1 are stored in application journey as shown in table 5 by server
In the mark of sequence and the corresponding relation of installation kit.
Table 5
The mark of application program | Installation kit |
ID1 | package1 |
…… | …… |
Wherein, in embodiments of the present invention, the product process of the installation kit of application program as shown in Fig. 2-2, S1:
The profile template that amendment is preset;Wherein, configuration information according to application program and the configuration preset in S1
File template, generates the configuration file that application program is corresponding, i.e. revises pre-according to the configuration information of application program
If profile template.S2: the configuration file of packing application program is to installation kit.Wherein, will in S2
The configuration file of application program, the basic data literary composition of resolution file and application program for resolving configuration file
Part is packaged into the installation kit of this application program.
Wherein, generated the installation kit of application program by the operation of above-mentioned steps 201-204 after, if user thinks
Use this application program, then the operation of 205-207 as follows can download the peace of this application program
Dress bag, and this application program is installed.
Step 205: terminal transmission downloading request message, to server, carries this application in this downloading request message
The mark of program;
Wherein, when user wants to use this application program, user triggers to terminal and downloads this application program
Download command, when terminal detects the download command that user triggers, send downloading request message to server,
This downloading request message is carried the mark of this application program.
Such as, when user wants to use application program 1, user triggers to terminal and downloads application program 1
Download command, when terminal detects this download command that user triggers, sends downloading request message to service
Device, carries mark ID1 of application program 1 in this downloading request message.
Step 206: server receives the downloading request message that terminal sends, and sends the installation kit of this application program
To this terminal;
Specifically, server receives the downloading request message that terminal sends, and takes according in this downloading request message
The mark of application program of band, from the mark of application program with the corresponding relation of installation kit obtains corresponding peace
Dress bag, sends the installation kit obtained to terminal.
Such as, server receives the downloading request message that terminal sends, and carries according in this downloading request message
Mark ID1 of application program 1, from the corresponding relation of the mark of application program as shown in table 5 Yu installation kit
The middle installation kit package1 obtaining correspondence, sends the installation kit package1 obtained to terminal.
Step 207: terminal receives the installation kit that server sends, to complete to download to this application from server
The installation kit of program;
Such as, terminal receives the installation kit package1 that server sends, to complete to download to from server
The installation kit package1 of application program 1.
Wherein, terminal downloads to the installation of this application program by the operation of above-mentioned steps 205-207 from server
After bag, can as follows 208 and 209 operation this application program is installed.
Step 208: this installation kit is decompressed by terminal, obtain resolution file that this installation kit includes,
Configuration file that this application program is corresponding and essence data files;
Wherein, terminal, when detecting that installation kit has been downloaded, can automatically trigger installation order and enter peace
Process of assembling.Can also to trigger to terminal to install when user clicks on this installation kit after installation kit has been downloaded
During order, enter back into installation process.
This step is specifically, when terminal detects installation order, create by operating system and be used for installing this
The main thread of application program, creates decompression thread by this main thread.By this decompression thread to this installation kit
Carry out decompression, obtain the resolution file that this installation kit includes, the configuration literary composition that this application program is corresponding
Part and essence data files.
Such as, when terminal detects installation order, created for set up applications 1 by operating system
Main thread, by this main thread create decompression thread.By this decompression thread to this installation kit package1
Carry out decompression, obtain resolution file Parse1, application program that this installation kit package1 includes
The configuration file of 1 correspondence and essence data files.
Step 209: terminal is according to configuration file corresponding to this resolution file, this application program and basic data literary composition
Part installs this application program.
Specifically, the configuration file that this application program is corresponding is resolved by terminal by this resolution file, from
The configuration file of this application program reads the configuration information of this application program.According to this configuration information and base
Plinth data file, installs this application program.
Such as, the configuration file of application program 1 correspondence is resolved by terminal by resolution file Parse1,
The configuration information of application program 1 is read from the configuration file of application program 1.According to this configuration information and
Essence data files, set up applications 1.
Wherein, terminal, can (A-1)-(A-4) as follows according to configuration information and essence data files
Operation this application program is installed, particularly as follows:
(A-1): terminal obtains file configuration information, registration table configuration from the configuration information of this application program
Information and shortcut information;
Such as, terminal obtain from the configuration information of application program 1 file configuration information as shown in table 1,
Registration table configuration information as shown in table 2 and shortcut information as shown in table 3.
(A-2): terminal is according to the file configuration information obtained, and the file including installation kit configures;
Specifically, for the mark of each file that file configuration information includes, the installation kit after decompression
The file of the mark correspondence of middle acquisition this document, by peace corresponding for the file copy of acquisition to the mark of this document
Under dress catalogue.For the mark of other each files that file configuration information includes, can same this document
Mark, peace according to aforesaid operations respectively by the peace of file copy corresponding for the mark of other each files to correspondence
Under dress catalogue.
Wherein, the installation directory that the mark of some files is corresponding is the installation directory specified, then directly by this article
Under the installation directory that the file copy of the mark correspondence of part is specified to this.But the mark of some files is right
The installation directory answered needs user oneself to select, then need to eject one for the dialog box selecting installation directory,
User is made to select an installation directory from this dialog box, then by file copy corresponding for the mark of this document
Under the installation directory that user selects.
Such as, file configuration information as shown in table 1, according to mark File1 of file, after decompressing
Installation kit in obtain file file 1 corresponding for mark File1, due to the peace that the mark File1 of file is corresponding
Dress catalogue is bin, then eject the dialog box selecting installation directory as Figure 2-3, make user select one
Installation directory, it is assumed that user select installation directory be D: program files user, then file 1 is copied
The installation directory selected to user D: program files under user.And mark File2 according to file,
Installation kit after decompressing obtains the file 2 corresponding for mark File2 of file, file 2 is copied to
The installation directory corresponding for mark File2 of file D: under program files.
(A-3): terminal is according to the registration table configuration information configuration registration table obtained;
Specifically, terminal obtains a registry entry and the processing mode of correspondence thereof from registration table configuration information,
If this processing mode is for creating, then in the registration table of terminal, create this registry entry.If this process side
Formula is amendment, then the list item title included according to this registry entry, finds out table from the registration table of terminal
The registry entry that item title is identical with the list item title of this registry entry, repaiies the value of the registry entry found out
Change the value of this registry entry into.If this processing mode is for deleting, then according to the list item title of this registry entry,
From the registration table of terminal, find out this registry entry, and the registry entry found out is deleted.For registration
Other each registry entries that table configuration information includes, can be with this registry entry, in the manner described above
Process other each registry entries.
Such as, registration table configuration information as shown in table 2, the processing mode that registry entry Registry1 is corresponding
For " establishment ", then in the registration table of terminal, create registry entry Registry1.
(A-4): terminal configures the shortcut of this application program according to the shortcut information obtained.
Specifically, terminal obtains icon and the process side of its correspondence of shortcut from shortcut information
Formula, if this processing mode is for creating, is then created as the shortcut of this application program by this icon obtained.
If this processing mode is amendment, then according to the mark of this application program, from terminal local, obtain this application
The icon of the shortcut of the mark correspondence of program, replaces with this fast side by the icon of the shortcut of acquisition
The icon that the information of formula includes.If this processing mode is for deleting, then according to the mark of this application program,
The icon of shortcut corresponding to this application program is obtained, if this icon obtained is with fast from terminal local
This icon that prompt mode information includes is identical, then by the icon of shortcut corresponding for this application program local
Delete.
Such as, shortcut information as shown in table 3, the processing mode corresponding for icon Pig1 of shortcut
For creating, the most as in Figure 2-4 icon Pig1 is created as the shortcut of application program 1.
Wherein, just completing installation by the operation of above-mentioned steps (A-1)-(A-4) after being configured should
Application program, when user submits operation order by the shortcut clicking on this application program to terminal, eventually
End performs the essence data files in the installation kit of this application program and runs the client of this application program.
Wherein, in embodiments of the present invention, the installation procedure of application program as shown in Figure 2-5, first create by terminal
Build main thread, main thread be created that installation kit is decompressed by decompression thread, decompression thread, solve extrusion and join
Put file, when user clicks on installation, resolve configuration file by resolution file, then according to file configuration
Information carrys out copied files, carrys out edit the registry according to registration table configuration file, and according to shortcut information
Create shortcut.
In embodiments of the present invention, configuration information and the essence data files of application program are obtained;According to presetting
Profile template and the configuration information of application program, generate configuration file corresponding to application program;Will be pre-
If be compressed into application for resolving the resolution file of this configuration file, this configuration file and essence data files
The installation kit of program.Owing to according to the profile template preset and the configuration information of application program, automatically giving birth to
Become the configuration file that application program is corresponding, therefore avoid and write code to realize corresponding the joining of this application program
Put file, improve the efficiency generating installation kit.
Embodiment 3
See Fig. 3, embodiments provide a kind of method generating installation kit, including:
Acquisition module 301, for obtaining configuration information and the essence data files of application program;
Generation module 302, for according to the profile template preset and the configuration information of application program, generates
The configuration file that application program is corresponding;
Compression module 303, for resolving the resolution file of this configuration file, this configuration file by default being used for
With the installation kit that essence data files is compressed into application program.
Wherein, the profile template preset includes file configuration item, registration table configuration item and shortcut
Configuration item;
Generation module 302 includes:
Acquiring unit, for obtaining file configuration information, registration table configuration from the configuration information of application program
Information and shortcut information;
Writing unit, for by file configuration information, registration table configuration information and shortcut information, difference
File configuration item, registration table configuration item and the shortcut configuration item that the profile template that write is preset includes
In, the configuration file that the program that is applied is corresponding.
Preferably, include according to the device of this installation kit set up applications:
Sending module, is used for sending downloading request message to server, carries application journey in downloading request message
The mark of sequence, makes server obtain the installation kit of application program according to the mark of application program;
Receiver module, for receiving the installation kit that server sends;
Decompression module, for installation kit is decompressed, obtain resolution file that installation kit includes,
Configuration file that application program is corresponding and essence data files;
Module is installed, for the configuration file corresponding according to resolution file, application program and essence data files
Set up applications.
Preferably, module is installed to include:
Resolution unit, for being resolved, by resolution file, the configuration file that application program is corresponding, is obtained
The configuration information of application program;
Installation unit, for according to configuration information and essence data files, set up applications.
Further, this device also includes:
Select module, for obtaining the file format of configuration file, according to this document form, from default many
Selecting the resolution file that this document form is corresponding in individual resolution file, the resolution file of selection is used for resolving form
File for this document form.
In embodiments of the present invention, configuration information and the essence data files of application program are obtained;According to presetting
Profile template and the configuration information of application program, generate configuration file corresponding to application program;Will be pre-
If be compressed into application for resolving the resolution file of this configuration file, this configuration file and essence data files
The installation kit of program.Owing to according to the profile template preset and the configuration information of application program, automatically giving birth to
Become the configuration file that application program is corresponding, therefore avoid and write code to realize corresponding the joining of this application program
Put file, improve the efficiency generating installation kit.
Embodiment 4
Fig. 4 is the structural representation of the server that the embodiment of the present invention provides.This server 1900 can be because of configuration
Or performance is different and produce bigger difference, one or more central processing units (central can be included
Processing units, CPU) 1922 (such as, one or more processors) and memorizeies 1932,
The storage medium 1930 of one or more storage application programs 1942 or data 1944 (such as one or
More than one mass memory unit).Wherein, memorizer 1932 and storage medium 1930 can be of short duration storages
Or persistently store.The program being stored in storage medium 1930 can include one or more modules (diagram
Do not mark), each module can include a series of command operatings in server.Further, central authorities
Processor 1922 could be arranged to communicate with storage medium 1930, performs storage medium on server 1900
A series of command operatings in 1930.
Server 1900 can also include one or more power supplys 1926, one or more wired or
Radio network interface 1950, one or more input/output interfaces 1958, one or more keyboards
1956, and/or, one or more operating systems 1941, such as Windows ServerTM, Mac OS
XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Server 1900 can include memorizer, and one or more than one program, one of them
Or more than one program is stored in memorizer, and it is configured to be held by one or more than one processor
Row one or more than one program comprise the instruction for carrying out following operation:
Obtain configuration information and the essence data files of application program;
According to default profile template and the configuration information of application program, generate corresponding the joining of application program
Put file;
Default being used for is resolved the resolution file of this configuration file, this configuration file and essence data files pressure
Shorten the installation kit of application program into.
Preferably, preset profile template include file configuration item, registration table configuration item and fast side
Formula configuration item;
According to default profile template and the configuration information of application program, generate corresponding the joining of application program
Put file, including:
File configuration information, registration table configuration information and shortcut is obtained from the configuration information of application program
Information;
By file configuration information, registration table configuration information and shortcut information, it is respectively written into default configuration
In file configuration item, registration table configuration item and shortcut configuration item that file template includes, be applied journey
The configuration file that ordered pair is answered.
Preferably, according to this installation kit, the method for this application program is installed to include:
Transmission downloading request message, to server, is carried the mark of application program, is made in this downloading request message
Server obtains the installation kit of application program according to the mark of application program;
Receive the installation kit that server sends;
Installation kit is decompressed, obtains resolution file, corresponding the joining of application program that installation kit includes
Put file and essence data files;
The configuration file corresponding according to resolution file, application program and essence data files set up applications.
Preferably, installing according to configuration file corresponding to resolution file, application program and essence data files should
By program, including:
By resolution file, the configuration file that application program is corresponding is resolved, the configuration of the program that is applied
Information;
According to configuration information and essence data files, this application program is installed.
Further, default being used for is resolved the resolution file of configuration file, configuration file and basic data
Before compressing file becomes the installation kit of application program, also include:
Obtain the file format of configuration file, according to this document form, select from default multiple resolution files
Selecting the resolution file that this document form is corresponding, the resolution file of selection is this document form for resolving form
File.
In embodiments of the present invention, configuration information and the essence data files of application program are obtained;According to presetting
Profile template and the configuration information of application program, generate configuration file corresponding to application program;Will be pre-
If be compressed into application for resolving the resolution file of this configuration file, this configuration file and essence data files
The installation kit of program.Owing to according to the profile template preset and the configuration information of application program, automatically giving birth to
Become the configuration file that application program is corresponding, therefore avoid and write code to realize corresponding the joining of this application program
Put file, improve the efficiency generating installation kit.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be passed through
Hardware completes, it is also possible to instructing relevant hardware by program and complete, described program can be stored in
In a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or
CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the present invention's
Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention's
Within protection domain.
Claims (10)
1. the method generating installation kit, it is characterised in that described method includes:
Obtain configuration information and the essence data files of application program;
According to default profile template and the configuration information of described application program, generate described application program
Corresponding configuration file;
Default being used for is resolved the resolution file of described configuration file, described configuration file and described basis number
The installation kit of described application program is become according to compressing file.
2. the method for claim 1, it is characterised in that wrap in described default profile template
Include file configuration item, registration table configuration item and shortcut configuration item;
Described basis preset profile template and the configuration information of described application program, generate described application
The configuration file that program is corresponding, including:
File configuration information, registration table configuration information and quick is obtained from the configuration information of described application program
Mode information;
By described file configuration information, registration table configuration information and shortcut information, it is respectively written into described pre-
If profile template the file configuration item, registration table configuration item and the shortcut configuration item that include in,
To the configuration file that described application program is corresponding.
3. the method installing described application program according to installation kit described in claim 1, its feature exists
In, described method includes:
Transmission downloading request message, to server, carries the mark of described application program in described downloading request message
Know, make described server obtain the installation kit of described application program according to the mark of described application program;
Receive the described installation kit that described server sends;
Described installation kit is decompressed, obtains resolution file, described application that described installation kit includes
Configuration file that program is corresponding and essence data files;
The configuration file corresponding according to described resolution file, described application program and essence data files install institute
State application program.
4. method as claimed in claim 3, it is characterised in that described according to described resolution file, described
Configuration file and essence data files that application program is corresponding install described application program, including:
By described resolution file, the configuration file that described application program is corresponding is resolved, obtain described answering
With the configuration information of program;
According to described configuration information and described essence data files, described application program is installed.
5. the method for claim 1, it is characterised in that described by default be used for resolving described in join
Put the resolution file of file, described configuration file and described essence data files and be compressed into described application program
Before installation kit, also include:
Obtain the file format of described configuration file, according to described file format, from default multiple parsing literary compositions
Selecting the resolution file that described file format is corresponding in part, the resolution file of described selection is used for resolving form and is
The file of described file format.
6. the device generating installation kit, it is characterised in that described device includes:
Acquisition module, for obtaining configuration information and the essence data files of application program;
Generation module, for according to the profile template preset and the configuration information of described application program, raw
Become the configuration file that described application program is corresponding;
Compression module, for resolving the resolution file of described configuration file, described configuration literary composition by default being used for
Part and described essence data files are compressed into the installation kit of described application program.
7. device as claimed in claim 6, it is characterised in that wrap in described default profile template
Include file configuration item, registration table configuration item and shortcut configuration item;
Described generation module includes:
Acquiring unit, for obtaining file configuration information, registration table from the configuration information of described application program
Configuration information and shortcut information;
Writing unit, is used for described file configuration information, registration table configuration information and shortcut information,
It is respectively written into file configuration item that described default profile template includes, registration table configuration item and quick side
In formula configuration item, obtain the configuration file that described application program is corresponding.
8. install a device for described application program according to installation kit described in claim 6, its feature exists
In, described device includes:
Sending module, is used for sending downloading request message to server, carries institute in described downloading request message
State the mark of application program, make described server obtain described application program according to the mark of described application program
Installation kit;
Receiver module, for receiving the described installation kit that described server sends;
Decompression module, for decompressing described installation kit, obtains the solution that described installation kit includes
Configuration file that analysis file, described application program is corresponding and essence data files;
Module is installed, for the configuration file corresponding according to described resolution file, described application program and basis
Data file installs described application program.
9. device as claimed in claim 8, it is characterised in that described installation module includes:
Resolution unit, for solving the configuration file that described application program is corresponding by described resolution file
Analysis, obtains the configuration information of described application program;
Installation unit, for according to described configuration information and described essence data files, installs described application journey
Sequence.
10. device as claimed in claim 6, it is characterised in that described device also includes:
Select module, for obtaining the file format of described configuration file, according to described file format, from advance
If multiple resolution files in select resolution file corresponding to described file format, the resolution file of described selection
For resolving the file that form is described file format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510107742.9A CN106033335A (en) | 2015-03-11 | 2015-03-11 | An installation package generating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510107742.9A CN106033335A (en) | 2015-03-11 | 2015-03-11 | An installation package generating method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106033335A true CN106033335A (en) | 2016-10-19 |
Family
ID=57149804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510107742.9A Pending CN106033335A (en) | 2015-03-11 | 2015-03-11 | An installation package generating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106033335A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108037961A (en) * | 2017-12-07 | 2018-05-15 | 北京锐安科技有限公司 | A kind of application program collocation method, device, server and storage medium |
CN108089864A (en) * | 2016-11-14 | 2018-05-29 | 平安科技(深圳)有限公司 | Application development method and device |
CN108897581A (en) * | 2018-06-07 | 2018-11-27 | 北京奇艺世纪科技有限公司 | A kind of service arrangement method, apparatus and electronic equipment |
CN108958826A (en) * | 2017-05-22 | 2018-12-07 | 北京京东尚科信息技术有限公司 | The method and apparatus of dynamic configuration application installation package |
WO2019029160A1 (en) * | 2017-08-08 | 2019-02-14 | 深圳壹账通智能科技有限公司 | Application construction method and system, computer device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216765A (en) * | 2008-01-21 | 2008-07-09 | 中兴通讯股份有限公司 | Mobile terminal topic style dynamic altering method |
CN102314366A (en) * | 2011-09-08 | 2012-01-11 | 福州博远无线网络科技有限公司 | npk packaging tool and method for making and installing NPK format installation package of Android program |
CN102455915A (en) * | 2010-10-18 | 2012-05-16 | 卓望数码技术(深圳)有限公司 | Method for automatically configuring distributed system, and server |
CN103677876A (en) * | 2012-09-12 | 2014-03-26 | 中兴通讯股份有限公司 | Manufacturing and installing method, device and system of software installation package |
-
2015
- 2015-03-11 CN CN201510107742.9A patent/CN106033335A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101216765A (en) * | 2008-01-21 | 2008-07-09 | 中兴通讯股份有限公司 | Mobile terminal topic style dynamic altering method |
CN102455915A (en) * | 2010-10-18 | 2012-05-16 | 卓望数码技术(深圳)有限公司 | Method for automatically configuring distributed system, and server |
CN102314366A (en) * | 2011-09-08 | 2012-01-11 | 福州博远无线网络科技有限公司 | npk packaging tool and method for making and installing NPK format installation package of Android program |
CN103677876A (en) * | 2012-09-12 | 2014-03-26 | 中兴通讯股份有限公司 | Manufacturing and installing method, device and system of software installation package |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089864A (en) * | 2016-11-14 | 2018-05-29 | 平安科技(深圳)有限公司 | Application development method and device |
CN108958826A (en) * | 2017-05-22 | 2018-12-07 | 北京京东尚科信息技术有限公司 | The method and apparatus of dynamic configuration application installation package |
WO2019029160A1 (en) * | 2017-08-08 | 2019-02-14 | 深圳壹账通智能科技有限公司 | Application construction method and system, computer device, and storage medium |
CN108037961A (en) * | 2017-12-07 | 2018-05-15 | 北京锐安科技有限公司 | A kind of application program collocation method, device, server and storage medium |
CN108037961B (en) * | 2017-12-07 | 2021-01-19 | 北京锐安科技有限公司 | Application program configuration method, device, server and storage medium |
CN108897581A (en) * | 2018-06-07 | 2018-11-27 | 北京奇艺世纪科技有限公司 | A kind of service arrangement method, apparatus and electronic equipment |
CN108897581B (en) * | 2018-06-07 | 2022-03-04 | 北京奇艺世纪科技有限公司 | Service deployment method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6419319B2 (en) | Synchronize shared folders and files | |
CN106033335A (en) | An installation package generating method and device | |
CN107528872B (en) | Data recovery method and device and cloud storage system | |
WO2019128392A1 (en) | Method and apparatus for extracting service field, and electronic device and storage medium | |
JP6475736B2 (en) | File search method for storage device, file search device for storage device, router, program, and recording medium | |
US10972569B2 (en) | Apparatus, method, and computer program product for heterogenous compression of data streams | |
CN106648766B (en) | Method and device for generating patch upgrade patch based on folder and differentially upgrading patch based on folder | |
WO2014187255A1 (en) | Application packaging device and method | |
CN103746782A (en) | Method and apparatus for obtaining feedback information of application | |
US9563628B1 (en) | Method and system for deletion handling for incremental file migration | |
CN104468774A (en) | Data presentation method applied to could disk client side and could disk client side | |
US7900004B2 (en) | Converting backup copies of objects created using a first backup program to backup copies created using a second backup program | |
CN105320577B (en) | A kind of data backup and resume method, system and device | |
US20200167362A1 (en) | Data integration for distributed and massively parallel processing environments | |
CN111209001A (en) | Method, system, equipment and medium for batch generation of APKs of android channels | |
CN111104258A (en) | MongoDB database backup method and device and electronic equipment | |
US8438351B2 (en) | Binary level update of compressed read-only file systems | |
CN111176706A (en) | Terminal upgrading method and device, electronic equipment and storage medium | |
WO2021233115A1 (en) | Method and apparatus for modifying file name, and storage medium | |
CN104361007A (en) | Browser and processing method for browser favorites | |
CN112764830B (en) | Data migration method and system applied to localization substitution | |
CN115129574A (en) | Code testing method and device | |
CN104639973A (en) | Information pushing method and device | |
CN112948247A (en) | Processing method, system, device and medium for operation playback of application program | |
CN107656767A (en) | Method, apparatus that system installation kit automatically updates, intelligent express delivery cabinet |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161019 |
|
RJ01 | Rejection of invention patent application after publication |