CN113553095A - Method and device for issuing small program, electronic device and storage medium - Google Patents

Method and device for issuing small program, electronic device and storage medium Download PDF

Info

Publication number
CN113553095A
CN113553095A CN202110808808.2A CN202110808808A CN113553095A CN 113553095 A CN113553095 A CN 113553095A CN 202110808808 A CN202110808808 A CN 202110808808A CN 113553095 A CN113553095 A CN 113553095A
Authority
CN
China
Prior art keywords
applet
small program
preview
graphic code
tool
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
CN202110808808.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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110808808.2A priority Critical patent/CN113553095A/en
Publication of CN113553095A publication Critical patent/CN113553095A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations

Abstract

The embodiment of the invention provides a method and a device for issuing an applet, an electronic device and a storage medium, wherein the method comprises the following steps: creating an applet publishing task; determining a release element of the small program, wherein the release element comprises a small program code version, a small program dependent parameter and a small program release form parameter; endowing the issued element to an applet CI tool, and executing the applet CI tool to package the applet corresponding to the issued element; acquiring a preview graphic code corresponding to the applet, wherein the preview graphic code is used for checking the preview effect of the applet; and binding the preview graphic code with the applet release task, and displaying the preview graphic code. Therefore, the user can deploy the small program by one key, the user operation is simplified, and the small program release efficiency is improved.

Description

