CN109189400A - Program dissemination method and device, storage medium, processor - Google Patents

Program dissemination method and device, storage medium, processor Download PDF

Info

Publication number
CN109189400A
CN109189400A CN201810892974.3A CN201810892974A CN109189400A CN 109189400 A CN109189400 A CN 109189400A CN 201810892974 A CN201810892974 A CN 201810892974A CN 109189400 A CN109189400 A CN 109189400A
Authority
CN
China
Prior art keywords
program
source code
mentioned
version information
released
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
Application number
CN201810892974.3A
Other languages
Chinese (zh)
Inventor
王丽茹
林洋
何潇
苏国龙
明小红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qunar Software Technology Co Ltd
Original Assignee
Beijing Qunar Software Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qunar Software Technology Co Ltd filed Critical Beijing Qunar Software Technology Co Ltd
Priority to CN201810892974.3A priority Critical patent/CN109189400A/en
Publication of CN109189400A publication Critical patent/CN109189400A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of program dissemination method and device, storage medium, processors.Wherein, this method comprises: obtaining preconfigured version information;Obtain the source code of program to be released;It is modified using above-mentioned version information to the version information in the source code of above-mentioned program to be released;Source code after revision information is uploaded onto the server, wherein for calling issuing interface, above-mentioned issuing interface is used to carry out being packaged to above-mentioned source code and packed program is published to corresponding platform above-mentioned server.The technical issues of present invention solves the prior art during release process, and manually modifying the version information of program leads to the cumbersome process of release process and inefficiency.

Description

