[go: up one dir, main page]

WO2023082365A1 - Wechat mini program packaging platform and method, and device and storage medium - Google Patents

Wechat mini program packaging platform and method, and device and storage medium Download PDF

Info

Publication number
WO2023082365A1
WO2023082365A1 PCT/CN2021/134242 CN2021134242W WO2023082365A1 WO 2023082365 A1 WO2023082365 A1 WO 2023082365A1 CN 2021134242 W CN2021134242 W CN 2021134242W WO 2023082365 A1 WO2023082365 A1 WO 2023082365A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
code
file
hash table
compiled
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.)
Ceased
Application number
PCT/CN2021/134242
Other languages
French (fr)
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.)
Tongcheng Network Technology Co Ltd
Original Assignee
Tongcheng Network 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 Tongcheng Network Technology Co Ltd filed Critical Tongcheng Network Technology Co Ltd
Publication of WO2023082365A1 publication Critical patent/WO2023082365A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

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

Definitions

  • the present application relates to the field of computer software, in particular to a WeChat applet packaging platform, method, device and storage medium.
  • WeChat Mini Program is a new open capability within the WeChat system. Developers can use the WeChat Developer Tools to quickly develop a WeChat Mini Program and package the corresponding WeChat Mini Program code package.
  • the main method of packaging WeChat applets is the developer’s local packaging method: first, the client obtains the code information that the WeChat applet needs to update from the service system through network I/O technology, and then mainly relies on the local computer configuration to update the WeChat applet. to pack.
  • the inventor found that the above-mentioned technology has at least the following problems: using the developer’s local packaging method, on the one hand, the network I/O technology will generate a high network delay, and on the other hand, due to the WeChat small
  • the program packaging process needs to occupy extremely high CPU resources of the local computer, which makes it difficult for developers to perform other WeChat mini-program packaging operations during the packaging process, so it will affect the packaging efficiency of WeChat mini-programs. It can be seen that WeChat in the prior art The packaging efficiency of applets is low.
  • the present application provides a WeChat applet packaging platform, method, device and storage medium.
  • the application provides a WeChat applet packaging platform, which adopts the following technical solution:
  • a WeChat mini-program packaging platform including a service system and a file system
  • the service system is used to obtain the first information and generate the precompiled code of the WeChat applet according to the first information;
  • the file system is used for calling by the service system;
  • the service system includes a receiving module, Diff Information generating module, Diff information processing module and compiling module; Described file system comprises micro-letter developer tool; Described receiving module is used for receiving described first information; Described Diff information generating module is used for processing described first information and Generate corresponding Diff information; the Diff information processing module is used to process the Diff information and generate corresponding information to be compiled; the compilation module is used to process the information to be compiled and generate the pre-compiled code; the WeChat The developer tool is used to debug the precompiled code and compile the code package of the WeChat applet, so as to realize the packaging of the WeChat applet.
  • the main process of packaging WeChat applets can be completed by the service system and file system, which not only eliminates the network delay caused by network I/O technology, because the packaging process is mainly completed by the service system and file system , the packaging process will not occupy too much CPU resources of the client, so that the user can use the client to perform other packaging operations of WeChat Mini Programs, which is convenient for improving the packaging efficiency of WeChat Mini Programs.
  • the application provides a method for packaging WeChat applets, which adopts the following technical solution:
  • a WeChat mini-program packaging method comprising:
  • the main process of packaging WeChat applets can be completed by the service system and file system, which not only eliminates the network delay caused by network I/O technology, because the packaging process is mainly completed by the service system and file system , the packaging process will not occupy too much CPU resources of the client, so that the user can use the client to perform other packaging operations of WeChat Mini Programs, which is convenient for improving the packaging efficiency of WeChat Mini Programs.
  • the present application provides a computer device, which is characterized in that it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute any of the above-mentioned WeChat applet packaging methods.
  • the main process of packaging WeChat applets can be completed by the service system and file system, which not only eliminates the network delay caused by network I/O technology, because the packaging process is mainly completed by the service system and file system , the packaging process will not occupy too much CPU resources of the client, so that the user can use the client to perform other packaging operations of WeChat Mini Programs, which is convenient for improving the packaging efficiency of WeChat Mini Programs.
  • the present application provides a computer-readable storage medium, which is characterized in that it stores a computer program that can be loaded by a processor and execute any of the above-mentioned WeChat applet packaging methods.
  • the main process of packaging WeChat applets can be completed by the service system and the file system, which not only eliminates the network delay caused by network I/O technology, because the packaging process is mainly completed by the service system and file system , the packaging process will not occupy too much CPU resources of the client, so that the user can use the client to perform other packaging operations of WeChat Mini Programs, which is convenient for improving the packaging efficiency of WeChat Mini Programs.
  • the present application includes at least one of the following beneficial technical effects:
  • the main packaging process of the WeChat applet can be completed by the service system and the file system, and the client mainly plays the role of controlling the service to package the WeChat applet, which can facilitate the reduction of existing technology.
  • developers can use the client to communicate between the service system and the server system. While the file system is performing packaging operations, other WeChat applet packaging operations are performed at the same time, so as to improve the packaging efficiency of WeChat applets.
  • Fig. 1 is a structural block diagram of using the WeChat applet packaging platform to package WeChat applets in the embodiment of the application
  • Fig. 2 is a method flow chart of a method for packaging WeChat applets in the embodiment of the application.
  • 100 communication layer
  • 200 service system
  • 201 timing task module
  • 202 WebHooks module
  • 203 receiving module
  • 204 Diff information generating module
  • 205 Diff information processing module
  • 206 compiling module
  • 300 file system
  • 310 Git warehouse
  • 320 cache space
  • 330 WeChat developer tool.
  • the source code of a WeChat applet includes the source code of several branches. As the version of the WeChat applet changes, the source code of one or several branches of the WeChat applet will be updated accordingly, such as the branch corresponding to the previous version. Source code additions, modifications, and deletions may occur as compared to the source code. Then, it is necessary to perform automated testing on the updated branch code, reintegrate the successful branch code into the main source code of the original WeChat applet, and overwrite the original branch code, thereby generating the WeChat applet Precompile the code, and then use the WeChat developer tool to debug and finally compile the precompiled code, and then generate the code package of the WeChat applet.
  • the embodiment of the present application discloses a WeChat mini-program packaging platform.
  • the WeChat applet packaging platform includes a communication layer 100 , a service system 200 and a file system 300 .
  • the user opens the login interface of the WeChat mini-program packaging platform through the browser on the client.
  • the user scans the platform login QR code through WeChat to log in to the WeChat mini-program packaging platform.
  • the user After the user logs in to the WeChat applet packaging platform, he can send the WeChat applet packaging information to the service system 200 through the client.
  • the sending of the WeChat applet packaging information depends on the communication link between the client and the service system 200, and the customer
  • the communication link between the client and the service system 200 is implemented by the communication layer 100.
  • the communication protocol used for the communication link between the client and the service system 200 includes the WebSocket protocol and the Http protocol.
  • the client is also used to select the branch information of the Git warehouse 310 and the WeChat applet that need to be packaged, and record the branch information of the Git warehouse 310 and the WeChat applet that need to be packaged as the first information, and the client further records the above first information sent to the service system 200.
  • the service system 200 is used to receive the WeChat applet packaging information sent by the client and execute the packaging operation of the WeChat applet.
  • the file system 300 is used for invoking by the service system 200 when the service system 200 packages the WeChat applet.
  • the service system 200 includes: a scheduled task module 301 , a WebHooks module 302 , a receiving module 203 , a file I/O, a Diff information generating module 204 , a Diff information processing module 305 and a compiling module 306 .
  • the file system 300 includes: a Git repository 310 , a user space 311 , a code space 312 , a cache space 320 and a WeChat developer tool 330 .
  • Each WeChat mini-program includes several branch information.
  • a WeChat mini-program about tourism may have several branch information including hotels, train tickets and tour guides. These branch information are all stored in the Git warehouse 310 .
  • the branch information related to the hotel is updated, the user can log in to the WeChat applet packaging platform, select the Git warehouse 310 related to the storage branch information, and the hotel-related and updated Git warehouse 310 branch information.
  • the branch information includes the code of each version related to the hotel and the Hash table file corresponding to each version code.
  • the Git warehouse 310 is similar to a cloud code base. In order to ensure the consistency of the Git warehouse 310 and the local WeChat applet code of the service system, it is necessary to synchronize the branch code of the current version of the WeChat applet written in the Git warehouse 310 to the local service system. in the cache space 320.
  • Git repository 310 can be divided into user space 311 and code space 312 .
  • the user space 311 is used to independently store the branch codes of the WeChat applets developed by each user, and record the branch codes of the WeChat applets as the first branch codes.
  • the user space 311 is also used to independently store the branch codes corresponding to the first branch codes.
  • the first Hash table file, the first Hash table file is calculated by the first branch code through the Hash algorithm, the first Hash table file includes some files corresponding to the first branch code, and the first Hash table file calculated by the Hash algorithm for each file A Hash value.
  • the code space 312 is used to store the branch code copied from the cache space 320 and updated, and the branch code copied from the cache space 320 and updated is recorded as the second branch code, and the code space 312 is also used to store and update the branch code.
  • the second Hash table file corresponding to the code is obtained by the operation of the second branch code through the Hash algorithm, the second Hash table file includes several files corresponding to the second branch code, and each file is calculated by the Hash algorithm The obtained second Hash value.
  • the first type is active synchronization, which is performed through the timing task module 301.
  • the update time interval and time range are preset, and the timing task module 301 is used to determine the Git warehouse within the time range every update time interval Whether the current branch codes of the WeChat applets in 310 are updated, and update the branch codes of the updated WeChat applets to the cache space 320, that is, update the corresponding branch codes in the cache space 320 to the corresponding branch codes in the Git warehouse 310 Updated branch code.
  • the default update time interval is 30 minutes, and the default time range is 30 days. If the active synchronization method is used, the scheduled task module 301 needs to judge whether the current branch codes of the WeChat applets in the Git warehouse 310 have been updated within 30 days every 30 minutes, and update the branch codes of the updated WeChat applets to the cache In space 320.
  • the second type is passive synchronization.
  • Passive synchronization is performed through the WebHooks module 302. Specifically: the working mode of the WebHooks module 302 is triggered, and the trigger condition is that the developer submits the branch code of a new WeChat applet to the Git warehouse. When the developer submits the branch code of the new WeChat applet to the Git warehouse, the WebHooks module 302 starts to work after being triggered, and updates the branch code corresponding to the branch code submitted by the developer in the cache space 320 to the branch code submitted by the developer .
  • the branch code of the current version of the WeChat applet written in the Git repository 310 can be synchronized to the local cache space 320 of the service system through any of the above synchronization methods. Further, it is also necessary to copy the updated branch code in the cache space 320 to the code space 312 through file I/O, and the file I/O is used for operations such as copying, pasting, overwriting and deleting files in the service system 200 .
  • the client After the user logs in to the WeChat applet packaging platform through the client, he can further select the Git warehouse information of the Git warehouse 310 and the updated WeChat applet branch information in the Git warehouse 310 through the client, and upload the Git warehouse information and the branch information of the Git warehouse 310.
  • the updated WeChat applet branch information is recorded as the first information.
  • the client is configured to send the first information to the service system 200 through the communication layer 100 .
  • the receiving module 203 in the service system 200 is configured to receive the first information sent by the client, and send the first information to the Diff information generating module 204 .
  • the Diff information generation module 204 is used to process the first information, specifically:
  • the Diff information is: the file name of the file and the compiling type of the file compiled this time are "new".
  • the Diff information is: the file name of the file and the compiling type of this file is "delete”.
  • the Diff information is: the file name of the file and the compilation type of the current compilation of the file is "change".
  • the Diff information is: the file name of the file and the compilation type of the current compilation of the file is "no operation".
  • the Diff information processing module 305 is used to process the above-mentioned Diff information and generate corresponding information to be compiled, specifically:
  • the Diff information processing module 305 first receives the Diff information sent from the Diff information generation module 204;
  • the newly added file in the second Hash table file is copied and copied to the first Hash through file I/O. corresponding position in the table file, thereby generating the third Hash table file.
  • the received Diff information is the file name of the file and the compiling type of the file compiled this time is "delete”, delete the extra files in the first Hash table file relative to the second Hash table file through file I/O , thereby generating the fourth Hash table file.
  • the received Diff information is the file name of the file and the compiling type of the file compiled this time is "change"
  • the Diff information processing module 305 can import the generated third Hash table file, the fourth Hash table file and the fifth Hash table file into the preset file list to be compiled, generate information to be compiled, and send the information to be compiled to the compiler Module 306.
  • the third Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 Import the third Hash table file into the preset file list to be compiled, and the third Hash table file is the information to be compiled.
  • the fourth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the fourth Hash table file.
  • the file is imported into the preset list of files to be compiled, and the fourth Hash table file is the information to be compiled.
  • the fifth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the fifth Hash table file.
  • the file is imported into the preset list of files to be compiled, and the fifth Hash table file is the information to be compiled.
  • Diff information processing module 305 imports the 3rd Hash table file and the 4th Hash table file in the preset file list to be compiled, the 3rd Hash table file and the 4th Hash table file That is, the information to be compiled.
  • the third Hash will be generated by the Diff information processing module 305 table file and the fifth Hash table file, further, the Diff information processing module 305 imports the third Hash table file and the fifth Hash table file into the preset list of files to be compiled, the third Hash table file and the fifth Hash table file That is, the information to be compiled.
  • the fourth Hash will be generated by the Diff information processing module 305 table file and the fifth Hash table file, further, the Diff information processing module 305 imports the fourth Hash table file and the fifth Hash table file into the preset file list to be compiled, the fourth Hash table file and the fifth Hash table file That is, the information to be compiled.
  • the third Hash table file, the fourth Hash table file and the fifth Hash table file will be generated by the Diff information processing module 305, further, the Diff information processing module 305 will generate the third Hash table file, the fourth Hash table file and the fifth Hash table file.
  • the Hash table file is imported into the preset file list to be compiled, and the third Hash table file, the fourth Hash table file and the fifth Hash table file are the information to be compiled.
  • the compilation module 306 is used to process the information to be compiled and generate the precompiled code of the WeChat applet, specifically:
  • the compilation module 306 receives the information to be compiled sent by the Diff information processing module 305;
  • the file copied and copied from the second Hash table file in the 5th Hash table file is compiled, and the code after compiling is overwritten on the corresponding position of the first branch code code to generate the fifth branch code.
  • the files copied and copied from the second Hash table file are compiled, and the compiled code covers the code at the corresponding position of the first branch code to generate the seventh branch code.
  • the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted, and the fifth Hash table is also deleted. Compile the file copied and copied from the second Hash table file in the file, and overwrite the code at the corresponding position of the first branch code with the compiled code to generate the eighth branch code.
  • the third Hash table file, the fourth Hash table file and the fifth Hash table file exist in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code At the same time, the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted, and at the same time, the file copied and copied from the second Hash table file in the fifth Hash table file is compiled, And the compiled code covers the code at the corresponding position of the first branch code to generate the ninth branch code.
  • the third branch code, the fourth branch code, the fifth branch code, the sixth branch code, the seventh branch code, the eighth branch code and the ninth branch code are all possible precompiled codes.
  • one of the third branch code, the fourth branch code, the fifth branch code, the sixth branch code, the seventh branch code, the eighth branch code and the ninth branch code is used as precompiled information, and the precompiled code will be further sent to the WeChat developer tool 330 .
  • WeChat developer tools 330 are used to debug precompiled codes and compile code packages of WeChat applets, specifically:
  • the WeChat developer tool 330 first receives the precompiled code sent by the compilation module 306; debugs the received precompiled code; integrates the debugged precompiled code into the code trunk of the WeChat applet, and generates a code package of the WeChat applet.
  • the embodiment of the present application also discloses a WeChat applet packaging method, referring to Fig. 2, including the following steps:
  • the first information includes the information of the Git warehouse 310 that needs to be packaged and the information of the WeChat applet branch stored in the Git warehouse 310 . It should be noted that the codes of each branch of each version of a WeChat applet and the hash table files corresponding to each branch code are stored in the Git repository 310 . In implementation, if a WeChat applet needs to be updated in version, the developer will upload the developed branch code to the corresponding Git warehouse 310 after developing the branch code of the current version of the WeChat applet.
  • the information in the Git warehouse 310 used for the packaging operation of the WeChat applet mainly includes one or more branch codes updated in this version of the WeChat applet and the Hash table files of the corresponding branch codes, as well as the previous version.
  • One or more branch codes corresponding to the version of the WeChat applet and the Hash table file of the corresponding branch codes are included in the Git warehouse 310 used for the packaging operation of the WeChat applet .
  • one or more branch codes that have been updated in the previous version of the WeChat applet are recorded as the first branch code, and the Hash table file corresponding to or corresponding to the first branch code is recorded as the first Hash table file; And record one or more branch codes corresponding to the WeChat applet of this version as the second branch code, and record the Hash table file corresponding or corresponding to the second branch code as the second Hash table file.
  • the user can scan the WeChat QR code on the login interface of the client through the mobile terminal to log in to the WeChat applet packaging platform. After the user logs in to the WeChat applet packaging platform, he can choose to include the first branch code through the client. , the first Hash table file, the second branch code, and the first information including the second Hash table file, and send the first information to the service system 200 .
  • a communication layer 100 is arranged between the client and the service system 200, and the communication layer 100 is used to establish communication between the client and the service system 200.
  • the first information may be further sent to the service system 200 through the communication layer 100 , and the service system 200 obtains the first information through the receiving module 203 .
  • S200 Process the first information to generate Diff information.
  • the receiving module 203 after receiving the first information, the receiving module 203 further sends the first information to the Diff information generating module 204, and the Diff information generating module 204 processes the first information after receiving the first information, and then generates Diff information.
  • S200 includes the following steps:
  • the first information includes the first branch code and the first Hash table file corresponding to the first branch code, and the first information also includes the second branch code and the second Hash table file corresponding to the second branch code.
  • the Diff information generating module 204 reads the first Hash table file corresponding to the first branch code and the second Hash table file corresponding to the second branch code from the received first information.
  • both the first Hash table file and the second Hash table file include several files and a Hash value corresponding to each file one by one.
  • first Hash table file and the second Hash table file include several files and a Hash value corresponding to each file one by one.
  • the Diff information is: the file name of the file and the compiling type of the file compiled this time are "new".
  • the Diff information is: the file name of the file and the compiling type of this file is "delete”.
  • the Diff information is: the file name of the file and the compilation type of the current compilation of the file is "change".
  • the Diff information is: the file name of the file and the compiling type of the current compiling of the file is "no operation".
  • the Diff information generating module 204 finishes generating the Diff information, it further sends the generated Diff information to the Diff information processing module 305 .
  • S300 includes the following steps:
  • the Diff information processing module 305 acquires the Diff information sent by the Diff information generating module 204, and further reads the specific content of each Diff information.
  • the received Diff information is the file name of the file and the compilation type of the file compiled this time is "new"
  • the newly added file in the second Hash table file is copied and copied by file I/O to the corresponding position in the first Hash table file, thereby generating the third Hash table file.
  • the received Diff information is the file name of the file and the compiling type of the file compiled this time is "delete”
  • the received Diff information is the file name of the file and the compilation type of the file compiled this time is "change"
  • the file that has changed in the second Hash table file relative to the first Hash table file is copied through file I/O and copied to the corresponding position in the first Hash table file, thereby generating the fifth Hash table file.
  • the received Diff information is the file name of the file and the compilation type of the current compilation of the file is "no operation”, then no operation is performed on the first Hash table file.
  • the Diff information processing module 305 all imports the 3rd Hash table file, the 4th Hash table file and the 5th Hash table file into the preset file list to be compiled, generates the information to be compiled, and sends the information to be compiled to the compiling module 306 .
  • S400 includes the following steps:
  • the third Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 Import the third Hash table file into the preset list of files to be compiled.
  • the fourth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the fourth Hash table file.
  • the file is imported into the preset list of files to be compiled.
  • the fifth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the fifth Hash table file.
  • the file is imported into the preset list of files to be compiled.
  • the third Hash will be generated by the Diff information processing module 305 table file and the fourth Hash table file, and further, the Diff information processing module 305 imports the third Hash table file and the fourth Hash table file into the preset file list to be compiled.
  • the third Hash will be generated by the Diff information processing module 305 table file and the fifth Hash table file. Further, the Diff information processing module 305 imports the third Hash table file and the fifth Hash table file into the preset file list to be compiled.
  • the fourth Hash will be generated by the Diff information processing module 305 table file and the fifth Hash table file. Further, the Diff information processing module 305 imports the fourth Hash table file and the fifth Hash table file into the preset file list to be compiled.
  • the third Hash table file, the fourth Hash table file and the fifth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the third Hash table file, the fourth Hash table file and the fifth Hash table file Hash table files are imported into the preset list of files to be compiled.
  • the files imported into the list of files to be compiled by the Diff information processing module 305 are the information to be compiled.
  • the Diff information processing module 305 transmits the information to be compiled in the file list to be compiled to the compilation module 306, and the compilation module 306 obtains the information to be compiled.
  • the files copied and copied from the second Hash table file are compiled, and the compiled code covers the code at the corresponding position of the first branch code to generate the seventh branch code.
  • the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted, and the fifth Hash table is also deleted. Compile the file copied and copied from the second Hash table file in the file, and overwrite the code at the corresponding position of the first branch code with the compiled code to generate the eighth branch code.
  • the third Hash table file, the fourth Hash table file and the fifth Hash table file exist in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code At the same time, the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted, and at the same time, the file copied and copied from the second Hash table file in the fifth Hash table file is compiled, And the compiled code covers the code at the corresponding position of the first branch code to generate the ninth branch code.
  • the third branch code, the fourth branch code, the fifth branch code, the sixth branch code, the seventh branch code, the eighth branch code and the ninth branch code are all possible precompiled codes.
  • one of the third branch code, the fourth branch code, the fifth branch code, the sixth branch code, the seventh branch code, the eighth branch code and the ninth branch code is used as precompiled information, and the precompiled code will be further sent to the WeChat developer tool 330 .
  • the WeChat developer tool 330 receives the precompiled code sent by the compiling module 306. Then, debug the received precompiled code. Finally, integrate the debugged precompiled code into the code backbone of the WeChat Mini Program to generate the code package of the WeChat Mini Program.
  • the code package of the generated WeChat applet is further uploaded to the client or the WeChat platform, and a corresponding QR code of the development version is generated.
  • the user can experience the update by scanning the QR code of the development version using WeChat. Later WeChat Mini Programs.
  • an embodiment of the present application also provides a computer device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the above-mentioned Wechat applet packaging method steps.
  • the steps in the method for packaging a WeChat applet may be the steps in the method for packaging a WeChat applet in the above-mentioned embodiment.
  • an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program that can be loaded by a processor and execute the above-mentioned WeChat applet packaging method, the computer-readable storage medium
  • the medium includes, for example, various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.

