CN111338684A - Program publishing method - Google Patents

Program publishing method Download PDF

Info

Publication number
CN111338684A
CN111338684A CN202010201718.2A CN202010201718A CN111338684A CN 111338684 A CN111338684 A CN 111338684A CN 202010201718 A CN202010201718 A CN 202010201718A CN 111338684 A CN111338684 A CN 111338684A
Authority
CN
China
Prior art keywords
program
issued
source code
configuration information
compiling
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
CN202010201718.2A
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.)
Chengdu Yaowang Technology Co ltd
Original Assignee
Chengdu Yaowang 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 Chengdu Yaowang Technology Co ltd filed Critical Chengdu Yaowang Technology Co ltd
Priority to CN202010201718.2A priority Critical patent/CN111338684A/en
Publication of CN111338684A publication Critical patent/CN111338684A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The invention discloses a program issuing method, which comprises the following steps: a user submits a program opening application to the platform and uploads personal configuration information, and the platform acquires the application and the personal configuration information and performs verification according to rules; acquiring content to be issued, wherein the content to be issued comprises a program source code to be issued; constructing a compiling environment, compiling a source code of a program to be issued, and packaging and compressing a compiled code into a software package; the software package is issued to a corresponding user server, and a program auditing request is submitted; and acquiring program auditing information in real time, and issuing the program to be issued on line through a background operation issuing interface after the auditing is passed. The method can automatically build compiled codes and automatically release the source codes of the program to be released to different servers in a batch mode according to different business configurations, improves the program release efficiency, and reduces time and labor consumed by program release.

Description