Program dissemination method and device, storage medium, processor
Technical field
The present invention relates to field of computer technology, are situated between in particular to a kind of program dissemination method and device, storage Matter, processor.
Background technique
During each small routine sends out version, it is required to the version number of developer's manual modification small routine, is beaten manually Packet and upload backstage, a series of this cumbersome hair version process, so that the update process of the small routine of convenient user is more numb It is tired, and need the cooperative work of developer and Fa editions personnel, time and working efficiency to both sides etc. require it is higher, not Hair version is carried out conducive to the hair more frequent small routine of release's number.
Cause the process of release process cumbersome as it can be seen that manually modifying the version information of program, and due to small routine It is frequent to send out release's number, it is entire to send out that version process is more cumbersome and inefficiency.
For the above-mentioned prior art during release process, the version information for manually modifying program causes to issue The problem of process of program is cumbersome and inefficiency, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of program dissemination method and device, storage medium, processors, existing at least to solve There is technology during release process, the version information for manually modifying program causes the process of release process cumbersome and imitates The low technical problem of rate.
According to an aspect of an embodiment of the present invention, a kind of program dissemination method is provided, comprising: obtain preconfigured Version information;Obtain the source code of program to be released;Using above-mentioned version information in the source code of above-mentioned program to be released Version information is modified;Source code after revision information is uploaded onto the server, wherein above-mentioned server is for adjusting With issuing interface, above-mentioned issuing interface is used to carry out being packaged to above-mentioned source code and be published to packed program corresponding flat Platform.
Further, being modified using above-mentioned version information includes: Run Script file, passes through above-mentioned script file Above-mentioned version information is modified the corresponding position of the source code to above-mentioned program to be released by operation.
Further, the source code for obtaining above-mentioned program to be released includes: the source code obtained in above-mentioned program to be released The middle part modified;The above-mentioned part modified and unmodified part are merged, version information to be modified is obtained Source code.
Further, above-mentioned issuing interface is the interface that Jenkins is provided, and above-mentioned Jenkins is used for above-mentioned source code It is packaged, and packed program is published to corresponding platform.
Further, the above method further include: generate graphical code, wherein above-mentioned graphical code is published to for accessing Above procedure on above-mentioned platform;Above-mentioned graphical code is stored in and is packaged in log.
Further, above-mentioned server is the server built using NodeJS.
According to another aspect of an embodiment of the present invention, a kind of program distributing device is additionally provided, comprising: first obtains mould Block, for obtaining preconfigured version information;Second obtains module, for obtaining the source code of program to be released;Handle mould Block, for being modified using above-mentioned version information to the version information in the source code of above-mentioned program to be released;Uploading module, For the source code after revision information to be uploaded onto the server, wherein above-mentioned server is used to call issuing interface, on Issuing interface is stated for be packaged to above-mentioned source code and packed program being published to corresponding platform.
Further, processing module includes: running unit, is used for Run Script file, passes through the fortune of above-mentioned script file It is about to the corresponding position for the source code that above-mentioned version information is modified to above-mentioned program to be released.
Further, the second acquisition module includes: acquiring unit, for obtaining in the source code in above-mentioned program to be released The part modified;Processing unit obtains to be repaired for merging the above-mentioned part modified and unmodified part Change the source code of version information.
Further, above-mentioned issuing interface is the interface that Jenkins is provided, and above-mentioned Jenkins is used for above-mentioned source code It is packaged, and packed program is published to corresponding platform.
Further, above-mentioned apparatus further include: generation module, for generating graphical code, wherein above-mentioned graphical code is used In the above procedure that access is published on above-mentioned platform;Above-mentioned graphical code is stored in and is packaged in log.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, above-mentioned storage medium includes storage Program, wherein above procedure operation when control above-mentioned storage medium where equipment execute following steps: acquisition be pre-configured with Version information;Obtain the source code of program to be released;Using above-mentioned version information in the source code of above-mentioned program to be released Version information modify;Source code after revision information is uploaded onto the server, wherein above-mentioned server is used for Issuing interface is called, above-mentioned issuing interface is used to carry out being packaged to above-mentioned source code and be published to packed program corresponding Platform.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, above-mentioned processor is used to run program, Wherein, following steps are executed when above procedure is run: obtaining preconfigured version information;Obtain the source generation of program to be released Code;It is modified using above-mentioned version information to the version information in the source code of above-mentioned program to be released;Revision is believed Source code after breath is uploaded onto the server, wherein above-mentioned server for calling issuing interface, above-mentioned issuing interface for pair Above-mentioned source code be packaged and packed program is published to corresponding platform.
In embodiments of the present invention, by obtaining preconfigured version information;Obtain the source code of program to be released;Make It is modified with above-mentioned version information to the version information in the source code of above-mentioned program to be released;After revision information Source code upload onto the server, wherein for calling issuing interface, above-mentioned issuing interface is used for above-mentioned source above-mentioned server Code be packaged and packed program is published to corresponding platform, has reached the version without manually modifying program The purpose of information improves the technical effect of the efficiency of release process, and then solve to realize the process of simplified release process For the prior art during release process, the version information for manually modifying program causes the process of release process cumbersome And the technical issues of inefficiency.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of program dissemination method according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of optional program dissemination method according to an embodiment of the present invention;
Fig. 3 is a kind of flow chart of optional program dissemination method according to an embodiment of the present invention;
Fig. 4 is a kind of flow chart of optional program dissemination method according to an embodiment of the present invention;And
Fig. 5 is a kind of structural schematic diagram of program distributing device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Firstly, understand the embodiment of the present invention for convenience, below will to part term involved in the present invention or noun into Row illustrates:
Jenkins: being an open source software project, is a kind of continuous integrating tool based on Java exploitation, for monitoring Continue duplicate work, it is desirable to provide an easy-to-use software platform of opening is that the continuous integrating of software becomes possible.
NodeJS: being a Javascript running environment, the net for easily building fast response time, being easy to extend Network application.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of program dissemination method is provided, it should be noted that in attached drawing The step of process illustrates can execute in a computer system such as a set of computer executable instructions, although also, Logical order is shown in flow chart, but in some cases, it can be to be different from shown by sequence execution herein or retouch The step of stating.
Fig. 1 is a kind of flow chart of program dissemination method according to an embodiment of the present invention, as shown in Figure 1, this method includes Following steps:
Step S102 obtains preconfigured version information;
Step S104 obtains the source code of program to be released;
Step S106 repairs the version information in the source code of above-mentioned program to be released using above-mentioned version information Change;
Step S108 uploads onto the server the source code after revision information, wherein above-mentioned server is for adjusting With issuing interface, above-mentioned issuing interface is used to carry out being packaged to above-mentioned source code and be published to packed program corresponding flat Platform.
Optionally, above-mentioned version information includes at least at least one of: the version number of program, the various components of reference Module information, for example, the group piece number of various components.
In an alternative embodiment, above-mentioned version information can be, but not limited to be pre-stored in a database, pass through Strapping tool (being packaged job) obtains the preconfigured version information stored in above-mentioned database in a manner of reading information.
In the embodiment of the present application, above-mentioned program to be released can be small routine to be released, for example, operate in wechat, The small routine on the backstage of the social softwares program such as QQ.It is before publication small routine every time, i.e., available before small routine hair version Preconfigured new version information modifies to the version information in the source code of above-mentioned program to be released, for example, can be with It modifies to the version number in version information, group piece number.
In an alternative embodiment, above-mentioned issuing interface is the interface that Jenkins is provided, and above-mentioned Jenkins is used for Above-mentioned source code is packaged, and packed program is published to corresponding platform.
In an alternative embodiment, above-mentioned server is the server built using NodeJS.
In a kind of optional embodiment, it can be, but not limited to build remote server using NodeJS, in Jenkins When the issuing interface of offer is packaged above-mentioned source code, after the source code pre-processed is packaged, remote service is called to connect Mouthful, the source code after revision information is uploaded to server, what server calls program Integrated Development Environment IDE was provided Packed program is published to corresponding platform, for example, wechat platform by Command Line Interface CLI.
It in the embodiment of the present application, can in the issuing interface provided to Jenkins by the Process integration for issuing program To realize integrated publication, also, reduce the number of manual intervention, cumbersome process and error rate when avoiding manually issuing.It is logical Source code after revision information is simultaneously uploaded to server by the source code crossed after automatic packaging revision information, Without the manual operation of developer and Fa editions personnel, the time for both having saved release process can also be reduced caused by manual operation Mistake.
In embodiments of the present invention, by obtaining preconfigured version information;Obtain the source code of program to be released;Make It is modified with above-mentioned version information to the version information in the source code of above-mentioned program to be released;After revision information Source code upload onto the server, wherein for calling issuing interface, above-mentioned issuing interface is used for above-mentioned source above-mentioned server Code be packaged and packed program is published to corresponding platform, has reached the version without manually modifying program The purpose of information improves the technical effect of the efficiency of release process, and then solve to realize the process of simplified release process For the prior art during release process, the version information for manually modifying program causes the process of release process cumbersome And the technical issues of inefficiency.
In an alternative embodiment, it is modified using above-mentioned version information, can be accomplished in that fortune It travels far and wide this document, is modified above-mentioned version information to the source code of above-mentioned program to be released by the operation of above-mentioned script file Corresponding position.
Optionally, above-mentioned script file can be JS script file, i.e. Jenkins script file.
A kind of optional embodiment can be believed above-mentioned version by way of Run Script in the embodiment of the present application Breath is modified to the corresponding position of the source code of above-mentioned program to be released, for example, by way of Run Script, respectively by above-mentioned version This number, group piece number modify the corresponding position into source code, wherein the position where modifying group piece number to group piece number in source code It sets, the position by version number modification into version number's place source code.
In an alternative embodiment, Fig. 2 is a kind of optional program dissemination method according to an embodiment of the present invention Flow chart, as shown in Fig. 2, the source code for obtaining above-mentioned program to be released includes:
Step S202 obtains the part modified in the source code in above-mentioned program to be released;
Step S204 merges the above-mentioned part modified and unmodified part, obtains version letter to be modified The source code of breath.
Optionally, the above-mentioned part modified can be, but not limited to as the version information in above-mentioned source code, unmodified Part be source code in do not need modification content.During obtaining above-mentioned source code, the part that can will modify It is merged with unmodified part, and then the source code of available version information to be modified.
In an alternative embodiment, Fig. 3 is a kind of optional program dissemination method according to an embodiment of the present invention Flow chart, as shown in figure 3, the above method further include:
Step S302 generates graphical code, wherein above-mentioned graphical code for access be published to it is above-mentioned on above-mentioned platform Program.
Above-mentioned graphical code is stored in and is packaged in log by step S304.
Optionally, above-mentioned graphical code can be issued with two dimensional code, in a kind of optional scheme by packed program To during corresponding platform, alternatively, can also generate will need pipe after packed program is published to corresponding platform The two dimensional code of reason person or developer's scanning, and above-mentioned two dimensional code is returned into the end Jenkins, and protected in being packaged log It deposits and shows, carry out barcode scanning convenient for user, to access the above procedure being published on above-mentioned platform.
Based on above-mentioned optional embodiment, the process that may be implemented to make to issue small routine is more intelligent, reduces hair version people The manual operation of member and developer, the time for both having saved release process can also reduce mistake caused by manual operation.
The embodiment of the present application for ease of understanding is specifically described, Fig. 4 below by way of an optional specific embodiment It is a kind of flow chart of optional program dissemination method according to an embodiment of the present invention, as shown in figure 4, above procedure dissemination method It step can realize by the following method:
Step S402 obtains preconfigured version information.
Optionally, above-mentioned version information includes at least at least one of: the version number of program, the various components of reference Module information, for example, the group piece number of various components.
Step S404 obtains the source code of program to be released.
Step S406, Run Script file are modified above-mentioned version information to above-mentioned by the operation of above-mentioned script file The corresponding position of the source code of program to be released.
Step S408 uploads onto the server the source code after revision information.
Wherein, above-mentioned server is for calling issuing interface, and above-mentioned issuing interface is for being packaged above-mentioned source code And packed program is published to corresponding platform.
In an alternative embodiment, above-mentioned issuing interface is the interface that Jenkins is provided, and above-mentioned Jenkins is used for Above-mentioned source code is packaged, and packed program is published to corresponding platform.
In an alternative embodiment, above-mentioned server is the server built using NodeJS.
Step S410 generates graphical code, wherein above-mentioned graphical code for access be published to it is above-mentioned on above-mentioned platform Program.
Above-mentioned graphical code is stored in and is packaged in log by step S412.
Service code isolation, integrated publication during release process may be implemented by the embodiment of the present application.Wherein, The purpose of service code isolation is to avoid improper code change from causing to reduce influencing each other between service code Problem and failure reduce problem coverage.
It should be noted that realize the principle of above-mentioned service code isolation, can be, but not limited to packet warehouse (NPM, RPM, ) etc. MAVEN realization principle is consistent, and the publication of module is carried out by the issuing function of tool, and each business module is freely issued Controllable version;By the installation function of tool, the downloading installation of module is carried out, when business needs to rely on other business or public affairs Altogether when part, it is mounted directly formulation version, self-developing debugging.
Embodiment 2
According to embodiments of the present invention, it additionally provides a kind of for implementing the Installation practice of above procedure dissemination method, Fig. 5 It is a kind of structural schematic diagram of program distributing device according to an embodiment of the present invention, as shown in figure 5, above procedure distributing device, It include: the first acquisition module 50, processing module 52 and uploading module 54, in which:
First obtains module 50, for obtaining preconfigured version information;Second obtains module, to be released for obtaining The source code of program;Processing module 52, for using above-mentioned version information to the version in the source code of above-mentioned program to be released Information is modified;Uploading module 54, for the source code after revision information to be uploaded onto the server, wherein above-mentioned For calling issuing interface, above-mentioned issuing interface is used to carry out being packaged to above-mentioned source code and send out packed program server Cloth is to corresponding platform.
In an alternative embodiment, processing module includes: running unit, Run Script file is used for, by above-mentioned Above-mentioned version information is modified the corresponding position of the source code to above-mentioned program to be released by the operation of script file.
In an alternative embodiment, the second acquisition module includes: acquiring unit, for obtaining above-mentioned program to be released In source code in the part modified;Processing unit, for carrying out the above-mentioned part modified and unmodified part Merge, obtains the source code of version information to be modified.
In an alternative embodiment, above-mentioned issuing interface is the interface that Jenkins is provided, and above-mentioned Jenkins is used for Above-mentioned source code is packaged, and packed program is published to corresponding platform.
In an alternative embodiment, above-mentioned apparatus further include: generation module, for generating graphical code, wherein on Graphical code is stated for accessing the above procedure being published on above-mentioned platform;Above-mentioned graphical code is stored in and is packaged in log.
It should be noted that above-mentioned modules can be realized by software or hardware, for example, for the latter, Can be accomplished by the following way: above-mentioned modules can be located in same processor;Alternatively, above-mentioned modules are with any Combined mode is located in different processors.
Herein it should be noted that above-mentioned first obtains module 50, processing module 52 and uploading module 54 corresponding to implementation Step S102 to step S106 in example 1, above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module may operate in meter as a part of device In calculation machine terminal.
It should be noted that the optional or preferred embodiment of the present embodiment may refer to the associated description in embodiment 1, Details are not described herein again.
Above-mentioned program distributing device can also include processor and memory, and above-mentioned first obtains module 50, processing mould Block 52 and uploading module 54 etc. store in memory as program unit, are executed on stored in memory by processor Program unit is stated to realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel, above-mentioned kernel can be set One or more.Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) And/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one Storage chip.
According to the embodiment of the present application, a kind of storage medium embodiment is additionally provided.Optionally, in the present embodiment, above-mentioned Storage medium includes the program of storage, wherein equipment where controlling above-mentioned storage medium in above procedure operation executes above-mentioned Any one program dissemination method.
Optionally, in the present embodiment, above-mentioned storage medium can be located in computer network in computer terminal group In any one terminal, or in any one mobile terminal in mobile terminal group, above-mentioned storage medium packet Include the program of storage.
Optionally, when program is run, equipment where control storage medium executes following functions: obtaining preconfigured version This information;Obtain the source code of program to be released;Using above-mentioned version information to the version in the source code of above-mentioned program to be released This information is modified;Source code after revision information is uploaded onto the server, wherein above-mentioned server is for calling Issuing interface, above-mentioned issuing interface are used to carry out being packaged to above-mentioned source code and be published to packed program corresponding flat Platform.
Optionally, when program is run, equipment where control storage medium executes following functions: Run Script file passes through Above-mentioned version information is modified the corresponding position of the source code to above-mentioned program to be released by the operation of above-mentioned script file.
Optionally, when program is run, equipment where control storage medium executes following functions: obtaining above-mentioned journey to be released The part modified in source code in sequence;The above-mentioned part modified and unmodified part are merged, obtain to The source code of revision information.
Optionally, when program is run, equipment where control storage medium executes following functions: graphical code is generated, In, above-mentioned graphical code is for accessing the above procedure being published on above-mentioned platform;Above-mentioned graphical code is stored in and is packaged day In will.
According to the embodiment of the present application, a kind of processor embodiment is additionally provided.Optionally, in the present embodiment, above-mentioned place Reason device is for running program, wherein above procedure executes any one of the above program dissemination method when running.
The embodiment of the present application provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor performs the steps of when executing program obtains preconfigured version information;It obtains The source code of program to be released;The version information in the source code of above-mentioned program to be released is repaired using above-mentioned version information Change;Source code after revision information to be uploaded onto the server, wherein above-mentioned server is used to call issuing interface, on Issuing interface is stated for be packaged to above-mentioned source code and packed program being published to corresponding platform.
Optionally, when above-mentioned processor executes program, the operation of above-mentioned script file can be passed through with Run Script file Above-mentioned version information is modified to the corresponding position of the source code to above-mentioned program to be released.
Optionally, when above-mentioned processor executes program, it can also obtain and be modified in the source code in above-mentioned program to be released The part crossed;The above-mentioned part modified and unmodified part are merged, the source generation of version information to be modified is obtained Code.
Optionally, when above-mentioned processor executes program, graphical code can also be generated, wherein above-mentioned graphical code is used for Access the above procedure being published on above-mentioned platform;Above-mentioned graphical code is stored in and is packaged in log.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step: preconfigured version information is obtained;Obtain the source code of program to be released;Using upper Version information is stated to modify to the version information in the source code of above-mentioned program to be released;By the source after revision information Code is uploaded onto the server, wherein for calling issuing interface, above-mentioned issuing interface is used for above-mentioned source code above-mentioned server Be packaged and packed program is published to corresponding platform.
Optionally, when above-mentioned computer program product executes program, above-mentioned script text can be passed through with Run Script file Above-mentioned version information is modified the corresponding position of the source code to above-mentioned program to be released by the operation of part.
Optionally, when above-mentioned computer program product executes program, the source generation in above-mentioned program to be released can also be obtained The part modified in code;The above-mentioned part modified and unmodified part are merged, version letter to be modified is obtained The source code of breath.
Optionally, when above-mentioned computer program product executes program, graphical code can also be generated, wherein above-mentioned figure Change code for accessing the above procedure being published on above-mentioned platform;Above-mentioned graphical code is stored in and is packaged in log.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
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 unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (13)