Landscapes

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

Abstract

The present application relates to the field of computer software, and in particular to a WeChat mini program packaging platform and method, and a device and a storage medium. The platform comprises a service system and a file system, wherein the service system is used for acquiring first information and generating a pre-compiled code of a WeChat mini program according to the first information, and the file system is used for being called by the service system. The service system comprises a receiving module, a Diff information generation module, a Diff information processing module and a compiling module, and the file system comprises a WeChat developer tool, wherein the receiving module is used for receiving the first information; the Diff information generation module is used for processing the first information and generating Diff information; the Diff information processing module is used for processing the Diff information and generating information to be compiled; the compiling module is used for processing the information to be compiled and generating the pre-compiled code; and the WeChat developer tool is used for debugging the pre-compiled code and compiling a code packet of the WeChat mini program, so as to package the WeChat mini program. The present application has the effect of facilitating the improvement of the packaging efficiency of a WeChat mini program.

Description

一种微信小程序打包平台、方法、设备及存储介质A WeChat applet packaging platform, method, device and storage medium 技术领域technical field

本申请涉及计算机软件领域,尤其是涉及一种微信小程序打包平台、方法、设备及存储介质。The present application relates to the field of computer software, in particular to a WeChat applet packaging platform, method, device and storage medium.

背景技术Background technique