Program publishing method
Technical Field
The invention belongs to the technical field of computer software, and particularly relates to a program issuing method.
Background
WeChat applets are increasingly popular, and developers are increasingly enthusiastic about the investment of applets. The small program frames are various, when a plurality of small program files are released, a plurality of small program source codes are compiled each time, the small program files are simultaneously released to the small program server, the small program files are logged in for a plurality of times according to different user accounts to be checked and released, each time of construction and release is about 2 hours, the workload is large, the time is long, manual errors are easy to occur when different accounts are switched to log in the small program server, and the efficiency is very low and uncontrollable.
Disclosure of Invention
The invention aims to provide a program issuing method which can automatically inject configuration, build compiling, pack, compress and optimize according to different user configurations, complete the building, issue the program to small program servers of all users one by one, and simultaneously apply for auditing. The problems that the traditional small program release process is complex and consumes long time are solved, and meanwhile, the workload of program developers is reduced.
The purpose of the invention is realized by the following technical scheme:
a program issuing method comprising the steps of:
s1, the user submits a program opening application to the platform and uploads personal configuration information, and the platform acquires the application and the personal configuration information and performs auditing according to rules;
s2, obtaining content to be issued, wherein the content to be issued comprises a program source code to be issued;
s3, constructing a compiling environment, compiling the source code of the program to be issued, and packing and compressing the compiled code into a software package;
s4, the software package is issued to the corresponding user server, and a program checking request is submitted;
and S5, acquiring program audit information in real time, and issuing the program to be issued on line through the background operation issuing interface after the program audit is passed.
Further, the content to be distributed acquired in step S2 further includes a version number of the program, a program name, a phone number, and a picture file.
Further, the step S3 includes acquiring personalized configuration information of the user, and injecting and replacing the acquired personalized configuration information with the configuration information in the source code of the program to be issued.
Further, in step S2, the obtaining method of the source code of the program to be distributed includes analyzing the user personality configuration information to obtain a storage path of the source code library of the program to be distributed.
Further, the method for obtaining the source code further includes downloading the source code from the network cloud disk and storing the source code in the local source code library.
Further, in step S4, the address and the port of the user server are obtained by analyzing the user personality configuration information, and the to-be-released program software package is sent to the corresponding server.
Further, after step S4 is completed, the method further includes: and storing the version number of the program to be issued in a dynamic local database, and establishing a mapping relation with the source code file and the software package of the program to be issued respectively.
Further, in step S5, a long polling interaction mode is adopted to run the dynamic script to obtain the auditing information of the program to be issued from the server in real time.
Furthermore, the method adopts a multithreading parallel mode to obtain the content to be issued in batch, simultaneously builds a compiling environment respectively to compile the source codes of a plurality of programs to be issued, and packs and compresses the source codes into the software packages of corresponding programs after the source codes are compiled.
Further, the method further comprises: when the compiling of the program to be released fails, acquiring the source code of the program to be released from a local source code library according to the mapping relation between the version number of the program to be released and the source code file, and compiling again; and when the uploading of the program to be published fails, automatically acquiring the software package of the program to be published from the local database according to the version number of the program to be published and the mapping relation of the software package, and uploading the software package to the corresponding server again.
The invention has the beneficial effects that: the method adopts multithreading parallel batch acquisition of the program source codes to be issued, and respectively compiles, packages, compresses and uploads the servers, adopts a long polling mode to acquire program audit information, and can also reacquire corresponding files to compile or upload again when the program compiling fails or uploads the program to fail. The method of the invention can realize the automation and batch operation of program release, simplify the flow of program release, reduce the time of program release and improve the efficiency of program construction and release.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will now be described with reference to the accompanying drawings.
As shown in fig. 1, in the embodiment of the present invention, a program issuing method includes the following steps: s1, the user submits a program opening application to the platform and uploads personal configuration information, and the platform acquires the application and the personal configuration information and performs auditing according to rules; s2, after the verification is passed, adding the user into a publisher management list, and simultaneously acquiring contents to be published of different users according to the list, wherein the contents to be published comprise program source codes to be published; s3, constructing a compiling environment, compiling the source code of the program to be issued, and packing and compressing the compiled code into a software package; s4, the software package is issued to the corresponding user server, and a program code auditing request is submitted; and S5, acquiring program audit information in real time, and issuing the program to be issued on line through the background operation issuing interface after the program audit is passed.
The content to be distributed acquired in step S2 further includes a version number of the program, a program name, a phone number, and a picture file.
The step S3 further includes acquiring the personalized configuration information of the user, and injecting the acquired personalized configuration information into the source code of the program to be issued and replacing the configuration information.
The step S2 of obtaining the source code of the program to be distributed includes analyzing the user' S individual configuration information to obtain the storage path of the source code library of the program to be distributed.
The method for obtaining the source code also comprises the steps of downloading and obtaining the source code from the network cloud disk and storing the source code in a local source code library.
In step S4, the address and the port of the user server are obtained by analyzing the user personality configuration information, and the to-be-released program software package is sent to the corresponding server.
After the step S4 is completed, the method further includes: and storing the version number of the program to be issued in a dynamic local database, and establishing a mapping relation with the source code file and the software package of the program to be issued respectively.
In step S5, the dynamic script is run in a long polling interactive manner to obtain the auditing information of the program to be issued from the server in real time.
The method comprises the steps of obtaining contents to be issued in batch in a multi-thread parallel mode, simultaneously respectively constructing a compiling environment to compile source codes of a plurality of programs to be issued, and respectively packaging and compressing the source codes into software packages of corresponding programs after the source codes are compiled. And the method avoids calling a plurality of server interfaces to send the program, and saves server resources.
The method further comprises the following steps: when the compiling of the program to be released fails, acquiring the source code of the program to be released from a local source code library according to the mapping relation between the version number of the program to be released and the source code file, and compiling again; and when the uploading of the program to be published fails, automatically acquiring the software package of the program to be published from the local data according to the version number of the program to be published and the mapping relation of the software package, and uploading the software package to the corresponding server again.
In the batch issuing process of the program to be issued, different individual configuration data information of a plurality of users is acquired from a platform through a dynamic script in a multithreading parallel mode, the different individual configuration data information is respectively imported into a platform background form, and the individual configuration data information is stored in a local database. After the individual configuration data information is acquired, the source code library path of the program to be issued is analyzed according to the individual configuration data information, the source code of the program to be issued is acquired from a local source code library or a network cloud disk, the individual configuration data information of the user is automatically pulled, and the configuration data information is automatically injected into the source code. And then, a compiling environment is established, source codes of a plurality of programs to be issued are compiled, software packages corresponding to the programs are respectively packed after the compiling is finished, the packed software packages are respectively sent to corresponding servers for auditing by configuring server addresses and ports in data information, and then automatic and batched production programs according to templates are realized and issued to different servers at the same time.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (10)