1. a kind of program dissemination method characterized by comprising
Obtain preconfigured version information;
Obtain the source code of program to be released;
It is modified using the version information to the version information in the source code of the program to be released;
Source code after revision information is uploaded onto the server, wherein the server is for calling issuing interface, institute Issuing interface is stated for be packaged to the source code and packed program being published to corresponding platform.
2. the method according to claim 1, wherein being modified using the version information and including:
Run Script file is modified the version information to the source of the program to be released by the operation of the script file The corresponding position of code.
3. the method according to claim 1, wherein the source code for obtaining the program to be released includes:
Obtain the part modified in the source code in the program to be released;
The part modified and unmodified part are merged, the source code of version information to be modified is obtained.
4. the method according to claim 1, wherein the interface that the issuing interface provides for Jenkins, described Packed program is published to corresponding platform for being packaged to the source code by Jenkins.
5. method according to claim 1 to 4, which is characterized in that the above method further include:
Generate graphical code, wherein the graphical code is for accessing the described program being published on the platform;
The graphical code is stored in and is packaged in log.
6. method according to claim 1 to 4, which is characterized in that the server is to be taken using NodeJS The server built.
7. a kind of program distributing device characterized by comprising
First obtains module, for obtaining preconfigured version information;
Second obtains module, for obtaining the source code of program to be released;
Processing module, for being repaired using the version information to the version information in the source code of the program to be released Change;
Uploading module, for the source code after revision information to be uploaded onto the server, wherein the server is for adjusting With issuing interface, the issuing interface is used to carry out being packaged to the source code and be published to packed program corresponding flat Platform.
8. device according to claim 7, which is characterized in that processing module includes:
Running unit is used for Run Script file, is modified the version information to described by the operation of the script file The corresponding position of the source code of program to be released.
9. device according to claim 7, which is characterized in that second, which obtains module, includes:
Acquiring unit, for obtaining the part modified in the source code in the program to be released;
Processing unit obtains version letter to be modified for merging the part modified and unmodified part The source code of breath.
10. device according to claim 7, which is characterized in that the issuing interface is the interface that Jenkins is provided, institute Jenkins is stated for being packaged to the source code, and packed program is published to corresponding platform.
11. device according to any one of claims 7 to 10, which is characterized in that above-mentioned apparatus further include:
Generation module, for generating graphical code, wherein the graphical code for access be published to it is described on the platform Program;
The graphical code is stored in and is packaged in log.
12. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment execute following steps: obtain preconfigured version information;Obtain program to be released Source code;It is modified using the version information to the version information in the source code of the program to be released;It will modification Source code after version information is uploaded onto the server, wherein the server is for calling issuing interface, the issuing interface For be packaged to the source code and packed program being published to corresponding platform.
13. a kind of processor, which is characterized in that the processor is for running program, wherein executed when described program is run with Lower step: preconfigured version information is obtained;Obtain the source code of program to be released;Using the version information to it is described to Version information in the source code of release process is modified;Source code after revision information is uploaded onto the server, Wherein, for calling issuing interface, the issuing interface is used to carry out being packaged to the source code and will be packaged the server Good program is published to corresponding platform.
CN201810892974.3A 2018-08-07 2018-08-07 Program dissemination method and device, storage medium, processor Pending CN109189400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810892974.3A CN109189400A (en) 2018-08-07 2018-08-07 Program dissemination method and device, storage medium, processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810892974.3A CN109189400A (en) 2018-08-07 2018-08-07 Program dissemination method and device, storage medium, processor