微信小程序是微信体系内的一种新的开放能力,开发者可以使用微信开发者工具快速地开发一个微信小程序并打包出相应的微信小程序代码包。WeChat Mini Program is a new open capability within the WeChat system. Developers can use the WeChat Developer Tools to quickly develop a WeChat Mini Program and package the corresponding WeChat Mini Program code package.

目前主要的微信小程序打包方法为开发人员本地打包方式:先通过网络I/O技术使客户端从服务系统获取微信小程序需更新的代码信息,然后主要依靠于本地的电脑配置对微信小程序进行打包。At present, the main method of packaging WeChat applets is the developer’s local packaging method: first, the client obtains the code information that the WeChat applet needs to update from the service system through network I/O technology, and then mainly relies on the local computer configuration to update the WeChat applet. to pack.

在实现本申请的过程中,发明人发现上述技术至少存在以下问题:使用开发人员本地打包方式,一方面由于网络I/O技术会产生较高的网络时延,另一方面由于在进行微信小程序的打包过程中需要占用本地电脑极高的CPU资源,导致打包过程中开发者难以进行其他的微信小程序打包操作,故而会比较影响微信小程序的打包效率,可见,现有技术中的微信小程序的打包效率较低。In the process of implementing this application, the inventor found that the above-mentioned technology has at least the following problems: using the developer’s local packaging method, on the one hand, the network I/O technology will generate a high network delay, and on the other hand, due to the WeChat small The program packaging process needs to occupy extremely high CPU resources of the local computer, which makes it difficult for developers to perform other WeChat mini-program packaging operations during the packaging process, so it will affect the packaging efficiency of WeChat mini-programs. It can be seen that WeChat in the prior art The packaging efficiency of applets is low.

发明内容Contents of the invention

为了便于提升微信小程序的打包效率,本申请提供一种微信小程序打包平台、方法、设备及存储介质。In order to facilitate the packaging efficiency of WeChat applets, the present application provides a WeChat applet packaging platform, method, device and storage medium.

第一方面,本申请提供一种微信小程序打包平台,采用如下的技术方案:In the first aspect, the application provides a WeChat applet packaging platform, which adopts the following technical solution:

一种微信小程序打包平台,包括服务系统和文件系统;A WeChat mini-program packaging platform, including a service system and a file system;

所述服务系统用于获取第一信息并依据所述第一信息生成所述微信小程序的预编译代码;所述文件系统用于供所述服务系统调用;所述服务系统包括接收模块、Diff信息生成模块、Diff信息处理模块以及编译模块;所述文件系统包括微信开发者工具;所述接收模块用于接收所述第一信息;所述Diff信息生成模块用于处理所述第一信息并生成相应的Diff信息;所述Diff信息处理模块用于处理所述Diff信息并生成相应的待编译信息;所述编译模块用于处理所述待编译信息并生成所述预编译代码;所述微信开发者工具用于调试所述预编译代码并编译出所述微信小程序的代码包,实现所述微信小程序的打包。The service system is used to obtain the first information and generate the precompiled code of the WeChat applet according to the first information; the file system is used for calling by the service system; the service system includes a receiving module, Diff Information generating module, Diff information processing module and compiling module; Described file system comprises micro-letter developer tool; Described receiving module is used for receiving described first information; Described Diff information generating module is used for processing described first information and Generate corresponding Diff information; the Diff information processing module is used to process the Diff information and generate corresponding information to be compiled; the compilation module is used to process the information to be compiled and generate the pre-compiled code; the WeChat The developer tool is used to debug the precompiled code and compile the code package of the WeChat applet, so as to realize the packaging of the WeChat applet.

通过采用上述技术方案,可使微信小程序打包的主要过程由服务系统及文件系统完成,这样不仅消除了网络I/O技术带来的网络时延,由于打包过程主要由服务系统及文件系统完成,则打包过程不会占用过多的客户端的CPU资源,从而可使用户能够使用客户端进行其他的微信小程序打包操作,如此便于提升微信小程序的打包效率。By adopting the above technical solution, the main process of packaging WeChat applets can be completed by the service system and file system, which not only eliminates the network delay caused by network I/O technology, because the packaging process is mainly completed by the service system and file system , the packaging process will not occupy too much CPU resources of the client, so that the user can use the client to perform other packaging operations of WeChat Mini Programs, which is convenient for improving the packaging efficiency of WeChat Mini Programs.

第二方面,本申请提供一种微信小程序打包方法,采用如下的技术方案:In the second aspect, the application provides a method for packaging WeChat applets, which adopts the following technical solution:

一种微信小程序打包方法,包括:A WeChat mini-program packaging method, comprising:

获取需进行打包的第一信息;对所述第一信息进行处理,生成Diff信息;对所述Diff信息进行处理,生成待编译信息;对所述待编译信息进行处理,生成预编译代码;对所述预编译代码进行调试,生成所述微信小程序的代码包,实现所述微信小程序的打包。Acquiring the first information that needs to be packaged; processing the first information to generate Diff information; processing the Diff information to generate information to be compiled; processing the information to be compiled to generate precompiled code; The pre-compiled code is debugged to generate the code package of the WeChat applet, so as to realize the packaging of the WeChat applet.

通过采用上述技术方案,可使微信小程序打包的主要过程由服务系统及文件系统完成,这样不仅消除了网络I/O技术带来的网络时延,由于打包过程主要由服务系统及文件系统完成,则打包过程不会占用过多的客户端的CPU资源,从而可使用户能够使用客户端进行其他的微信小程序打包操作,如此便于提升微信小程序的打包效率。By adopting the above technical solution, the main process of packaging WeChat applets can be completed by the service system and file system, which not only eliminates the network delay caused by network I/O technology, because the packaging process is mainly completed by the service system and file system , the packaging process will not occupy too much CPU resources of the client, so that the user can use the client to perform other packaging operations of WeChat Mini Programs, which is convenient for improving the packaging efficiency of WeChat Mini Programs.

第三方面,本申请提供一种计算机设备,其特征在于,包括存储器和处理器,所述存储器上存储有能够被处理器加载并执行如上述任一种微信小程序打包方法的计算机程序。In the third aspect, the present application provides a computer device, which is characterized in that it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute any of the above-mentioned WeChat applet packaging methods.

通过采用上述技术方案,可使微信小程序打包的主要过程由服务系统及文件系统完成,这样不仅消除了网络I/O技术带来的网络时延,由于打包过程主要由服务系统及文件系统完成,则打包过程不会占用过多的客户端的CPU资源,从而可使用户能够使用客户端进行其他的微信小程序打包操作,如此便于提升微信小程序的打包效率。By adopting the above technical solution, the main process of packaging WeChat applets can be completed by the service system and file system, which not only eliminates the network delay caused by network I/O technology, because the packaging process is mainly completed by the service system and file system , the packaging process will not occupy too much CPU resources of the client, so that the user can use the client to perform other packaging operations of WeChat Mini Programs, which is convenient for improving the packaging efficiency of WeChat Mini Programs.

第四方面,本申请提供一种计算机可读存储介质,其特征在于,存储有能够被处理器加载并执行如上述任一种微信小程序打包方法的计算机程序。In a fourth aspect, the present application provides a computer-readable storage medium, which is characterized in that it stores a computer program that can be loaded by a processor and execute any of the above-mentioned WeChat applet packaging methods.

通过采用上述技术方案,可使微信小程序打包的主要过程由服务系统完成及文件系统,这样不仅消除了网络I/O技术带来的网络时延,由于打包过程主要由服务系统及文件系统完成,则打包过程不会占用过多的客户端的CPU资源,从而可使用户能够使用客户端进行其他的微信小程序打包操作,如此便于提升微信小程序的打包效率。By adopting the above technical solution, the main process of packaging WeChat applets can be completed by the service system and the file system, which not only eliminates the network delay caused by network I/O technology, because the packaging process is mainly completed by the service system and file system , the packaging process will not occupy too much CPU resources of the client, so that the user can use the client to perform other packaging operations of WeChat Mini Programs, which is convenient for improving the packaging efficiency of WeChat Mini Programs.

综上所述,本申请包括以下至少一种有益技术效果:In summary, the present application includes at least one of the following beneficial technical effects:

1.本申请方案在执行的过程中可使微信小程序的主要打包过程由服务系统及文件系统完成,而客户端主要起控制服务进行微信小程序打包的作用,如此可便于减少现有技术中客户端和服务系统之间采用网络I/O技术进行打包所带来的网络时延,此外由于微信小程序不再占用较多的客户端的CPU资源,故而开发者可通过客户端在服务系统及文件系统进行打包操作的同时进行其他的微信小程序打包操作,从而便于提升微信小程序的打包效率。1. During the implementation of this application scheme, the main packaging process of the WeChat applet can be completed by the service system and the file system, and the client mainly plays the role of controlling the service to package the WeChat applet, which can facilitate the reduction of existing technology. The network delay caused by using network I/O technology for packaging between the client and the service system. In addition, because the WeChat applet no longer occupies more CPU resources of the client, developers can use the client to communicate between the service system and the server system. While the file system is performing packaging operations, other WeChat applet packaging operations are performed at the same time, so as to improve the packaging efficiency of WeChat applets.

2.由于用户空间中可以独自存储不同用户的微信小程序信息,故而便于同步且独立进行不同版本微信小程序的打包操作,解决了不同版本微信小程序相互覆盖的问题,从而提升了微信小程序的打包效率。2. Since the user space can independently store the WeChat applet information of different users, it is convenient to synchronize and independently package different versions of WeChat applets, which solves the problem of mutual coverage of different versions of WeChat applets, thus improving the WeChat applet. packaging efficiency.

3.通过微信小程序打包平台中的定时任务模块和WebHooks模块便于实现及时同步更新代码空间中的第二分支代码,从而有利于提升微信小程序的打包效率。3. Through the timed task module and WebHooks module in the WeChat applet packaging platform, it is convenient to realize timely synchronous update of the second branch code in the code space, which is conducive to improving the packaging efficiency of WeChat applets.

附图说明Description of drawings

图1是本申请实施例中使用微信小程序打包平台打包微信小程序的结构框图;图2是本申请实施例中一种微信小程序打包方法的方法流程图。Fig. 1 is a structural block diagram of using the WeChat applet packaging platform to package WeChat applets in the embodiment of the application; Fig. 2 is a method flow chart of a method for packaging WeChat applets in the embodiment of the application.

附图标记说明:100、通信层;200、服务系统;201、定时任务模块;202、WebHooks模块;203、接收模块;204、Diff信息生成模块;205、Diff信息处理模块;206、编译模块;300、文件系统;310、Git仓库;311、用户空间;312、代码空间;320、缓存空间;330、微信开发者工具。Description of reference numerals: 100, communication layer; 200, service system; 201, timing task module; 202, WebHooks module; 203, receiving module; 204, Diff information generating module; 205, Diff information processing module; 206, compiling module; 300, file system; 310, Git warehouse; 311, user space; 312, code space; 320, cache space; 330, WeChat developer tool.

具体实施方式Detailed ways

以下结合附图对本申请作进一步详细说明。The application will be described in further detail below in conjunction with the accompanying drawings.

