CN109445839A - A kind of module management packet dissemination method, device and terminal device - Google Patents
A kind of module management packet dissemination method, device and terminal device Download PDFInfo
- Publication number
- CN109445839A CN109445839A CN201811115220.3A CN201811115220A CN109445839A CN 109445839 A CN109445839 A CN 109445839A CN 201811115220 A CN201811115220 A CN 201811115220A CN 109445839 A CN109445839 A CN 109445839A
- Authority
- CN
- China
- Prior art keywords
- version number
- module management
- management packet
- module
- version
- 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/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The present invention is suitable for field of computer technology, provides a kind of module management packet dissemination method, device and terminal device, comprising: the version number for obtaining module management packet adjusts type;Type is adjusted according to version number to be adjusted the version number of module management packet;When issuing the module management packet, control module management tool sends triggering command to code storage, and triggering command is used for by the code storage according to version number's build version label adjusted, and version number's label is for marking source code file.Pass through the meaning for the version number that planning module management is wrapped, the version for obtaining module management packet adjusts type, type is adjusted according to version to be automatically adjusted version number, realize the unified planning of version number simultaneously, version number's label of source code file is generated according to version number adjusted, the incidence relation for establishing source code file Yu module management packet is conducive to version and looks back by the version information real-time synchronization of module management packet into the source code file of code storage.
Description
Technical field
The invention belongs to field of computer technology more particularly to a kind of module management packet dissemination method, device and terminal to set
It is standby.
Background technique
Module management tool (Node Package Manager, NPM) is the packet management tool of node.js, as module
The standard distribution platform for managing packet for the publication of module management packet, propagation and relies on control.Module management packet is by node mould
Block is packaged, the file of the every terms of information including node module.Node module is the element of Node.js, one
Node module is exactly a source code file.Under normal conditions, source code file carries out pipe by code storage (warehouse git)
Reason, however since certainty does not contact for module management tool and code storage, the version of module management packet can not be believed
Real-time synchronization is ceased into source code file.
In conclusion prior art presence can not be by the version information real-time synchronization of module management packet to the source of code storage
The problem of code file.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of module management packet dissemination method, device and terminal device, with solution
It is certainly of the existing technology can not be by the version information real-time synchronization of module management packet into the source code file of code storage
Problem.
The first aspect of the present invention provides a kind of module management packet dissemination method, comprising:
The version number for obtaining module management packet adjusts type;
Type is adjusted according to the version number to be adjusted the version number of the module management packet;
In the module management packet after publication adjusts version number, control module management tool sends to code storage and touches
Send instructions, it is corresponding according to version number adjusted and the module management packet that the triggering command is used to indicate the code storage
Source code file build version label, version number's label is for marking the module management packet corresponding source code text
Part establishes the incidence relation of source code file Yu module management packet.
The second aspect of the present invention provides a kind of module management packet distributing device, comprising:
Module is obtained, the version number for obtaining module management packet adjusts type;
Module is adjusted, the version number of the module management packet is adjusted for adjusting type according to the version number;
Mark module, for publication adjust version number after the module management packet when, control module management tool to
Code storage sends triggering command, and the triggering command is used to indicate the code storage according to version number adjusted and described
The corresponding source code file build version label of module management packet, version number's label is for marking the module management packet
Corresponding source code file establishes the incidence relation of source code file Yu module management packet.
The third aspect of the present invention provides a kind of terminal device, including memory, processor and is stored in described deposit
In reservoir and the computer program that can run on the processor, the processor realized when executing the computer program with
Lower step:
The version number for obtaining module management packet adjusts type;
Type is adjusted according to the version number to be adjusted the version number of the module management packet;
In the module management packet after publication adjusts version number, control module management tool sends to code storage and touches
Send instructions, it is corresponding according to version number adjusted and the module management packet that the triggering command is used to indicate the code storage
Source code file build version label, version number's label is for marking the module management packet corresponding source code text
Part establishes the incidence relation of source code file Yu module management packet.
The fourth aspect of the present invention provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Computer program is contained, the computer program performs the steps of when being executed by processor
The version number for obtaining module management packet adjusts type;
Type is adjusted according to the version number to be adjusted the version number of the module management packet;
In the module management packet after publication adjusts version number, control module management tool sends to code storage and touches
Send instructions, it is corresponding according to version number adjusted and the module management packet that the triggering command is used to indicate the code storage
Source code file build version label, version number's label is for marking the module management packet corresponding source code text
Part establishes the incidence relation of source code file Yu module management packet.
A kind of module management packet dissemination method, device and terminal device provided by the invention, are wrapped by planning module management
Version number meaning, obtain module management packet version adjust type, according to version adjust type automatically to version number carry out
Adjustment, the unified planning for realizing version number simultaneously, version number's label of source code file are generated according to version number adjusted, is built
The incidence relation of vertical source code file and module management packet, by the version information real-time synchronization of module management packet to code storage
In source code file, it is conducive to version and looks back, efficiently solving of the existing technology can not believe the version of module management packet
Source code file the problems in of the breath real-time synchronization to code storage.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram for module management packet dissemination method that the embodiment of the present invention one provides;
Fig. 2 is the implementation process schematic diagram of one step S101 of corresponding embodiment provided by Embodiment 2 of the present invention;
Fig. 3 is the implementation process schematic diagram for the one step S102 of corresponding embodiment that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for module management packet distributing device that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram that module 101 is obtained in the corresponding embodiment four of the offer of the embodiment of the present invention five;
Fig. 6 is the structural schematic diagram of project setting module 102 in the corresponding embodiment four of the offer of the embodiment of the present invention six;
Fig. 7 is the schematic diagram for the terminal device that the embodiment of the present invention seven provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, system, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
The embodiment of the present invention in order to solve it is of the existing technology can not be by the version information real-time synchronization of module management packet
To code storage source code file the problem of, provide a kind of module management packet dissemination method, device and terminal device, pass through
The meaning of the version number of planning module management packet, the version for obtaining module management packet adjust type, adjust type certainly according to version
It is dynamic that version number is adjusted, realize the unified planning of version number.Meanwhile source code file is generated according to version number adjusted
Version number's label, establish the incidence relation of source code file Yu module management packet, the version information of module management packet is real-time
Be synchronized in the source code file of code storage, be conducive to version look back, efficiently solve it is of the existing technology can not be by mould
The version information real-time synchronization of block management packet to code storage source code file the problem of.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
As shown in Figure 1, present embodiments providing a kind of module management packet dissemination method, specifically include:
Step S101: the version number for obtaining module management packet adjusts type.
In a particular application, each module management packet has respective package.json file, the package.json
File includes the relevant information of module management packet, such as packet name (name), brief description (description), version number
(version), related dependant (dependencies), code storage address array (repository), keyword
(keywords) etc..
In a particular application, when issuing new module management packet, module management tool automatically according to module management packet more
New content adjusts type to obtain its corresponding version number, and then is adjusted to the version number of module management packet.
In a particular application, the more new content of above-mentioned module management packet can illustrate according to the submission of source code file come really
It is fixed, the submission explanation of above-mentioned source code file refer to that developer submits when uploading source code file to code storage to this
The description of contents of source code file.Specifically, finding the module of last revision by the dependence for obtaining module management packet
Management packet, and according to the module management packet of the package.json file acquisition of the module management packet of last revision to last revision
The submission explanation of the source code file of respective modules.It is said by the submission that comparison module manages the source code file of packet respective modules
The submission of the source code file of bright and last revision module management packet respective modules illustrates to determine the module management packet more
New content.
In a particular application, for unified planning version number, it is easy to implement the adjust automatically of version number, version number is contained
Justice is planned, version number is divided into three fields, respectively major version number, secondary version number and revisions number, by version number
Format is set as major version number secondary version number revisions number.When module management packet is repaired to loophole, version number's adjustment
Type is adjustment major version number;When module management packet be under conditions of not increasing the data-interface that can not be compatible with last revision it is new
When increasing function, it is adjustment secondary version number that version number, which adjusts type,;The number of last revision can not be compatible with when module management packet increases
When according to interface, it is adjustment major version number that version number, which adjusts type,.
Step S102: type is adjusted according to the version number, the version number of the module management packet is adjusted.
In a particular application, after version number's adjustment type has been determined, type is adjusted to module management packet according to version number
Version number be adjusted, specifically: if version number adjustment type be adjustment major version number, in the module management of last revision
On the basis of the version number of packet, it is incremented by above-mentioned major version number, and secondary version number and the number of revisions number are zeroed;If version number's tune
Whole type is adjustment secondary version number, then on the basis of the version number of the module management packet of last revision, keeps major version number not
Become, is incremented by above-mentioned secondary version number, and revisions number is zeroed;If it is adjustment revisions number that version number, which adjusts type, in last revision
Module management packet version number on the basis of, keep major version number and secondary version number it is constant, be incremented by above-mentioned revisions number.
Illustratively, if the version number of the module management packet of last revision are as follows: 0.2.8, when version number's adjustment type is to adjust
When whole revisions number, module management tool automatically adjusts version number are as follows: 0.2.9;When version number's adjustment type is to adjust time version
Number when, module management tool automatically adjusts version number are as follows: 0.3.0;When version number's adjustment type is adjustment major version number, mould
Block management tool automatically adjusts version number are as follows: 1.0.0.
Step S103: in the module management packet after publication adjusts version number, control module management tool is to code
Warehouse sends triggering command, and the triggering command is used to indicate the code storage according to version number adjusted and the module
Corresponding source code file build version label is wrapped in management, and version number's label is for marking the module management packet corresponding
Source code file, establish the incidence relation of source code file Yu module management packet.
In a particular application, in release module management packet, module management tool sends triggering command to code storage, touching
Send instructions the code storage address array of version number and module management packet including module management packet adjusted.Above-mentioned code
Warehouse address array includes type field, url field and path field.Type field code storage type for identification, url
Field is used to indicate code storage address, and path field is used to indicate the source code file of module management packet corresponding module in code
The path in warehouse.It should be noted that code storage can use the warehouse git, it is without restriction herein.
In a particular application, code storage is after receiving triggering command, according to the version of the module management packet adjusted
This number build version label finds corresponding source code file according to the code storage address array of module management packet, and
Corresponding source code file is marked using version number's label, establishes the incidence relation of source code file Yu module management packet.
Module management packet dissemination method provided in this embodiment is obtained by the meaning for the version number that planning module management is wrapped
It takes the version of module management packet to adjust type, type is adjusted according to version, version number is adjusted automatically, realize version number
Unified planning simultaneously, version number's label of source code file is generated according to version number adjusted, establishes source code file and mould
The incidence relation of block management packet, by the version information real-time synchronization of module management packet into the source code file of code storage, benefit
In version look back, efficiently solve it is of the existing technology can not be by the version information real-time synchronization of module management packet to code
The problem of source code file in warehouse.
As shown in Fig. 2, in the present embodiment, the step S101 in embodiment one is specifically included:
Step S201: it is corresponding with the module management packet of last revision to obtain the corresponding source code file of the module management packet
Source code file more new content.
In a particular application, it is searched according to the code storage address array in the package.json file of module management packet
And the corresponding source code file of module management packet is got, and according to the phase in the package.json file of module management packet
The module management packet for relying on and getting last revision is closed, and gets the mould of last revision according to the module management packet of last revision
The corresponding source code file of block management packet.The module management packet of corresponding source code file and last revision is wrapped in contrast model management
Corresponding source code file determines more new content.It should be noted that source code file is managed by code storage, open
Hair personnel when submitting source code file to arrive code storage, need to upload simultaneously it is a submit explanation, to illustrate that the source code is literary
The related content of part.The module management packet of the submission explanation and last revision of source code file is corresponded to by comparison module management packet
The submission explanation of corresponding source code file is just able to confirm that more new content.The data in explanation including source code file are submitted to connect
The related contents such as mouth illustrates, functional module illustrates.
Step S202: determine that the version number of the module management packet adjusts type according to the more new content.
In a particular application, the module tubes of module management packet and last revision can be further confirmed that according to more new content
The main adjustment direction of packet is managed, and then can determine version number's adjustment type of module management packet.
In one embodiment, the version number of module management packet includes major version number, secondary version number and revisions number, above-mentioned step
Rapid S202 the following steps are included:
Step S2021: judge whether the more new content meets the first preset condition, first preset condition are as follows: institute
Stating increased data-interface in more new content can not be mutually compatible with the source code file of last revision;
Step S2022: if the more new content meets first preset condition, it is determined that the version number adjusts type
To adjust the major version number;If the more new content is unsatisfactory for first preset condition, it is determined that version number's adjustment
Type is to adjust the secondary version number or the adjustment revisions number.
In one embodiment, above-mentioned steps S2022 the following steps are included:
Step S2022a: judge whether the more new content meets the second preset condition, second preset condition are as follows: institute
It states in more new content and has increased functional module newly;
Step S2022b: if the more new content meets second preset condition, it is determined that the version number adjusts class
Type is to adjust the secondary version number;
Step S2022c: if the more new content is unsatisfactory for second preset condition, judge that the more new content is
It is no to meet the third preset condition, the third preset condition are as follows: the more new content is patching bugs;
Step S2022d: if the more new content meets the third preset condition, it is determined that the version number adjusts class
Type is to adjust the revisions number.
In a particular application, first judge whether increased data-interface can not be with the source code of last revision in more new content
File is mutually compatible with, if so, determining that version number's adjustment type is adjustment major version number, is otherwise in judgement more new content further
It is no to have increased functional module newly, if so, determining that version number's adjustment type is adjustment secondary version number.If not increasing in more new content
Data-interface that can not be mutually compatible with the source code file of last revision has not also increased functional module newly, and is only to loophole
It is repaired, it is determined that it is adjustment revisions number that version number, which adjusts type,.
Embodiment three:
As shown in figure 3, in the present embodiment, the step S102 in embodiment one is specifically included:
Step S301: the version number of the module management packet of last revision is obtained.
In a particular application, upper one edition is got according to the related dependant in the package.json file of module management packet
This module management packet, passes through the module tubes of the package.json file acquisition last revision of the module management packet of last revision
Manage the version number of packet.
Step S302: type is adjusted according to the version and determines version number modification field, and to the version number modification word
Section is modified, and the version number of the module management packet is obtained.
In a particular application, if version number's adjustment type is adjustment major version number, it is determined that based on version number modification field
Version number, secondary version number and modification number, concrete modification mode are as follows: on the basis of the version number of the module management packet of last revision
On, it is incremented by above-mentioned major version number, and secondary version number and the number of revisions number are zeroed.If it is to adjust time version that version number, which adjusts type,
This number, it is determined that version number modification field is secondary version number and revisions number, and concrete modification mode is then in the module of last revision
It is incremented by above-mentioned secondary version number on the basis of the version number of management packet, and revisions number is zeroed.If it is adjustment that version number, which adjusts type,
Revisions number, it is determined that version number modification field is revisions number, concrete modification mode are as follows: in the version of the module management packet of last revision
On the basis of this number, it is incremented by above-mentioned revisions number.
Example IV:
As shown in figure 4, the present embodiment provides a kind of module management packet distributing devices 100, for executing in embodiment one
Method and step comprising obtain module 101, adjustment module 102 and mark module 103.
Obtain version number's adjustment type that module 101 is used to obtain module management packet.
Adjustment module 102 is used to adjust type according to the version number and adjust to the version number of the module management packet
It is whole.
Mark module 103 is used in the module management packet after publication adjusts version number, control module management tool
Triggering command is sent to code storage, the triggering command is used to indicate the code storage according to version number adjusted and institute
The corresponding source code file build version label of module management packet is stated, version number's label is for marking the module management
Corresponding source code file is wrapped, the incidence relation of source code file Yu module management packet is established.
It should be noted that module management packet distributing device provided in an embodiment of the present invention, as with shown in Fig. 1 of the present invention
Embodiment of the method is based on same design, and bring technical effect is identical as embodiment of the method shown in Fig. 1 of the present invention, particular content
It can be found in the narration in embodiment of the method shown in Fig. 1 of the present invention, details are not described herein again.
Therefore, a kind of module management packet distributing device provided in this embodiment, can equally be wrapped by planning module management
Version number meaning, obtain module management packet version adjust type, according to version adjust type automatically to version number carry out
Adjustment, the unified planning for realizing version number simultaneously, version number's label of source code file are generated according to version number adjusted, is built
The incidence relation of vertical source code file and module management packet, by the version information real-time synchronization of module management packet to code storage
In source code file, it is conducive to version and looks back, efficiently solving of the existing technology can not believe the version of module management packet
The problem of ceasing source code file of the real-time synchronization to code storage.
Embodiment five:
As shown in figure 5, in the present embodiment, the acquisition module 101 in example IV includes for executing corresponding to Fig. 2
The structure of method and step in embodiment comprising update contents acquiring unit 201 and type determining units 202.
It updates contents acquiring unit 201 and is used to obtain the corresponding source code file of the module management packet and last revision
The more new content of the corresponding source code file of module management packet.
Type determining units 202 are used to determine version number's adjustment class of the module management packet according to the more new content
Type.
In one embodiment, the above-mentioned type determination unit 202 includes the first judging unit, the first determination unit and the
Two determination units.
For first judging unit for judging whether the more new content meets the first preset condition, described first is default
Condition are as follows: increased data-interface can not be mutually compatible with the source code file of last revision in the more new content.
If first determination unit meets first preset condition for the more new content, it is determined that the version
Number adjustment type is to adjust the major version number.
If second determination unit is unsatisfactory for first preset condition for the more new content, it is determined that the version
This number adjustment type is to adjust the secondary version number or the adjustment revisions number.
In one embodiment, above-mentioned second determination unit includes second judgment unit, third judging unit, third determination
Unit and the 4th determination unit.
For the second judgment unit for judging whether the more new content meets the second preset condition, described second is default
Condition are as follows: increased functional module newly in the more new content.
If the third determination unit meets second preset condition for the more new content, it is determined that the version
Number adjustment type is to adjust the secondary version number.
If the third judging unit is unsatisfactory for second preset condition for the more new content, judgement is described more
Whether new content meets the third preset condition, the third preset condition are as follows: the more new content is patching bugs.
If the 4th determination unit meets the third preset condition for the more new content, it is determined that the version
Number adjustment type is to adjust the revisions number.
Embodiment six:
As shown in fig. 6, in the present embodiment, the adjustment module 102 in example IV includes for executing corresponding to Fig. 3
The structure of method and step in embodiment comprising acquiring unit 301 and modification unit 302.
Acquiring unit 301 is used to obtain the version number of the module management packet of last revision.
Modification unit 302, which is used to adjust type according to the version number, determines version number modification field, and to the version
Number modification field modify, obtain the version number of the module management packet.
Embodiment seven:
Fig. 7 is the schematic diagram for the terminal device that the embodiment of the present invention seven provides.As shown in fig. 7, the terminal of the embodiment is set
Standby 7 include: processor 70, memory 71 and are stored in the meter that can be run in the memory 71 and on the processor 70
Calculation machine program 72, such as program.The processor 70 realizes above-mentioned modules management packet when executing the computer program 72
Step in dissemination method embodiment, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 70 execute it is described
The function of each module/unit in the above system embodiment, such as module 101 to 103 shown in Fig. 4 are realized when computer program 72
Function.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 72 in the terminal device 7 is described.For example, the computer program 72 can be divided
It is cut into acquisition module, module is adjusted and mark module, each module concrete function is as follows:
Module is obtained, the version number for obtaining module management packet adjusts type;
Module is adjusted, the version number of the module management packet is adjusted for adjusting type according to the version number;
Mark module, for publication adjust version number after the module management packet when, control module management tool to
Code storage sends triggering command, and the triggering command is used to indicate the code storage according to version number adjusted and described
The corresponding source code file build version label of module management packet, version number's label is for marking the module management packet
Corresponding source code file establishes the incidence relation of source code file Yu module management packet.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud management server
Equipment.The terminal device may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that
Fig. 7 is only the example of terminal device 7, does not constitute the restriction to terminal device 7, may include more more or fewer than illustrating
Component, perhaps combines certain components or different components, for example, the terminal device can also include input-output equipment,
Network access equipment, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7
It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7
Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of the system is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.It is above-mentioned wireless
The specific work process of unit in terminal, module, can refer to corresponding processes in the foregoing method embodiment, no longer superfluous herein
It states.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed system/terminal device and method, it can be with
It realizes by another way.For example, system described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, system
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit for being set as separate part description may or may not be physically separated, and be set as single
The component of member display may or may not be physical unit, it can and it is in one place, or may be distributed over
In multiple network units.Some or all of unit therein can be selected to realize this embodiment scheme according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit, which is realized in the form of SFU software functional unit and is arranged, is independent product sale
Or it in use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned reality
The all or part of the process in a method is applied, relevant hardware can also be instructed to complete by computer program, it is described
Computer program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that
The step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie
Matter may include: can carry the computer program code any entity or system, recording medium, USB flash disk, mobile hard disk,
Magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of module management packet dissemination method characterized by comprising
The version number for obtaining module management packet adjusts type;
Type is adjusted according to the version number to be adjusted the version number of the module management packet;
In the module management packet after publication adjusts version number, control module management tool sends triggering to code storage and refers to
It enables, the triggering command is used to indicate the code storage according to version number adjusted and the corresponding source of the module management packet
Code file build version label, version number's label are used to mark the corresponding source code file of the module management packet,
Establish the incidence relation of source code file Yu module management packet.
2. the method according to claim 1, wherein the version number's adjustment for obtaining module management packet to be released
Grade, comprising:
Obtain the corresponding source code file of module management packet source code file corresponding with the module management packet of last revision
More new content;
Determine that the version number of the module management packet adjusts type according to the more new content.
3. according to the method described in claim 2, it is characterized in that, the version number of the module management packet include major version number,
Secondary version number and revisions number, the more new content according to determine version number's adjustment type of the module management packet, comprising:
Judge whether the more new content meets the first preset condition, first preset condition are as follows: increase in the more new content
The data-interface added can not be mutually compatible with the source code file of last revision;
If the more new content meets first preset condition, it is determined that version number's adjustment type is to adjust the key plate
This number;If the more new content is unsatisfactory for first preset condition, it is determined that version number's adjustment type is described in adjustment
Secondary version number or the adjustment revisions number.
If 4. according to the method described in claim 3, it is characterized in that, the more new content to be unsatisfactory for described first default
Condition, it is determined that version number's adjustment type is to adjust the secondary version number or the adjustment revisions number, comprising:
Judge whether the more new content meets the second preset condition, second preset condition are as follows: new in the more new content
Functional module is increased;
If the more new content meets second preset condition, it is determined that version number's adjustment type is to adjust the secondary version
This number;
If the more new content is unsatisfactory for second preset condition, it is pre- to judge whether the more new content meets the third
If condition, the third preset condition are as follows: the more new content is patching bugs;
If the more new content meets the third preset condition, it is determined that version number's adjustment type is to adjust the revision
Number.
5. the method according to claim 1, wherein described adjust grade to the module according to the version number
The version number of management packet is adjusted, comprising:
Obtain the version number of the module management packet of last revision;
Type is adjusted according to the version and determines version number modification field, and is modified to the version number modification field, is obtained
To the version number of the module management packet.
6. a kind of module management packet distributing device characterized by comprising
Module is obtained, the version number for obtaining module management packet adjusts type;
Module is adjusted, the version number of the module management packet is adjusted for adjusting type according to the version number;
Mark module, in the module management packet after publication adjusts version number, control module management tool to be to code
Warehouse sends triggering command, and the triggering command is used to indicate the code storage according to version number adjusted and the module
Corresponding source code file build version label is wrapped in management, and version number's label is for marking the module management packet corresponding
Source code file, establish the incidence relation of source code file Yu module management packet.
7. module management packet distributing device according to claim 6, which is characterized in that the acquisition module includes:
Contents acquiring unit is updated, for obtaining the module tubes of the module management packet corresponding source code file and last revision
Reason wraps the more new content of corresponding source code file;
Type determining units, for determining that the version number of the module management packet adjusts type according to the more new content.
8. module management packet distributing device according to claim 6, which is characterized in that the adjustment module includes:
Acquiring unit, the version number of the module management packet for obtaining last revision;
Unit is modified, determines version number modification field for adjusting type according to the version number, and to the version number modification
Field is modified, and the version number of the module management packet is obtained.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811115220.3A CN109445839A (en) | 2018-09-25 | 2018-09-25 | A kind of module management packet dissemination method, device and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811115220.3A CN109445839A (en) | 2018-09-25 | 2018-09-25 | A kind of module management packet dissemination method, device and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109445839A true CN109445839A (en) | 2019-03-08 |
Family
ID=65532607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811115220.3A Pending CN109445839A (en) | 2018-09-25 | 2018-09-25 | A kind of module management packet dissemination method, device and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445839A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111399898A (en) * | 2020-03-04 | 2020-07-10 | 平安科技(深圳)有限公司 | Management method and device for multi-module system code version and computer equipment |
CN112306544A (en) * | 2019-07-26 | 2021-02-02 | 深圳Tcl数字技术有限公司 | Method for automatically generating version information, storage medium and server |
CN112416427A (en) * | 2020-12-11 | 2021-02-26 | 推想医疗科技股份有限公司 | Method and device for releasing module management package, electronic equipment and storage medium |
CN112540775A (en) * | 2020-12-21 | 2021-03-23 | 恩亿科(北京)数据科技有限公司 | Method, device and equipment for detecting compatibility of program package |
CN112783549A (en) * | 2021-01-08 | 2021-05-11 | 东风汽车股份有限公司 | Method for upgrading data version number of automobile electric control element |
CN113448614A (en) * | 2021-06-29 | 2021-09-28 | 北京金山云网络技术有限公司 | Software project code management method and device, storage medium and electronic equipment |
CN113656050A (en) * | 2020-05-12 | 2021-11-16 | 北京字节跳动网络技术有限公司 | Method and device for generating version number |
CN116521221A (en) * | 2023-05-22 | 2023-08-01 | 广州广电运通信息科技有限公司 | Web application management method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6757893B1 (en) * | 1999-12-17 | 2004-06-29 | Canon Kabushiki Kaisha | Version control system for software code |
US20120227030A1 (en) * | 2011-03-01 | 2012-09-06 | Daniel Radez | Systems and methods for managing versions of software packages |
CN103729195A (en) * | 2014-01-15 | 2014-04-16 | 北京奇虎科技有限公司 | Control method and system for software version |
CN105740132A (en) * | 2016-01-25 | 2016-07-06 | 中国人民解放军国防科学技术大学 | Modification log based software package source automatic analysis method |
US20170286075A1 (en) * | 2016-03-30 | 2017-10-05 | Airwatch Llc | Resource injection for application wrapping |
-
2018
- 2018-09-25 CN CN201811115220.3A patent/CN109445839A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6757893B1 (en) * | 1999-12-17 | 2004-06-29 | Canon Kabushiki Kaisha | Version control system for software code |
US20120227030A1 (en) * | 2011-03-01 | 2012-09-06 | Daniel Radez | Systems and methods for managing versions of software packages |
CN103729195A (en) * | 2014-01-15 | 2014-04-16 | 北京奇虎科技有限公司 | Control method and system for software version |
CN105740132A (en) * | 2016-01-25 | 2016-07-06 | 中国人民解放军国防科学技术大学 | Modification log based software package source automatic analysis method |
US20170286075A1 (en) * | 2016-03-30 | 2017-10-05 | Airwatch Llc | Resource injection for application wrapping |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112306544A (en) * | 2019-07-26 | 2021-02-02 | 深圳Tcl数字技术有限公司 | Method for automatically generating version information, storage medium and server |
CN111399898A (en) * | 2020-03-04 | 2020-07-10 | 平安科技(深圳)有限公司 | Management method and device for multi-module system code version and computer equipment |
CN111399898B (en) * | 2020-03-04 | 2023-09-05 | 平安科技(深圳)有限公司 | Method and device for managing multi-module system code version and computer equipment |
CN113656050A (en) * | 2020-05-12 | 2021-11-16 | 北京字节跳动网络技术有限公司 | Method and device for generating version number |
CN113656050B (en) * | 2020-05-12 | 2024-03-22 | 北京字节跳动网络技术有限公司 | Method and apparatus for generating version number |
CN112416427A (en) * | 2020-12-11 | 2021-02-26 | 推想医疗科技股份有限公司 | Method and device for releasing module management package, electronic equipment and storage medium |
CN112540775A (en) * | 2020-12-21 | 2021-03-23 | 恩亿科(北京)数据科技有限公司 | Method, device and equipment for detecting compatibility of program package |
CN112783549A (en) * | 2021-01-08 | 2021-05-11 | 东风汽车股份有限公司 | Method for upgrading data version number of automobile electric control element |
CN113448614A (en) * | 2021-06-29 | 2021-09-28 | 北京金山云网络技术有限公司 | Software project code management method and device, storage medium and electronic equipment |
CN116521221A (en) * | 2023-05-22 | 2023-08-01 | 广州广电运通信息科技有限公司 | Web application management method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109445839A (en) | A kind of module management packet dissemination method, device and terminal device | |
CN108959621B (en) | Method, device, equipment and storage medium for realizing block chain network | |
CN104580349B (en) | Secure cloud administration agent | |
CN105765568B (en) | The service moulding plate required based on Service Level Agreement is generated and is disposed | |
US11172022B2 (en) | Migrating cloud resources | |
CN110163474A (en) | A kind of method and apparatus of task distribution | |
CN107395665A (en) | A kind of block chain service handling and business common recognition method and device | |
CN106383665B (en) | Date storage method and coordination memory node in data-storage system | |
WO2021031472A1 (en) | Intelligent contract processing method and device, computer device and storage medium | |
CN103577266A (en) | Method and system for distributing field programmable gate array (FPGA) resources | |
CN103368867B (en) | The method and system for the object that cache communicates through network with secondary site | |
CN111181770B (en) | Resource allocation method, system, electronic equipment and storage medium | |
CN109447355A (en) | Dispatching optimization method, device, medium and the calculating equipment of articles from the storeroom | |
US20140081901A1 (en) | Sharing modeling data between plug-in applications | |
CN110019125A (en) | The method and apparatus of data base administration | |
CN109800080A (en) | A kind of method for scheduling task based on Quartz frame, system and terminal device | |
CN108280099A (en) | Data dictionary management method, apparatus and server | |
CN110535679A (en) | Management method, framework, network slice sales platform and the management system of slice | |
CN108876379A (en) | A kind of method and apparatus for generating message | |
CN103294556A (en) | Method and system for host system admission control | |
CN114172820A (en) | Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium | |
CN108563509A (en) | Data query implementation method, device, medium and electronic equipment | |
CN109189431A (en) | A kind of client side upgrading method, device, equipment and readable storage medium storing program for executing | |
CN109314103A (en) | Method and apparatus for the processing of remote scene programmable gate array | |
CN115168162A (en) | Multi-gray-scale issuing method and device based on ingress controller in container environment and storage medium |
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 |