CN110795139A - Client batch packaging method and device, computer equipment and storage medium - Google Patents

Client batch packaging method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110795139A
CN110795139A CN201910864398.6A CN201910864398A CN110795139A CN 110795139 A CN110795139 A CN 110795139A CN 201910864398 A CN201910864398 A CN 201910864398A CN 110795139 A CN110795139 A CN 110795139A
Authority
CN
China
Prior art keywords
client
packaging
channel
version control
batch
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
CN201910864398.6A
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201910864398.6A priority Critical patent/CN110795139A/en
Publication of CN110795139A publication Critical patent/CN110795139A/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
    • G06F8/71Version control; Configuration management

Abstract

The application relates to a client batch packaging method, a client batch packaging device, computer equipment and a storage medium, wherein the method comprises the following steps: when an execution command of batch packaging of a client is triggered, calling a version control client through a sustainable integration tool so that the version control client downloads an item folder from a version control server according to a preset URL (uniform resource locator) and downloads the item folder into a first preset directory of a packaging server; and calling the packaging batch processing script files under the first preset directory through the sustainable integration tool so that the packaging batch processing script files generate installation packages of a plurality of channel clients according to the engineering codes and the channel version control files. The installation package generation method and the installation package generation system have the advantages that the installation packages can be generated in batches, simplicity and convenience are realized, and the workload and the error rate of research and development personnel can be greatly reduced.

Description