一个微信小程序的源代码包括其若干分支的源代码,随着微信小程序版本的更迭,该微信小程序一个或若干个分支的源代码会有相应的更新,比如和上一版本相应的分支源代码相比,可能会出现源代码的增加、修改以及删除。然后,需要将更新后的分支代码进行自动化测试,并将自动化测试成功的分支代码重新集成到原来微信小程序源代码的主干上去,并将原来的分支代码覆盖掉,由此生成微信小程序的预编译代码,接着通过微信开发者工具对预编译代码进行调试与最终编译,然后可生成微信小程序的代码包。The source code of a WeChat applet includes the source code of several branches. As the version of the WeChat applet changes, the source code of one or several branches of the WeChat applet will be updated accordingly, such as the branch corresponding to the previous version. Source code additions, modifications, and deletions may occur as compared to the source code. Then, it is necessary to perform automated testing on the updated branch code, reintegrate the successful branch code into the main source code of the original WeChat applet, and overwrite the original branch code, thereby generating the WeChat applet Precompile the code, and then use the WeChat developer tool to debug and finally compile the precompiled code, and then generate the code package of the WeChat applet.

本申请实施例公开一种微信小程序打包平台。参照图1,微信小程序打包平台包括通信层100、服务系统200以及文件系统300。The embodiment of the present application discloses a WeChat mini-program packaging platform. Referring to FIG. 1 , the WeChat applet packaging platform includes a communication layer 100 , a service system 200 and a file system 300 .

若要使用上述微信小程序打包平台,需要用户先通过客户端登录到该微信小程序打包平台,具体的:To use the above-mentioned WeChat mini-program packaging platform, users need to log in to the WeChat mini-program packaging platform through the client first, specifically:

用户通过客户端上的浏览器打开该微信小程序打包平台的登录界面,登录界面上有平台登录二维码,用户通过微信扫描该平台登录二维码可登录该微信小程序打包平台。The user opens the login interface of the WeChat mini-program packaging platform through the browser on the client. There is a platform login QR code on the login interface. The user scans the platform login QR code through WeChat to log in to the WeChat mini-program packaging platform.

用户登录该微信小程序打包平台后,可通过客户端向服务系统200发送微信小程序打包信息,微信小程序打包信息的发送需要依托于客户端和服务系统200的之间的通信链接,而客户端和服务系统200的之间的通信链接由通信层100来实现,优选的,客户端和服务系统200之间的通信链接使用的通信协议包括WebSocket协议以及Http协议。After the user logs in to the WeChat applet packaging platform, he can send the WeChat applet packaging information to the service system 200 through the client. The sending of the WeChat applet packaging information depends on the communication link between the client and the service system 200, and the customer The communication link between the client and the service system 200 is implemented by the communication layer 100. Preferably, the communication protocol used for the communication link between the client and the service system 200 includes the WebSocket protocol and the Http protocol.

客户端还用于选择需要进行打包的Git仓库310和微信小程序的分支信息,将需要进行打包的Git仓库310和微信小程序的分支信息记为第一信息, 客户端进一步将上述第一信息发送至服务系统200。The client is also used to select the branch information of the Git warehouse 310 and the WeChat applet that need to be packaged, and record the branch information of the Git warehouse 310 and the WeChat applet that need to be packaged as the first information, and the client further records the above first information sent to the service system 200.

服务系统200用于接收客户端发出的微信小程序打包信息执行对微信小程序打包操作。The service system 200 is used to receive the WeChat applet packaging information sent by the client and execute the packaging operation of the WeChat applet.

文件系统300用于在服务系统200对微信小程序进行打包操作时供服务系统200调用。The file system 300 is used for invoking by the service system 200 when the service system 200 packages the WeChat applet.

服务系统200包括:定时任务模块301、WebHooks模块302、接收模块203、文件I/O、Diff信息生成模块204、Diff信息处理模块305以及编译模块306。文件系统300包括:Git仓库310、用户空间311、代码空间312、缓存空间320以及微信开发者工具330。The service system 200 includes: a scheduled task module 301 , a WebHooks module 302 , a receiving module 203 , a file I/O, a Diff information generating module 204 , a Diff information processing module 305 and a compiling module 306 . The file system 300 includes: a Git repository 310 , a user space 311 , a code space 312 , a cache space 320 and a WeChat developer tool 330 .

每个微信小程序均包含若干分支信息,举例来说,一个关于旅游的微信小程序可能会有包括酒店、火车票以及导游在内的若干分支信息,这些分支信息均存储于Git仓库310中。在微信小程序的版本更新中,当与酒店相关的分支信息发生更新,用户可登录微信小程序打包平台,选择与存储分支信息相关的Git仓库310,以及Git仓库310中与酒店相关且发生更新的分支信息。分支信息包括与酒店相关的每个版本的代码以及每个版本代码对应的Hash表文件。Each WeChat mini-program includes several branch information. For example, a WeChat mini-program about tourism may have several branch information including hotels, train tickets and tour guides. These branch information are all stored in the Git warehouse 310 . In the version update of the WeChat applet, when the branch information related to the hotel is updated, the user can log in to the WeChat applet packaging platform, select the Git warehouse 310 related to the storage branch information, and the hotel-related and updated Git warehouse 310 branch information. The branch information includes the code of each version related to the hotel and the Hash table file corresponding to each version code.

当开发者完成当前版本微信小程序的分支代码的开发后,需要将开发完成的当前版本微信小程序的分支代码写入Git仓库310中,这样Git仓库310中存储有一个微信小程序每个版本的每个分支的代码。Git仓库310类似于一个云端代码库,为了保证Git仓库310和服务系统本地的微信小程序代码的一致性,需要将Git仓库310中写入的当前版本微信小程序的分支代码同步到服务系统本地的缓存空间320中。After the developer completes the development of the branch code of the current version of the WeChat Mini Program, he needs to write the developed branch code of the current version of the WeChat Mini Program into the Git warehouse 310, so that each version of the WeChat Mini Program is stored in the Git warehouse 310 The code for each branch of . The Git warehouse 310 is similar to a cloud code base. In order to ensure the consistency of the Git warehouse 310 and the local WeChat applet code of the service system, it is necessary to synchronize the branch code of the current version of the WeChat applet written in the Git warehouse 310 to the local service system. in the cache space 320.

Git仓库310可划分为用户空间311和代码空间312。Git repository 310 can be divided into user space 311 and code space 312 .

用户空间311用于分别独立存储每个用户开发的微信小程序的分支代码,将微信小程序的分支代码记为第一分支代码,用户空间311还用于分别独立存储与第一分支代码对应的第一Hash表文件,第一Hash表文件由第一分支代码通过Hash算法进行运算得到,第一Hash表文件包括与第一分支代码对应的若干文件,以及每个文件通过Hash算法计算得到的第一Hash值。代码空间312用于存储从缓存空间320复制过来且完成更新的分支代码,将从缓存空间320复制过来且完成更新的分支代码记为第二分支代码,代码空间312还用于存储与第二分支代码对应的第二Hash表文件,第二Hash表文件由第二分支代码通过Hash算法进行运算得到,第二Hash表文件包括与第二分支代码对应的若干文件,以及每个文件通过Hash算法计算得到的第二Hash值。The user space 311 is used to independently store the branch codes of the WeChat applets developed by each user, and record the branch codes of the WeChat applets as the first branch codes. The user space 311 is also used to independently store the branch codes corresponding to the first branch codes. The first Hash table file, the first Hash table file is calculated by the first branch code through the Hash algorithm, the first Hash table file includes some files corresponding to the first branch code, and the first Hash table file calculated by the Hash algorithm for each file A Hash value. The code space 312 is used to store the branch code copied from the cache space 320 and updated, and the branch code copied from the cache space 320 and updated is recorded as the second branch code, and the code space 312 is also used to store and update the branch code. The second Hash table file corresponding to the code, the second Hash table file is obtained by the operation of the second branch code through the Hash algorithm, the second Hash table file includes several files corresponding to the second branch code, and each file is calculated by the Hash algorithm The obtained second Hash value.

将Git仓库310中写入的当前版本微信小程序的分支代码同步到服务系统本地的缓存空间320中有两种同步方式:There are two synchronization methods for synchronizing the branch code of the current version of the WeChat applet written in the Git warehouse 310 to the local cache space 320 of the service system:

可选的,第一种为主动式同步,通过定时任务模块301进行主动同步,具体的:预设更新时间间隔和时间范围,每隔更新时间间隔通过定时任务模块301判断时间范围内的Git仓库310中微信小程序的当前各分支代码是否发生更新,并将发生更新的微信小程序的分支代码更新到缓存空间320中,即将缓存空间320中相应的分支代码更新为Git仓库310中对应的发生更新的分支代码。Optionally, the first type is active synchronization, which is performed through the timing task module 301. Specifically: the update time interval and time range are preset, and the timing task module 301 is used to determine the Git warehouse within the time range every update time interval Whether the current branch codes of the WeChat applets in 310 are updated, and update the branch codes of the updated WeChat applets to the cache space 320, that is, update the corresponding branch codes in the cache space 320 to the corresponding branch codes in the Git warehouse 310 Updated branch code.

举例来说,预设的更新时间间隔为30分钟,预设的时间范围为30天。采用主动式同步方式,则需要每隔30分钟过定时任务模块301判断30天 内Git仓库310中微信小程序的当前各分支代码是否发生更新,并将发生更新的微信小程序的分支代码更新到缓存空间320中。For example, the default update time interval is 30 minutes, and the default time range is 30 days. If the active synchronization method is used, the scheduled task module 301 needs to judge whether the current branch codes of the WeChat applets in the Git warehouse 310 have been updated within 30 days every 30 minutes, and update the branch codes of the updated WeChat applets to the cache In space 320.

可选的,第二种为被动式同步,通过WebHooks模块302进行被动同步,具体的:WebHooks模块302的工作模式为触发式,触发条件为开发者向Git仓库提交新的微信小程序的分支代码。当开发者向Git仓库提交新的微信小程序的分支代码,WebHooks模块302受到触发后开始工作,将缓存空间320中与开发者提交的分支代码相对应的分支代码更新为开发者提交的分支代码。Optionally, the second type is passive synchronization. Passive synchronization is performed through the WebHooks module 302. Specifically: the working mode of the WebHooks module 302 is triggered, and the trigger condition is that the developer submits the branch code of a new WeChat applet to the Git warehouse. When the developer submits the branch code of the new WeChat applet to the Git warehouse, the WebHooks module 302 starts to work after being triggered, and updates the branch code corresponding to the branch code submitted by the developer in the cache space 320 to the branch code submitted by the developer .

通过上述任一种同步方式均可将Git仓库310中写入的当前版本微信小程序的分支代码同步到服务系统本地的缓存空间320中。进一步,还需要将缓存空间320中完成更新的分支代码通过文件I/O复制到代码空间312中,文件I/O用于进行服务系统200内文件的复制、粘贴、覆盖以及删除等操作。The branch code of the current version of the WeChat applet written in the Git repository 310 can be synchronized to the local cache space 320 of the service system through any of the above synchronization methods. Further, it is also necessary to copy the updated branch code in the cache space 320 to the code space 312 through file I/O, and the file I/O is used for operations such as copying, pasting, overwriting and deleting files in the service system 200 .

用户通过客户端登录到微信小程序打包平台后,可进一步通过客户端选择Git仓库310的Git仓库信息以及Git仓库310中发生更新的微信小程序分支信息,将Git仓库信息以及Git仓库310中发生更新的微信小程序分支信息记为第一信息。进一步,客户端用于通过通信层100将第一信息发送至服务系统200。After the user logs in to the WeChat applet packaging platform through the client, he can further select the Git warehouse information of the Git warehouse 310 and the updated WeChat applet branch information in the Git warehouse 310 through the client, and upload the Git warehouse information and the branch information of the Git warehouse 310. The updated WeChat applet branch information is recorded as the first information. Further, the client is configured to send the first information to the service system 200 through the communication layer 100 .

服务系统200中的接收模块203用于接收客户端发来的第一信息,并将第一信息发送至Diff信息生成模块204。The receiving module 203 in the service system 200 is configured to receive the first information sent by the client, and send the first information to the Diff information generating module 204 .

Diff信息生成模块204用于处理第一信息,具体的:The Diff information generation module 204 is used to process the first information, specifically:

先读取用户空间311中的第一Hash表文件和代码空间312中对应的第 二Hash表文件,然后对第一Hash表文件和第二Hash表文件进行比较,得到Diff信息,并进一步将Diff信息发送至Diff信息处理模块305。First read the first Hash table file in the user space 311 and the corresponding second Hash table file in the code space 312, then compare the first Hash table file and the second Hash table file to obtain Diff information, and further Diff The information is sent to the Diff information processing module 305 .

