A kind of application program packaging method and device based on data volume
Technical field
The application is related to the technical field of application development, more particularly to a kind of application program packing based on data volume
Method and device.
Background technology
With the development and popularization of smart mobile phone, to make APP platform, such as iOS and Android platform are the shifting of representative
Dynamic application developer Showed Very Brisk, increasing people wishes to work miracle by a mobile APP, starts another new generation
Boundary.In such a case, ordinary people also wants to develop the APP that carry oneself intention and design, but too high for technical threshold
Mobile Internet field a, ordinary people that will not be programmed often does not possess the technical ability of APP exploitations.In order to meet the need of people
Ask, self-service APP development platforms are arisen at the historic moment.
Self-service APP development platforms can help domestic consumer easily to solve to develop mobile phone A PP technology barrier, Ren Heyong
Family can develop the Native mobile phone A PP with one's best quality without any technological know-how according to the intention and design of oneself,
And manufacturing speed is fast, simple, free, specialty., need to be by packing shape for the APP applications generated in self-service APP development platforms
Into complete iOS and Android installation kits, packed installation kit is submitted to distribution platform, passes through terminal user after examination & verification
APP can be just downloaded on distribution platform and installed and used.
With the continuous improvement of people's living standards, exploitation APP people is more and more, user can also produce in use
Raw new demand, the continuous accumulation of new demand promotes the function of APP platforms constantly to upgrade and update from low to high.Platform for making
The APP of upper generation is in packing process, and because the APP for needing to pack is a lot, the packing time is very long, and existing APP packs
All largely concentrate in a development platform, it is necessary to re-start packing to all packaging files after machine breaks down, make
It is low into packing efficiency.
In the prior art, the A of document CN 104615433 propose a kind of APP applications to being generated in development platform and carried out
The method of cluster packing.This method is provided with two groups of development platforms, and two sub- development platforms of setting in every group of development platform,
The two sub- development platforms one perform packaging operation for IOS systems, and another performs packing behaviour for android system
Make.
Because above-mentioned packaging method is only capable of carrying out classifying packing, this classifying packing side for the classification difference of operating system
Method has certain limitation, if for example, the packing program of certain operating system is more, and the packing of another operating system
Program is less, can cause to pack more platform occur packing be detained or obstruction situation, and opposite side packing platform is beaten
There is redundancy idle condition in bag, therefore the situation of this classifying packing has the problem of packing inefficiency, needs to be proposed one kind
New classifying packing method;Secondly as application data amount to be packed is not of uniform size, as low as several K are big to several G, can be right
The performance of packing passage proposes very high requirement, therefore, and above-mentioned packaging method fails the data for application program to be packed
The difference of amount provides effective packaging method;Finally, due to which above-mentioned packaging method is pile line operation, some program can be faced such as
There is packing failure in packing process in fruit, then the packing of whole packing production line can be caused to pause, and has had a strong impact on packing effect
Rate.
In summary analyze, a kind of data volume for the application program that should flexibly treat packing is not suggested that among prior art
Fluency is high, the application program batch packaging method of efficiency high.
The content of the invention
A kind of application program packaging method based on data volume, methods described comprises the following steps:
S1, receives the data flow of multiple application programs to be packed, by the data flow of multiple application programs of the packing according to
Data volume is divided into multiple data volume grades, and the number of multiple application programs to be packed as described in the data volume grade mark
According to stream;
S2, configures the packing passage of multiple application data streams, and the packing passage is corresponded with the data volume grade;
S3, according to the data volume grade mark by the data stream transmitting of multiple application programs to be packed to corresponding
Packing passage in carry out packaging operation successively;
S4, if the application program is packed successfully, the application program upload server for the packing that will succeed simultaneously is issued;If institute
Application program packing failure is stated, then record packing failure information.
As a preferred embodiment, the data flow of multiple application programs to be packed includes:Application program
Function code data, operation platform data, user configuring data.
As a preferred embodiment, setting multiple packing subchannels for each packing passage, belong to same
The packing subchannel of the individual packing passage has identical packing performance, and will belong to the same packing passage
Multiple packing subchannels are referred to as subchannel group of packing;Obtain the data flow and its data of each application program to be packed
Grade mark is measured, is arrived the data stream transmitting of multiple application programs to be packed and it according to the data volume grade mark
Queue order is pressed in corresponding packing passage, is grasped to belonging to the data flow of application program of the same packing passage with poll
The mode of work is input to the packing subchannel group, and the packing subchannel group is to inputting the data of the application program of this subchannel
Stream carries out packaging operation.
As a preferred embodiment, the step S3 also includes:The packaging operation is divided into multiple different
Packing stage, each packing stage completes different packing tasks;Each packing passage is right in pipelined fashion respectively
The data flow of multiple application programs to be packed carries out packaging operation successively.
As a preferred embodiment, the step S4 also includes:If the application program packing failure, remembers
Record packing failure information;And according to the analysis and the transitional information, the package information, the packing failure information
Analysis packing failure cause.
As a preferred embodiment, setting packing to repair passage;The multiple application program is recorded in each institute
The package information in each packing stage in packing passage is stated, if the application program packing mistake occurs in some packing stage
By mistake, then the information of packing stage packing mistake is recorded, and is exited from packing production line, the packing data that the packing is interrupted
A packing stage is return back to, and the packing data for returning back to a upper packing stage is transferred to the packing and repairs passage,
The information that passage obtains the packing stage packing mistake is repaired in the packing, is repaiied after analyzing described information in the packing
Multiple passage carries out packaging operation to the packing data for returning back to a upper packing stage.
The present invention proposes a kind of application program packaging method based on data volume, by by multiple application journeys to be packed
The data flow of sequence is divided into multiple data volume grades according to data volume, and multiple application programs are classified according to data volume grade
Packing, that is, propose a kind of new classifying packing method, the method overcome and carries out classifying packing according to the different of operating system
The problem of packing inefficiency caused, improve the packing efficiency of application program;In addition, setting multiple for each packing passage
Packing subchannel, to the application data stream in each packing passage and its packing subchannel in the way of streamline and poll
Packaging operation is carried out, the fluency and efficiency of application program packing is improved;Finally, overcome by setting packing to repair passage
The packing stall problem that individual data packing mistake is caused during streamline packaging operation, so as to improve beating for application program
Bag efficiency.
Further it is proposed that a kind of application program packing apparatus based on data volume, described device includes following mould
Block:
Receiving module, the data flow of multiple application programs to be packed for receiving, by multiple application programs of the packing
Data flow is divided into multiple data volume grades according to data volume, and as described in the data volume grade mark it is to be packed it is multiple should
With the data flow of program;
Configuration module, the packing passage for configuring multiple application data streams, the packing passage and described data volume etc.
Level is corresponded;
Packetization module, for according to the data volume grade mark by the data stream transmitting of multiple application programs to be packed
Packaging operation is carried out successively into corresponding packing passage;
Packing repair module, for recording each packing stage of the multiple application program in each packing passage
Package information, if the application program packing mistake occurs in some packing stage, records packing stage packing mistake
Information, and exited from packing production line, the packing data that the packing is interrupted return back to the upper packing stage, and by this time
The packing data for falling back on a packing stage is transferred to the packing reparation passage, and the packing repairs passage and obtains this described dozen
The information of bag stage packing mistake, passage is repaired to a packing rank on described return back to after analyzing described information in the packing
The packing data of section carries out packaging operation;
Packing confirms module, if the application program is packed successfully, the application program upload server that success is packed is simultaneously
Issue;If the application program packing failure, record packing failure information.
The present invention proposes a kind of application program packing apparatus based on data volume, by by multiple application journeys to be packed
The data flow of sequence is divided into multiple data volume grades according to data volume, and multiple application programs are classified according to data volume grade
Packing, that is, propose a kind of new classifying packing method, the method overcome and carries out classifying packing according to the different of operating system
The problem of packing inefficiency caused, improve the packing efficiency of application program;In addition, setting multiple for each packing passage
Packing subchannel, to the application data stream in each packing passage and its packing subchannel in the way of streamline and poll
Packaging operation is carried out, the fluency and efficiency of application program packing is improved;Finally, overcome by setting packing to repair passage
The packing stall problem that individual data packing mistake is caused during streamline packaging operation, so as to improve beating for application program
Bag efficiency.
Brief description of the drawings
Fig. 1 is a kind of application program packaging method schematic flow sheet based on data volume of the present invention.
Embodiment
Embodiments of the invention are further illustrated below in conjunction with accompanying drawing.
Embodiment one:
Fig. 1 is a kind of application program packaging method schematic flow sheet based on data volume of the present invention, and this method includes following step
Suddenly:
A kind of application program packaging method, methods described comprises the following steps:
S1, receives the data flow of multiple application programs to be packed, by the data flow of multiple application programs of the packing according to
Data volume is divided into multiple data volume grades, and the number of multiple application programs to be packed as described in the data volume grade mark
According to stream;
S2, configures the packing passage of multiple application data streams, and the packing passage is corresponded with the data volume grade;
S3, according to the data volume grade mark by the data stream transmitting of multiple application programs to be packed to corresponding
Packing passage in carry out packaging operation successively;
S4, if the application program is packed successfully, the application program upload server for the packing that will succeed simultaneously is issued;If institute
Application program packing failure is stated, then record packing failure information.
By by the data flow of multiple application programs of the packing according to data volume be divided into multiple data volume grades come
Solve the problem of packing passage needs to carry out the packing inefficiency that packing is caused to the application software of various data volume grades.Example
Such as, multiple packing passage T1, T2, T3, T4 are set, and its corresponding application data amount is followed successively by 103, 102, 101, 100M tetra-
Individual data volume grade, and set up corresponding data volume grade mark a, b, c, d.If application program and its data volume to be packed
For 6*103, 2*101, 8*102, 9*103, 7*100, 3*102, 5*103, unit is M, then by 6*103、9*103、5*103Correspondence
Program data stream be labeled as a1, a2, a3, and passage T1 is sent into, by 8*102、3*102Corresponding program data stream labeled as b1,
B2, and passage T2 is sent into, by 2*101Corresponding program data stream is labeled as c, and sends into passage T3, by 7*100Corresponding program
Data flow token is d, and sends into passage T4.And successively in packing passage T1, T2, T3, T4 to above-mentioned multiple application datas
Stream carries out packaging operation.
As a preferred embodiment, the data flow of multiple application programs to be packed includes:Application program
Function code data, operation platform data, user configuring data.
As a preferred embodiment, setting multiple packing subchannels for each packing passage, belong to same
The packing subchannel of the individual packing passage has identical packing performance, and will belong to the same packing passage
Multiple packing subchannels are referred to as subchannel group of packing;Obtain the data flow and its data of each application program to be packed
Grade mark is measured, is arrived the data stream transmitting of multiple application programs to be packed and it according to the data volume grade mark
Queue order is pressed in corresponding packing passage, is grasped to belonging to the data flow of application program of the same packing passage with poll
The mode of work is input to the packing subchannel group, and the packing subchannel group is to inputting the data of the application program of this subchannel
Stream carries out packaging operation.
For example, above-mentioned packing passage has T1 two packings subchannel T11, T12, and packing data is treated in the packing passage
Stream has three a1, a2, a3, then will first treat that packetized datastream a1, a2 distributes to packing subchannel T11, T12, and this two are beaten
Steamed stuffed bun passage T11, T12 perform polling operation, if packing subchannel T11 takes the lead in completing the packing for treating packetized datastream a1 behaviour
Make, then will treat that packetized datastream a3 distributes to packing subchannel T11 and carries out packaging operation.Above as just a kind of exemplary
Embodiment.
As a preferred embodiment, the step S3 also includes:The packaging operation is divided into multiple different
Packing stage, each packing stage completes different packing tasks;Each packing passage is right in pipelined fashion respectively
The general packing formatted data carries out packaging operation successively.
As a preferred embodiment, the step S4 also includes:If the application program packing failure, remembers
Record packing failure information;And according to the analysis and the transitional information, the package information, the packing failure information
Analysis packing failure cause.
As a preferred embodiment, setting packing to repair passage;The multiple application program is recorded in each institute
The package information in each packing stage in packing passage is stated, if the application program packing mistake occurs in some packing stage
By mistake, then the information of packing stage packing mistake is recorded, and is exited from packing production line, the packing data that the packing is interrupted
A packing stage is return back to, and the packing data for returning back to a upper packing stage is transferred to the packing and repairs passage,
The information that passage obtains the packing stage packing mistake is repaired in the packing, is repaiied after analyzing described information in the packing
Multiple passage carries out packaging operation to the packing data for returning back to a upper packing stage.
For example, setting packing to repair passage X, if treating packetized datastream in T11 passages in first round packing process
A1 experienced packing stage a packing data QA3a and its package information ma, the packing data QA3b of stage b in packing process
And its package information mb, stage c packing data QA3c and its package information mc, and packing mistake is occurred in that in packing stage c,
Then packing data QA3c is exited from packing production line, the packing data QA3c that the packing is interrupted is return back to upper packing rank
Section QA3b, and the packing data QA3b for returning back to a upper packing stage is transferred to the packing reparation passage X, packing is repaired
Passage X obtains the packing error message mc in packing stage c, is fought each other to repairing passage X in packing after packing error message mc analyses
Bag data QA3b carries out packaging operation.
The present invention proposes a kind of application program packaging method based on data volume, by by multiple application journeys to be packed
The data flow of sequence is divided into multiple data volume grades according to data volume, and multiple application programs are classified according to data volume grade
Packing, that is, propose a kind of new classifying packing method, the method overcome and carries out classifying packing according to the different of operating system
The problem of packing inefficiency caused, improve the packing efficiency of application program;In addition, setting multiple for each packing passage
Packing subchannel, to the application data stream in each packing passage and its packing subchannel in the way of streamline and poll
Packaging operation is carried out, the fluency and efficiency of application program packing is improved;Finally, overcome by setting packing to repair passage
The packing stall problem that individual data packing mistake is caused during streamline packaging operation, so as to improve beating for application program
Bag efficiency.
Further it is proposed that a kind of application program packing apparatus based on data volume, described device includes following mould
Block:
Receiving module, the data flow of multiple application programs to be packed for receiving, by multiple application programs of the packing
Data flow is divided into multiple data volume grades according to data volume, and as described in the data volume grade mark it is to be packed it is multiple should
With the data flow of program;
Configuration module, the packing passage for configuring multiple application data streams, the packing passage and described data volume etc.
Level is corresponded;
Packetization module, for according to the data volume grade mark by the data stream transmitting of multiple application programs to be packed
Packaging operation is carried out successively into corresponding packing passage;
Packing repair module, for recording each packing stage of the multiple application program in each packing passage
Package information, if the application program packing mistake occurs in some packing stage, records packing stage packing mistake
Information, and exited from packing production line, the packing data that the packing is interrupted return back to the upper packing stage, and by this time
The packing data for falling back on a packing stage is transferred to the packing reparation passage, and the packing repairs passage and obtains this described dozen
The information of bag stage packing mistake, passage is repaired to a packing rank on described return back to after analyzing described information in the packing
The packing data of section carries out packaging operation;
Packing confirms module, if the application program is packed successfully, the application program upload server that success is packed is simultaneously
Issue;If the application program packing failure, record packing failure information.
It should be noted that a kind of general packing apparatus of application program of the present invention can be and a kind of above-mentioned application program
Packaging method corresponding modular device one by one, for realizing the various functions in this method, therefore, will not be described here.
The present invention proposes a kind of application program packing apparatus based on data volume, by by multiple application journeys to be packed
The data flow of sequence is divided into multiple data volume grades according to data volume, and multiple application programs are classified according to data volume grade
Packing, that is, propose a kind of new classifying packing method, the method overcome and carries out classifying packing according to the different of operating system
The problem of packing inefficiency caused, improve the packing efficiency of application program;In addition, setting multiple for each packing passage
Packing subchannel, to the application data stream in each packing passage and its packing subchannel in the way of streamline and poll
Packaging operation is carried out, the fluency and efficiency of application program packing is improved;Finally, overcome by setting packing to repair passage
The packing stall problem that individual data packing mistake is caused during streamline packaging operation, so as to improve beating for application program
Bag efficiency.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.