Client batch packaging method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of client packaging, in particular to a client batch packaging method and device, computer equipment and a storage medium.
Background
With more and more product versions, different channel providers (for example, agricultural banks, industrial and commercial banks, construction banks, etc.) need different client versions, and each client version carries information such as a logo and a product name in a corresponding version according to the requirements of the channel provider. The client version corresponding to the channel provider can be called as the channel client for short, and because each channel client is different, the client version can be packaged after different resources are modified before the finished product is released. Although simple, the work content is tedious and error-prone, and the workload of the research and development personnel is increased.
Disclosure of Invention
The embodiment of the application provides a client batch packaging method and device, computer equipment and a storage medium, a plurality of installation packages can be generated in batches, the method and device are simple and convenient, and the workload and the error rate of research and development personnel can be greatly reduced.
The embodiment of the application provides a client batch packaging method, which comprises the following steps:
when an execution command of batch packaging of a client is triggered, calling a version control client through a sustainable integration tool so that the version control client downloads an item folder from a version control server according to a preset URL (uniform resource locator) and downloads the item folder into a first preset directory of a packaging server; wherein the sustainable integration tool and the version control client are installed on the packaging server; the URL provides a network address of the project folder for the version control server; the project folder comprises project codes of a master client, a packaging batch script file and a channel version control file, and the channel version control file comprises configuration information of a plurality of channel clients;
and calling the packaging batch processing script files under the first preset directory through the sustainable integration tool so that the packaging batch processing script files generate installation packages of a plurality of channel clients according to the engineering codes and the channel version control files.
The embodiment of the application provides a client batch packing apparatus, includes:
the system comprises a first calling module, a second calling module and a third calling module, wherein the first calling module is used for calling a version control client through a sustainable integration tool when an execution command packaged in batches by the client is triggered so that the version control client downloads an item folder from a version control server according to a preset Uniform Resource Locator (URL) and downloads the item folder into a first preset directory of a packaging server; wherein the sustainable integration tool and the version control client are installed on the packaging server; the URL provides a network address of the project folder for the version control server; the project folder comprises project codes of a master client, a packaging batch script file and a channel version control file, and the channel version control file comprises configuration information of a plurality of channel clients;
and the second calling module is used for calling the packaging batch processing script files under the first preset directory through the sustainable integration tool so that the packaging batch processing script files generate installation packages of a plurality of channel clients according to the engineering codes and the channel version control files.
The embodiment of the present application further provides a computer device, which includes a memory and a processor, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the client batch packaging method.
Embodiments of the present application further provide a storage medium storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the client batch packaging method.
According to the client batch packaging method, the client batch packaging device, the computer equipment and the storage medium, the SVN client is called through the TC tool to download the project folder from the SVN server to the packaging server, then the packaging batch processing script files downloaded into the project folder on the packaging server are called through the TC tool, and the packaging batch processing script files are executed to generate the installation packages of the multiple channel clients. Therefore, the installation packages can be generated simultaneously through one project code, one-by-one packaging is not needed, the operation is very simple and convenient, and the workload and the error rate of research and development personnel can be greatly reduced.
Drawings
FIG. 1 is a block diagram showing an internal configuration of a computer device according to an embodiment;
FIG. 2 is a flow diagram of a client batch packaging method in one embodiment;
FIG. 3 is a block diagram of the client-side batch packaging apparatus in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
Fig. 1 is a schematic structural diagram of a computer device according to an embodiment of the present application. Since the client-side batch packaging method illustrated in fig. 2 may be performed by a packaging server, the computer device may be a packaging server. As shown in fig. 1, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable a processor to realize a client batch packaging method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a client batch packing method. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the application provides a client batch packaging method, which can be executed by a packaging server, and understandably, the packaging server is a server for executing the client batch packaging method. As shown in fig. 2, the method comprises the steps of:
s210, when an execution command of batch packaging of a client is triggered, a version control client is called through a sustainable integration tool, so that the version control client downloads an item folder from a version control server according to a preset URL (uniform resource locator), and the item folder is downloaded into a first preset directory of a packaging server;
wherein the sustainable integration tool and the version control client are installed on the packaging server; the URL provides a network address of the project folder for the version control server; the project folder comprises project codes of a master client, a packaging batch script file and a channel version control file, and the channel version control file comprises configuration information of a plurality of channel clients;
it is understood that a sustainable integration tool (i.e., a TeamCity tool, which may be abbreviated as a TC tool) is deployed on the packaging server. The packaging server is provided with the TC tool, so that products can be published all the time, namely the packaging server has the function of sustainable publishing, and the packaging server can be called as a sustainable publishing server.
It is understood that the TC is a multi-purpose tool, and the TC tool can call other tools to perform some functions, such as calling the SVN client on the packaging server for code synchronization, calling the packaging batch script file below the project folder on the packaging server for installation package generation, and the like. After the TC tool is installed on the packaging server, a web site is generated on the packaging server, and an external computer can access the web site in an http protocol (http:// www.). Thus, the staff can access the web site through Internet net by using the external terminal equipment, and then enter the configuration page of the TC tool, so that some setting operations can be performed on the page. For example, a trigger mode of the execution command of the client batch packaging is set, the URL is set, and the like.
It is understood that a version control client (which may be abbreviated as SVN client, for example, Tortoise SVN client) is also installed on the packaging server, and the SVN client may be understood as a transmission tool, and may download the project folder from the SVN server according to the URL configured in the TC tool. The SVN server is an independent server or an independent server cluster, and is configured to manage latest data (e.g., written latest codes and latest configuration data) submitted by multiple developers, and then integrate all the data into one project folder, that is, the latest project folder may be stored in the SVN server. And the project folder is developed and set by a developer on a computer of the developer, and then is transmitted to the SVN server through the SVN client installed on the computer of the developer, so that the SVN client on the packing server can pull the project folder to the packing server. Therefore, the packing server and the computer of the developer are provided with the SVN client, the SVN client on the computer of the developer is used for uploading the code written by the developer, the set configuration information and the like to the SVN server, and the SVN client on the packing server is used for downloading the project folder on the SVN server to the packing server. Because the project folder contains the project code, the process of downloading the project folder by the SVN client can be called a code synchronization process. Because the TC tool pulls the latest code from the SVN server through the SVN client every time the installation package is generated, the code used for generating the installation package can be ensured to be the code submitted by developers latest. And the configuration data in the data submitted by the developers is not configured on the Web page of the TC tool.
It is understood that the SVN client on the packaging server is initiated by the TC tool and is invoked by the TC tool to complete the download process of the project folder. Specifically, the staff can access the web site and enter a configuration page of the web site in advance, and select the SVN client to realize code synchronization on the configuration page. Thus, when the execution command of the client side batch packaging is triggered, the TC tool directly calls the SVN client side to carry out code synchronization.
It is understood that the URL provides the version control server with the network address of the item folder, and the URL is determined by the storage directory of the item folder on the packaging server, for example, the storage directory of the item folder on the SVN server is: d, SVN/cpp, the URL of the item folder provided by the SVN server is http: // SVN server address/d:/SVN/cpp.
In practical applications, the URL may be preconfigured on the web page of the sustainable integration tool, that is, the URL is preconfigured on the web page of the sustainable integration tool. Specifically, the staff uses an external terminal to access a web site of the TC tool on the packaging server through a network, and enters a configuration page of the web site to perform setting.
It is understood that engineering code is development source code written by a developer.
It is understood that the so-called batch script file is a name for the file format, and the files with the format of BAT can be called batch script files, which is the format of the executable files of the operating system bottom layer. Generally, a BAT file can execute some operating system commands, developers can preset some instructions by writing a batch script file, and the preset instructions can be sequentially executed in the running process of the BAT file. It is understood that the packed batch script file in the embodiment of the present application is a batch script file in which some packed processing instructions are preset. The set work can be efficiently finished by writing the packed batch script files in advance.
It is understood that there are multiple channel clients, for example, clients of agricultural banks, clients of industrial and commercial banks, clients of construction banks. Since the main content of each channel client is the same, there is only a slight difference, for example, logo, product name, some titles, etc. on the interface. In order to meet the requirements of different channel suppliers, some changes need to be made on the basis of the master client, so that the generation of corresponding customized versions for different channel suppliers is realized. The customized version is that original product mother boards are modified, some new functions are added, and then the customized version is delivered to a client used by a channel provider.
It can be understood that the configuration information of different channel clients is different, and the configuration information of one customization client stores different information of the customization client relative to the master client or different information relative to other customization clients, and actually, the client interfaces are generally different, for example, logo, product name, and titles of the channel clients. The difference between the different channel clients is controlled by the channel version control file, and the control of the different channel clients is the control of the configuration information in the channel control configuration file, for example, for a newly added channel, the corresponding configuration information is added to the channel version control file.
In practical applications, there are various triggering manners for executing the commands packaged in batches by the client, for example, the triggering manners include an automatic triggering manner and a manual triggering manner. Specifically, what kind of trigger mode is adopted can be set on the Web page of the TC tool in advance, that is, a worker can access a Web site on the packaging server through a network on the external terminal device, and enter the Web page to configure the trigger mode. As can be seen, the web page is also used to configure the triggering mode of the execution command.
If the triggering mode of the execution command on the web page is configured to be an automatic triggering mode, the web page is also used for showing a configuration page of an automatic triggering time interval; that is, if the trigger mode is configured as an auto-trigger mode, the auto-trigger time interval also needs to be configured. Because the time interval of the automatic trigger is also the time interval of the synchronous codes, if the time interval configuration is too short, the synchronous codes of the SVN client are too frequent, the bandwidth of the server where the SVN server is located is occupied, and the performance of the SVN server is affected. And the system can occupy excessive disk space on the packaging server, and if the disk space is insufficient due to too frequent synchronous codes, the system can influence the work of the TC tool. Therefore, a reasonable time interval can be set according to the size of the disk space on the packaging server, so that too frequent synchronous codes are avoided, too many intermediate versions are generated, space cleaning is timely performed, and the condition that the disk space is insufficient is avoided.
And if the triggering mode of the execution command on the web page is configured to be a manual triggering mode, the web page is also used for displaying a triggering key. The user can access the Web site on the packaging server through the network, enter the Web page and click the triggering key to further trigger the execution command.
In practical application, when an installation package is generated for the first time, a user can access a Web site on a packaging server through a network, enter a Web page to configure a URL (uniform resource locator) of a project folder provided by an SVN (singular value decomposition) server, then set a first preset directory downloaded to the packaging server by the project folder, further configure a storage directory of a packaging batch script file on the packaging server, and finally manually click a trigger button to further trigger the execution command. When the installation package is generated at the second and third … … times, the trigger button can be directly and manually clicked, and the TC tool can operate according to the previous configuration information. Of course, the time interval of the automatic triggering mode may also be configured in the web page when the installation package is generated for the first time, so that the TC tool automatically performs the second and third installation package generation operations without the need for a worker to manually click a trigger button.
Therefore, after a worker accesses a Web site of the TC tool on the packaging server through a network and performs some configuration operations in a Web page, the trigger button is clicked on the visual operation interface, the TC tool on the packaging server can execute corresponding operations to obtain installation packages of the multiple channel clients, batch packaging of the clients is achieved through one button, and the method is very convenient. An automatic triggering mode can be set on the Web page, and automatic triggering is carried out according to the set time interval of automatic triggering, so that the TC tool on the packing server can also execute corresponding operation to obtain installation packages of a plurality of channel clients, and the method is more convenient compared with a manual sending mode. Therefore, the method and the device do not need to pack one by one, so that much time can be saved, and the error probability of manual operation can be reduced. Meanwhile, the packaging of the product is not required to be completed by research and development personnel, and non-development personnel can also complete the packaging, so that the research and development personnel can be liberated from fussy packaging operation and concentrate on research and development work.
S220, calling the packaging batch processing script files under the first preset directory through the sustainable integration tool so that the packaging batch processing script files generate installation packages of a plurality of channel clients according to the engineering codes and the channel version control files.
It can be understood that, before the TC tool calls the packaging batch script file, the storage directory of the packaging batch script file on the packaging server needs to be determined, and since the packaging batch script file is stored in the item folder, the item folder is stored in the first preset directory of the packaging server, so that the storage directory of the packaging batch script file on the packaging server can be determined according to the first preset directory and the storage location of the packaging batch script file in the item folder. For example, the item folder is stored in the first preset directory d:/svn/cpp of the packaging server, and the storage location of the packaging batch script file in the item folder is bat/test. Bat/svn/cpp/bat/test. Bat may be pre-configured on a web page, that is, a storage directory of the bundled batch script file on the bundled server may be pre-configured on the web page of the sustainable integration tool according to the first preset directory and a storage location of the bundled batch script file in the project folder. And when the TC tool needs to call the packaging batch processing script file, the sustainable integration tool is used for acquiring the storage directory and calling the packaging batch processing script file in the storage directory.
It can be understood that after the packaging batch script file is called, the preset instruction in the packaging batch script file can be executed, and then the installation packages of the multiple channel clients are generated.
For example, the configuration information of bank A and bank B is stored in the channel version control file in the project folder on the packaging server, that is, d:/svn/cpp/bat/src and d:/svn/cpp/bat/src/Abank are stored in the storage directory d:/svn/cpp/bat/src of the channel version control file. And when d:/svn/cpp/bat/test.test.bat, namely the packaging batch script file under the catalog is executed, the packaging batch script file can sequentially inquire resources, namely configuration information, firstly search the configuration information of the bank A to generate an installation package of the bank client, then search the configuration information of the bank B to generate an installation package of the bank client, and thus the generation of the installation packages of the two bank clients is completed.
In practical applications, the generation of the installation package is performed by an integrated development environment tool, such as an IDE used for Visual Studio2013 development. Therefore, an integrated development environment tool may be deployed on the packaging server, and thus the process of generating the installation package of each channel client according to the engineering code and the channel version control file by packaging the batch script file may include:
s221, searching the configuration information of the channel client in the channel version control file;
s222, calling the integrated development environment tool to enable the developed development environment tool to compile the engineering code according to the configuration information of the channel client to obtain an executable file, and compressing the executable file to obtain an installation package of the channel client.
It can be understood that, in the process of compiling the engineering code by the integrated development environment tool according to the configuration information, not only an executable file but also a program database file (namely, pdb file) can be generated, the program database file can be backed up and temporarily stored in the packaging server, so that the program database file can be acquired later when the on-line problem of the user is solved, the program database file is loaded through the IDE and the problem encountered by the user is generated to generate a dump file, the memory information of the product which makes a mistake on the client machine is analyzed, and then debugging and analysis are performed. That is, the process of generating the installation package of each channel client may further include:
s223, generating a program database file in the process of compiling the engineering code;
and S224, storing the program database file into a third preset directory of the packaging server.
The third preset directory may also be configured on the Web page of the TC tool in advance.
It will be appreciated that the integrated development environment tool compiles the engineering code and configuration information of the master client, and after compilation, some executable files (i.e., exe files) are obtained, and these files constitute an installation package that can be used by the client. After the installation packages are generated, the installation packages of the multiple channel clients may be stored in respective corresponding second preset directories, where the second preset directories are used for storing the installation packages of the corresponding channel clients, and the second preset directory corresponding to each channel client may be set in a channel version control file, that is, the channel version control file further includes the second preset directory corresponding to each channel client. After storing each installation package into the corresponding second preset directory on the packaging server, the TC tool may set a download link for each installation package. It can be understood that the download link corresponding to the installation package of each channel client is generated according to the second preset directory storing the installation package, and the installation package stored in the second preset directory can be found through the download link. Therefore, different channel suppliers can directly download corresponding installation packages on own computers, are not limited by regions, and only can remotely link to the packaging server. That is to say, the client batch packaging method provided in the embodiment of the present application may further include:
s230, storing the installation packages of the channel clients into corresponding second preset directories respectively;
s240, setting downloading links corresponding to installation packages of a plurality of channel clients through the sustainable integration tool; and the downloading link corresponding to the installation package of each channel client corresponds to a second preset directory for storing the installation package.
It is understood that the functions that can be implemented when executing the packed batch script file include: 1. reading the version number of the current code for producing the version of the installation package; 2. calling the IDE of the Visual Studio2013 through a command, and compiling the engineering code by using the IDE to generate an executable file and program database files; 3. reading a channel configuration information file, and generating different installation packages according to different configuration information; 4. classifying and sorting files, and backing up a program database file (namely, a pdb file) into a third preset directory; 5. compressing the file generated by compiling; 6. some temporary files produced locally are cleaned.
According to the client batch packaging method provided by the embodiment, the SVN client is called by the TC tool to download the project folder from the SVN server to the packaging server, then the packaging batch processing script file in the project folder downloaded to the packaging server is called by the TC tool, and the packaging batch processing script file is executed to generate the installation packages of the multiple channel clients. Therefore, the installation packages can be generated simultaneously through one project code, one-by-one packaging is not needed, the operation is very simple and convenient, and the workload and the error rate of research and development personnel can be greatly reduced. That is to say, this application through establish the generating strategy of customer end, on original product mother set basis, through channel configuration information file, increase the configuration item, generate and to the different cooperation channel merchant customization products, can avoid repeatedly investing in the manpower.
As shown in fig. 3, in an embodiment, a client batch packaging apparatus 300 is provided, where the client batch packaging apparatus 300 may be integrated on a packaging server, which is a computer device shown in fig. 1, and the apparatus 300 may specifically include:
the first calling module 310 is configured to call a version control client through a sustainable integration tool when an execution command for batch packaging of the client is triggered, so that the version control client downloads an item folder from a version control server according to a preconfigured URL and downloads the item folder into a first preset directory of the packaging server; wherein the sustainable integration tool and the version control client are installed on the packaging server; the URL provides a network address of the project folder for the version control server; the project folder comprises project codes of a master client, a packaging batch script file and a channel version control file, and the channel version control file comprises configuration information of a plurality of channel clients;
a second calling module 320, configured to call the packaging batch script file in the first preset directory through the sustainable integration tool, so that the packaging batch script file generates an installation package of multiple channel clients according to the engineering code and the channel version control file.
In some embodiments, the URL is preconfigured on a web page of the sustainable integration tool.
In some embodiments, the web page is further configured to configure a triggering manner of the execution command, where the triggering manner includes an automatic triggering manner and a manual triggering manner; if the triggering mode of the execution command on the web page is configured to be an automatic triggering mode, the web page is also used for showing a configuration page of an automatic triggering time interval; and if the triggering mode of the execution command on the web page is configured to be a manual triggering mode, the web page is also used for displaying a triggering key.
In some embodiments, the second invoking module is specifically configured to: according to the first preset directory and the storage positions of the packaging batch script files in the project folder, a storage directory of the packaging batch script files on the packaging server is configured in advance on a web page of the sustainable integration tool; and acquiring the storage directory through the sustainable integration tool and calling the packed batch processing script file under the storage directory.
In some embodiments, an integrated development environment tool is deployed on the packaging server; correspondingly, the process of generating the installation package of each channel client by the packaging batch script file in the second calling module according to the engineering code and the channel version control file comprises the following steps: searching the configuration information of the channel client in the channel version control file; and calling the integrated development environment tool to enable the developed development environment tool to compile the engineering code according to the configuration information of the channel client to obtain an executable file, and compressing the executable file to obtain an installation package of the channel client.
In some embodiments, the process of generating the installation package of each channel client according to the engineering code and the channel version control file by packaging the batch script file in the second calling module further includes: a program database file is also generated in the process of compiling the engineering code; and storing the program database file into a third preset directory of the packaging server.
In some embodiments, the channel version control file further includes a second preset directory corresponding to each channel client, where the second preset directory is used to store an installation package of the corresponding channel client;
correspondingly, the device further comprises:
the installation package storage module is used for respectively storing installation packages of the channel clients into respective corresponding second preset directories;
the link setting module is used for setting download links corresponding to the installation packages of the channel clients through the sustainable integration tool; and the downloading link corresponding to the installation package of each channel client corresponds to a second preset directory for storing the installation package.
It can be understood that, in the client batch packaging apparatus provided in the present application, for explanation, example, beneficial effects and the like of relevant contents, reference may be made to corresponding parts in the client batch packaging method, and details are not described here.
In some embodiments, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the client batch packaging method is implemented.
It can be understood that, for the computer device provided in the present application, the explanation, examples, and beneficial effects of the related content may refer to the corresponding parts in the client batch packaging method, and are not described herein again.
In one embodiment, a storage medium is provided that stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to implement the client batch packaging method described above.
It can be understood that, for the storage medium provided in the present application, the explanation, examples, and beneficial effects of the related content may refer to corresponding parts in the client batch packaging method, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A client batch packaging method is characterized by comprising the following steps:
when an execution command of batch packaging of a client is triggered, a version control client is called through a sustainable integration tool, so that the version control client downloads an item folder from a version control server according to a preset URL (uniform resource locator), and downloads the item folder into a first preset directory of the packaging server, wherein the sustainable integration tool and the version control client are installed on the packaging server; the URL provides a network address of the project folder for the version control server; the project folder comprises project codes of a master client, a packaging batch script file and a channel version control file, and the channel version control file comprises configuration information of a plurality of channel clients;
and calling the packaging batch processing script files under the first preset directory through the sustainable integration tool so that the packaging batch processing script files generate installation packages of a plurality of channel clients according to the engineering codes and the channel version control files.
2. The method of claim 1, wherein the URL is preconfigured on a web page of the sustainable integration tool.
3. The method according to claim 2, wherein the web page is further configured with a triggering manner for configuring the execution command, and the triggering manner includes an automatic triggering manner and a manual triggering manner; if the triggering mode of the execution command on the web page is configured to be an automatic triggering mode, the web page is also used for showing a configuration page of an automatic triggering time interval; and if the triggering mode of the execution command on the web page is configured to be a manual triggering mode, the web page is also used for displaying a triggering key.
4. The method of claim 1, wherein the invoking, by the sustainable integration tool, the packed batch script file under the first preset directory comprises:
according to the first preset directory and the storage positions of the packaging batch script files in the project folder, a storage directory of the packaging batch script files on the packaging server is configured in advance on a web page of the sustainable integration tool;
and acquiring the storage directory through the sustainable integration tool and calling the packed batch processing script file under the storage directory.
5. The method of claim 1, wherein an integrated development environment tool is deployed on the packaging server;
correspondingly, the process of generating the installation package of each channel client by the packaging batch script file according to the engineering code and the channel version control file comprises the following steps:
searching the configuration information of the channel client in the channel version control file;
and calling the integrated development environment tool to enable the developed development environment tool to compile the engineering code according to the configuration information of the channel client to obtain an executable file, and compressing the executable file to obtain an installation package of the channel client.
6. The method of claim 5, wherein the process of generating an installation package for each channel client from the engineering code and the channel versioning file by the packaging batch script file further comprises:
a program database file is also generated in the process of compiling the engineering code;
and storing the program database file into a third preset directory of the packaging server.
7. The method according to any one of claims 1 to 6, wherein the channel version control file further comprises a second preset directory corresponding to each channel client, and the second preset directory is used for storing an installation package of the corresponding channel client; correspondingly, the method further comprises the following steps:
respectively storing the installation packages of the channel clients into respective corresponding second preset directories;
setting downloading links corresponding to installation packages of a plurality of channel clients through the sustainable integration tool; and the downloading link corresponding to the installation package of each channel client corresponds to a second preset directory for storing the installation package.
8. The utility model provides a client batch packaging apparatus which characterized in that includes:
the system comprises a first calling module, a second calling module and a third calling module, wherein the first calling module is used for calling a version control client through a sustainable integration tool when an execution command packaged in batches by the client is triggered so that the version control client downloads an item folder from a version control server according to a preset Uniform Resource Locator (URL) and downloads the item folder into a first preset directory of a packaging server; wherein the sustainable integration tool and the version control client are installed on the packaging server; the URL provides a network address of the project folder for the version control server; the project folder comprises project codes of a master client, a packaging batch script file and a channel version control file, and the channel version control file comprises configuration information of a plurality of channel clients;
and the second calling module is used for calling the packaging batch processing script files under the first preset directory through the sustainable integration tool so that the packaging batch processing script files generate installation packages of a plurality of channel clients according to the engineering codes and the channel version control files.
9. A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the client batch packaging method of any of claims 1 to 7.
10. A storage medium having computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform the steps of the client batch packaging method of any of claims 1 to 7.
CN201910864398.6A 2019-09-12 2019-09-12 Client batch packaging method and device, computer equipment and storage medium Pending CN110795139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910864398.6A CN110795139A (en) 2019-09-12 2019-09-12 Client batch packaging method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910864398.6A CN110795139A (en) 2019-09-12 2019-09-12 Client batch packaging method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110795139A true CN110795139A (en) 2020-02-14

Family

ID=69427156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910864398.6A Pending CN110795139A (en) 2019-09-12 2019-09-12 Client batch packaging method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110795139A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352641A (en) * 2020-02-26 2020-06-30 深圳忆联信息系统有限公司 Method and device for automatic packaging by batch processing, computer equipment and storage medium
CN113282284A (en) * 2021-06-24 2021-08-20 成都科来网络技术有限公司 Packing method and packing system adaptive to multiple customized projects
CN114726848A (en) * 2022-06-07 2022-07-08 广州易方信息科技股份有限公司 Client automatic packaging and exe distribution method and device for Windows platform

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352641A (en) * 2020-02-26 2020-06-30 深圳忆联信息系统有限公司 Method and device for automatic packaging by batch processing, computer equipment and storage medium
CN111352641B (en) * 2020-02-26 2024-02-13 深圳忆联信息系统有限公司 Automatic packing method, apparatus, computer device and storage medium by batch processing
CN113282284A (en) * 2021-06-24 2021-08-20 成都科来网络技术有限公司 Packing method and packing system adaptive to multiple customized projects
CN114726848A (en) * 2022-06-07 2022-07-08 广州易方信息科技股份有限公司 Client automatic packaging and exe distribution method and device for Windows platform
CN114726848B (en) * 2022-06-07 2022-10-04 广州易方信息科技股份有限公司 Client automatic packaging and exe distribution method and device for Windows platform

Similar Documents

Publication Publication Date Title
CN108628661B (en) Automatic establishment method of cloud manufacturing service and cloud manufacturing system
CN109933522B (en) Test method, test system and storage medium for automatic case
US7120896B2 (en) Integrated business process modeling environment and models created thereby
US9251165B2 (en) End to end automation of application deployment
CN112882700B (en) IOS application program construction method and device, electronic equipment and storage medium
CN108388445B (en) Continuous integration method based on 'platform + application' mode
US20100070961A1 (en) Supplying Software Updates Synchronously
CN110795139A (en) Client batch packaging method and device, computer equipment and storage medium
CN108897547B (en) Software automation deployment method and device
CN105335173A (en) Method, apparatus and system for initializing intelligent terminal device
US20180165066A1 (en) Information-technology workflows using executable tiles
US9729677B2 (en) Method of adding client server automation to computer languages for cloud computing
Spillner et al. Java code analysis and transformation into AWS lambda functions
US11003466B2 (en) Information-technology workflows using executable tiles with plural user interfaces
CN111026634A (en) Interface automation test system, method, device and storage medium
Vivian et al. Rapid and efficient analysis of 20,000 RNA-seq samples with Toil
KR102432807B1 (en) Apparatus and method for reconfiguring microservice architecture
US9026997B2 (en) Systems and methods for executing object-oriented programming code invoking pre-existing objects
CN115686606A (en) Method, device, system and medium for displaying item dependency tree
CN112230918B (en) Web end development method using iframe embedded webpage
CN113434146A (en) Code compiling method, device, storage medium and electronic device
CN112000334A (en) Page development method, device, server and storage medium
CN113254040B (en) Front-end framework updating method, device, equipment and storage medium
US10732947B2 (en) Information-technology workflow using tiles that declaratively specify datatypes
CN115809084A (en) Version generation method and device, electronic equipment 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