若某个文件在第二Hash表文件存在,但在第一Hash表文件中不存在,则Diff信息为:该文件的文件名以及该文件本次编译的编译类型为“新增”。If a certain file exists in the second Hash table file but does not exist in the first Hash table file, the Diff information is: the file name of the file and the compiling type of the file compiled this time are "new".

若某个文件在第二Hash表文件不存在,但在第一Hash表文件中存在,则Diff信息为:该文件的文件名以及该文件本次编译的编译类型为“删除”。If a certain file does not exist in the second Hash table file but exists in the first Hash table file, the Diff information is: the file name of the file and the compiling type of this file is "delete".

若某个文件在第二Hash表文件存在,在第一Hash表文件中也存在,但该文件在第二Hash表文件中对应的第二Hash值与该文件在第一Hash表文件中对应的第一Hash值不同,则Diff信息为:该文件的文件名以及该文件本次编译的编译类型为“变化”。If a certain file exists in the second Hash table file, it also exists in the first Hash table file, but the corresponding second Hash value of the file in the second Hash table file is the same as that of the file in the first Hash table file. If the first Hash values are different, the Diff information is: the file name of the file and the compilation type of the current compilation of the file is "change".

若某个文件在第二Hash表文件存在,在第一Hash表文件中也存在,且该文件在第二Hash表文件中对应的第二Hash值与该文件在第一Hash表文件中对应的第一Hash值相同,则Diff信息为:该文件的文件名以及该文件本次编译的编译类型为“不操作”。If a certain file exists in the second Hash table file, it also exists in the first Hash table file, and the corresponding second Hash value of the file in the second Hash table file is the same as that of the file in the first Hash table file. If the first Hash values are the same, the Diff information is: the file name of the file and the compilation type of the current compilation of the file is "no operation".

Diff信息处理模块305用于处理上述Diff信息并生成相应的待编译信息,具体的:The Diff information processing module 305 is used to process the above-mentioned Diff information and generate corresponding information to be compiled, specifically:

Diff信息处理模块305先接收来自Diff信息生成模块204发送的Diff信息;The Diff information processing module 305 first receives the Diff information sent from the Diff information generation module 204;

若接收的Diff信息为该文件的文件名以及该文件本次编译的编译类型为“新增”,则通过文件I/O将第二Hash表文件中新增的文件复制并拷贝到第一Hash表文件中相应的位置上,由此生成第三Hash表文件。If the received Diff information is the file name of the file and the compiling type of this file is "new", then the newly added file in the second Hash table file is copied and copied to the first Hash through file I/O. corresponding position in the table file, thereby generating the third Hash table file.

若接收的Diff信息为该文件的文件名以及该文件本次编译的编译类型 为“删除”,则通过文件I/O将第一Hash表文件中相对于第二Hash表文件多出的文件删除,由此生成第四Hash表文件。If the received Diff information is the file name of the file and the compiling type of the file compiled this time is "delete", delete the extra files in the first Hash table file relative to the second Hash table file through file I/O , thereby generating the fourth Hash table file.

若接收的Diff信息为该文件的文件名以及该文件本次编译的编译类型为“变化”,则通过文件I/O将第二Hash表文件中相对于第一Hash表文件发生变化的文件复制并拷贝到第一Hash表文件中相应的位置上,由此生成第五Hash表文件。If the received Diff information is the file name of the file and the compiling type of the file compiled this time is "change", copy the files that have changed in the second Hash table file relative to the first Hash table file through file I/O and copied to the corresponding position in the first Hash table file, thereby generating the fifth Hash table file.

若接收的Diff信息为该文件的文件名以及该文件本次编译的编译类型为“不操作”,则不对第一Hash表文件进行操作。If the received Diff information is the file name of the file and the compilation type of the current compilation of the file is "no operation", then no operation is performed on the first Hash table file.

Diff信息处理模块305可将生成的第三Hash表文件、第四Hash表文件以及第五Hash表文件导入到预设的待编译文件列表中,生成待编译信息,并将待编译信息发送至编译模块306。The Diff information processing module 305 can import the generated third Hash table file, the fourth Hash table file and the fifth Hash table file into the preset file list to be compiled, generate information to be compiled, and send the information to be compiled to the compiler Module 306.

在实施中,一个微信小程序的分支代码在更新后,若存在部分新增进第一分支代码的代码,则通过Diff信息处理模块305会生成第三Hash表文件,进一步,Diff信息处理模块305将第三Hash表文件导入到预设的待编译文件列表中,第三Hash表文件即为待编译信息。In implementation, after the branch code of a WeChat applet is updated, if there is some code newly added to the first branch code, the third Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 Import the third Hash table file into the preset file list to be compiled, and the third Hash table file is the information to be compiled.

一个微信小程序的分支代码在更新后,若第一分支代码中的部分代码被删除,则通过Diff信息处理模块305会生成第四Hash表文件,进一步,Diff信息处理模块305将第四Hash表文件导入到预设的待编译文件列表中,第四Hash表文件即为待编译信息。After the branch code of a WeChat applet is updated, if part of the code in the first branch code is deleted, the fourth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the fourth Hash table file. The file is imported into the preset list of files to be compiled, and the fourth Hash table file is the information to be compiled.

一个微信小程序的分支代码在更新后,若第一分支代码中的部分代码发生变化,则通过Diff信息处理模块305会生成第五Hash表文件,进一步,Diff信息处理模块305将第五Hash表文件导入到预设的待编译文件列表中, 第五Hash表文件即为待编译信息。After the branch code of a WeChat applet is updated, if part of the code in the first branch code changes, the fifth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the fifth Hash table file. The file is imported into the preset list of files to be compiled, and the fifth Hash table file is the information to be compiled.

一个微信小程序的分支代码在更新后,若既存在部分新增进第一分支代码的代码,还存在第一分支代码中的部分代码被删除,则通过Diff信息处理模块305会生成第三Hash表文件和第四Hash表文件,进一步,Diff信息处理模块305将第三Hash表文件和第四Hash表文件导入到预设的待编译文件列表中,第三Hash表文件和第四Hash表文件即为待编译信息。After the branch code of a WeChat applet is updated, if there are some codes newly added to the first branch code, and some codes in the first branch code are deleted, then the third Hash will be generated by the Diff information processing module 305 Table file and the 4th Hash table file, further, Diff information processing module 305 imports the 3rd Hash table file and the 4th Hash table file in the preset file list to be compiled, the 3rd Hash table file and the 4th Hash table file That is, the information to be compiled.

一个微信小程序的分支代码在更新后,若既存在部分新增进第一分支代码的代码,还存在第一分支代码中的部分代码发生变化,则通过Diff信息处理模块305会生成第三Hash表文件和第五Hash表文件,进一步,Diff信息处理模块305将第三Hash表文件和第五Hash表文件导入到预设的待编译文件列表中,第三Hash表文件和第五Hash表文件即为待编译信息。After the branch code of a WeChat applet is updated, if there are some codes newly added to the first branch code, and some codes in the first branch code are changed, the third Hash will be generated by the Diff information processing module 305 table file and the fifth Hash table file, further, the Diff information processing module 305 imports the third Hash table file and the fifth Hash table file into the preset list of files to be compiled, the third Hash table file and the fifth Hash table file That is, the information to be compiled.

一个微信小程序的分支代码在更新后,若既存在第一分支代码中的部分代码被删除,还存在第一分支代码中的部分代码发生变化,则通过Diff信息处理模块305会生成第四Hash表文件和第五Hash表文件,进一步,Diff信息处理模块305将第四Hash表文件和第五Hash表文件导入到预设的待编译文件列表中,第四Hash表文件和第五Hash表文件即为待编译信息。After the branch code of a WeChat applet is updated, if some codes in the first branch code are deleted, and some codes in the first branch code are changed, the fourth Hash will be generated by the Diff information processing module 305 table file and the fifth Hash table file, further, the Diff information processing module 305 imports the fourth Hash table file and the fifth Hash table file into the preset file list to be compiled, the fourth Hash table file and the fifth Hash table file That is, the information to be compiled.

一个微信小程序的分支代码在更新后,若既存在部分新增进第一分支代码的代码,又存在第一分支代码中的部分代码被删除,还存在第一分支代码中的部分代码发生变化,则通过Diff信息处理模块305会生成第三Hash表文件、第四Hash表文件以及第五Hash表文件,进一步,Diff信息处理模块305将第三Hash表文件、第四Hash表文件以及第五Hash表文件导入 到预设的待编译文件列表中,第三Hash表文件、第四Hash表文件以及第五Hash表文件即为待编译信息。After the branch code of a WeChat applet is updated, if there are some codes newly added to the first branch code, some codes in the first branch code are deleted, and some codes in the first branch code are changed , then the third Hash table file, the fourth Hash table file and the fifth Hash table file will be generated by the Diff information processing module 305, further, the Diff information processing module 305 will generate the third Hash table file, the fourth Hash table file and the fifth Hash table file The Hash table file is imported into the preset file list to be compiled, and the third Hash table file, the fourth Hash table file and the fifth Hash table file are the information to be compiled.

编译模块306用于处理待编译信息并生成微信小程序的预编译代码,具体的:The compilation module 306 is used to process the information to be compiled and generate the precompiled code of the WeChat applet, specifically:

编译模块306接收Diff信息处理模块305发送的待编译信息;The compilation module 306 receives the information to be compiled sent by the Diff information processing module 305;

若待编译信息中存在第三Hash表文件,则编译第三Hash表文件中新增的文件,并将编译后的代码集成到第一分支代码上,生成第三分支代码;If there is a third Hash table file in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code to generate the third branch code;

若待编译信息中存在第四Hash表文件,则将第一Hash表文件中删除的文件对应的第一分支代码中的代码进行删除,生成第四分支代码;If there is the fourth Hash table file in the information to be compiled, then the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted to generate the fourth branch code;

若待编译信息中存在第五Hash表文件,则对第五Hash表文件中从第二Hash表文件复制并拷贝过来的文件进行编译,并将编译后的代码覆盖第一分支代码相应位置上的代码,生成第五分支代码。If there is the 5th Hash table file in the information to be compiled, then the file copied and copied from the second Hash table file in the 5th Hash table file is compiled, and the code after compiling is overwritten on the corresponding position of the first branch code code to generate the fifth branch code.

若待编译信息中既存在第三Hash表文件还存在第四Hash表文件,则编译第三Hash表文件中新增的文件,并将编译后的代码集成到第一分支代码上,同时还将第一Hash表文件中删除的文件对应的第一分支代码中的代码进行删除,生成第六分支代码。If there is not only the third Hash table file but also the fourth Hash table file in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code, and simultaneously The code in the first branch code corresponding to the file deleted in the first Hash table file is deleted to generate the sixth branch code.

若待编译信息中既存在第三Hash表文件还存在第五Hash表文件,则编译第三Hash表文件中新增的文件,并将编译后的代码集成到第一分支代码上,同时还对第五Hash表文件中从第二Hash表文件复制并拷贝过来的文件进行编译,并将编译后的代码覆盖第一分支代码相应位置上的代码,生成第七分支代码。If there is not only the third Hash table file but also the fifth Hash table file in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code. In the fifth Hash table file, the files copied and copied from the second Hash table file are compiled, and the compiled code covers the code at the corresponding position of the first branch code to generate the seventh branch code.

若待编译信息中既存在第四Hash表文件还存在第五Hash表文件,则 将第一Hash表文件中删除的文件对应的第一分支代码中的代码进行删除,同时还对第五Hash表文件中从第二Hash表文件复制并拷贝过来的文件进行编译,并将编译后的代码覆盖第一分支代码相应位置上的代码,生成第八分支代码。If there is not only the fourth Hash table file but also the fifth Hash table file in the information to be compiled, the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted, and the fifth Hash table is also deleted. Compile the file copied and copied from the second Hash table file in the file, and overwrite the code at the corresponding position of the first branch code with the compiled code to generate the eighth branch code.