1. A program distribution method, comprising the steps of:
s1, the user submits a program opening application to the platform and uploads personal configuration information, and the platform acquires the application and the personal configuration information and performs auditing according to rules;
s2, obtaining content to be issued, wherein the content to be issued comprises a program source code to be issued;
s3, constructing a compiling environment, compiling the source code of the program to be issued, and packing and compressing the compiled code into a software package;
s4, the software package is issued to the corresponding user server, and a program checking request is submitted;
and S5, acquiring program audit information in real time, and issuing the program to be issued on line through the background operation issuing interface after the program audit is passed.
2. The program distribution method according to claim 1, wherein the content to be distributed acquired in step S2 further includes a version number of the program, a program name, a telephone number, and a picture file.
3. The method according to claim 1, wherein the step S3 further includes obtaining personalized configuration information of the user, and injecting and replacing the obtained personalized configuration information with the configuration information in the source code of the program to be distributed.
4. The method according to claim 1, wherein the step S2 of obtaining the source code of the program to be distributed includes parsing the user' S personal configuration information to obtain a storage path of a source code library of the program to be distributed.
5. The method as claimed in claim 4, wherein the obtaining of the source code further comprises downloading the source code from a network cloud disk and storing the source code in a local source code library.
6. The method according to claim 1, wherein in step S4, the address and port of the user server are obtained by analyzing the user personality configuration information, and the program package to be distributed is sent to the corresponding server.
7. The program distribution method according to claim 2 and 6, wherein said step S4 is completed and further comprises: and storing the version number of the program to be issued in a dynamic local database, and establishing a mapping relation with the source code file and the software package of the program to be issued respectively.
8. The method according to claim 1, wherein in step S5, a long polling interactive mode is adopted to run a dynamic script to obtain the auditing information of the program to be distributed from the server in real-time tracking.
9. The program issuing method according to claim 1, wherein the method acquires the contents to be issued in batch in a multithread parallel manner, constructs compiling environments respectively to compile source codes of a plurality of programs to be issued, and packs and compresses the source codes into software packages corresponding to the programs after the compiling of the source codes is completed.
10. The program distribution method according to claim 1, further comprising: when the compiling of the program to be released fails, acquiring the source code of the program to be released from a local source code library according to the mapping relation between the version number of the program to be released and the source code file, and compiling again; and when the uploading of the program to be published fails, automatically acquiring the software package of the program to be published from the local data according to the version number of the program to be published and the mapping relation of the software package, and uploading the software package to the corresponding server again.
CN202010201718.2A 2020-03-20 2020-03-20 Program publishing method Pending CN111338684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010201718.2A CN111338684A (en) 2020-03-20 2020-03-20 Program publishing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010201718.2A CN111338684A (en) 2020-03-20 2020-03-20 Program publishing method

Publications (1)

Publication Number Publication Date
CN111338684A true CN111338684A (en) 2020-06-26

Family

ID=71182499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010201718.2A Pending CN111338684A (en) 2020-03-20 2020-03-20 Program publishing method

Country Status (1)

