Specific embodiment
In actual applications, software developer in order that oneself exploitation App be promoted, be generally required for the App
Installation kit be published on line upper mounting plate, by the big advantage of line upper mounting plate user's visit capacity, to promote the App, wherein, for
Never for the installation kit issued on online upper mounting plate, when this kind of installation kit is issued on online upper mounting plate, then can claim this kind of
Installation kit is installation kit on line, and accordingly, before installation kit is not reached the standard grade also on line, the installation kit under it is online then can be described as under line
Installation kit.Software developer is issued on the line upper mounting plate on line after installation kit, it is follow-up generally the App can all be carried out it is certain complete
It is kind, update, with and come, in order to allow users to using the App after updating, software developer is generally needed after renewal
App corresponding to installation kit be published to line upper mounting plate up, and replace installation kit on the line existed on line upper mounting plate, its
In, do not issue on online upper mounting plate, and can be described as updating bag under line for updating the installation kit of the App, accordingly, under the line more
New bag then can be described as updating bag on line after being published to line upper mounting plate.It is relative to installation kit under line that bag is updated under line described herein
, i.e. under line installation kit equivalent to the history installation kit that bag is updated under line, accordingly, on line installation kit then equivalent on line more
The history installation kit of new bag, so, referred to herein as line on installation kit be not necessarily meant to refer to issue on online upper mounting plate for the first time
Installation kit.
The installation kit of App is published to when on line upper mounting plate, and line upper mounting plate can all enter to the installation kit that software developer uploads
The certain treatment of row, so, it is generally the case that installation kit in size would generally be different under installation kit and line on line, similarly, line
The size that bag is updated under upper renewal bag and line also can be different, and software developer is in order to allow users to using the same of the App
When, it is also desirable to the memory space of the occupancy subscriber terminal equipment that the App can try one's best low, so, software developer is again by under line
Update bag to be published to when on line upper mounting plate, be generally required for by certain mode, determining after update under the line and wrapping line
The size of bag is updated on line.And generally all only determine to be updated on line in the prior art with a part of data in installation kit under line
The size of bag, also, this partial data there is typically further common factor with other data, therefore, determined based on this partial data
The size that bag is updated on the line for going out is typically inaccurate.In order to update the size of bag in accurately determination outlet, at this
In application embodiment, terminal or server pass through under installation kit on the line that gets and line the big of all types of data in installation kit
It is small, each estimation factor is determined, and it is further according to the size that all types of data in bag are updated under each estimation factor and line,
Determine to be updated in outlet the size of bag, this process will be described in detail below.
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, described embodiment is only the application one
Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.
The process of the determination installation kit size that Fig. 1 is provided for the embodiment of the present application, specifically includes following steps:
S101:Obtain on line on installation kit and the line installation kit under the corresponding line of installation kit.
In the embodiment of the present application, in order to the accurate size for determining to update bag in outlet, software developer can lead to
Cross terminal or server and pacify under the corresponding line of installation kit on installation kit and the line obtaining updated on the line on the corresponding line of bag
Dress bag, wherein, because installation kit is issued on online upper mounting plate on line, so, software developer can be by terminal or server
Installation kit on the line is got from line upper mounting plate, and software developer updates under installation kit under often developing a line or line
Bao Shi, can be preserved, in case it is follow-up used, so, what software developer can be preserved from terminal or server
Each installation kit is directly obtained installation kit under the line, as shown in Figure 2.
Fig. 2 provides the detailed maps that bag size is updated on alignment really for the embodiment of the present application.
In fig. 2, terminal can get installation kit on line from line upper mounting plate, and get the line from the terminal itself
Installation kit under the corresponding line of upper installation kit, and if installation kit and be not preserved in the terminal under line, and be stored in software development
In the home server of business, then terminal can obtain installation kit under the line from the home server.Wherein, referred to herein as terminal
Can be the smart machines such as computer, smart mobile phone that software developer uses.Certainly, can also be obtained by server pacify on line
Installation kit under dress bag and line, and in subsequent process, the size that bag is updated on the line that will be determined is sent to terminal and is shown
Show.
S102:According to the size of all types of data included in installation kit under installation kit on the line and line, determine
Each estimation factor, wherein, each data is pertaining only to a type.
Terminal or server are being got on line on installation kit and the line under the corresponding line of installation kit after installation kit, can be pressed
According to the same criteria for classifying, respectively by each data included in installation kit under installation kit on line and line be divided into it is all types of in,
To obtain all types of data, wherein, according to each data that same criteria for classification is divided, each data only corresponds to a type.
Then, terminal or server can according to the size of all types of data in installation kit under installation kit on the line determined and line,
Determine each estimation factor for determining renewal bag size on line.
Specifically, in actual applications, either installation kit under installation kit or line on line, its data for including generally may be used
It is divided into following a few classes:The first kind is referred to as variable data, for this kind of data, because installation kit is line upper mounting plate by line on line
Lower installation kit by being obtained after certain treatment, so, a part of data and this portion in installation kit under line in installation kit on line
Divided data is compared, often different in size, therefore, installation kit is changing into the mistake of installation kit on line via line upper mounting plate under line
Cheng Zhong, we can be referred to as variable data to this kind of data that the size of data can change, and such data are generally wrapped
Include binary data and device-specific data, wherein, referred to herein as device-specific data refer to it is being included in installation kit on line,
The data on some wearable smart machines can be operated in.Relative to variable data, on line under installation kit or line in installation kit
Generally also include a kind of fixed data, this data in size will not with line installation kit be changed into the mistake of installation kit on line
Journey and change, i.e. this data will not change in size, in actual applications, fixed data mainly include such as scheme
The resource datas such as piece, file.
Therefore, in the embodiment of the present application, terminal or server can be according to the same criteria for classifying, can be from the line for getting
Installation kit marks off variable data and fixed data under installation kit and line, and then, terminal or server can be according to determining
Line under on installation kit and line the variable data of installation kit size, determine the first estimation factor, concrete mode can be
By the size of the variable data of installation kit on line divided by the size of the variable data of installation kit under line, installation kit and line on line are obtained
A scale factor of the lower installation kit in variable data, such as formula α=w1(T)÷w0(T), wherein, w1(T) it is installation on line
The size of the variable data in bag, w0(T) be the size of variable data in installation kit under line, α be the first estimation for determining because
Son.Certainly, the determination mode of the first estimation factor can also be pacified using the size of the variable data of installation kit under line divided by line
The mode for filling the size of the variable data of bag determines, and follow-up determination process need to only be adjusted accordingly, also may be used
It is determined using other modes, such as according to the size of the variable data of installation kit under installation kit on line and line and default
Coefficient determine, herein just do not illustrate one by one.
In actual applications, installation kit is by after certain treatment, obtaining under the line that line upper mounting plate uploads software developer
To line on the data of a part generally can be all had more in installation kit, this partial data is generally all line upper mounting plate according to itself
It is required that be added on line in installation kit, also, the size of this partial data is generally all relevant with the total size of installation kit under line,
Such as, the total size of installation kit is bigger under line, and the size of this partial data on line in installation kit is bigger, due to this partial data phase
When what is then provided by line upper mounting plate, so, this partial data may be generally referred to as third party's data, e.g., for the line of apple
For upper App platforms AppStore, the third party's data on line in installation kit refer to then the SC-Info numbers generated by AppStore
According to.
Because third party's data are related generally all with the total size of installation kit under line, so, third party's data are usual
Also should be related to the variable data or fixed data in installation kit under line, and because the embodiment of the present application is intended to accurately determine
The size of bag is updated on line, being updated on line in wrapping can generally also include third party's data, so, in the embodiment of the present application
In, terminal or server it needs to be determined that go out an estimation factor related to third party's data, and subsequently through the estimation because
The size of all types of data in bag is updated under son and line, determines to update the size of third party's data in bag in outlet, and then
The size that bag is updated on the line is accurately determined, therefore, terminal or server are needed from installation kit on the line for getting really
The size of the third party's data included in installation kit on the line is made, then, because third party's data generally should be in peace under line
There is certain proportionate relationship in variable data or fixed data in dress bag, therefore, terminal or server can be from the lines for getting
Arbitrarily chosen in all types of data included in lower installation kit a kind of data as first specify data, and according to this first specify
In the size of data and the line determined in installation kit third party's data size, determine the second estimation factor, specifically
Determination mode can be that the size of the third party's data in installation kit on the line that will be determined is chosen divided by from installation kit under line
First specify data size, obtain this second estimation the factor, such as formula δ=w1(v)÷w0(T), wherein, w1(T) on line
The size of the third party's data in installation kit, w0(T) it is the size of variable data in installation kit under line, δ is second for determining
The estimation factor, can be also determined using other modes certainly, need to only embody the size of third party's data in installation kit on line
With the relation of installation kit under line.
For example, terminal or server in installation kit under optional line taking it is determined that during the second estimation factor, include
Variable data as first specify data, and determine this first specify data size, then, terminal or server can be from acquisitions
To line on determine the size of the third party's data included in installation kit on the line in installation kit, and by above-mentioned formula δ=
w1(v)÷w0(T) the second estimation factor, is determined.
It should be noted that in actual applications, variable data generally includes binary data and device-specific data, because
This, in the embodiment of the present application, terminal or server, also can be by the lines after installation kit on installation kit under getting line and line
The variable data included in installation kit under upper installation kit and line splits into binary data and device-specific data, and root respectively
According to the binary data and the size of device-specific data determined, determine the 3rd estimation included by the first estimation factor because
Son or the 4th estimation factor.
Specifically, terminal or server from the line for getting it is determined that during the 3rd estimation factor, can pacify respectively
The size of binary data is determined under dress bag and line in installation kit, and is pacified according under installation kit on the line determined and line
The size of the binary data of bag is filled, the 3rd estimation factor is determined, concrete implementation mode can be by installation kit on line
Binary data size divided by the binary data of installation kit under line size, such as formula β=w1(x)÷w0Shown in (x),
Wherein, the w in the formula1X () represents the size of the binary data of installation kit on line, w0X the two of installation kit enter under () expression line
The size of data processed, β then represents the 3rd estimation factor determined.Certainly, the determination mode of the 3rd estimation factor is not unique,
Also weight, coefficient etc. can be added in above-mentioned formula, herein with regard to not illustrated one by one.
For the determination mode of the 4th estimation factor, terminal or server can determine respectively in outlet installation kit and
Under line in installation kit device-specific data size, it is and special according to equipment in installation kit under installation kit on the line determined and line
With the size of data, the 4th estimation factor is determined, concrete implementation mode can be, by the device-specific of installation kit on line
The size of data obtains a ratio divided by the size of device-specific data in installation kit under line, and using the ratio as the 4th
The estimation factor, such as formula γ=w1(y)÷w0Shown in (y), wherein, w1Y () represents on line the big of device-specific data in installation kit
It is small, w0Y () represents the size of device-specific data in installation kit under line, γ then represents the 4th estimation factor determined.Certainly,
The determination mode of the 4th estimation factor is also not necessarily to be carried out according to above-mentioned formula, also can be in above-mentioned γ=w1(y)÷w0(y)
Middle some weights of addition, coefficient etc., are not just described in detail herein.
S103:Determine to update under line the size of all types of data included in bag.
In actual applications, the proportionate relationship on line under installation kit and line in installation kit between all types of data, generally with
It is close that the proportionate relationship updated under bag and line in bag between all types of data is updated on line, for example, installation kit and line on line
Proportionate relationship between the variable data of both lower installation kits generally updates the variable of both bags with line under renewal bag and line
Ratio between data is same or like, in other words, by all types of data in installation kit under installation kit on line and line
Between proportionate relationship, and under line update bag in all types of data size, can determine in outlet update bag in it is all types of
The size of data, and then determine to update the size of bag in outlet.Because the embodiment of the present application is intended to accurately determine in outlet more
The size of new bag, so, after above-mentioned steps S101~S102 determines each estimation factor, then need further to determine
The size of all types of data in bag is updated under line, and by subsequent step, according to all types of numbers in renewal bag under the line determined
According to size, and respectively estimate the factor, determine to update the size of bag in outlet.Therefore, terminal or server respectively estimate being determined
After calculating the factor, can further determine to update the size of all types of data in bag under outlet, wherein, terminal or server can be according to
With the identical criteria for classifying in above-mentioned steps S102, variable data and fixed data are divided into by the data in bag are updated under line,
And the size that the variable data and fixed data included in bag is updated under the line is determined respectively, also variable data can be entered one
Step is divided into binary data and device-specific data, and it is special respectively to determine to update under outlet binary data and equipment in bag
With the size of data.
It should be noted that terminal or server also can on line is obtained under installation kit and line while installation kit,
Get in the lump and bag is updated under line, and determine the size that all types of data included in bag are updated under the line, and not necessarily
After each estimation factor is determined, then to determine to update the size of all types of data in bag under outlet.
S104:According under the line determined update bag in all types of data size and respectively estimate the factor, really
The size that bag is updated on the corresponding line of bag is updated under the fixed line.
Terminal or server, can be according to determining it is determined that after the size that all types of data included in bag are updated under outlet
Each estimation factor, and the size of all types of data of bag is updated under the line, determine to be updated in outlet all types of data in bag
Size, and then according to the size of all types of data in bag is updated on the line determined, determine to update the size of bag in outlet.
Specifically, because terminal or server will can update according to the data criteria for classifying in above-mentioned steps S102 under line
Data in bag are divided into variable data and fixed data, and to determine and update variable data and fixed data in bag under the line
Size, so, terminal or server can be estimated according to the size of the variable data updated under the line determined in bag and first
The factor is calculated, determines to update the size of variable data in bag in outlet, and for being updated on line in bag for the size of fixed data,
Due to the size of fixed data be will not as line upper mounting plate changes to the treatment of installation kit, so, on line update
In bag the size of fixed data its be actually the size that fixed data in bag is updated under line, so, it is determined that under outlet more
In new bag while the size of fixed data, the size that fixed data in bag is updated on line has also been determined that out.
Being updated on line in bag generally can all update third party's data obtained by bag under wired upper mounting plate treatment line, so,
In order to update the size of bag on the line accurately determined, terminal or server are needed also exist for third party's online data
The upper size updated in bag is determined, and due to terminal or server pass through to define in above-mentioned steps S102 one and
The second related estimation factor of third party's data, although the second estimation factor is by third party's data in installation kit on line
Size and line under in installation kit the size of variable data or fixed data any one data determine, but, by
Renewal bag two under bag and line is updated in ratio between all types of data of both installation kits under installation kit on line and line, with line
Ratio between all types of data of person is close or identical, so, terminal or server are it is determined that third party in updating bag on line
During the size of data, the second estimation factor equally can be used.Therefore, in the embodiment of the present application, terminal or server can roots
According to the second estimation factor, determine that the second estimation factor is drawn based on which kind of data in installation kit under line, i.e. it is determined that
First data are specified in installation kit under selected line when going out to calculate the second estimation factor, then, terminal or server can
The size determined in wrapping with the first specified data type identical data is updated under the line, and according to the number determined
According to size and second estimation the factor, determine in outlet update bag in third party's data size.
Terminal or server fixed data in determining to update bag in outlet successively, variable data, third party's data
After size, the size of these three data that will can be determined is summed up, and then obtains being updated on line the size of bag, such as formula A
=w2(T)×α+w2(i)×δ+w2Shown in (z), in the formula, w2(T) it is the size of variable data in renewal bag under line, and w2
(T) size of variable data in bag, w are updated on the result that × α is obtained as line2I () is the first specified number in renewal bag under line
According to size, wherein, when it is determined that second estimation the factor during, using the variable data in installation kit under line as first refer to
Fixed number according to when, then w2I () can accordingly become w2(T), that is, represent line under update bag in variable data size, and when it is determined that
During the second estimation factor, using the fixed data in installation kit under line as first specify data when, then w2I () can be corresponding
Become w2The size of fixed data in bag, accordingly, w are updated under (z), i.e. expression line2On i result that () × δ is obtained as line
Update the size of third party's data in bag, w2The size of fixed data in bag is updated under (z) expression line, equally be show also on line
Update the size of fixed data in bag.Certainly, above-mentioned formula is not unique, can be in above-mentioned formula A=w2(T)×α+w2(i)×δ+
w2Some weights, coefficient etc. are added in (z), is not just described in detail one by one herein.
It should be noted that variable data also can further be split into binary data and equipment for terminal or server
Exclusive data, and according to above-mentioned the 3rd estimation factor determined and the 4th estimation factor, determine to update bag in outlet respectively
The size of middle binary data and device-specific data.Specifically, terminal or server can update according under the line determined
Binary data and the 3rd estimation factor in bag, determine to update the size of the binary data in bag in outlet, similarly, eventually
End or server can be determined in outlet according to the device-specific data updated under the line determined in bag and the 4th estimation factor
Update the size of the device-specific data in bag.Accordingly, subsequent terminal or server are defining renewal bag on line in succession
In third party's data and fixed data size after, can according on the line determined update bag in all types of data size,
The further size for determining to update bag in outlet, concrete implementation mode is referred to formula A=w2(x)×β+w2(y)×γ
+w2(i)×δ+w2(z), in the formula, w2X () is to update the size of binary data included in bag, corresponding w under line2(x)
The result that × β is obtained is the size that binary data in bag is updated on line, w2Y () is the device-specific included in renewal bag under line
The size of data, and w2Y result that () × γ is obtained is the size that device-specific data in bag is updated on line.
Through the above way as can be seen that because terminal or server on line during it is determined that update bag size, and
Be not only based on installation kit on line in the size of a part of data carry out, but by installation kit on line and line
The size of all types of data included in lower installation kit, the size to determine to be updated on line bag in all directions, moreover, due to
The all types of data marked off according to same standard are mutually, in the absence of common factor, so to avoid because between all types of data
There is a problem of common factor and cause the size that bag is updated on the line determined inaccurate, so enable software developer according to
The convenient size to updating bag under the corresponding line of renewal bag on the line of size that bag is updated on the accurate line determined is adjusted.
It should be noted that in actual applications, an installation kit is each developed by each software developer
The each unit composition for going out, so, when according to the size that bag is updated on the line determined to update the size of bag under adjusting line,
It is actually to be adjusted to updating the size of each unit in bag under line, therefore, in the embodiment of the present application, terminal or clothes
Business device be can determine that while it is determined that updating the size of bag in outlet, also in outlet update bag in each unit size, and according to
The size of each unit in bag is updated on the line determined, to be adjusted to the size that each unit in bag is updated under line, specific mistake
Journey is as shown in Figure 3.
Fig. 3 provides the process that each unit size in bag is updated on alignment really for the embodiment of the present application, specifically includes following
Step:
S301:It is determined that each encapsulation front unit corresponding with unit after each encapsulation included in renewal bag under the line.
In actual applications, it is contemplated that the factor of encapsulation, each unit that includes in bag is updated under line unencapsulated preceding big
Small sum is often different from the size sum of each unit after encapsulation, accordingly, after the size of each unit is encapsulated before packaging
Change occurs, so, it is determined that during each unit size in updating bag on line, it is impossible to only only think the size reality of each unit
Upper is exactly the unencapsulated online lower size updated before bag of each unit, the front and rear size of each unit encapsulation should can be changed because
Element is taken into account, also, wraps often different with the size that bag is updated under line due to being updated on line, accordingly, for each unit
For, it updates the size updated in bag under bag and line and also tends to be different on line, so, in it is determined that updating bag on line
During each unit size, in addition it is also necessary to which each unit is updated the factor that bag changes with size in renewal bag under line on line
Take into account, therefore, it is determined that, it is necessary to first determine each with renewal bag under line before the size of each unit during renewal is wrapped on line
The corresponding each encapsulation front unit of unit after encapsulation, wherein, referred to herein as each encapsulation after unit refer to encapsulated it is online under more
The each unit in bag is updated on new bag or line, and it refers to then the also unencapsulated online lower each list updated in bag respectively to encapsulate front unit
Unit.Because each software developer is after each unit is developed, generally all can be by each unit storage in local terminal or local service
In device, therefore, in the embodiment of the present application, terminal or server can transfer prestore each from other-end or server
Encapsulation front unit, and in subsequent process, determine the size of all types of data included in each encapsulation front unit.
S302:Respectively determine binary data, device-specific data, fixed data that each encapsulation front unit is included
The total size of size and all types of data in each encapsulation front unit.
Although the size after each unit in bag is updated under line before packaging occurs change, unit after each encapsulation
Size the line is busy that the lower proportion for updating bag is but close with the proportion that the size of each encapsulation front unit accounts for each encapsulation front unit total size
Or it is identical, and updated in the size of unit and line after each encapsulation due to being updated on line in bag under the proportion and line of both bag sizes more
In new bag after each encapsulation the size of unit the line is busy that the lower proportion for updating bag size is also close or identical, so, can be by determining
Size the line is busy the lower proportion for updating bag size of unit after each encapsulation in bag is updated under outlet and according in above-mentioned steps S102
Each estimation factor determined, the size of unit after determining respectively to be encapsulated in renewal bag in outlet.Therefore, in the embodiment of the present application
In, terminal or server can further determine the size of all types of data included before each encapsulation, and determine each envelope
The total size of each type data that dress front unit is included, and then in subsequent step S303, each unit factor is determined, its
In, terminal or server can divide data into binary data, equipment according to identical dividing mode in above-mentioned steps S102
Exclusive data, the data of fixed data these three types.
It should be noted that due to not including wired upper third party's data updated included in bag in renewal bag under line,
Also, update what is typically existed in the form of individual in wrapping in third party's online data, and be not dispersed in being updated on line
In bag after each encapsulation present in unit, so, should be free of third party's data in each encapsulation front unit.
S303:For each encapsulation front unit, according to binary data, device-specific data that the encapsulation front unit is included
Size and all types of data it is each encapsulation front unit in total size, determine each unit factor.
Terminal or server are determining the size of all types of data that each encapsulation front unit is included, and all types of numbers
After according to the total size in each encapsulation front unit, each unit factor can be further determined, wherein, terminal or server can pins
To each encapsulation front unit, before the size of the binary data included according to the encapsulation front unit determined and each encapsulation
The total size of the binary data that unit is included, determines the first module factor, and specific embodiment can be, by the envelope
The size of binary data of front unit is filled divided by each total size for encapsulating the binary data that front unit is included, such as formulaWherein, uiX () represents i-th size for encapsulating the binary data that front unit is included,
The total size of the binary data that each encapsulation front unit is included is represented, n represents the number of encapsulation front unit.
Similarly, terminal or server can also be wrapped for each encapsulation front unit according to the encapsulation front unit determined
The size of the device-specific data for containing, and the total size of device-specific data that each encapsulation front unit is included, determine the
Two element factors, specific embodiment can be, the device-specific data that the encapsulation front unit that will be determined is included
The total size of the device-specific data that size is included divided by each encapsulation front unit, such as formulaWherein,
uiThe size of y device-specific data that () is included by i-th encapsulation front unit,Each encapsulation front unit is included
The total size of device-specific data, n is the number for encapsulating front unit.
It should be noted that the determination mode of each unit factor of described above is not unique, for example, can be in described above
The determination each unit factor formula in add some coefficients or weight etc., just do not illustrate one by one herein.
S304:According to each unit factor determined, it is described it is each estimation the factor, the fixed data of the encapsulation front unit it is big
The size of all types of data in bag is updated under the small and line, determines to be updated on the line corresponding with the encapsulation front unit in bag
Encapsulation after unit size.
Terminal or server can further be determined after each unit factor is determined for each encapsulation front unit
The size of all types of data that unit is included after encapsulation corresponding with the encapsulation front unit in renewal bag under line, and then according to
Each estimation factor is determined in above-mentioned steps S102, is determined single after encapsulation corresponding with the encapsulation front unit in renewal bag in outlet
The size of unit.
Specifically, because in actual applications, each unit after being encapsulated in installation kit or updating in bag, also will by its size
Cannot directly determine, but during bag is updated under needing the size and line by all types of data in each encapsulation front unit
The size of all types of data determines to update under outlet the size of all types of data of unit after each encapsulation in bag, and then determines
The size of unit after each encapsulation in wrapping is updated under outlet.Therefore, in the embodiment of the present application, terminal or server are for each
Encapsulation front unit, after determining the corresponding first module factor of the encapsulation front unit, can be according to the first module factor, Yi Jitong
Cross under the line that above-mentioned steps S103 is determined and update the size of the included binary data of bag, determine to update under outlet in bag with
The size of the binary data that unit is included after the corresponding encapsulation of encapsulation front unit, specific embodiment can be incited somebody to action
The first module factor is multiplied by under line the size for updating the included binary data of bag, such as formula mi(x)=ai×w2(x), its
In, miThe size of the binary data that unit is included after i-th encapsulation in wrapping is updated under (x) expression line.
Similarly, for each encapsulation front unit, terminal or server can be corresponding according to the encapsulation front unit determined
The size of the included device-specific data of bag is updated under the second unit factor, and the line determined, determines to be updated under outlet
The size of the device-specific data that unit is included after the Bao Zhongyu corresponding encapsulation of encapsulation front unit, specific embodiment can
To be, using formula mi(y)=bi×w2Y (), the corresponding second unit factor b of front unit is encapsulated by i-thiIt is multiplied by under line more
The size of the included device-specific data of new bag, obtains updating under line i-th envelope corresponding with i-th encapsulation front unit in bag
The size of the device-specific data that unit is included after dress.Certainly, referred to herein as determination mode it is not unique, can also use it
His formula is determined, and is not just described in detail herein.
Terminal or server determine to update under outlet corresponding with the encapsulation front unit in bag for each encapsulation front unit
After encapsulation after the size of all types of data that unit is included, can further according to above-mentioned steps S102 determine each estimation because
Son, determines the size of all types of data that unit is included after encapsulation corresponding with the encapsulation front unit during renewal is wrapped in outlet.
Specifically, terminal or server can be according to unit institutes after encapsulation corresponding with the encapsulation front unit in renewal bag under the line determined
Comprising binary data size, and the 3rd estimation the factor, further determine on line update bag in the encapsulation
The size of the binary data that unit is included after the corresponding encapsulation of front unit, specific embodiment can use formula oi
(x)=β × miIt is corresponding with i-th encapsulation front unit in (x), the 3rd estimation factor-beta that will be determined and online lower renewal bag
I-th encapsulation after the size m of binary data that is included of unitiX () is multiplied, obtain being updated on line in bag with i-th
The individual size o for encapsulating the binary data that unit is included after front unit is encapsulated for corresponding i-thi(x)。
Similarly, after terminal or server can be according to encapsulation corresponding with the encapsulation front unit in renewal bag under the line determined
The size of the device-specific data that unit is included and the 4th estimation factor determined by above-mentioned steps S102, are determined
The size of the device-specific data that unit is included after encapsulation corresponding with the encapsulation front unit in wrapping is updated on line, it is specific to implement
Mode can use formula oi(y)=γ × mi(y), with i-th during renewal is wrapped under the 4th estimation factor gamma and line that will determine
The individual size m for encapsulating the device-specific data that unit is included after front unit is encapsulated for corresponding i-thiY () is multiplied, obtain line
The size o of the device-specific data that unit is included after being encapsulated for corresponding i-th with this i-th encapsulation front unit in upper renewal bagi
(y)。
By the fixed data that each encapsulation front unit is included will not change, so, terminal or server are for every
Individual encapsulation front unit, the size of the fixed data that the encapsulation front unit determined is included, its be actually on line update bag in
The size of the fixed data that unit is included after encapsulation corresponding with the encapsulation front unit, accordingly, terminal or server are respectively
Determine unit is included after encapsulation corresponding with the encapsulation front unit in renewal bag in outlet binary data, device-specific number
According to after, the size of fixed data, the size of this three's data can be summed up, so obtained being updated on line in bag with the envelope
The size of unit after the corresponding encapsulation of dress front unit.
The size of bag is updated on the line that terminal or server will further can be determined, and is included in renewal bag on line
Each encapsulation after the size of unit shown to user, wherein, terminal or server be able to will be determined with modes such as webpage, notepads
The result for going out is shown to software developer and is checked in forms such as text, pictures.
It should be noted that in the embodiment of the present application, after terminal or server determine to be updated in outlet the size of bag,
Can be according to default regulation rule, renewal bag is adjusted under the corresponding line of bag will be updated on the line, for example, when renewal bag on line
Size beyond the threshold value of setting when, terminal or server will update the data updated in bag under the corresponding line of bag on the line carried out
Analysis, and according to the result for analyzing, will be updated under line in bag some can public data integrated, while will be unnecessary
Data are deleted, and then reduce the purpose of renewal bag size on line to reach by way of updating bag size under reducing line.
Bag is updated on bag or line due to being updated under either line, it is essentially all to be made up of unit after each encapsulation
, so, the essence that the size to updating bag under line is adjusted is in fact the big of unit after respectively being encapsulated in being wrapped to renewal under line
It is small to be adjusted, also, the essence of adjustment is in fact that the size of each encapsulation front unit is adjusted.Therefore, in the application reality
Apply in example, terminal or server can be directed on line unit after each encapsulation updated in bag, according to renewal bag on the line determined
Size and the encapsulation after unit size, adjustment with updated under line wrap in the corresponding encapsulation front unit of unit after the encapsulation,
Specifically, when terminal or server find that the size that bag is updated on the line determined exceeds the first given threshold, can be further
Whether check on line the size for updating unit after each encapsulation in bag beyond the second given threshold, wherein, when terminal or service
When device finds that the size of unit after a certain encapsulation exceeds second given threshold, can by this encapsulate after it is single before the corresponding encapsulation of unit
The size of unit is adjusted, so that the size of unit second sets without departing from this after encapsulation corresponding to encapsulation front unit after adjustment
Determine threshold value.Similarly, the size of other encapsulation front units can also be adjusted in this way, and then cause terminal or server
Being sized to less than the first given threshold for bag is updated on the follow-up line determined again.
Certainly, terminal or server are it is determined that update the size of unit after a certain encapsulation in bag beyond the second setting in outlet
After threshold value, also list after the encapsulation can be further determined according to the mode shown in Fig. 2, according to the mark of unit after the encapsulation
Encapsulation front unit corresponding to unit is sent by the terminal of which software developer, and is opened to the software in the form of information
The terminal of hair personnel sends and notifies so that after the software developer views the notice, adjusts after the encapsulation corresponding to unit
Encapsulation front unit.
It should be noted that the second given threshold mentioned above can be directed on line in renewal bag list after all encapsulation
Unit and a threshold value setting, it is also possible to set one second respectively and set for unit after each encapsulation updated on line in bag
Determine threshold value, accordingly, when terminal or server determine that the size that bag is updated in outlet exceeds the first given threshold, can look into respectively
Unit after each encapsulation for updating and being included in bag is seen on the line, and whether unit is beyond second corresponding to itself after determining each encapsulation
Given threshold.
It should be noted that, in actual applications, bag is either updated on line, bag is updated under line, or installation kit on line,
Installation kit under line, it generally all exists in compressed form, and because the embodiment of the present application is intended to determine updated in outlet
The size of bag, so, it is determined that updated under line bag, on line under installation kit, line in installation kit all types of data size, and really
During determining each unit factor, each estimation factor, the form of compression should be also taken to be determined, to ensure whole determination process
Reasonability.Again due to updated on line the compressed format of bag be generally all determined by line upper mounting plate, therefore, in the application reality
In applying example, terminal or server can first determine the compressed format of installation kit on the line obtained from line upper mounting plate, and according to true
The compressed format made, updates bag and is pressed according to identical compressed format under the line that will subsequently get under installation kit and line
Contracting, then, updates the size of all types of data in bag under installation kit and line under installation kit, line on the line after according to compression,
Determine to be updated in outlet the size of bag, wherein, the form of compression can be the forms such as zip, tar, ditto, cab, bz2, jar.
The method of the determination installation kit size for being provided for the embodiment of the present application above, based on same thinking, the application reality
Apply example and additionally provide the device for determining installation kit size, as shown in Figure 4.
A kind of schematic device of determination installation kit size that Fig. 4 is provided for the embodiment of the present application, specifically includes:
Acquisition module 401, obtains on line on installation kit and the line installation kit under the corresponding line of installation kit;
Certainty factor module 402, according to all types of data included in installation kit under installation kit on the line and line
Size, determines each estimation factor, wherein, each data is pertaining only to a type;
First determining module 403, determines to update the size of all types of data included in bag under line;
Second determining module 404, size according to all types of data updated under the line determined in bag and each
The estimation factor, determines to update the size for updating bag on the corresponding line of bag under the line.
The all types of data included in installation kit under the line include:At least one in fixed data, variable data;Institute
Stating all types of data included in installation kit on line includes:At least one in fixed data, variable data, third party's data.
The certainty factor module 402, determine to be included in installation kit on installation kit under the line and line respectively is variable
The size of data;The size of the variable data in installation kit on installation kit under the line determined respectively and line, it is determined that
The first estimation factor;Determine the size of third party's data included in installation kit on the line;Wrapped from installation kit under the line
A kind of data are arbitrarily chosen in the variable data, the fixed data that contain and specifies data as first;According to third party's data with
And described first specify data size, determine the second estimation factor.
Second determining module 404, according under the line determined update bag in variable data size and
The first estimation factor, determines to update the size of the variable data in bag on the line;According to the described second the estimation factor and line
It is lower to update the size with the first specified data type identical data included in bag, in determining that renewal is wrapped on the line
The size of third party's data;According to variable data, the size of third party's data and institute that bag is updated on the line determined
The size of the fixed data that bag is updated under line is stated, determines to update the size of bag on the line.
The variable data includes:At least one in binary data, device-specific data;The first estimation factor
Including:The 3rd estimation factor and/or the 4th estimation factor;
The certainty factor module 402, determines that included in installation kit on installation kit under the line and line two enter respectively
The size of data processed, the size of the binary data in installation kit on installation kit under the line determined respectively and line,
Determine the 3rd estimation factor;And/or
Determine the size of device-specific data included in installation kit on installation kit under the line and line respectively, according to point
The size of the device-specific data under the line do not determined on installation kit and line in installation kit, determines the 4th estimation factor;
Second determining module 404, according under the line determined update bag in binary data size with
And the 3rd estimation factor, determine to update the size of the binary data in bag on the line;According to the line determined
The lower size for updating the device-specific data in bag and the 4th estimation factor, determine to update the equipment in bag on the line
The size of exclusive data;According to binary data, device-specific data, third party's type that bag is updated on the line determined
The size of the fixed type data of bag is updated under the size of data and the line, determines to update the size of bag on the line.
Described device also includes:
Determining unit module 405, it is determined that each encapsulation corresponding with unit after each encapsulation included in renewal bag under the line
Front unit;Determine respectively it is described it is each encapsulation front unit include binary data, device-specific data, fixed data size with
And total size of all types of data in each encapsulation front unit;For each encapsulation front unit, included according to the encapsulation front unit
Total size in each encapsulation front unit of binary data, the size of device-specific data and all types of data, it is determined that respectively
Element factor;According to each unit factor determined, it is described it is each estimation the factor, the size of the fixed data of the encapsulation front unit with
And under the line update bag in all types of data size, determine on the line update bag in envelope corresponding with the encapsulation front unit
The size of unit after dress.
The determining unit module 405, the size of the binary data included according to the encapsulation front unit and determination
The total size of the binary data that each encapsulation front unit is included, determines the first module factor;Included according to the encapsulation front unit
The total size of the device-specific data that the size of device-specific data and each encapsulation front unit of determination are included, determines that second is single
First factor.
The determining unit module 405, according to binary number in renewal bag under the first module factor and the line
According to size, determine to update under the line in bag the big of the binary data of unit after encapsulation corresponding with the encapsulation front unit
It is small;According to the size that device-specific data in bag is updated under the second unit factor and the line, determine under the line more
In new bag after encapsulation corresponding with the encapsulation front unit device-specific data of unit size;According to the described 3rd estimation factor
And update the size of the binary data of unit after encapsulation corresponding with the encapsulation front unit in bag under the line determined,
Determine the size of the binary data of unit after encapsulation corresponding with the encapsulation front unit during renewal is wrapped on the line;According to described
The equipment that unit after encapsulation corresponding with the encapsulation front unit in wrapping is updated under the 4th estimation factor and the line determined
The size of exclusive data, determines the device-specific number of unit after encapsulation corresponding with the encapsulation front unit during renewal is wrapped on the line
According to size;The size of the fixed data included according to the encapsulation front unit, and on the line update bag in the encapsulation before
The binary data of unit, the size of device-specific data after the corresponding encapsulation of unit, determine on the line update bag in should
The size of unit after the corresponding encapsulation of encapsulation front unit.
Described device also includes:
Adjusting module 406, according to the size that bag is updated on the line determined, adjusts renewal bag under the line.
The adjusting module 406, for unit after each encapsulation updated on the line in bag, according to determining
Update the size of bag and the size of unit after the encapsulation on line, adjustment with updated under line wrap in the corresponding envelope of unit after the encapsulation
Dress front unit.
The embodiment of the present application provides a kind of method and device for determining installation kit size, and terminal or server can in the method
Installation kit on installation kit and line is got under the line for updating under the line onto line upper mounting plate to be released corresponding to bag, and by right
The size of all types of data of the non-overlapping copies included in installation kit on installation kit and line under line is determined to determine this
The size that bag is updated on the line corresponding to bag is updated under line.Because terminal or server are more than only with installation kit on line one
The size of partial data determines to be updated on line the size of bag, and then by being included in installation kit under installation kit on line and line
The size of all types of data, is determined to the size that bag is updated on line comprehensively, also, with each system in the prior art in data
On to there is certain common factor different, terminal or server are it is determined that institute during updating bag size on line in the embodiment of the present application
The all types of data determined are free from common factor, i.e. each data only corresponds to a type, so avoids because all kinds of
Occur occuring simultaneously and causing the situation that relatively large deviation occurs in the size for updating bag on the line finally determined to occur between type data, institute
With, in general, in terms of existing technologies, can accurately determine to update the size of bag in outlet by the above method, enter
And adjusted by updating the size of bag on the line determined to software developer update bag size under line during bring just
Profit.
It should be noted that the executive agent that embodiment 1 provides each step of method may each be same equipment, or
Person, the method is also by distinct device as executive agent.Such as, the executive agent of step S102 and step S103 can be for eventually
End, the executive agent of step 101 can be server;Again such as, the executive agent of step 101 can be terminal, step 102 and
The executive agent of step 103 can be server;Etc..
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information Store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Defined according to herein, calculated
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of key elements not only include those key elements, but also wrapping
Include other key elements being not expressly set out, or also include for this process, method, commodity or equipment is intrinsic wants
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, commodity or the equipment of element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.And, the application can be used to be can use in one or more computers for wherein including computer usable program code and deposited
The shape of the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art
For, the application can have various modifications and variations.It is all any modifications made within spirit herein and principle, equivalent
Replace, improve etc., within the scope of should be included in claims hereof.