若待编译信息中同时存在第三Hash表文件、第四Hash表文件以及第五Hash表文件,则编译第三Hash表文件中新增的文件,并将编译后的代码集成到第一分支代码上,同时还将第一Hash表文件中删除的文件对应的第一分支代码中的代码进行删除,同时又对第五Hash表文件中从第二Hash表文件复制并拷贝过来的文件进行编译,并将编译后的代码覆盖第一分支代码相应位置上的代码,生成第九分支代码。If the third Hash table file, the fourth Hash table file and the fifth Hash table file exist in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code At the same time, the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted, and at the same time, the file copied and copied from the second Hash table file in the fifth Hash table file is compiled, And the compiled code covers the code at the corresponding position of the first branch code to generate the ninth branch code.

将第三分支代码、第四分支代码、第五分支代码记、第六分支代码、第七分支代码、第八分支代码以及第九分支代码均为可能的预编译代码。The third branch code, the fourth branch code, the fifth branch code, the sixth branch code, the seventh branch code, the eighth branch code and the ninth branch code are all possible precompiled codes.

在实施中,根据待编译信息的具体内容将第三分支代码、第四分支代码、第五分支代码记、第六分支代码、第七分支代码、第八分支代码以及第九分支代码中的一个分支代码作为预编译信息,将进一步将预编译代码发送至微信开发者工具330。In implementation, according to the specific content of the information to be compiled, one of the third branch code, the fourth branch code, the fifth branch code, the sixth branch code, the seventh branch code, the eighth branch code and the ninth branch code The branch code is used as precompiled information, and the precompiled code will be further sent to the WeChat developer tool 330 .

微信开发者工具330用于调试预编译代码并编译出微信小程序的代码包,具体的:WeChat developer tools 330 are used to debug precompiled codes and compile code packages of WeChat applets, specifically:

微信开发者工具330先接收编译模块306发送的预编译代码;对接收的预编译代码进行调试;将通过调试的预编译代码集成到微信小程序的代码主干上,生成微信小程序的代码包。The WeChat developer tool 330 first receives the precompiled code sent by the compilation module 306; debugs the received precompiled code; integrates the debugged precompiled code into the code trunk of the WeChat applet, and generates a code package of the WeChat applet.

基于同样的发明构思,本申请实施例还公开一种微信小程序打包方法, 参照图2,包括以下步骤:Based on the same inventive concept, the embodiment of the present application also discloses a WeChat applet packaging method, referring to Fig. 2, including the following steps:

S100、获取需进行打包的第一信息。S100. Obtain first information to be packaged.

第一信息包括需要进行打包的Git仓库310信息以及该Git仓库310中存储的微信小程序分支的信息。需要说明的是,Git仓库310中存储有一个微信小程序每个版本的各个分支的代码以及各个分支代码对应的Hash表文件。在实施中,若一个微信小程序需要进行版本的更迭,则开发者开发完本次版本微信小程序的分支代码后,会将开发完的分支代码上传至对应的Git仓库310中。The first information includes the information of the Git warehouse 310 that needs to be packaged and the information of the WeChat applet branch stored in the Git warehouse 310 . It should be noted that the codes of each branch of each version of a WeChat applet and the hash table files corresponding to each branch code are stored in the Git repository 310 . In implementation, if a WeChat applet needs to be updated in version, the developer will upload the developed branch code to the corresponding Git warehouse 310 after developing the branch code of the current version of the WeChat applet.

具体的,进行微信小程序的打包操作所使用到的Git仓库310中的信息主要包括本次版本微信小程序有更新的一个或多个分支代码以及相应分支代码的Hash表文件,还包括上一版本微信小程序对应的一个或多个分支代码以及相应分支代码的Hash表文件。为了便于表述,且将上一版本微信小程序有更新的一个或多个分支代码记为第一分支代码,将与第一分支代码对应或者说对应的Hash表文件记为第一Hash表文件;并将本次版本微信小程序对应的一个或多个分支代码记为第二分支代码,将与第二分支代码对应或者说对应的Hash表文件记为第二Hash表文件。Specifically, the information in the Git warehouse 310 used for the packaging operation of the WeChat applet mainly includes one or more branch codes updated in this version of the WeChat applet and the Hash table files of the corresponding branch codes, as well as the previous version. One or more branch codes corresponding to the version of the WeChat applet and the Hash table file of the corresponding branch codes. For the convenience of expression, one or more branch codes that have been updated in the previous version of the WeChat applet are recorded as the first branch code, and the Hash table file corresponding to or corresponding to the first branch code is recorded as the first Hash table file; And record one or more branch codes corresponding to the WeChat applet of this version as the second branch code, and record the Hash table file corresponding or corresponding to the second branch code as the second Hash table file.

在实施中,用户可通过移动端扫描客户端登录界面上的微信二维码,从而登录至登录微信小程序打包平台,用户登录微信小程序打包平台后,可通过客户端选择包括第一分支代码、第一Hash表文件、第二分支代码以及第二Hash表文件在内的第一信息,且将上述第一信息发送至服务系统200。In the implementation, the user can scan the WeChat QR code on the login interface of the client through the mobile terminal to log in to the WeChat applet packaging platform. After the user logs in to the WeChat applet packaging platform, he can choose to include the first branch code through the client. , the first Hash table file, the second branch code, and the first information including the second Hash table file, and send the first information to the service system 200 .

客户端和服务系统200之间设置有通信层100,通信层100用于建立 客户端和服务系统200之间的通信。A communication layer 100 is arranged between the client and the service system 200, and the communication layer 100 is used to establish communication between the client and the service system 200.

在实施中,当用户使用客户端选择好第一信息后,可进一步通过通信层100将第一信息发送至服务系统200,服务系统200通过接收模块203获取第一信息。In implementation, after the user selects the first information by using the client, the first information may be further sent to the service system 200 through the communication layer 100 , and the service system 200 obtains the first information through the receiving module 203 .

S200、对第一信息进行处理,生成Diff信息。S200. Process the first information to generate Diff information.

在实施中,接收模块203接收到第一信息后进一步将第一信息发送至Diff信息生成模块204,Diff信息生成模块204接收第一信息后对第一信息进行处理,然后生成Diff信息。In implementation, after receiving the first information, the receiving module 203 further sends the first information to the Diff information generating module 204, and the Diff information generating module 204 processes the first information after receiving the first information, and then generates Diff information.

S200包括以下步骤:S200 includes the following steps:

S201、获取第一Hash表文件和第二Hash表文件。S201. Obtain a first Hash table file and a second Hash table file.

第一信息中包括第一分支代码以及与第一分支代码相对应的第一Hash表文件,第一信息中还包括第二分支代码以及与第二分支代码相对应的第二Hash表文件。The first information includes the first branch code and the first Hash table file corresponding to the first branch code, and the first information also includes the second branch code and the second Hash table file corresponding to the second branch code.

Diff信息生成模块204从接收到的第一信息中读取与第一分支代码相对应的第一Hash表文件以及与第二分支代码相对应的第二Hash表文件。The Diff information generating module 204 reads the first Hash table file corresponding to the first branch code and the second Hash table file corresponding to the second branch code from the received first information.

S202、比较第一Hash表文件和第二Hash表文件,得到Diff信息。S202. Compare the first Hash table file and the second Hash table file to obtain Diff information.

具体的,第一Hash表文件和第二Hash表文件均包括若干文件以及与每个文件一一对应的Hash值。在比较中:Specifically, both the first Hash table file and the second Hash table file include several files and a Hash value corresponding to each file one by one. In comparison:

若某个文件在第二Hash表文件存在,但在第一Hash表文件中不存在,则Diff信息为:该文件的文件名以及该文件本次编译的编译类型为“新增”。If a certain file exists in the second Hash table file but does not exist in the first Hash table file, the Diff information is: the file name of the file and the compiling type of the file compiled this time are "new".

若某个文件在第二Hash表文件不存在,但在第一Hash表文件中存在,则Diff信息为:该文件的文件名以及该文件本次编译的编译类型为“删除”。If a certain file does not exist in the second Hash table file but exists in the first Hash table file, the Diff information is: the file name of the file and the compiling type of this file is "delete".

若某个文件在第二Hash表文件存在,在第一Hash表文件中也存在,但该文件在第二Hash表文件中对应的Hash值与该文件在第一Hash表文件中对应的Hash值不同,则Diff信息为:该文件的文件名以及该文件本次编译的编译类型为“变化”。If a file exists in the second Hash table file, it also exists in the first Hash table file, but the Hash value corresponding to the file in the second Hash table file is the same as the corresponding Hash value of the file in the first Hash table file different, the Diff information is: the file name of the file and the compilation type of the current compilation of the file is "change".

若某个文件在第二Hash表文件存在,在第一Hash表文件中也存在,且该文件在第二Hash表文件中对应的Hash值与该文件在第一Hash表文件中对应的Hash值相同,则Diff信息为:该文件的文件名以及该文件本次编译的编译类型为“不操作”。If a certain file exists in the second Hash table file, it also exists in the first Hash table file, and the corresponding Hash value of the file in the second Hash table file is the same as the corresponding Hash value of the file in the first Hash table file If they are the same, the Diff information is: the file name of the file and the compiling type of the current compiling of the file is "no operation".

当Diff信息生成模块204完成Diff信息的生成操作以后,进一步将生成的Diff信息发送至Diff信息处理模块305。After the Diff information generating module 204 finishes generating the Diff information, it further sends the generated Diff information to the Diff information processing module 305 .

S300、对Diff信息进行处理,生成待编译信息。S300. Process the Diff information to generate information to be compiled.

S300包括以下步骤:S300 includes the following steps:

S301、获取Diff信息。S301. Obtain Diff information.

在实施中,Diff信息处理模块305获取Diff信息生成模块204发送的Diff信息,并进一步读取每个Diff信息的具体内容。In implementation, the Diff information processing module 305 acquires the Diff information sent by the Diff information generating module 204, and further reads the specific content of each Diff information.

S302、对Diff信息进行处理,生成待编译信息。S302. Process the Diff information to generate information to be compiled.

在实施中,若接收的Diff信息为该文件的文件名以及该文件本次编译的编译类型为“新增”,则通过文件I/O将第二Hash表文件中新增的文件复制并拷贝到第一Hash表文件中相应的位置上,由此生成第三Hash表文件。若接收的Diff信息为该文件的文件名以及该文件本次编译的编译类型为“删除”,则通过文件I/O将第一Hash表文件中相对于第二Hash表文件多出的文件删除,由此生成第四Hash表文件。若接收的Diff信息为该文 件的文件名以及该文件本次编译的编译类型为“变化”,则通过文件I/O将第二Hash表文件中相对于第一Hash表文件发生变化的文件复制并拷贝到第一Hash表文件中相应的位置上,由此生成第五Hash表文件。若接收的Diff信息为该文件的文件名以及该文件本次编译的编译类型为“不操作”,则不对第一Hash表文件进行操作。In implementation, if the received Diff information is the file name of the file and the compilation type of the file compiled this time is "new", then the newly added file in the second Hash table file is copied and copied by file I/O to the corresponding position in the first Hash table file, thereby generating the third Hash table file. If the received Diff information is the file name of the file and the compiling type of the file compiled this time is "delete", delete the extra files in the first Hash table file relative to the second Hash table file through file I/O , thereby generating the fourth Hash table file. If the received Diff information is the file name of the file and the compilation type of the file compiled this time is "change", then the file that has changed in the second Hash table file relative to the first Hash table file is copied through file I/O and copied to the corresponding position in the first Hash table file, thereby generating the fifth Hash table file. If the received Diff information is the file name of the file and the compilation type of the current compilation of the file is "no operation", then no operation is performed on the first Hash table file.

Diff信息处理模块305将第三Hash表文件、第四Hash表文件以及第五Hash表文件均导入到预设的待编译文件列表中,生成待编译信息,并将待编译信息发送至编译模块306。The Diff information processing module 305 all imports the 3rd Hash table file, the 4th Hash table file and the 5th Hash table file into the preset file list to be compiled, generates the information to be compiled, and sends the information to be compiled to the compiling module 306 .