Country Link
CN (1) CN111338684A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966348A (en) * 2020-08-25 2020-11-20 浙江云蚁信息科技有限公司 One-key small program publishing system
CN112035161A (en) * 2020-08-31 2020-12-04 上海识装信息科技有限公司 Method for verifying small program release and method for parallel release
CN113094659A (en) * 2021-03-17 2021-07-09 青岛海尔科技有限公司 Method, device, platform equipment and system for publishing application file
CN113094066A (en) * 2021-03-16 2021-07-09 北京优奥创思科技发展有限公司 Multi-server code publishing method and system
CN113204347A (en) * 2021-04-02 2021-08-03 北京易捷思达科技发展有限公司 Processing method and device suitable for software package and electronic equipment
CN113608723A (en) * 2021-08-05 2021-11-05 上海中通吉网络技术有限公司 Automatic small program engineering method for building and releasing
WO2022000869A1 (en) * 2020-06-28 2022-01-06 北京百度网讯科技有限公司 Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
JP2022542203A (en) * 2020-06-28 2022-09-30 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Mini-program batch processing method, device, electronic device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373401A (en) * 2015-10-27 2016-03-02 上海钢富电子商务有限公司 Method and system for automatically releasing software package
CN105786495A (en) * 2016-02-24 2016-07-20 中国联合网络通信集团有限公司 Software issuing system, method and system
US20170147303A1 (en) * 2015-11-20 2017-05-25 Microsoft Technology Licensing, Llc Verified compilation of reversible circuits
CN106775730A (en) * 2016-12-21 2017-05-31 深圳Tcl数字技术有限公司 Program dissemination method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373401A (en) * 2015-10-27 2016-03-02 上海钢富电子商务有限公司 Method and system for automatically releasing software package
US20170147303A1 (en) * 2015-11-20 2017-05-25 Microsoft Technology Licensing, Llc Verified compilation of reversible circuits
CN105786495A (en) * 2016-02-24 2016-07-20 中国联合网络通信集团有限公司 Software issuing system, method and system
CN106775730A (en) * 2016-12-21 2017-05-31 深圳Tcl数字技术有限公司 Program dissemination method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022000869A1 (en) * 2020-06-28 2022-01-06 北京百度网讯科技有限公司 Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
JP2022542203A (en) * 2020-06-28 2022-09-30 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Mini-program batch processing method, device, electronic device and readable storage medium
CN111966348A (en) * 2020-08-25 2020-11-20 浙江云蚁信息科技有限公司 One-key small program publishing system
CN112035161A (en) * 2020-08-31 2020-12-04 上海识装信息科技有限公司 Method for verifying small program release and method for parallel release
CN113094066A (en) * 2021-03-16 2021-07-09 北京优奥创思科技发展有限公司 Multi-server code publishing method and system
CN113094066B (en) * 2021-03-16 2024-03-26 北京优奥创思科技发展有限公司 Multi-server code release method and system
CN113094659A (en) * 2021-03-17 2021-07-09 青岛海尔科技有限公司 Method, device, platform equipment and system for publishing application file
CN113094659B (en) * 2021-03-17 2022-10-21 青岛海尔科技有限公司 Method, device, platform equipment and system for publishing application file
CN113204347A (en) * 2021-04-02 2021-08-03 北京易捷思达科技发展有限公司 Processing method and device suitable for software package and electronic equipment
CN113204347B (en) * 2021-04-02 2022-03-22 北京易捷思达科技发展有限公司 Processing method and device suitable for software package and electronic equipment
CN113608723A (en) * 2021-08-05 2021-11-05 上海中通吉网络技术有限公司 Automatic small program engineering method for building and releasing

Similar Documents

Publication Publication Date Title
CN111338684A (en) Program publishing method
CN111625452B (en) Flow playback method and system
CN108519952B (en) A kind of distributed WEB automatization test system and method
CN108536761B (en) Report data query method and server
CN101661494B (en) Data interactive method for distributed middleware and database
CN101202761B (en) System of distributed resource scheduling and method thereof
JP2010524060A (en) Data merging in distributed computing
CN111176645A (en) Power grid big data application-oriented data integration management system and implementation method thereof
CN102693121A (en) Automatic developing and manufacturing system of cross-platform mobile phone application and implementation method for cross-platform mobile phone application
CN111241182A (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN114328217A (en) Application testing method, device, equipment, medium and computer program product
US20240143576A1 (en) Registering additional type systems using a hub data model for data processing
CN113806429A (en) Canvas type log analysis method based on large data stream processing framework
CN111367565A (en) Program release system
CN112559525B (en) Data checking system, method, device and server
CN114610597A (en) Pressure testing method, device, equipment and storage medium
CN112068879A (en) Method and device for constructing client application development framework based on configuration
CN103678485A (en) Virtual experiment process node driving and movable packaging system
Cushing et al. Computational proxies: modeling scientific applications in object databases
CN116243923A (en) Applet processing method and device and electronic equipment
CN113672222A (en) Application program interface management device and construction method thereof
CN111708956A (en) Method for editing Office file in web browser based on HTML5 technology
CN112001156A (en) Form processing method and device and computer readable storage medium
CN110941482A (en) Micro-service and big data scheduling method
Fouladi et al. Outsourcing everyday jobs to thousands of cloud functions with gg

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

Application publication date: 20200626

RJ01 Rejection of invention patent application after publication