Method and device for issuing small program, electronic device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for issuing an applet, an electronic device, and a storage medium.
Background
The applet is an application which can be used without downloading and installing, the dream that the application is 'reachable by a touch' is realized, and the user can open the application by scanning or searching. With the continuous development of applet ecology, more and more APP applications have been converted into applet form bearers. In general, the release of the formal version of the applet needs to depend on the experience version, and the formal version of the applet can be released after the experience version is checked.
In the related art, the release flow of the applet experience version is very complex, and is usually as follows: and (3) locally packaging the small program codes of a certain version by a developer, scanning and logging in the developer tool by the WeChat, clicking and uploading the small program codes in the developer tool, and submitting the small program codes to an operation background for auditing. For the situations of large projects, multiple developers and multiple parallel requirements, the release process needs to be executed repeatedly, the developers need to pack small program codes of various versions locally repeatedly, and the operation is complex and the efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for issuing an applet, an electronic device and a storage medium, so as to achieve the beneficial effects of simplifying user operation and improving the efficiency of issuing the applet.
The specific technical scheme is as follows:
in a first aspect of an embodiment of the present invention, a method for issuing an applet is provided, where the method includes:
creating an applet publishing task;
determining a release element of the small program, wherein the release element comprises a small program code version, a small program dependent parameter and a small program release form parameter;
endowing the issued element to an applet CI tool, and executing the applet CI tool to package the applet corresponding to the issued element;
acquiring a preview graphic code corresponding to the applet, wherein the preview graphic code is used for checking the preview effect of the applet;
and binding the preview graphic code with the applet release task, and displaying the preview graphic code.
In an optional embodiment, the creating an applet publishing task includes:
acquiring an applet task identifier and applet task description information under the condition that the preset operation trigger of a user for a task creation button is monitored;
creating an applet release task based on the applet task identifier and the applet task description information;
wherein the task creation button comprises a task creation button in a continuous integration tool task creation page.
In an optional embodiment, the determining the release element of the applet includes:
displaying each candidate small program code version in a preset small program code version set through a first plug-in the continuous integration tool;
determining the small program code version selected by the user or the preset small program code version in each candidate small program code version;
acquiring a first applet dependent parameter input by a user and a preset second applet dependent parameter;
combining the first applet dependent parameter and the second applet dependent parameter to obtain an applet dependent parameter;
determining the issuing environment of the small program, and acquiring the small program issuing form parameter based on the issuing environment, wherein the small program issuing form parameter is used for controlling the issuing form of the small program.
In an optional embodiment, the assigning the release element to an applet CI tool and executing the applet CI tool to package the applet corresponding to the release element includes:
endowing the release element to an applet CI tool, executing the applet CI tool, and acquiring an applet code corresponding to the applet code version; and the number of the first and second groups,
and packaging the applet codes into the applet dependent parameters and the applet corresponding to the applet release form parameters.
In an optional embodiment, before executing the applet CI tool, the method further comprises:
and calling a preset resource manager to install the continuous integration tool and the dependence of the small program.
In an optional embodiment, the obtaining the preview graphic code corresponding to the applet includes:
and acquiring a preview graphic code corresponding to the applet in a preset graphic code storage path based on the graphic code identifier through a second plug-in the continuous integration tool.
In an optional embodiment, the displaying the preview graphic code includes:
determining the generation time of the preview graphic code, and inserting the preview graphic code into a preview graphic code list based on the generation time;
and displaying the preview graphic code in the preview graphic code list.
In a second aspect of the embodiments of the present invention, there is also provided an apparatus for issuing an applet, the apparatus including:
the task creating module is used for creating an applet releasing task;
the element determining module is used for determining the release element of the small program, wherein the release element comprises a small program code version, a small program dependent parameter and a small program release form parameter;
the tool execution module is used for endowing the issued element to an applet CI tool and executing the applet CI tool to package the applet corresponding to the issued element;
the graphic code acquisition module is used for acquiring a preview graphic code corresponding to the applet, wherein the preview graphic code is used for checking the preview effect of the applet;
and the graphic code display module is used for binding the preview graphic code with the applet release task and displaying the preview graphic code.
In a third aspect of the embodiments of the present invention, there is further provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor configured to implement the applet distributing method according to any one of the first aspect described above when executing the program stored in the memory.
In a fourth aspect of the embodiments of the present invention, there is also provided a storage medium having instructions stored therein, which when run on a computer, cause the computer to execute the method for issuing an applet described in any one of the above first aspects.
In a fifth aspect of embodiments of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of issuing an applet as described in any one of the above first aspects.
The technical scheme provided by the embodiment of the invention comprises the steps of creating an applet release task, determining the release elements of the applet, wherein the release elements of the applet comprise an applet code version, an applet dependence parameter and an applet release form parameter, giving the release elements of the applet to an applet CI tool, executing the applet CI tool to package the applet corresponding to the applet release elements, and acquiring the preview graphic code corresponding to the applet, wherein the preview graphic code is used for checking the preview effect of the applet, binding the preview graphic code with the applet release task, and displaying the preview graphic code. And packaging the applet corresponding to the applet publishing element by using the applet CI tool, and acquiring the preview graphic code corresponding to the applet for displaying, so that the one-key applet deployment of a user can be realized, the user operation is simplified, and the applet publishing efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic implementation flow diagram of an applet publishing method shown in an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of an applet encapsulating method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a preview two-dimensional code according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an applet distributing apparatus shown in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device shown in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As shown in fig. 1, an implementation flow diagram of an applet publishing method provided in an embodiment of the present invention is shown, where the method may be used in a processor, and specifically may include the following steps:
and S101, creating an applet distributing task.
In the embodiment of the invention, Jenkins can be set up in advance, wherein Jenkins are an open-source software project, and are a continuous integration tool developed based on Java, which is used for monitoring continuous and repeated work and aims to provide an open and easy-to-use software platform so that the software project can be continuously integrated.
For displaying a task creation button in a Jenkins task creation page (namely, a continuous integration tool task creation page), the embodiment of the invention can monitor whether the preset operation of a user for the task creation button is triggered, and can create an applet to release a task under the condition that the preset operation of the user for the task creation button is triggered. The applet publishing task identifier and the applet publishing task description information can be obtained. The small program publishing process can be visualized by utilizing Jenkins, the error probability can be reduced, and the method is particularly prominent in the situations of large projects, multiple developers and multiple requirements in parallel.
For example, in a Jenkins task creation page, a task creation button is displayed, and a user can click the task creation button, so that it is monitored that the user clicks the task creation button to trigger, at this time, the user can input an applet release task name, and at the same time, applet release task description information can be input, the applet release task name and the applet release task description information are obtained, and an applet release task a is created based on the applet release task name and the applet release task description information.
It should be noted that, for the preset operation, for example, a click operation, a press operation, and the like may be performed, for the applet publishing task identifier, for example, an applet publishing task name, an applet publishing task ID, and for the applet publishing task description information, the description information about the applet publishing task is referred to, which is not limited in the embodiment of the present invention.
S102, determining a release element of the small program, wherein the release element comprises a small program code version, a small program dependent parameter and a small program release form parameter.
In the embodiment of the present invention, the release element of the applet may be determined, and the release element of the applet may include an applet code version, an applet dependent parameter, an applet release form parameter, and the like.
By applet code version is meant a version of the applet code, which is determined by specific requirements, i.e. different requirements, there are different versions of the applet code. For example, as shown in Table 1 below, different versions of the applet code exist for different needs.
Figure BDA0003167522410000061
Figure BDA0003167522410000071
TABLE 1
For the applet dependent parameters, for example, APPID, Type of the item, project path, private key PrivateKeyPath, rule of exclusion Ignores, applet version number, and the like may be included. The private key PrivateKeyPath is obtained by uploading a WeChat applet background, development and setting and an applet code, the project path ProjectPath is set to be '/', and other parameters can be in a form that environment variables are configured through Jenkins and default values are set.
For the applet release form parameter, the applet release form parameter is used to control the release form of the applet, for example, the applet release form parameter is 0, and the applet release may be controlled to be an experience version, for example, the applet release form parameter is 1, and the applet release may be controlled to be a formal version.
The method and the device for displaying the small program code versions in the continuous integration tool can display all the candidate small program code versions in the preset small program code version set through the first plug-in the continuous integration tool, and determine the small program code version selected by a user in each candidate small program code version or the preset small program code version.
For example, for a Git parameter plug-in Jenkins, each candidate applet code version in a preset applet code version set can be displayed through the Git parameter plug-in Jenkins, and a user can select one applet code version in each candidate applet code version by himself, so that the applet code version selected by the user in each candidate applet code version is determined.
For another example, for a Git parameter plug-in Jenkins, each candidate applet code version in a preset applet code version set can be displayed through the Git parameter plug-in Jenkins, a certain applet code version in each candidate applet code version can be preset as a default applet code version of a system, and a default applet code version in each candidate applet code version can be determined.
The embodiment of the invention acquires the first small program dependent parameter input by the user and the preset second small program dependent parameter, and combines the first small program dependent parameter and the second small program dependent parameter to obtain the small program dependent parameter.
For example, in Jenkins, an operation path is parameter setting- > parameterization construction process- > parameter addition, and a user inputs a first applet dependent parameter: APPID, private key PrivateKeyPath, applet version number and the like, for the second applet dependent parameter: the Type of the project, project path, etc. may be preset in the system, a first applet dependent parameter and a preset second applet dependent parameter input by the user are obtained, and the first applet dependent parameter and the second applet dependent parameter are combined to obtain the applet dependent parameter.
And determining the issuing environment of the small program, and acquiring the issuing form parameters of the small program based on the issuing environment of the small program. For example, the publishing environment of the applet is a test environment, so that the publishing environment of the applet can be determined: the testing environment is based on the issuing environment of the small program, and the parameters of the issuing form of the small program are acquired: 0. for example, the publishing environment of the applet is an online environment, so that the publishing environment of the applet can be determined: and acquiring an online environment, namely acquiring an applet release form parameter based on the release environment of the applet: 1.
and S103, giving the release element to an applet CI tool, and executing the applet CI tool to package the applet corresponding to the release element.
For the release elements of the applet: the embodiment of the invention provides an issuing element of an applet to an applet CI tool through a script and executes the applet corresponding to the issuing element of the applet encapsulated by the applet CI tool.
For example, the issuing element of the applet is acquired by the shell script and then given to the applet CI tool miniprogam-CI by the shell script, and the meaning given here is understood to mean that the issuing element of the applet is transferred to the applet CI tool by the shell script, so that the applet corresponding to the issuing element of the applet CI tool can be executed.
Specifically, as shown in fig. 2, an implementation flow diagram of an applet encapsulating method provided in an embodiment of the present invention is shown, where the method may be used in a processor, and specifically may include the following steps:
and S201, endowing the release element to an applet CI tool, executing the applet CI tool, and acquiring an applet code corresponding to the applet code version.
S202, the applet codes are packaged into the applet dependent parameters and the applet corresponding to the applet release form parameters.
For the release element of the applet, the embodiment of the invention assigns the release element of the applet to an applet CI tool through a script (e.g., a shell script), executes the applet CI tool, obtains the applet code corresponding to the applet code version by the applet CI tool, and encapsulates the applet code into an applet dependent parameter and an applet corresponding to the applet release form parameter.
For example, after the release element of the applet is acquired by the shell script, the shell script gives a mini-script-CI to an applet CI tool, the applet CI tool is executed, the applet CI tool acquires an applet code corresponding to an applet code version, and the applet code is encapsulated into an applet dependent parameter and an applet corresponding to an applet release form parameter, where the release version is 1.0, APPID: 011214.
It should be noted that the applet CI tool miniprogam-CI can implement uploading and previewing of the applet code, and the corresponding method is as follows: and ci.upload, ci.preview, the local applet code can be released as an experience version through the two methods in the applet CI tool miniprogram-CI, and the preview two-dimensional code corresponding to the current applet is generated in the specified path.
Before executing the applet CI tool, a preset resource manager can be called to install the continuous integration tool and the dependence of the applet, then the applet CI tool is executed, the applet CI tool obtains the applet code corresponding to the applet code version, and the applet code is packaged into an applet dependence parameter and an applet corresponding to the applet release form parameter.
For example, first, using yann (Apache Hadoop YARN (Another Resource coordinator), which is a universal Resource management system, to provide uniform Resource management and scheduling for upper layer applications, and its introduction brings great benefits for the cluster in terms of utilization rate, uniform Resource management, and data sharing), to install dependencies (such as mipprogram-CI modules and applet-dependent third-party modules), then executing an applet CI tool, obtaining an applet code corresponding to an applet code version by the applet CI tool, and packaging the applet code into an applet dependent parameter and an applet corresponding to the applet release form parameter.
And S104, acquiring a preview graphic code corresponding to the applet, wherein the preview graphic code is used for checking the preview effect of the applet.
For the applet CI tool, a preview graphic code corresponding to the applet can be generated based on the applet dependent parameters in the issuing elements of the applet, the preview graphic code can comprise a preview two-dimensional code or a preview bar code, and the preview graphic code is used for viewing the preview effect of the applet.
For the preview graphic code corresponding to the applet, the embodiment of the invention obtains the preview graphic code corresponding to the applet in a preset graphic code storage path based on the graphic code identifier through a second plug-in the continuous integration tool.
For example, for the applet CI tool, after the preview two-dimensional code corresponding to the applet is generated based on the applet dependent parameter in the applet release element, the preview two-dimensional code corresponding to the applet is stored in the specified path and named by the $ BUILD _ ID, and at this time, the preview two-dimensional code corresponding to the applet needs to be acquired in the specified path based on the $ BUILD _ ID through the description setter plug-in Jenkins.
And S105, binding the preview graphic code with the applet release task, and displaying the preview graphic code.
For the preview graphic code corresponding to the applet, the embodiment of the invention can bind the preview graphic code with the created applet release task and display the preview graphic code corresponding to the applet, so that the preview graphic code can be scanned to check the applet preview effect corresponding to the applet code version.
For example, for a preview two-dimensional code corresponding to an applet, the embodiment of the present invention may bind the preview two-dimensional code corresponding to the applet with the created applet publishing task, as shown in table 2 below, and display a preview graphic code corresponding to the applet.
Preview two-dimensional code corresponding to small program Applet publishing tasks
Two-dimensional code 1 Applet publishing task 1
Two-dimensional code 2 Applet publishing task 2
…… ……
TABLE 2
The preview graphic code list is displayed in the preview graphic code list, and the preview graphic code corresponding to the applet is displayed in the preview graphic code list.
For example, the generation time of the preview two-dimensional code corresponding to the applet is determined as follows: 10:00, inserting the preview two-dimensional code corresponding to the applet into the preview two-dimensional code list based on the generation time, specifically inserting the preview two-dimensional code corresponding to the applet into the first position in the preview two-dimensional code list based on the generation time, and displaying the preview two-dimensional code corresponding to the applet in the preview two-dimensional code list, as shown in fig. 3.
According to the technical scheme provided by the embodiment of the invention, the applet release task is created, the release element of the applet is determined, wherein the release element of the applet comprises an applet code version, an applet dependence parameter and an applet release form parameter, the release element of the applet is given to an applet CI tool, the applet corresponding to the applet release element is encapsulated by the applet CI tool, a preview graphic code corresponding to the applet is obtained, the preview graphic code is used for viewing the preview effect of the applet, the preview graphic code is bound with the applet release task, and the preview graphic code is displayed.
Under the condition that the preset operation trigger of a user for a task creation button is monitored, the small program corresponding to the small program release element is packaged by using a small program CI tool, and the preview graphic code corresponding to the small program is obtained for displaying, so that the small program can be deployed by the user by one key, the user operation is simplified, and the small program release efficiency is improved. In addition, the small program release process is visualized, the error probability is reduced, and the method is particularly prominent in the situations of large projects, multiple developers and multiple requirements in parallel.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides an apparatus for issuing an applet, and as shown in fig. 4, the apparatus may include: the task creating module 410, the element determining module 420, the tool executing module 430, the graphic code acquiring module 440 and the graphic code displaying module 450.
A task creation module 410 for creating an applet publishing task;
an element determining module 420, configured to determine a release element of the applet, where the release element includes an applet code version, an applet dependent parameter, and an applet release form parameter;
the tool execution module 430 is configured to assign the release element to an applet CI tool, and execute the applet CI tool to package the applet corresponding to the release element;
the graphic code acquisition module 440 is configured to acquire a preview graphic code corresponding to the applet, where the preview graphic code is used to view a preview effect of the applet;
and the graphic code display module 450 is configured to bind the preview graphic code with the applet publishing task, and display the preview graphic code.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 51, a communication interface 52, a memory 53 and a communication bus 54, where the processor 51, the communication interface 52, and the memory 53 complete mutual communication through the communication bus 54,
a memory 53 for storing a computer program;
the processor 51 is configured to implement the following steps when executing the program stored in the memory 53:
creating an applet publishing task; determining a release element of the small program, wherein the release element comprises a small program code version, a small program dependent parameter and a small program release form parameter; endowing the issued element to an applet CI tool, and executing the applet CI tool to package the applet corresponding to the issued element; acquiring a preview graphic code corresponding to the applet, wherein the preview graphic code is used for checking the preview effect of the applet; and binding the preview graphic code with the applet release task, and displaying the preview graphic code.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In still another embodiment of the present invention, there is also provided a storage medium having stored therein instructions that, when run on a computer, cause the computer to execute the method of issuing an applet as described in any one of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of issuing an applet as described in any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for issuing an applet, the method comprising:
creating an applet publishing task;
determining a release element of the small program, wherein the release element comprises a small program code version, a small program dependent parameter and a small program release form parameter;
endowing the issued element to an applet CI tool, and executing the applet CI tool to package the applet corresponding to the issued element;
acquiring a preview graphic code corresponding to the applet, wherein the preview graphic code is used for checking the preview effect of the applet;
and binding the preview graphic code with the applet release task, and displaying the preview graphic code.
2. The method of claim 1, wherein creating an applet publishing task comprises:
acquiring an applet task identifier and applet task description information under the condition that the preset operation trigger of a user for a task creation button is monitored;
creating an applet release task based on the applet task identifier and the applet task description information;
wherein the task creation button comprises a task creation button in a continuous integration tool task creation page.
3. The method of claim 1, wherein determining a release element for an applet comprises:
displaying each candidate small program code version in a preset small program code version set through a first plug-in the continuous integration tool;
determining the small program code version selected by the user or the preset small program code version in each candidate small program code version;
acquiring a first applet dependent parameter input by a user and a preset second applet dependent parameter;
combining the first applet dependent parameter and the second applet dependent parameter to obtain an applet dependent parameter;
determining the issuing environment of the small program, and acquiring the small program issuing form parameter based on the issuing environment, wherein the small program issuing form parameter is used for controlling the issuing form of the small program.
4. The method according to claim 1, wherein the assigning the release element to an applet CI tool and the executing the applet CI tool to package an applet corresponding to the release element comprises:
endowing the release element to an applet CI tool, executing the applet CI tool, and acquiring an applet code corresponding to the applet code version; and the number of the first and second groups,
and packaging the applet codes into the applet dependent parameters and the applet corresponding to the applet release form parameters.
5. The method of claim 4, wherein prior to executing the applet CI tool, further comprising:
and calling a preset resource manager to install the continuous integration tool and the dependence of the small program.
6. The method of claim 1, wherein the obtaining the preview graphic code corresponding to the applet comprises:
and acquiring a preview graphic code corresponding to the applet in a preset graphic code storage path based on the graphic code identifier through a second plug-in the continuous integration tool.
7. The method of claim 1, wherein said presenting the preview graphical code comprises:
determining the generation time of the preview graphic code, and inserting the preview graphic code into a preview graphic code list based on the generation time;
and displaying the preview graphic code in the preview graphic code list.
8. An apparatus for issuing an applet, the apparatus comprising:
the task creating module is used for creating an applet releasing task;
the element determining module is used for determining the release element of the small program, wherein the release element comprises a small program code version, a small program dependent parameter and a small program release form parameter;
the tool execution module is used for endowing the issued element to an applet CI tool and executing the applet CI tool to package the applet corresponding to the issued element;
the graphic code acquisition module is used for acquiring a preview graphic code corresponding to the applet, wherein the preview graphic code is used for checking the preview effect of the applet;
and the graphic code display module is used for binding the preview graphic code with the applet release task and displaying the preview graphic code.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 7 when executing a program stored in the memory.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110808808.2A 2021-07-16 2021-07-16 Method and device for issuing small program, electronic device and storage medium Pending CN113553095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110808808.2A CN113553095A (en) 2021-07-16 2021-07-16 Method and device for issuing small program, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110808808.2A CN113553095A (en) 2021-07-16 2021-07-16 Method and device for issuing small program, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113553095A true CN113553095A (en) 2021-10-26