S400、对待编译信息进行处理,生成预编译代码。S400. Process the information to be compiled to generate pre-compiled code.

S400包括以下步骤:S400 includes the following steps:

S401、获取待编译信息。S401. Obtain information to be compiled.

在实施中,一个微信小程序的分支代码在更新后,若存在部分新增进第一分支代码的代码,则通过Diff信息处理模块305会生成第三Hash表文件,进一步,Diff信息处理模块305将第三Hash表文件导入到预设的待编译文件列表中。In implementation, after the branch code of a WeChat applet is updated, if there is some code newly added to the first branch code, the third Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 Import the third Hash table file into the preset list of files to be compiled.

一个微信小程序的分支代码在更新后,若第一分支代码中的部分代码被删除,则通过Diff信息处理模块305会生成第四Hash表文件,进一步,Diff信息处理模块305将第四Hash表文件导入到预设的待编译文件列表中。After the branch code of a WeChat applet is updated, if part of the code in the first branch code is deleted, the fourth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the fourth Hash table file. The file is imported into the preset list of files to be compiled.

一个微信小程序的分支代码在更新后,若第一分支代码中的部分代码发生变化,则通过Diff信息处理模块305会生成第五Hash表文件,进一步,Diff信息处理模块305将第五Hash表文件导入到预设的待编译文件列表中。After the branch code of a WeChat applet is updated, if part of the code in the first branch code changes, the fifth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the fifth Hash table file. The file is imported into the preset list of files to be compiled.

一个微信小程序的分支代码在更新后,若既存在部分新增进第一分支 代码的代码,还存在第一分支代码中的部分代码被删除,则通过Diff信息处理模块305会生成第三Hash表文件和第四Hash表文件,进一步,Diff信息处理模块305将第三Hash表文件和第四Hash表文件导入到预设的待编译文件列表中。After the branch code of a WeChat applet is updated, if there are some codes newly added to the first branch code, and some codes in the first branch code are deleted, then the third Hash will be generated by the Diff information processing module 305 table file and the fourth Hash table file, and further, the Diff information processing module 305 imports the third Hash table file and the fourth Hash table file into the preset file list to be compiled.

一个微信小程序的分支代码在更新后,若既存在部分新增进第一分支代码的代码,还存在第一分支代码中的部分代码发生变化,则通过Diff信息处理模块305会生成第三Hash表文件和第五Hash表文件,进一步,Diff信息处理模块305将第三Hash表文件和第五Hash表文件导入到预设的待编译文件列表中。After the branch code of a WeChat applet is updated, if there are some codes newly added to the first branch code, and some codes in the first branch code are changed, the third Hash will be generated by the Diff information processing module 305 table file and the fifth Hash table file. Further, the Diff information processing module 305 imports the third Hash table file and the fifth Hash table file into the preset file list to be compiled.

一个微信小程序的分支代码在更新后,若既存在第一分支代码中的部分代码被删除,还存在第一分支代码中的部分代码发生变化,则通过Diff信息处理模块305会生成第四Hash表文件和第五Hash表文件,进一步,Diff信息处理模块305将第四Hash表文件和第五Hash表文件导入到预设的待编译文件列表中。After the branch code of a WeChat applet is updated, if some codes in the first branch code are deleted, and some codes in the first branch code are changed, the fourth Hash will be generated by the Diff information processing module 305 table file and the fifth Hash table file. Further, the Diff information processing module 305 imports the fourth Hash table file and the fifth Hash table file into the preset file list to be compiled.

一个微信小程序的分支代码在更新后,若既存在部分新增进第一分支代码的代码,又存在第一分支代码中的部分代码被删除,还存在第一分支代码中的部分代码发生变化,则通过Diff信息处理模块305会生成第三Hash表文件、第四Hash表文件以及第五Hash表文件,进一步,Diff信息处理模块305将第三Hash表文件、第四Hash表文件以及第五Hash表文件导入到预设的待编译文件列表中。After the branch code of a WeChat applet is updated, if there are some codes newly added to the first branch code, some codes in the first branch code are deleted, and some codes in the first branch code are changed , then the third Hash table file, the fourth Hash table file and the fifth Hash table file will be generated by the Diff information processing module 305, and further, the Diff information processing module 305 will generate the third Hash table file, the fourth Hash table file and the fifth Hash table file Hash table files are imported into the preset list of files to be compiled.

通过Diff信息处理模块305导入待编译文件列表中的文件即为待编译信息。The files imported into the list of files to be compiled by the Diff information processing module 305 are the information to be compiled.

在实施中,当待编译文件列表完成待编译信息的导入后,Diff信息处理模块305将待编译文件列表中的待编译信息传至编译模块306,编译模块306获取待编译信息。In implementation, after the file list to be compiled finishes importing the information to be compiled, the Diff information processing module 305 transmits the information to be compiled in the file list to be compiled to the compilation module 306, and the compilation module 306 obtains the information to be compiled.

S402、依据待编译信息对更新后的第一分支代码进行编译,生成预编译代码。S402. Compile the updated first branch code according to the information to be compiled to generate precompiled code.

由于待编译文件列表中的待编译信息可能存在第三Hash表文件、第四Hash表文件以及第五Hash表文件,则:Since the information to be compiled in the list of files to be compiled may exist the third Hash table file, the fourth Hash table file and the fifth Hash table file, then:

在实施中,若待编译信息中仅存在第三Hash表文件,则编译第三Hash表文件中新增的文件,并将编译后的代码集成到第一分支代码上,生成第三分支代码;In implementation, if there is only the third Hash table file in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code to generate the third branch code;

若待编译信息中仅存在第四Hash表文件,则将第一Hash表文件中删除的文件对应的第一分支代码中的代码进行删除,生成第四分支代码;If there is only the fourth Hash table file in the information to be compiled, then the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted to generate the fourth branch code;

若待编译信息中仅存在第五Hash表文件,则对第五Hash表文件中从第二Hash表文件复制并拷贝过来的文件进行编译,并将编译后的代码覆盖第一分支代码相应位置上的代码,生成第五分支代码。If there is only the fifth Hash table file in the information to be compiled, compile the file copied and copied from the second Hash table file in the fifth Hash table file, and cover the corresponding position of the first branch code with the compiled code code to generate the fifth branch code.

若待编译信息中既存在第三Hash表文件还存在第四Hash表文件,则编译第三Hash表文件中新增的文件,并将编译后的代码集成到第一分支代码上,同时还将第一Hash表文件中删除的文件对应的第一分支代码中的代码进行删除,生成第六分支代码。If there is not only the third Hash table file but also the fourth Hash table file in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code, and simultaneously The code in the first branch code corresponding to the file deleted in the first Hash table file is deleted to generate the sixth branch code.

若待编译信息中既存在第三Hash表文件还存在第五Hash表文件,则编译第三Hash表文件中新增的文件,并将编译后的代码集成到第一分支代码上,同时还对第五Hash表文件中从第二Hash表文件复制并拷贝过来的 文件进行编译,并将编译后的代码覆盖第一分支代码相应位置上的代码,生成第七分支代码。If there is not only the third Hash table file but also the fifth Hash table file in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code. In the fifth Hash table file, the files copied and copied from the second Hash table file are compiled, and the compiled code covers the code at the corresponding position of the first branch code to generate the seventh branch code.

若待编译信息中既存在第四Hash表文件还存在第五Hash表文件,则将第一Hash表文件中删除的文件对应的第一分支代码中的代码进行删除,同时还对第五Hash表文件中从第二Hash表文件复制并拷贝过来的文件进行编译,并将编译后的代码覆盖第一分支代码相应位置上的代码,生成第八分支代码。If there is not only the fourth Hash table file but also the fifth Hash table file in the information to be compiled, the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted, and the fifth Hash table is also deleted. Compile the file copied and copied from the second Hash table file in the file, and overwrite the code at the corresponding position of the first branch code with the compiled code to generate the eighth branch code.

若待编译信息中同时存在第三Hash表文件、第四Hash表文件以及第五Hash表文件,则编译第三Hash表文件中新增的文件,并将编译后的代码集成到第一分支代码上,同时还将第一Hash表文件中删除的文件对应的第一分支代码中的代码进行删除,同时又对第五Hash表文件中从第二Hash表文件复制并拷贝过来的文件进行编译,并将编译后的代码覆盖第一分支代码相应位置上的代码,生成第九分支代码。If the third Hash table file, the fourth Hash table file and the fifth Hash table file exist in the information to be compiled, then compile the newly added file in the third Hash table file, and integrate the compiled code into the first branch code At the same time, the code in the first branch code corresponding to the file deleted in the first Hash table file is deleted, and at the same time, the file copied and copied from the second Hash table file in the fifth Hash table file is compiled, And the compiled code covers the code at the corresponding position of the first branch code to generate the ninth branch code.

将第三分支代码、第四分支代码、第五分支代码记、第六分支代码、第七分支代码、第八分支代码以及第九分支代码均为可能的预编译代码。The third branch code, the fourth branch code, the fifth branch code, the sixth branch code, the seventh branch code, the eighth branch code and the ninth branch code are all possible precompiled codes.

在实施中,根据待编译信息的具体内容将第三分支代码、第四分支代码、第五分支代码记、第六分支代码、第七分支代码、第八分支代码以及第九分支代码中的一个分支代码作为预编译信息,将进一步将预编译代码发送至微信开发者工具330。In implementation, according to the specific content of the information to be compiled, one of the third branch code, the fourth branch code, the fifth branch code, the sixth branch code, the seventh branch code, the eighth branch code and the ninth branch code The branch code is used as precompiled information, and the precompiled code will be further sent to the WeChat developer tool 330 .

S500、对预编译代码进行调试,生成微信小程序的代码包,实现微信小程序的打包。S500. Debug the pre-compiled code, generate a code package of the WeChat applet, and implement packaging of the WeChat applet.

在实施中,首先,微信开发者工具330接收编译模块306发送的预编 译代码。然后,对接收的预编译代码进行调试。最后,将通过调试的预编译代码集成到微信小程序的代码主干上,生成微信小程序的代码包。In implementation, first, the WeChat developer tool 330 receives the precompiled code sent by the compiling module 306. Then, debug the received precompiled code. Finally, integrate the debugged precompiled code into the code backbone of the WeChat Mini Program to generate the code package of the WeChat Mini Program.

在实施中,进一步将生成的微信小程序的代码包上传至客户端或者微信平台,并生成相应的开发版二维码,优选的,用户可以通过使用微信扫描开发版二维码的方式体验更新后的微信小程序。In the implementation, the code package of the generated WeChat applet is further uploaded to the client or the WeChat platform, and a corresponding QR code of the development version is generated. Preferably, the user can experience the update by scanning the QR code of the development version using WeChat. Later WeChat Mini Programs.

基于相同的发明构思在本申请实施例中还提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,计算机程序被处理器执行时,使得处理器执行上述一种微信小程序打包方法的步骤。此处微信小程序打包方法的步骤可以是上述实施例的一种微信小程序打包方法中的步骤。Based on the same inventive concept, an embodiment of the present application also provides a computer device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the above-mentioned Wechat applet packaging method steps. Here, the steps in the method for packaging a WeChat applet may be the steps in the method for packaging a WeChat applet in the above-mentioned embodiment.