Publications (1)

Publication Number Publication Date
CN109189400A true CN109189400A (en) 2019-01-11

Family

ID=64920988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810892974.3A Pending CN109189400A (en) 2018-08-07 2018-08-07 Program dissemination method and device, storage medium, processor

Country Status (1)

Country Link
CN (1) CN109189400A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651352A (en) * 2020-05-29 2020-09-11 成都新潮传媒集团有限公司 Warehouse code merging method and device
CN111667336A (en) * 2020-04-28 2020-09-15 中国平安财产保险股份有限公司 Product information configuration and pushing method, device, equipment and storage medium
CN112631650A (en) * 2020-12-28 2021-04-09 掌阅科技股份有限公司 Plug-in version information checking method, computing device and storage medium
CN112711446A (en) * 2020-12-29 2021-04-27 医渡云(北京)技术有限公司 Method, device and system for realizing novice guiding service
CN112882747A (en) * 2021-01-29 2021-06-01 北京思特奇信息技术股份有限公司 Method and system for issuing program in interface mode
CN113050981A (en) * 2021-03-23 2021-06-29 深圳杰微芯片科技有限公司 Code on-line automatic publishing method, server and storage medium
CN113553095A (en) * 2021-07-16 2021-10-26 北京奇艺世纪科技有限公司 Method and device for issuing small program, electronic device and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071378A (en) * 2006-05-12 2007-11-14 日立软件工程株式会社 Source code generation method, apparatus and program
CN102306104A (en) * 2011-08-26 2012-01-04 深圳市万兴软件有限公司 Method and device for automatically updating application program
CN102591685A (en) * 2011-12-30 2012-07-18 深圳市万兴软件有限公司 Method and device for implementation of automatic online updating of application program
CN104580480A (en) * 2015-01-15 2015-04-29 上海瀚银信息技术有限公司 Remote automatic deployment system and method for client end
CN105867978A (en) * 2016-04-11 2016-08-17 平安科技(深圳)有限公司 OGG version deployment method and system
CN105867950A (en) * 2016-05-31 2016-08-17 广东能龙教育股份有限公司 Gradle and Svn-based online automatic packaging method
CN106055334A (en) * 2016-06-01 2016-10-26 努比亚技术有限公司 Code management system and method
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management
CN107729045A (en) * 2017-09-30 2018-02-23 武汉汉思信息技术有限责任公司 Application program automates version dissemination method and system
CN107896244A (en) * 2017-11-07 2018-04-10 中国银联股份有限公司 A kind of distribution method of version file, client and server
CN107908421A (en) * 2017-09-29 2018-04-13 北京创鑫旅程网络技术有限公司 The method and device of software code versions management and issue
CN108073400A (en) * 2017-12-07 2018-05-25 湖北三新文化传媒有限公司 Software automation construction method, server and storage medium
CN108280174A (en) * 2018-01-22 2018-07-13 网宿科技股份有限公司 Front end file construction method and server, page access method and terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071378A (en) * 2006-05-12 2007-11-14 日立软件工程株式会社 Source code generation method, apparatus and program
CN102306104A (en) * 2011-08-26 2012-01-04 深圳市万兴软件有限公司 Method and device for automatically updating application program
CN102591685A (en) * 2011-12-30 2012-07-18 深圳市万兴软件有限公司 Method and device for implementation of automatic online updating of application program
CN104580480A (en) * 2015-01-15 2015-04-29 上海瀚银信息技术有限公司 Remote automatic deployment system and method for client end
CN105867978A (en) * 2016-04-11 2016-08-17 平安科技(深圳)有限公司 OGG version deployment method and system
CN105867950A (en) * 2016-05-31 2016-08-17 广东能龙教育股份有限公司 Gradle and Svn-based online automatic packaging method
CN106055334A (en) * 2016-06-01 2016-10-26 努比亚技术有限公司 Code management system and method
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management
CN107908421A (en) * 2017-09-29 2018-04-13 北京创鑫旅程网络技术有限公司 The method and device of software code versions management and issue
CN107729045A (en) * 2017-09-30 2018-02-23 武汉汉思信息技术有限责任公司 Application program automates version dissemination method and system
CN107896244A (en) * 2017-11-07 2018-04-10 中国银联股份有限公司 A kind of distribution method of version file, client and server
CN108073400A (en) * 2017-12-07 2018-05-25 湖北三新文化传媒有限公司 Software automation construction method, server and storage medium
CN108280174A (en) * 2018-01-22 2018-07-13 网宿科技股份有限公司 Front end file construction method and server, page access method and terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111667336A (en) * 2020-04-28 2020-09-15 中国平安财产保险股份有限公司 Product information configuration and pushing method, device, equipment and storage medium
CN111651352A (en) * 2020-05-29 2020-09-11 成都新潮传媒集团有限公司 Warehouse code merging method and device
CN111651352B (en) * 2020-05-29 2023-03-14 成都新潮传媒集团有限公司 Warehouse code merging method and device
CN112631650A (en) * 2020-12-28 2021-04-09 掌阅科技股份有限公司 Plug-in version information checking method, computing device and storage medium
CN112711446A (en) * 2020-12-29 2021-04-27 医渡云(北京)技术有限公司 Method, device and system for realizing novice guiding service
CN112882747A (en) * 2021-01-29 2021-06-01 北京思特奇信息技术股份有限公司 Method and system for issuing program in interface mode
CN112882747B (en) * 2021-01-29 2024-04-05 北京思特奇信息技术股份有限公司 Method and system for issuing program in interfacing mode
CN113050981A (en) * 2021-03-23 2021-06-29 深圳杰微芯片科技有限公司 Code on-line automatic publishing method, server and storage medium
CN113553095A (en) * 2021-07-16 2021-10-26 北京奇艺世纪科技有限公司 Method and device for issuing small program, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN109189400A (en) Program dissemination method and device, storage medium, processor
CN106302008B (en) Data-updating method and device
CN108170740A (en) Data migration method, system and computer readable storage medium
CN110351342A (en) Service order processing method, device, computer equipment and storage medium
CN107391626B (en) Land the creation method and device of page
CN110351378A (en) A kind of control method and system of internet of things equipment
CN109240688A (en) Interface development method, electronic device and readable storage medium storing program for executing
CN108134690B (en) Network service deployment process control method, device and system
CN109766163A (en) Synchronous display method and device, storage medium and electronic device
CN110489126A (en) Execution method and apparatus, storage medium and the electronic device of compiler task
CN112612452B (en) API platform realization method, device, equipment and storage medium
CN109510744A (en) Internet of Things device intelligence cut-in method and device
CN107391155A (en) A kind of packaging method and device
CN109815115A (en) Method and device, the computer equipment, storage medium of debugging bridge joint mouth
CN108897543A (en) Interim compiling system, method, apparatus and the storage medium of version
CN107656729A (en) Updating device, method and the computer-readable recording medium of List View
CN105718302B (en) Method for realizing redundant switch operating system based on Docker
CN112306471A (en) Task scheduling method and device
CN113434146A (en) Code compiling method, device, storage medium and electronic device
CN106034040B (en) The control method of scan node, apparatus and system
CN107852422A (en) Connected from the server interface with different API to obtain ad data
CN108595178A (en) A kind of collecting method, device and equipment based on hook
CN107526584A (en) Data cut-in method and device
CN108363597A (en) A kind of method for page jump and system
CN117436803A (en) Task management system, method, device and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190111