Family

ID=78132066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110808808.2A Pending CN113553095A (en) 2021-07-16 2021-07-16 Method and device for issuing small program, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113553095A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114154526A (en) * 2021-12-02 2022-03-08 京东科技信息技术有限公司 Two-dimensional code processing method and system, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020089526A1 (en) * 1998-01-26 2002-07-11 Jeffrey J. Buxton Infocenter user interface for applets and components
CN109189400A (en) * 2018-08-07 2019-01-11 北京趣拿软件科技有限公司 Program dissemination method and device, storage medium, processor
CN110308917A (en) * 2019-06-26 2019-10-08 深圳前海微众银行股份有限公司 Small routine dissemination method, device, equipment and computer storage medium
CN110895470A (en) * 2018-09-12 2020-03-20 富泰华工业(深圳)有限公司 Applet management apparatus and management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020089526A1 (en) * 1998-01-26 2002-07-11 Jeffrey J. Buxton Infocenter user interface for applets and components
CN109189400A (en) * 2018-08-07 2019-01-11 北京趣拿软件科技有限公司 Program dissemination method and device, storage medium, processor
CN110895470A (en) * 2018-09-12 2020-03-20 富泰华工业(深圳)有限公司 Applet management apparatus and management method
CN110308917A (en) * 2019-06-26 2019-10-08 深圳前海微众银行股份有限公司 Small routine dissemination method, device, equipment and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HIMAL-HIMAL: "微信小程序集成 Jenkins 自动化部署", pages 1 - 14, Retrieved from the Internet <URL:https://blog.csdn.net/superiorpengFight/articl/details/103988645> *
大流星: "微信小程序官方维护的CI工具", pages 1 - 3, Retrieved from the Internet <URL:https://developers.weixin.qq.com/community/develop/article/doc/00026ecd410df06dca7aa5c0a53413> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114154526A (en) * 2021-12-02 2022-03-08 京东科技信息技术有限公司 Two-dimensional code processing method and system, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN108153670B (en) Interface testing method and device and electronic equipment
TWI670672B (en) Automated constructing method of cloud manufacturing service, computer program product, and cloud manufacturing system
US20190065177A1 (en) Cross application behavior customization
CN107896244B (en) Version file distribution method, client and server
CN108228228B (en) Application software publishing method and device
US20200026640A1 (en) Systems and methods for modular test platform for applications
CN111596928B (en) Application control method and device and electronic equipment
CN105556505A (en) Legacy system
CN111124544A (en) Interface display method and device, electronic equipment and storage medium
CN113220431A (en) Cross-cloud distributed data task scheduling method, device and storage medium
CN112463588A (en) Automatic test system and method, storage medium and computing equipment
CN113190286B (en) MES system, loading method, terminal and medium for dynamically and remotely loading functional plug-ins
CN113553095A (en) Method and device for issuing small program, electronic device and storage medium
CN110727575A (en) Information processing method, system, device and storage medium
CN107678969B (en) Test version release method and device, version control equipment and test machine
JP6300750B2 (en) Verification program, verification apparatus, and verification method
CN115202712B (en) Application management method, application subscription method and related equipment
CN112947907A (en) Method for creating code branch
TW201407503A (en) System and method for work schedule of cloud platform
CN114385258A (en) Automatic testing method and device, electronic equipment and storage medium
CN112685023A (en) Front-end development processing method, device, equipment and storage medium based on basic library
CN112445513A (en) Installation package processing method and device
CN115037613B (en) Centralized continuous configuration method and system for projects
CN109814911A (en) Method, apparatus, computer equipment and storage medium for Manage Scripts program
CN113031960B (en) Code compiling method, device, server 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