基于相同的发明构思在本申请实施例中还提供了一种计算机可读存储介质,其存储有能够被处理器加载并执行如上述一种微信小程序打包方法的计算机程序,该计算机可读存储介质例如包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(RandomAccessMemory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program that can be loaded by a processor and execute the above-mentioned WeChat applet packaging method, the computer-readable storage medium The medium includes, for example, various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.

本具体实施例仅仅是对本发明的解释,其并不是对本发明的限制,本领域技术人员在阅读完本说明书后可以根据需要对本实施例做出没有创造性贡献的修改,但只要在本发明的权利要求范围内都受到专利法的保护。This specific embodiment is only an explanation of the present invention, and it is not a limitation of the present invention. Those skilled in the art can make modifications to this embodiment without creative contribution as required after reading this specification, but as long as they are within the rights of the present invention All claims are protected by patent law.

Claims (10)

一种微信小程序打包平台,其特征在于:包括服务系统(200)和文件系统(300);所述服务系统(200)用于获取第一信息并依据所述第一信息生成所述微信小程序的预编译代码;所述文件系统(300)用于供所述服务系统(200)调用;所述服务系统(200)包括接收模块(203)、Diff信息生成模块(204)、Diff信息处理模块(205)以及编译模块(206);所述文件系统(300)包括微信开发者工具(330);所述接收模块(203)用于接收所述第一信息;所述Diff信息生成模块(204)用于处理所述第一信息并生成相应的Diff信息;所述Diff信息处理模块(205)用于处理所述Diff信息并生成相应的待编译信息;所述编译模块(206)用于处理所述待编译信息并生成所述预编译代码;所述微信开发者工具(330)用于调试所述预编译代码并编译出所述微信小程序的代码包,实现所述微信小程序的打包。A Wechat applet packaging platform, characterized in that: it includes a service system (200) and a file system (300); the service system (200) is used to obtain first information and generate the Wechat applet according to the first information The precompiled code of the program; the file system (300) is used for calling by the service system (200); the service system (200) includes a receiving module (203), a Diff information generating module (204), a Diff information processing Module (205) and compiling module (206); Described file system (300) comprises micro-letter developer tool (330); Described receiving module (203) is used for receiving described first information; Described Diff information generating module ( 204) for processing the first information and generating corresponding Diff information; the Diff information processing module (205) for processing the Diff information and generating corresponding information to be compiled; the compiling module (206) for Process the information to be compiled and generate the pre-compiled code; the WeChat developer tool (330) is used to debug the pre-compiled code and compile the code package of the WeChat applet, so as to realize the development of the WeChat applet Pack. 根据权利要求1所述的一种微信小程序打包平台,其特征在于:所述文件系统(300)还包括用户空间(311)和代码空间(312);所述用户空间(311)用于分别独立存储每个用户开发的所述微信小程序的第一分支代码,以及与所述第一分支代码对应的第一Hash表文件,所述用户空间(311)还用于存储所述Diff信息以及所述预编译代码;所述代码空间(312)用于存储重新编译的且与所述第一分支代码对应的第二分支代码,以及与所述第二分支代码对应的第二Hash表文件。A kind of Wechat applet packing platform according to claim 1, is characterized in that: described file system (300) also comprises user space (311) and code space (312); Described user space (311) is used for respectively Independently store the first branch code of the WeChat applet developed by each user, and the first Hash table file corresponding to the first branch code, and the user space (311) is also used to store the Diff information and The precompiled code; the code space (312) is used to store the recompiled second branch code corresponding to the first branch code, and the second Hash table file corresponding to the second branch code. 根据权利要求2所述的一种微信小程序打包平台,其特征在于:所述服务系统(200)还包括定时任务模块(201),所述文件系统(300)还包括Git仓库(310);所述Git仓库(310)用于存储微信小程序各版本的分支代码;所述定时任务模块(201)用于每隔预设的更新时间间隔判断所述第二分支代码 相较于所述第一分支代码在预设的时间范围内是否有更新,若有更新,则将所述第一分支代码更新为所述第二分支代码。A kind of Wechat applet packaging platform according to claim 2, characterized in that: the service system (200) also includes a timing task module (201), and the file system (300) also includes a Git warehouse (310); The Git warehouse (310) is used to store the branch codes of each version of the WeChat applet; the timing task module (201) is used to judge that the second branch code is compared with the first branch code at every preset update time interval. Whether a branch code is updated within a preset time range, and if so, update the first branch code to the second branch code. 根据权利要求3所述的一种微信小程序打包平台,其特征在于:所述服务系统(200)还包括WebHooks模块(202);所述WebHooks模块(202)的工作模式为触发式,触发条件为所述Git仓库(310)中写入所述第二分支代码;所述WebHooks模块(202)用于受到触发后通知所述微信小程序打包平台将所述第一分支代码更新为所述第二分支代码。A kind of Wechat applet packing platform according to claim 3, is characterized in that: described service system (200) also comprises WebHooks module (202); The mode of work of described WebHooks module (202) is trigger type, and trigger condition Write the second branch code in the Git warehouse (310); the WebHooks module (202) is used to notify the WeChat applet packaging platform to update the first branch code to the first branch code after being triggered. Two-branch code. 一种微信小程序打包方法,其特征在于,包括:A WeChat mini-program packaging method, characterized in that it comprises: 获取需进行打包的第一信息;对所述第一信息进行处理,生成Diff信息;对所述Diff信息进行处理,生成待编译信息;对所述待编译信息进行处理,生成预编译代码;对所述预编译代码进行调试,生成所述微信小程序的代码包,实现所述微信小程序的打包。Acquiring the first information that needs to be packaged; processing the first information to generate Diff information; processing the Diff information to generate information to be compiled; processing the information to be compiled to generate precompiled code; The pre-compiled code is debugged to generate the code package of the WeChat applet, so as to realize the packaging of the WeChat applet. 根据权利要求5所述的一种微信小程序打包方法,其特征在于:所述第一信息包括第一Hash表文件和第二Hash表文件;所述对所述第一信息进行处理,生成Diff信息,包括:获取所述第一Hash表文件和所述第二Hash表文件;比较所述第一Hash表文件和所述第二Hash表文件,得到所述Diff信息。A kind of WeChat mini-program packaging method according to claim 5, characterized in that: said first information includes a first Hash table file and a second Hash table file; said first information is processed to generate a Diff The information includes: acquiring the first Hash table file and the second Hash table file; comparing the first Hash table file with the second Hash table file to obtain the Diff information. 根据权利要求6所述的一种微信小程序打包方法,其特征在于:所述Diff信息包括所述第一Hash表文件和所述第二Hash表文件需要编译的文件名及其编译类型;所述对所述Diff信息进行处理,生成待编译信息,包括:获取所述Diff信息;对所述Diff信息进行处理,生成待编译信息。A kind of WeChat applet packing method according to claim 6, is characterized in that: described Diff information comprises described first Hash table file and described second Hash table file need compiling file name and compiling type thereof; The step of processing the Diff information to generate information to be compiled includes: acquiring the Diff information; processing the Diff information to generate information to be compiled. 根据根据权利要求7所述的一种微信小程序打包方法,其特征在于: 所述对所述待编译信息进行处理,生成预编译代码,包括:获取所述待编译信息;依据所述待编译信息对更新后的所述第一分支代码进行编译,生成预编译代码。According to a kind of WeChat applet packaging method according to claim 7, it is characterized in that: the processing of the information to be compiled to generate pre-compiled codes includes: obtaining the information to be compiled; according to the information to be compiled The information compiles the updated first branch code to generate precompiled code. 一种计算机设备,其特征在于,包括存储器和处理器,所述存储器上存储有能够被处理器加载并执行如权利要求5至8中任一种微信小程序打包方法的计算机程序。A computer device, characterized in that it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute any one of the WeChat applet packaging methods in claims 5 to 8. 一种计算机可读存储介质,其特征在于,存储有能够被处理器加载并执行如权利要求5至8中任一种微信小程序打包方法的计算机程序。A computer-readable storage medium, characterized in that it stores a computer program capable of being loaded by a processor and executing any one of the WeChat applet packaging methods in claims 5 to 8.
PCT/CN2021/134242 2021-11-10 2021-11-30 Wechat mini program packaging platform and method, and device and storage medium Ceased WO2023082365A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111328149.9 2021-11-10
CN202111328149.9A CN114253596A (en) 2021-11-10 2021-11-10 A WeChat applet packaging platform, method, device and storage medium

Publications (1)

Publication Number Publication Date
WO2023082365A1 true WO2023082365A1 (en) 2023-05-19

Family

ID=80792416

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134242 Ceased WO2023082365A1 (en) 2021-11-10 2021-11-30 Wechat mini program packaging platform and method, and device and storage medium

Country Status (2)

Country Link
CN (1) CN114253596A (en)
WO (1) WO2023082365A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade
US9483259B1 (en) * 2012-05-07 2016-11-01 Google Inc. System and method for providing real-time execution of source code in a collaborative online software development environment
CN110333868A (en) * 2019-06-12 2019-10-15 阿里巴巴集团控股有限公司 For generating the method and system of the installation kit of sub- application
CN112114815A (en) * 2020-09-23 2020-12-22 南京楚航科技有限公司 Automatic compiling and software version releasing method
CN112748926A (en) * 2020-12-30 2021-05-04 上海微盟企业发展有限公司 Applet publishing method, device, equipment and computer readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104814B (en) * 2012-02-17 2021-07-06 阿里巴巴集团控股有限公司 Software upgrading method and system
US11126594B2 (en) * 2018-02-09 2021-09-21 Exagrid Systems, Inc. Delta compression
CN111338632A (en) * 2018-12-19 2020-06-26 中国移动通信集团湖南有限公司 A cloud platform image construction method and device
CN112130858B (en) * 2019-06-25 2024-08-20 深圳Tcl新技术有限公司 Code compiling method and compiling server
CN110532189B (en) * 2019-07-18 2022-11-01 中国人民财产保险股份有限公司 Continuous integration system, method and device
CN112559019B (en) * 2019-09-10 2025-01-24 联易软件有限公司 Incremental file updating method and device
CN112052036A (en) * 2020-09-07 2020-12-08 网易(杭州)网络有限公司 Application management method, device, storage medium and computer device
CN112783508B (en) * 2021-02-01 2022-05-24 北京百度网讯科技有限公司 File compiling method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136013A (en) * 2011-12-01 2013-06-05 腾讯科技(深圳)有限公司 Method and system of software upgrade
US9483259B1 (en) * 2012-05-07 2016-11-01 Google Inc. System and method for providing real-time execution of source code in a collaborative online software development environment
CN110333868A (en) * 2019-06-12 2019-10-15 阿里巴巴集团控股有限公司 For generating the method and system of the installation kit of sub- application
CN112114815A (en) * 2020-09-23 2020-12-22 南京楚航科技有限公司 Automatic compiling and software version releasing method
CN112748926A (en) * 2020-12-30 2021-05-04 上海微盟企业发展有限公司 Applet publishing method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114253596A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
EP3491527B1 (en) Debugging tool for a jit compiler
CN107589947A (en) A kind of SDK cut-in methods, client and system
CN106502746A (en) The packaging method and device of application program
CN109766124A (en) Business development method, apparatus, computer equipment and storage medium
CN113360156B (en) An IOS compilation method and related equipment
CN108614702A (en) Bytecode-optimized method and device
CN110083342A (en) A kind of program creating method, device and computer readable storage medium
CN110795139A (en) Client batch packaging method and device, computer equipment and storage medium
CN112000334B (en) Page development method, device, server and storage medium
CN110688147A (en) Method for packing and analyzing metadata
WO2022100063A1 (en) Method and apparatus for generating and storing logs of smart contract, device, and storage medium
CN112241286A (en) Resource package configuration method and device and storage medium
CN112631894B (en) Code detection method, device, storage medium and computer equipment
CN116050112B (en) Linux-based FMU model generation method and device
CN110032425B (en) Dynamic link library file virtualization method, system and storage medium
CN108694049B (en) Method and equipment for updating software
WO2012034395A1 (en) Method and device for code debugging
WO2023082365A1 (en) Wechat mini program packaging platform and method, and device and storage medium
CN115994085A (en) Code coverage rate test processing method, device, equipment and storage medium
CN115826968B (en) Method, device and application for dynamically compiling cross-platform component based on VUE
CN113535230B (en) Method and system for dynamically adapting engineering source code to different hardware resources
CN115951870A (en) Mirror image file compiling method, system, equipment and medium
CN102629259A (en) Read-only file system setting up method in embedded system, device and embedded system
CN113821222A (en) A kind of method and device for generating original OTA package
CN117354114B (en) Data service release method and system based on cloud native architecture

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21963806

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21963806

Country of ref document: EP

Kind code of ref document: A1