CN107943532A - Live software upgrade package dissemination method, device, electronic equipment and storage medium - Google Patents
Live software upgrade package dissemination method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN107943532A CN107943532A CN201711077692.XA CN201711077692A CN107943532A CN 107943532 A CN107943532 A CN 107943532A CN 201711077692 A CN201711077692 A CN 201711077692A CN 107943532 A CN107943532 A CN 107943532A
- Authority
- CN
- China
- Prior art keywords
- function
- version number
- upgrade
- upgraded
- upgrade package
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
An embodiment of the present invention provides a kind of live software upgrade package dissemination method, device, electronic equipment and storage medium, in this method, determine the current major version number of live software, and the function to be upgraded of live software, determine the upgrade function version number after function upgrading to be upgraded, judge whether major version number meets default version number difference condition with upgrade function version number, if, the corresponding residual quantity upgrade package of function to be upgraded is calculated, issues residual quantity upgrade package.In the present invention, when major version number and upgrade function version number meet default version number's difference condition, calculate the corresponding residual quantity upgrade package of function to be upgraded, and issue the residual quantity upgrade package, residual quantity upgrade package by being calculated no longer is to calculate the upgrade package for including whole live software, greatly reduces calculation amount for function to be upgraded, the time for calculating upgrade package is shortened, further shorten the time that user upgrades live software by the residual quantity upgrade package.
Description
Technical field
The present invention relates to direct seeding technique field, more particularly to a kind of live software upgrade package dissemination method, device, electronics
Equipment and storage medium.
Background technology
At present, main broadcaster can carry out net cast by the live software in electronic equipment, and excellent program is broadcasted for spectators.
Since programme televised live changes with each passing day, live software is frequently necessary to upgrade, and at this time, can issue live soft
Part upgrade package, after user obtains the upgrade package, you can upgraded by the upgrade package to live software.
In correlation technique, even if the upgrading carried out only for some function of live software, also needs to calculate whole
The corresponding upgrade package of a live software, then issues the upgrade package, since the upgrade package calculated is comprising whole live software
Upgrade package, cause calculation amount larger so that it is longer to calculate the time of upgrade package, further results in user and passes through the upgrade package liter
The time of the live software of level is also longer.
The content of the invention
The purpose of the embodiment of the present invention be to provide a kind of live software upgrade package dissemination method, device, electronic equipment with
And storage medium, to reduce calculation amount, shorten the time for calculating upgrade package.Concrete technical scheme is as follows:
A kind of live software upgrade package dissemination method, the described method includes:
Determine the current major version number of live software, and the function to be upgraded of the live software;
Determine the upgrade function version number after the function upgrading to be upgraded;
Judge whether the major version number meets default version number difference condition with the upgrade function version number;
If so, calculate the corresponding residual quantity upgrade package of the function to be upgraded;
Issue the residual quantity upgrade package.
Optionally, it is described determine the function upgrading to be upgraded after upgrade function version number the step of, including:
Determine the current feature release number of the function to be upgraded;
According to the current feature release number and preset function version number computation rule, the function liter to be upgraded is determined
Upgrade function version number after level.
Optionally, it is described to judge whether the major version number meets default version number difference with the upgrade function version number
The step of condition, including:
Judge the absolute value of the difference between the major version number and the upgrade function version number whether in preset range
It is interior;
If so, determine that the major version number meets default version number difference condition with the upgrade function version number.
Optionally, it is described to judge whether the major version number meets default version number difference with the upgrade function version number
The step of condition, including:
Determine the upgrade function version number scope of the corresponding function to be upgraded of the major version number;
Judge the upgrade function version number whether in the range of the upgrade function version number;
If so, determine that the major version number meets default version number difference condition with the upgrade function version number.
Optionally, described the step of calculating the function to be upgraded corresponding residual quantity upgrade package, including:
Determine the corresponding current function bag of current version of the function to be upgraded;
Determine the corresponding upgrade function bag of version after the upgrading of the function to be upgraded;
The difference packet between the upgrade function bag and the current function bag is calculated, the difference packet is determined as described
The corresponding residual quantity upgrade package of function to be upgraded.
A kind of live software upgrade package distributing device, described device include:
Function determining module to be upgraded, the major version number current for determining live software, and the live software
Function to be upgraded;
Upgrade function version number determining module, for determining the upgrade function version number after the function upgrading to be upgraded;
Judgment module, for judging whether the major version number meets default difference in version with the upgrade function version number
Different condition, if so, triggering computing module;
The computing module, for calculating the corresponding residual quantity upgrade package of the function to be upgraded;
Release module, for issuing the residual quantity upgrade package.
Optionally, upgrade function version number determining module, including:
Current feature release determination unit, for determining the current feature release number of the function to be upgraded;
Upgrade function version number determination unit, based on according to the current feature release number and preset function version number
Rule is calculated, determines the upgrade function version number after the function upgrading to be upgraded.
Optionally, the judgment module, including:
First judging unit, for judging the absolute of the difference between the major version number and the upgrade function version number
Whether to be within a preset range worth, if so, the first determination unit of triggering;
First determination unit, for determining that the major version number meets default version with the upgrade function version number
Number difference condition.
Optionally, the judgment module, including:
Upgrade function version number scope determination unit, for determining the corresponding function to be upgraded of the major version number
Upgrade function version number scope;
Second judging unit, for judging whether the upgrade function version number is located at upgrade function version number scope
It is interior, if so, the second determination unit of triggering;
Second determination unit, for determining that the major version number meets default version with the upgrade function version number
Number difference condition.
Optionally, the computing module, including:
Current function bag determination unit, the corresponding current function bag of current version for determining the function to be upgraded;
Upgrade function bag determination unit, the corresponding upgrade function of version after the upgrading for determining the function to be upgraded
Bag;
Computing unit, for calculating the difference packet between the upgrade function bag and the current function bag, by the difference
Amount bag is determined as the corresponding residual quantity upgrade package of the function to be upgraded.
A kind of electronic equipment, including processor, communication interface, memory and communication bus, wherein, processor, communication connects
Mouthful, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor, during for performing the computer program stored on memory, realizes any of the above-described method step
Suddenly.
A kind of computer-readable recording medium, the computer-readable recording medium memory contains computer program, described
Any of the above-described method and step is realized when computer program is executed by processor.
In the embodiment of the present invention, the current major version number of live software, and the function to be upgraded of live software are determined, really
Upgrade function version number after fixed function upgrading to be upgraded, judges whether major version number meets default version with upgrade function version number
This number difference condition, if so, calculating the corresponding residual quantity upgrade package of function to be upgraded, issues residual quantity upgrade package.In the present invention,
When major version number meets default version number's difference condition with upgrade function version number, the corresponding residual quantity upgrading of function to be upgraded is calculated
Bag, and the residual quantity upgrade package is issued, no longer it is to calculate to include since the residual quantity upgrade package calculated is for function to be upgraded
The upgrade package of whole live software, greatly reduces calculation amount, shortens the time for calculating upgrade package, further shorten user
Upgrade the time of live software by the residual quantity upgrade package.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of live software upgrade package dissemination method provided in an embodiment of the present invention;
Fig. 2 illustrates for the flow of the upgrade function version number after definite function upgrading to be upgraded provided in an embodiment of the present invention
Figure;
Fig. 3 judges whether major version number meets default version number with upgrade function version number to be provided in an embodiment of the present invention
The flow diagram of difference condition;
Fig. 4 is the flow diagram provided in an embodiment of the present invention for calculating the corresponding residual quantity upgrade package of function to be upgraded;
Fig. 5 is a kind of structure diagram of live software upgrade package distributing device provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment, belongs to the scope of protection of the invention.
In order to solve prior art problem, an embodiment of the present invention provides a kind of live software upgrade package dissemination method, dress
Put, electronic equipment and storage medium.
A kind of live software upgrade package dissemination method provided first below the embodiment of the present invention is introduced.
As shown in Figure 1, a kind of live software upgrade package dissemination method provided in an embodiment of the present invention, can include:
S101:Determine the current major version number of live software, and the function to be upgraded of live software.
Version number is the identification number of version, each software Dou Youyige version numbers, can understand user by version number
The function and facility whether used software is provided by newest version and the software.
Version number can be divided into major version number and feature release number, wherein, major version number represents which version software is integrally
This, feature release number represents which version is a certain function be.
Such as:Assuming that dbase is DM, including function h, i and j, then DM1.0, h1.0 are represented:Major version number is 1.0,
The feature release number of function h is 1.0.
When software has integrally carried out material alteration or local correction accumulation is more and cause software that global change integrally occurs
When, upgrading software is overall, at this time, modifies to major version number;When a certain function of software is there occurs changing, upgrade the work(
Can, at this time, modify to feature release number.
The embodiment of the present invention calculates the calculation amount of upgrade package in order to reduce, when a certain function of software needs upgrading, no
The upgrade package of software for calculation entirety again, but the upgrade package for the function function i.e. to be upgraded of needing to upgrade is calculated, therefore,
In order to issue the upgrade package of a certain function of live software, it is thus necessary to determine that the current major version number of live software, and live software
Function to be upgraded.
S102:Determine the upgrade function version number after function upgrading to be upgraded.
After the function to be upgraded of live software is determined, you can knowing needs to upgrade which function.Due to
The embodiment of the present invention no longer calculates the upgrade package of live software entirety, but calculates the corresponding upgrade package of function to be upgraded, therefore,
It needs to be determined that the upgrade function version number after function upgrading to be upgraded.
Since for each software, either major version number, or feature release number, there are corresponding version number meter
Rule is calculated, major version number corresponds to major version number computation rule, feature release corresponding function version number computation rule, therefore, on
State the upgrade function version number after definite function upgrading to be upgraded, Ke Yiwei:Determined based on preset function version number computation rule
Upgrade function version number.Referring to Fig. 2, step S102 can include:
S1021:Determine the current feature release number of function to be upgraded.
In order to determine the upgrade function version number after function upgrading to be upgraded, it is thus necessary to determine that the current function of function to be upgraded
Version number.
S1022:According to current feature release number and preset function version number computation rule, function upgrading to be upgraded is determined
Upgrade function version number afterwards.
After the current feature release number of function to be upgraded is determined, you can according to current feature release number and default work(
Energy version number computation rule, determines the upgrade function version number after function upgrading to be upgraded.
Exemplary, preset function version number computation rule can be:When a certain function needs function renewal, current
Increase present count on the basis of feature release number.
Such as:Assuming that dbase is DM, including function h, i and j, it is assumed that function to be upgraded is function h, and function h's works as
Preceding feature release number is 1.0, i.e. h1.0, it is assumed that preset function version number computation rule is:On the basis of current feature release number
Upper increase present count, present count 1.0;
Then according to the current feature release number 1.0 of function h and preset function version number computation rule, work(to be upgraded is determined
Upgrade function version number after energy h upgradings is 1.0+1.1=2.0, i.e. h2.0.
Certainly, preset function version number computation rule is not only limited in this, can also be:In the base of current feature release number
Present count etc. is multiplied by plinth, details are not described herein.
S103:Judge whether major version number meets default version number difference condition with upgrade function version number, if so, holding
Row step S104, if not, without any processing.
Due to a certain function and a certain version software when software it is overall when differing greatly, will cause the version software without
Method and the function match, the i.e. function can not run, therefore, the major version number of software and the work(of function on the software of the version
Condition can be had differences between version number.
When only major version number meets default version number's difference condition with feature release number, the corresponding function of feature release number
It can just be run on the corresponding software of major version number, therefore, the upgrade function version number after function upgrading to be upgraded is determined
Afterwards, it is necessary to judge whether major version number meets default version number difference condition with upgrade function version number, and according to judging result
Perform subsequent step.
It is above-mentioned that to judge whether major version number and upgrade function version number meet that the mode of default version number difference condition has more
Kind, include but not limited to following several:
First way:According to the magnitude relationship between major version number and upgrade function version number, determine major version number with
Whether upgrade function version number meets default version number difference condition
Detailed, step S103 can include:Judge the absolute of the difference between major version number and upgrade function version number
Whether to be within a preset range worth, if so, determine that major version number meets default version number difference condition with upgrade function version number,
It is if not, without any processing.
Since the main version updating of software is slower, feature release renewal is very fast, and therefore, general utility functions version number is more than key plate
This number.Key plate sheet and function version can be determined by way of calculating the difference between major version number and upgrade function version number
Whether this approaches.
The absolute value of difference between major version number and upgrade function version number reflects connecing for key plate sheet and feature release
Short range degree, the absolute value of difference is smaller, and key plate sheet and feature release are closer, and the corresponding function of feature release can this be right in key plate
The possibility run on the software answered is bigger.
Therefore, can judge difference absolute value whether within a preset range by way of, come determine major version number with
Whether upgrade function version number meets default version number difference condition, if within a preset range, illustrating major version number and upgrading
Feature release number meets default version number difference condition.
The second way:By judge upgrade function version number whether the corresponding function to be upgraded of major version number upgrading
Mode in the range of feature release number, determines whether major version number meets default version number difference bar with upgrade function version number
Part.
Referring to Fig. 3, step S103 can include:
S1031:Determine the upgrade function version number scope of the corresponding function to be upgraded of major version number.
Since the main version updating of software is slower, feature release renewal is very fast, after a certain function renewal is to a certain version,
By the main incompatible version with the software, i.e. the function can not be run on the software of the version, therefore, each major version number
It is corresponding with the upgrade function version number scope of various functions.
Exemplary, it is assumed that a certain software includes function h, i and j, and each major version number corresponds to the upgrading work(of various functions
Energy version number scope can be as shown in the table:
Major version number | Function | Upgrade function version number scope |
1.0 | h | 1.0-9.0 |
i | 1.0-8.0 | |
j | 1.0-7.0 | |
2.0 | h | 1.0-7.0 |
i | 1.0-8.0 | |
j | 1.0-9.0 |
In order to determine whether major version number meets default version number difference condition with upgrade function version number, it is thus necessary to determine that main
The upgrade function version number scope of the corresponding function to be upgraded of version number.
S1032:Upgrade function version number is judged whether in the range of upgrade function version number, if so, performing step
S1033, if not, without any processing.
When being located at due to upgrade function version number in the range of upgrade function version number, function to be upgraded just can be in major version number
Run on the software of corresponding version.
Therefore, after the upgrade function version number scope of the corresponding function to be upgraded of major version number is determined, can pass through
The mode whether upgrade function version number is located in the range of upgrade function version number is judged, to determine major version number and upgrade function
Whether version number meets default version number's difference condition, and according to judging structure execution subsequent step.
S1033:Determine that major version number meets default version number difference condition with upgrade function version number.
When judging result is located in the range of upgrade function version number for upgrade function version number, illustrate major version number with rising
Level feature release number meets default version number difference condition.
S104:Calculate the corresponding residual quantity upgrade package of function to be upgraded.
After being determined that major version number meets default version number difference condition with upgrade function version number, illustrate upgrade function
The corresponding function to be upgraded of version number can be run on the corresponding software of major version number.Need to upgrade at this time, it may be necessary to calculate and be directed to
Function, that is, function to be upgraded upgrade package, that is, calculate the corresponding residual quantity upgrade package of function to be upgraded.
Wherein, residual quantity upgrade package is the difference packet to new version for some old version.
Referring to Fig. 4, step S104 can include:
S1041:Determine the corresponding current function bag of current version of function to be upgraded.
Since residual quantity upgrade package is the difference packet for some old version to new version, in order to calculate residual quantity liter
Level bag, it is thus necessary to determine that the corresponding current function bag of current version of function to be upgraded, i.e., old version number when not upgraded
According to bag.
S1042:Determine the corresponding upgrade function bag of version after the upgrading of function to be upgraded.
After current function bag is determined, in order to calculate old version to the difference packet of new version, it is thus necessary to determine that to be upgraded
The corresponding upgrade function bag of version after the upgrading of function.
S1043:The difference packet between upgrade function bag and current function bag is calculated, difference packet is determined as function to be upgraded
Corresponding residual quantity upgrade package.
After upgrade function bag is determined, the difference packet between upgrade function bag and current function bag is calculated, which is
For the corresponding residual quantity upgrade package of function to be upgraded.
Such as:Assuming that function to be upgraded is h, the current version of h is 1.0, and version is 2.0 after upgrading, and current version 1.0 is right
The current function bag answered is W, and the corresponding upgrade function bags of version 2 .0 are W+M after upgrading;
Then calculate the difference packet between upgrade function bag and current function bag:W+M-W=M;
Difference packet M is determined as the corresponding residual quantity upgrade package of function h to be upgraded.
S105:Issue residual quantity upgrade package.
After the corresponding residual quantity upgrade package of function to be upgraded is calculated, you can the residual quantity upgrade package is issued, so that user obtains
Residual quantity upgrade package is taken to upgrade the function to be upgraded of live software.
Wherein, user obtains the mode that is upgraded to the function to be upgraded of live software of residual quantity upgrade package and includes but unlimited
It is several in once:
The first:Detect whether there is the residual quantity upgrade package newly issued in real time, if so, carrying of whether being upgraded of output
Show information, when receiving the definite upgrade command of user, obtain residual quantity upgrade package and the function to be upgraded of live software is carried out
Upgrading.
The residual quantity upgrade package newly issued can be determined whether there is by way of detecting in real time, it is upon this detection, defeated
Go out the prompt message whether upgraded to user, so that user is known in the presence of the residual quantity upgrade package newly issued.
User determines whether to be upgraded according to self-demand, and when receiving the definite upgrade command of user, it is poor to obtain
Amount upgrade package upgrades the function to be upgraded of live software.
Thus, by way of exporting prompt message so that user can wait to rise according to itself wish to live software
Level function is upgraded.
Second:Detect whether there is the residual quantity upgrade package newly issued in real time, if so, obtaining residual quantity upgrade package to live
The function to be upgraded of software is upgraded.
Since the function renewal of live software is very fast, user is prompted to exist sometimes through the mode of output prompt message new
The residual quantity upgrade package of issue, can be caused to perplex to user, therefore, can be determined whether there is by way of detecting in real time new
The residual quantity upgrade package of issue, upon this detection, that is, obtains residual quantity upgrade package and the function to be upgraded of live software is upgraded.
Thus, detecting the residual quantity upgrade package newly issued, the function to be upgraded of live software is upgraded at once, is reached
The purpose of silent upgrading has been arrived, often output prompt message has been avoided and perplexs caused by user.
In the embodiment of the present invention, the current major version number of live software, and the function to be upgraded of live software are determined, really
Upgrade function version number after fixed function upgrading to be upgraded, judges whether major version number meets default version with upgrade function version number
This number difference condition, if so, calculating the corresponding residual quantity upgrade package of function to be upgraded, issues residual quantity upgrade package.In the present invention,
When major version number meets default version number's difference condition with upgrade function version number, the corresponding residual quantity upgrading of function to be upgraded is calculated
Bag, and the residual quantity upgrade package is issued, no longer it is to calculate to include since the residual quantity upgrade package calculated is for function to be upgraded
The upgrade package of whole live software, greatly reduces calculation amount, shortens the time for calculating upgrade package, further shorten user
Upgrade the time of live software by the residual quantity upgrade package.
Relative to above method embodiment, the embodiment of the present invention additionally provides a kind of live software upgrade package distributing device,
As shown in figure 5, described device can include:
Function determining module 201 to be upgraded, the major version number current for determining live software, and the live software
Function to be upgraded;
Upgrade function version number determining module 202, for determining the upgrade function version after the function upgrading to be upgraded
Number;
Judgment module 203, for judging whether the major version number meets default version with the upgrade function version number
Number difference condition, if so, triggering computing module 204;
The computing module 204, for calculating the corresponding residual quantity upgrade package of the function to be upgraded;
Release module 205, for issuing the residual quantity upgrade package.
In the embodiment of the present invention, the current major version number of live software, and the function to be upgraded of live software are determined, really
Upgrade function version number after fixed function upgrading to be upgraded, judges whether major version number meets default version with upgrade function version number
This number difference condition, if so, calculating the corresponding residual quantity upgrade package of function to be upgraded, issues residual quantity upgrade package.In the present invention,
When major version number meets default version number's difference condition with upgrade function version number, the corresponding residual quantity upgrading of function to be upgraded is calculated
Bag, and the residual quantity upgrade package is issued, no longer it is to calculate to include since the residual quantity upgrade package calculated is for function to be upgraded
The upgrade package of whole live software, greatly reduces calculation amount, shortens the time for calculating upgrade package, further shorten user
Upgrade the time of live software by the residual quantity upgrade package.
In a kind of implementation of the embodiment of the present invention, upgrade function version number determining module 202, can wrap
Include:
Current feature release determination unit, for determining the current feature release number of the function to be upgraded;
Upgrade function version number determination unit, based on according to the current feature release number and preset function version number
Rule is calculated, determines the upgrade function version number after the function upgrading to be upgraded.
In a kind of implementation of the embodiment of the present invention, the judgment module 203, can include:
First judging unit, for judging the absolute of the difference between the major version number and the upgrade function version number
Whether to be within a preset range worth, if so, the first determination unit of triggering;
First determination unit, for determining that the major version number meets default version with the upgrade function version number
Number difference condition.
In a kind of implementation of the embodiment of the present invention, the judgment module 203, can include:
Upgrade function version number scope determination unit, for determining the corresponding function to be upgraded of the major version number
Upgrade function version number scope;
Second judging unit, for judging whether the upgrade function version number is located at upgrade function version number scope
It is interior, if so, the second determination unit of triggering;
Second determination unit, for determining that the major version number meets default version with the upgrade function version number
Number difference condition.
In a kind of implementation of the embodiment of the present invention, the computing module 204, can include:
Current function bag determination unit, the corresponding current function bag of current version for determining the function to be upgraded;
Upgrade function bag determination unit, the corresponding upgrade function of version after the upgrading for determining the function to be upgraded
Bag;
Computing unit, for calculating the difference packet between the upgrade function bag and the current function bag, by the difference
Amount bag is determined as the corresponding residual quantity upgrade package of the function to be upgraded.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 6, including processor 601, communication interface 602,
Memory 603 and communication bus 604, wherein, processor 601, communication interface 602, memory 603 is complete by communication bus 604
Into mutual communication,
Memory 603, for storing computer program;
Processor 601, during for performing the computer program stored on memory 603, realizes following steps:
Determine the current major version number of live software, and the function to be upgraded of the live software;
Determine the upgrade function version number after the function upgrading to be upgraded;
Judge whether the major version number meets default version number difference condition with the upgrade function version number;
If so, calculate the corresponding residual quantity upgrade package of the function to be upgraded;
Issue the residual quantity upgrade package.
In the embodiment of the present invention, the current major version number of live software, and the function to be upgraded of live software are determined, really
Upgrade function version number after fixed function upgrading to be upgraded, judges whether major version number meets default version with upgrade function version number
This number difference condition, if so, calculating the corresponding residual quantity upgrade package of function to be upgraded, issues residual quantity upgrade package.In the present invention,
When major version number meets default version number's difference condition with upgrade function version number, the corresponding residual quantity upgrading of function to be upgraded is calculated
Bag, and the residual quantity upgrade package is issued, no longer it is to calculate to include since the residual quantity upgrade package calculated is for function to be upgraded
The upgrade package of whole live software, greatly reduces calculation amount, shortens the time for calculating upgrade package, further shorten user
Upgrade the time of live software by the residual quantity upgrade package.
In a kind of implementation of the embodiment of the present invention, the upgrade function determined after the function upgrading to be upgraded
The step of version number, can include:
Determine the current feature release number of the function to be upgraded;
According to the current feature release number and preset function version number computation rule, the function liter to be upgraded is determined
Upgrade function version number after level.
It is described to judge the major version number and the upgrade function version in a kind of implementation of the embodiment of the present invention
The step of number whether meeting default version number's difference condition, it can include:
Judge the absolute value of the difference between the major version number and the upgrade function version number whether in preset range
It is interior;
If so, determine that the major version number meets default version number difference condition with the upgrade function version number.
It is described to judge the major version number and the upgrade function version in a kind of implementation of the embodiment of the present invention
The step of number whether meeting default version number's difference condition, it can include:
Determine the upgrade function version number scope of the corresponding function to be upgraded of the major version number;
Judge the upgrade function version number whether in the range of the upgrade function version number;
If so, determine that the major version number meets default version number difference condition with the upgrade function version number.
It is described to calculate the corresponding residual quantity upgrade package of the function to be upgraded in a kind of implementation of the embodiment of the present invention
The step of, it can include:
Determine the corresponding current function bag of current version of the function to be upgraded;
Determine the corresponding upgrade function bag of version after the upgrading of the function to be upgraded;
The difference packet between the upgrade function bag and the current function bag is calculated, the difference packet is determined as described
The corresponding residual quantity upgrade package of function to be upgraded.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
Only represented in expression, figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is used for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
The embodiment of the present invention also provides a kind of computer-readable recording medium, the computer-readable recording medium memory storage
There is computer program, when the computer program is executed by processor, realize following steps:
Determine the current major version number of live software, and the function to be upgraded of the live software;
Determine the upgrade function version number after the function upgrading to be upgraded;
Judge whether the major version number meets default version number difference condition with the upgrade function version number;
If so, calculate the corresponding residual quantity upgrade package of the function to be upgraded;
Issue the residual quantity upgrade package.
In the embodiment of the present invention, the current major version number of live software, and the function to be upgraded of live software are determined, really
Upgrade function version number after fixed function upgrading to be upgraded, judges whether major version number meets default version with upgrade function version number
This number difference condition, if so, calculating the corresponding residual quantity upgrade package of function to be upgraded, issues residual quantity upgrade package.In the present invention,
When major version number meets default version number's difference condition with upgrade function version number, the corresponding residual quantity upgrading of function to be upgraded is calculated
Bag, and the residual quantity upgrade package is issued, no longer it is to calculate to include since the residual quantity upgrade package calculated is for function to be upgraded
The upgrade package of whole live software, greatly reduces calculation amount, shortens the time for calculating upgrade package, further shorten user
Upgrade the time of live software by the residual quantity upgrade package.
In a kind of implementation of the embodiment of the present invention, the upgrade function determined after the function upgrading to be upgraded
The step of version number, can include:
Determine the current feature release number of the function to be upgraded;
According to the current feature release number and preset function version number computation rule, the function liter to be upgraded is determined
Upgrade function version number after level.
It is described to judge the major version number and the upgrade function version in a kind of implementation of the embodiment of the present invention
The step of number whether meeting default version number's difference condition, it can include:
Judge the absolute value of the difference between the major version number and the upgrade function version number whether in preset range
It is interior;
If so, determine that the major version number meets default version number difference condition with the upgrade function version number.
It is described to judge the major version number and the upgrade function version in a kind of implementation of the embodiment of the present invention
The step of number whether meeting default version number's difference condition, it can include:
Determine the upgrade function version number scope of the corresponding function to be upgraded of the major version number;
Judge the upgrade function version number whether in the range of the upgrade function version number;
If so, determine that the major version number meets default version number difference condition with the upgrade function version number.
It is described to calculate the corresponding residual quantity upgrade package of the function to be upgraded in a kind of implementation of the embodiment of the present invention
The step of, it can include:
Determine the corresponding current function bag of current version of the function to be upgraded;
Determine the corresponding upgrade function bag of version after the upgrading of the function to be upgraded;
The difference packet between the upgrade function bag and the current function bag is calculated, the difference packet is determined as described
The corresponding residual quantity upgrade package of function to be upgraded.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed, or further include as this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there are other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device,
For electronic equipment, computer-readable recording medium embodiment, since it is substantially similar to embodiment of the method, so the ratio of description
Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (12)
- A kind of 1. live software upgrade package dissemination method, it is characterised in that the described method includes:Determine the current major version number of live software, and the function to be upgraded of the live software;Determine the upgrade function version number after the function upgrading to be upgraded;Judge whether the major version number meets default version number difference condition with the upgrade function version number;If so, calculate the corresponding residual quantity upgrade package of the function to be upgraded;Issue the residual quantity upgrade package.
- 2. the according to the method described in claim 1, it is characterized in that, upgrading work(determined after the function upgrading to be upgraded The step of energy version number, including:Determine the current feature release number of the function to be upgraded;According to the current feature release number and preset function version number computation rule, after determining the function upgrading to be upgraded Upgrade function version number.
- 3. according to the method described in claim 1, it is characterized in that, described judge the major version number and the upgrade function version This number the step of whether meeting default version number's difference condition, including:Whether within a preset range to judge the absolute value of the difference between the major version number and the upgrade function version number;If so, determine that the major version number meets default version number difference condition with the upgrade function version number.
- 4. according to the method described in claim 1, it is characterized in that, described judge the major version number and the upgrade function version This number the step of whether meeting default version number's difference condition, including:Determine the upgrade function version number scope of the corresponding function to be upgraded of the major version number;Judge the upgrade function version number whether in the range of the upgrade function version number;If so, determine that the major version number meets default version number difference condition with the upgrade function version number.
- 5. according to any methods of claim 1-4, it is characterised in that described to calculate the corresponding difference of the function to be upgraded The step of measuring upgrade package, including:Determine the corresponding current function bag of current version of the function to be upgraded;Determine the corresponding upgrade function bag of version after the upgrading of the function to be upgraded;The difference packet between the upgrade function bag and the current function bag is calculated, the difference packet is determined as described waiting to rise The corresponding residual quantity upgrade package of level function.
- 6. a kind of live software upgrade package distributing device, it is characterised in that described device includes:Function determining module to be upgraded, the major version number current for determining live software, and the live software are waited to rise Level function;Upgrade function version number determining module, for determining the upgrade function version number after the function upgrading to be upgraded;Judgment module, for judging whether the major version number meets default version number difference bar with the upgrade function version number Part, if so, triggering computing module;The computing module, for calculating the corresponding residual quantity upgrade package of the function to be upgraded;Release module, for issuing the residual quantity upgrade package.
- 7. device according to claim 6, it is characterised in that upgrade function version number determining module, including:Current feature release determination unit, for determining the current feature release number of the function to be upgraded;Upgrade function version number determination unit, for calculating rule according to the current feature release number and preset function version number Then, the upgrade function version number after the function upgrading to be upgraded is determined.
- 8. device according to claim 6, it is characterised in that the judgment module, including:First judging unit, the absolute value for judging the difference between the major version number and the upgrade function version number are It is no within a preset range, if so, triggering the first determination unit;First determination unit, for determining that the major version number meets default difference in version with the upgrade function version number Different condition.
- 9. device according to claim 6, it is characterised in that the judgment module, including:Upgrade function version number scope determination unit, for determining the upgrading of the corresponding function to be upgraded of the major version number Feature release scope;Second judging unit, for judging the upgrade function version number whether in the range of the upgrade function version number, If so, the second determination unit of triggering;Second determination unit, for determining that the major version number meets default difference in version with the upgrade function version number Different condition.
- 10. according to any devices of claim 6-9, it is characterised in that the computing module, including:Current function bag determination unit, the corresponding current function bag of current version for determining the function to be upgraded;Upgrade function bag determination unit, the corresponding upgrade function bag of version after the upgrading for determining the function to be upgraded;Computing unit, for calculating the difference packet between the upgrade function bag and the current function bag, by the difference packet It is determined as the corresponding residual quantity upgrade package of the function to be upgraded.
- 11. a kind of electronic equipment, it is characterised in that including processor, communication interface, memory and communication bus, wherein, processing Device, communication interface, memory complete mutual communication by communication bus;Memory, for storing computer program;Processor, during for performing the computer program stored on memory, realizes any methods of claim 1-5 Step.
- 12. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium memory contains computer Program, the computer program realize claim 1-5 any method and steps when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711077692.XA CN107943532A (en) | 2017-11-06 | 2017-11-06 | Live software upgrade package dissemination method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711077692.XA CN107943532A (en) | 2017-11-06 | 2017-11-06 | Live software upgrade package dissemination method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107943532A true CN107943532A (en) | 2018-04-20 |
Family
ID=61934327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711077692.XA Pending CN107943532A (en) | 2017-11-06 | 2017-11-06 | Live software upgrade package dissemination method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943532A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112312155A (en) * | 2020-10-30 | 2021-02-02 | 北京金山云网络技术有限公司 | Video stream processing method and device and server |
CN112540782A (en) * | 2020-12-16 | 2021-03-23 | 歌尔光学科技有限公司 | Equipment component upgrading method, device, equipment and storage medium |
CN112558994A (en) * | 2020-12-23 | 2021-03-26 | 上海眼控科技股份有限公司 | Application software upgrading method, device, equipment and storage medium |
CN115827020A (en) * | 2022-11-30 | 2023-03-21 | 广州通则康威智能科技有限公司 | Upgrading test method, device, equipment and storage medium of equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101566954A (en) * | 2009-05-31 | 2009-10-28 | 珠海金山软件股份有限公司 | Method and device for managing plug-in |
CN103179019A (en) * | 2011-12-26 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method and device of achieving plug-in upgrade based on instant messaging software |
CN103248556A (en) * | 2012-02-08 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Plugin upgrade capacity information acquisition method and device for IM (instant messaging) client |
CN103297479A (en) * | 2012-03-05 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Distributed detection method and device with upgraded plugin |
CN104008060A (en) * | 2014-06-18 | 2014-08-27 | 腾讯科技(深圳)有限公司 | Method for detecting compatibility of plug-in and host, and detection server |
CN106775754A (en) * | 2016-12-30 | 2017-05-31 | 百度在线网络技术(北京)有限公司 | The compatible processing method and processing device of application |
-
2017
- 2017-11-06 CN CN201711077692.XA patent/CN107943532A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101566954A (en) * | 2009-05-31 | 2009-10-28 | 珠海金山软件股份有限公司 | Method and device for managing plug-in |
CN103179019A (en) * | 2011-12-26 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Method and device of achieving plug-in upgrade based on instant messaging software |
CN103248556A (en) * | 2012-02-08 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Plugin upgrade capacity information acquisition method and device for IM (instant messaging) client |
CN103297479A (en) * | 2012-03-05 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Distributed detection method and device with upgraded plugin |
CN104008060A (en) * | 2014-06-18 | 2014-08-27 | 腾讯科技(深圳)有限公司 | Method for detecting compatibility of plug-in and host, and detection server |
CN106775754A (en) * | 2016-12-30 | 2017-05-31 | 百度在线网络技术(北京)有限公司 | The compatible processing method and processing device of application |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112312155A (en) * | 2020-10-30 | 2021-02-02 | 北京金山云网络技术有限公司 | Video stream processing method and device and server |
CN112312155B (en) * | 2020-10-30 | 2022-04-22 | 北京金山云网络技术有限公司 | Video stream processing method and device and server |
CN112540782A (en) * | 2020-12-16 | 2021-03-23 | 歌尔光学科技有限公司 | Equipment component upgrading method, device, equipment and storage medium |
CN112558994A (en) * | 2020-12-23 | 2021-03-26 | 上海眼控科技股份有限公司 | Application software upgrading method, device, equipment and storage medium |
CN115827020A (en) * | 2022-11-30 | 2023-03-21 | 广州通则康威智能科技有限公司 | Upgrading test method, device, equipment and storage medium of equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107943532A (en) | Live software upgrade package dissemination method, device, electronic equipment and storage medium | |
CN107784086B (en) | Webpage loading method, terminal equipment and computer readable storage medium | |
CN109144559B (en) | Update data packet pushing method and server | |
CN109040052B (en) | Information processing method, terminal and computer readable medium | |
CN110365703A (en) | Internet-of-things terminal abnormal state detection method, apparatus and terminal device | |
CN107832100A (en) | A kind of loading method and its terminal of APK plug-in units | |
CN109740630A (en) | Method for processing abnormal data and device | |
CN110543327B (en) | Service component multiplexing method, device, computer equipment and storage medium | |
CN105095423B (en) | Enumeration data wiring method and device | |
CN111338967B (en) | Shunt test method and device, electronic equipment and storage medium | |
CN109684311A (en) | Abnormal deviation data examination method and device | |
CN111405024B (en) | Service processing method, gateway, electronic equipment and storage medium | |
CN106648557A (en) | Application programming interface API sharing method and device | |
CN108366091A (en) | Network request processing method, terminal and computer-readable medium | |
CN107656750A (en) | Update of plug-in method and device | |
CN110851987B (en) | Method, apparatus and storage medium for predicting calculated duration based on acceleration ratio | |
CN115115004A (en) | Decision tree model construction and application method, device and related equipment | |
CN105763616B (en) | Resource downloading method and device | |
CN105786572B (en) | Using installation position selection method and apply installation position selection device | |
CN110035496B (en) | Cloud platform switching method and system and electronic equipment | |
CN106126286A (en) | A kind of software dispositions method and terminal | |
CN109426505B (en) | Software installation method and device, electronic equipment and storage medium | |
CN115004667B (en) | Information pushing method, device, electronic equipment and computer readable medium | |
CN108037950A (en) | A kind of information deletion method, device, electronic equipment and readable storage medium storing program for executing | |
CN111399832B (en) | Page editing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180420 |