A web-based remote code compilation method, system, device and medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2026-08-11
AI Technical Summary
[0004]当前,代码开发人员的编译工作通常在笔记本电脑上进行,而BIOS系统的源代码的数量较大,笔记本电脑的数据处理速度相对有限,就导致了编译时间过长,编程和代码调试效率不高
Smart Images

Figure CN115729558B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more specifically to a web-based remote code compilation method, system, device, and medium. Background Technology
[0002] BIOS (Basic Input and Output System) is a set of programs embedded in a ROM chip on the computer's motherboard. It stores the computer's most important power-on self-test (POST) programs, hardware initialization programs, and low-level system service programs. It can read and write specific system settings from CMOS. Its main function is to provide the computer with the lowest-level and most direct hardware settings and control.
[0003] Due to the diversity of BIOS system functions, the amount of source code used to generate the BIOS system is large, amounting to millions of lines.
[0004] Currently, code developers typically perform compilation work on laptops. However, the source code for BIOS systems is often quite large, and laptops have relatively limited data processing speeds, resulting in excessively long compilation times and low efficiency in programming and debugging. Therefore, when dealing with millions or more lines of code, the efficiency of compilation work is constrained by the performance of the compilation device.
[0005] Therefore, it is clear that how to leverage high-performance equipment (such as servers) for development and debugging to reduce code compilation time and improve work efficiency is a problem that we urgently need to solve. Summary of the Invention
[0006] To address the above problems, the present invention aims to provide a web-based remote code compilation method, system, device, and medium that can utilize a server for code compilation without affecting local development and debugging, effectively improving compilation efficiency and saving manpower and time.
[0007] To achieve the above objectives, this invention provides the following technical solution: a web-based remote code compilation method, comprising:
[0008] Start the Git daemon service locally to share the local Git repository on the local network;
[0009] Access the web service provided by the remote compilation server locally and perform login verification;
[0010] After successfully logging in, write the commands required for code compilation in the compilation command editing module;
[0011] Choose manual mode, automatic mode, or timed mode to trigger code compilation;
[0012] Displays compilation logs and error messages generated during the compilation process in real time;
[0013] When a compilation stop command is issued, code compilation is stopped immediately, and the compiler waits for manual or automatic mode to trigger a new code compilation.
[0014] After successful compilation, download the generated BIOS BIN file and code compilation log;
[0015] Compilation-related information, including compilation logs, BIN files, usernames, branch names, and compilation status, is stored in a specific format in the MySQL database of the compilation server. The compilation success rate is calculated by matching the corresponding user information from the MySQL database.
[0016] The system tracks and ranks users' compilation success rates.
[0017] Furthermore, the login verification includes:
[0018] New users register by clicking the registration button and entering their email address and password. The registration information is then stored in the MySQL database on the server. Existing users log in directly. The login information is matched with the information stored in the database. If the match is successful, the login is successful; otherwise, the login fails.
[0019] Furthermore, the step of writing the commands required for code compilation in the compilation command editing module includes: selecting the GIT branch and the corresponding compilation tool version through commands in the compilation command editing module, and saving the selection results; if multiple code branches need to be compiled, the specific execution commands are edited for each code branch as needed.
[0020] Furthermore, the step of selecting manual mode, automatic mode, or timed mode to trigger code compilation includes: selecting the code compilation mode through a preset mode selection drop-down button;
[0021] If manual mode is selected, code compilation will be triggered based on user instructions;
[0022] If you choose automatic mode, when there are multiple code branches, the server will actively check if there are any new commits on the code branches, and will trigger code compilation as soon as there is a new commit.
[0023] In timed mode, code branch compilation is triggered once according to the preset time interval.
[0024] Furthermore, the option to select manual, automatic, or scheduled mode to trigger code compilation also includes: if the code to be compiled is being compiled on the server for the first time, the code of the branch to be compiled will be completely downloaded from the local Git repository to the corresponding user directory on the server; if the code has already been compiled, only the new changes in the local Git repository will be synchronized, and compilation will begin after the code is synchronized.
[0025] Furthermore, the real-time display of compilation logs and prompts generated during the compilation process includes:
[0026] Display the compilation log generated during the compilation process in real time;
[0027] After compilation is complete, the preset "Start Compilation" button will turn green as a message indicating that the corresponding code branch has been successfully compiled.
[0028] If compilation fails, the default "Start Compilation" button will turn red as a message indicating that the compilation of the corresponding code branch has failed.
[0029] After compilation is complete, the compilation results will be sent to the user via email.
[0030] Furthermore, the MySQL database on the server stores compilation-related information for the most recent 20 compilations.
[0031] Accordingly, the present invention also discloses a web-based remote code compilation system, including: a registration and login module, a function button module, a command editing module, an information display module, and a history module; the registration and login module is used for user verification and identification;
[0032] The function button module includes a code branch X start compilation button, a code branch X stop compilation button, a code branch X generate Bin file download button, a code branch X compilation log download button, and a mode selection drop-down button; among them, code branch X includes code branch a, code branch b, and code branch c; the mode selection drop-down button has three mode options: manual compilation, automatic compilation, and scheduled compilation;
[0033] The command editing module is used to select compilation commands and git branches based on the code, and edit specific commands for code branches a, b, and c as needed.
[0034] The information display module is used to display the code compilation log and compilation time in real time during the current code compilation process. When multiple branches of code are compiled at the same time, they are displayed in a split screen.
[0035] The history module is used to record code compilation logs, generate bin files and provide download functionality, and also to statistically analyze and rank the compilation success rates of multiple users.
[0036] Accordingly, this invention discloses a web-based remote code compilation device, comprising:
[0037] Memory used to store web-based remote code compilers;
[0038] A processor, used to implement the steps of the web-based remote code compilation method described above when executing the web-based remote code compilation program.
[0039] Accordingly, the present invention discloses a readable storage medium storing a web-based remote code compiler, which, when executed by a processor, implements the steps of the web-based remote code compilation method described in any of the above descriptions.
[0040] Compared with the prior art, the beneficial effects of the present invention are as follows: The present invention discloses a web-based remote code compilation method, system, device and medium, which can put the code compilation work on a high-performance server without affecting local development and debugging, and reduces the time by half compared with the previous method of compiling code directly on a laptop or desktop computer.
[0041] This invention implements three compilation methods for remote code: manual compilation, automatic compilation, and scheduled compilation. It supports the same user to compile multiple code branches simultaneously and can statistically analyze and rank the compilation success rates of multiple users, encouraging developers to reduce compilation failure rates and improve code quality.
[0042] This invention effectively improves compilation efficiency, saves manpower and time, greatly facilitates R&D testing, and effectively improves code development and debugging scenarios.
[0043] This invention is highly scalable, adaptable to code compilation on different server platforms, has certain market value, is easy to improve technically, and has great potential for promotion.
[0044] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0046] Figure 1 This is a flowchart illustrating a specific embodiment of the present invention.
[0047] Figure 2 This is a system structure diagram of a specific embodiment of the present invention.
[0048] In the diagram, 1. Registration and login module; 2. Function button module; 3. Command editing module; 4. Information display module; 5. History module. Detailed Implementation
[0049] The core of this invention is to provide a web-based remote code compilation method. In existing technologies, code developers typically perform compilation work on laptops. However, the source code of a BIOS system is often large, and laptops have relatively limited data processing speeds, resulting in excessively long compilation times and low efficiency in programming and debugging. Therefore, when dealing with millions or even more lines of code, the efficiency of compilation work is constrained by the performance of the compilation device.
[0050] The web-based remote code compilation method provided by this invention first starts a Git daemon service locally to share the local Git repository on the local area network. Then, the local machine accesses the web service provided by the remote compilation server and logs in. After successful login, the necessary commands for code compilation are written in the compilation command editing module. Then, manual, automatic, or timed mode is selected to trigger code compilation. After triggering, the compilation log and prompts generated during the compilation process are displayed in real time. After successful compilation, the generated BIOS BIN file and code compilation log are downloaded, and compilation-related information, including the compilation log, BIN file, username, branch name, and compilation status, is stored in a specific format in the MySQL database of the compilation server. The compilation success rate is calculated by matching the corresponding user information from the MySQL database. Finally, the compilation success rates of users are statistically analyzed and ranked. Therefore, this invention can place code compilation work on a high-performance server without affecting local development and debugging, shortening compilation time and effectively improving compilation efficiency.
[0051] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0052] Example 1:
[0053] like Figure 1 As shown, this embodiment provides a web-based remote code compilation method, including the following steps:
[0054] S1: Start the Git daemon service locally to share the local Git repository on the local network.
[0055] Specifically, the local script is used to start the Git daemon service and share the local Git repository on the local area network.
[0056] S2: Access the web service provided by the remote compilation server locally and perform login verification.
[0057] During login verification, new users click the "Register" button, enter their email address and password to register, and the registration information is stored in the MySQL database on the server. Existing users log in directly, and the login information is matched with the stored information in the database. If the match is successful, the login is successful; otherwise, the login fails.
[0058] S3: After successfully logging in, write the commands required for code compilation in the compilation command editing module.
[0059] Specifically, in the compiler command editing module, you can select the Git branch using commands, choose the corresponding compiler tool version, and save the selection results; if there are multiple code branches to compile, you can edit the specific execution commands for each code branch as needed.
[0060] As an example, after successfully logging in, you can write the commands required for code compilation in the compilation command editing module. For instance, you can select the Git branch using commands, choose the corresponding compilation tool version, and finally click save. If there are multiple code branches to compile, taking three code branches (a, b, and c) as an example, you can edit the specific execution commands for the three "Start Compilation" buttons for code branches a, b, and c as needed.
[0061] S4: Select manual mode, automatic mode, or timed mode to trigger code compilation.
[0062] Specifically, select the corresponding mode using the mode selection dropdown button. If you select manual mode, click the "Start Compilation" button for code branch X (X = a, b, c). If you select automatic mode for code branch (X = a, b, c), the server will actively check for new commits on the code branch, and trigger code compilation as soon as a new commit is found. If you select scheduled mode, and choose an interval of 24 hours, code branch compilation will be triggered once every 24 hours. In particular, if the code to be compiled is being compiled on the server for the first time, the code for the branch to be compiled will be completely downloaded from the local Git repository to the corresponding user directory on the server; if it has been compiled before, only the new changes in the local Git repository will be synchronized, saving download time. Compilation will begin after the code and local code are synchronized.
[0063] S5: Displays compilation logs and prompts generated during the compilation process in real time.
[0064] As an example, the compilation log generated during the compilation process is displayed in real time in the display module. When compilation problems occur, developers can view the compilation errors in real time on the web interface. After compilation is complete, the compilation log displayed in the display module will indicate that the corresponding code branch has been compiled successfully, and the corresponding code branch X "Start Compilation" button (X = a, b, c) will turn green. If compilation fails, the code branch X "Start Compilation" button (X = a, b, c) will turn red. If email notification is configured, the corresponding user will be notified by email regardless of whether the compilation fails or succeeds, providing timely reminders.
[0065] S6: When a compilation stop command is issued, code compilation is stopped immediately, waiting for manual or automatic mode to trigger new code compilation.
[0066] As an example, if you click the "Stop Compilation" button for code branch X (X = a, b, c), the compilation of the code branch will be stopped in real time, waiting for the user to trigger the compilation of a new code branch through manual or automatic mode.
[0067] S7: After successful compilation, download the generated BIOS BIN file and code compilation log.
[0068] As an example, after successful compilation, you can click the code branch X_BIN download button (X=a,b,c) to download the generated BIOS BIN file, and click the code branch X_LOG download button (X=a,b,c) to download the complete code compilation log.
[0069] S8: The compilation-related information, including the compilation log, BIN file, username, branch name, and compilation status, is stored in a specific format in the MySQL database of the compilation server. The compilation success rate is calculated by matching the corresponding user information from the MySQL database.
[0070] Specifically: The log, BIN file, username, branch name, and compilation status for each compilation are stored in a specific format in a MySQL database on the server. The data is displayed in the history module by matching the corresponding user information from the MySQL database, allowing users to download it at any time. In particular, to save storage costs, only the most recent 20 compilation-related records are stored at a time.
[0071] S9: Statistical analysis and ranking of users' compilation success rates.
[0072] This embodiment provides a web-based remote code compilation method that allows code compilation to be performed on a high-performance server without affecting local development and debugging. It implements three remote code compilation methods: manual compilation, automatic compilation, and scheduled compilation. It supports simultaneous compilation of multiple code branches by the same user and can statistically analyze and rank the compilation success rates of multiple users. This method effectively improves compilation efficiency, saves manpower and time, greatly facilitates R&D and testing, effectively improves code development and debugging scenarios, and encourages developers to reduce compilation failure rates and improve code quality.
[0073] Example 2:
[0074] Based on Example 1, such as Figure 2 As shown, the present invention also discloses a web-based remote code compilation system, including: a registration and login module 1, a function button module 2, a command editing module 3, an information display module 4, and a history module 5.
[0075] Registration and login module 1 is used for user verification and identification.
[0076] Function button module 2 includes a button to start compiling code branch X, a button to stop compiling code branch X, a button to download the generated Bin file from code branch X, a button to download the compilation log from code branch X, and a mode selection drop-down button. Code branch X includes code branch a, code branch b, and code branch c; the mode selection drop-down button offers three modes: manual compilation, automatic compilation, and scheduled compilation.
[0077] As an example, the function button module implements multiple button functions, including a button to start compiling code branch X, a button to stop compiling code branch X, a button to download the generated Bin file from code branch X, a button to download the compilation log from code branch X, and a mode selection dropdown button. Code branch X includes code branch a, code branch b, and code branch c, i.e., (X = a, b, c). The mode selection dropdown button offers three compiling modes: manual compilation, automatic compilation, and scheduled compilation.
[0078] Command editing module 3 is used to select compilation commands and git branches based on the code, and edit specific commands for code branches a, b, and c as needed.
[0079] Specifically, the command editing module allows different users to select different compilation commands and Git branches based on different code. Users can edit the specific commands for the three "Start Compile" buttons (a, b, and c) as needed. If only one branch of code needs to be compiled, only the "Start Compile" button for branch a needs to be edited.
[0080] Information display module 4 is used to display the code compilation log and compilation time in real time during the current code compilation process, and to display the code in a split screen when multiple branches are being compiled at the same time.
[0081] The history module 5 is used to record code compilation logs, generate bin files and provide download functionality, and also to statistically analyze and rank the compilation success rates of multiple users.
[0082] This embodiment provides a web-based remote code compilation system that can offload code compilation to a high-performance server without affecting local development and debugging. It implements three remote code compilation methods: manual compilation, automatic compilation, and scheduled compilation. It supports simultaneous compilation of multiple code branches by the same user and can statistically analyze and rank the compilation success rates of multiple users. This system effectively improves compilation efficiency, saves manpower and time, greatly facilitates R&D and testing, effectively improves code development and debugging scenarios, and encourages developers to reduce compilation failure rates and improve code quality.
[0083] Example 3:
[0084] This embodiment discloses a web-based remote code compilation device, including a processor and a memory; wherein, when the processor executes a web-based remote code compilation program stored in the memory, it performs the following steps:
[0085] 1. Start the Git daemon service locally to share the local Git repository on the local network.
[0086] 2. Access the web service provided by the remote compilation server locally and perform login verification.
[0087] 3. After successfully logging in, write the commands required for code compilation in the compilation command editing module.
[0088] 4. Select manual mode, automatic mode, or timed mode to trigger code compilation.
[0089] 5. Display compilation logs and prompts generated during the compilation process in real time.
[0090] 6. When a compilation stop command is issued, code compilation is stopped immediately, and the compiler waits for manual or automatic mode to trigger a new compilation.
[0091] 7. After successful compilation, download the generated BIOS BIN file and code compilation log.
[0092] 8. The compilation-related information, including the compilation log, BIN file, username, branch name, and compilation status, is stored in a specific format in the MySQL database of the compilation server. The compilation success rate is calculated by matching the corresponding user information from the MySQL database.
[0093] 9. Statistical analysis and ranking of users' compilation success rates.
[0094] Furthermore, the web-based remote code compilation device in this embodiment may also include:
[0095] The input interface is used to acquire web-based remote code compilers imported from external sources and save them to the memory. It can also acquire various instructions and parameters transmitted from external terminal devices and transmit them to the processor, allowing the processor to perform corresponding processing using these instructions and parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, and a hard disk read interface.
[0096] An output interface is used to output various data generated by the processor to connected terminal devices, so that other terminal devices connected to the output interface can obtain the various data generated by the processor. In this embodiment, the output interface may include, but is not limited to, a USB interface, a serial interface, etc.
[0097] A communication unit is used to establish a remote communication connection between a web-based remote code compilation device and an external server, so that the web-based remote code compilation device can mount image files to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on wireless communication technology or wired communication technology.
[0098] The keyboard is used to acquire various parameter data or commands input by the user through real-time keystrokes.
[0099] The monitor is used to display relevant information in real time regarding the process of locating a short circuit in the server's power supply line.
[0100] A mouse can be used to assist users in inputting data and simplifying user operations.
[0101] Example 4:
[0102] This embodiment also discloses a readable storage medium, which includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a web-based remote code compiler, which, when executed by a processor, performs the following steps:
[0103] 1. Start the Git daemon service locally to share the local Git repository on the local network.
[0104] 2. Access the web service provided by the remote compilation server locally and perform login verification.
[0105] 3. After successfully logging in, write the commands required for code compilation in the compilation command editing module.
[0106] 4. Select manual mode, automatic mode, or timed mode to trigger code compilation.
[0107] 5. Display compilation logs and prompts generated during the compilation process in real time.
[0108] 6. When a compilation stop command is issued, code compilation is stopped immediately, and the compiler waits for manual or automatic mode to trigger a new compilation.
[0109] 7. After successful compilation, download the generated BIOS BIN file and code compilation log.
[0110] 8. The compilation-related information, including the compilation log, BIN file, username, branch name, and compilation status, is stored in a specific format in the MySQL database of the compilation server. The compilation success rate is calculated by matching the corresponding user information from the MySQL database.
[0111] 9. Statistical analysis and ranking of users' compilation success rates.
[0112] In summary, this invention enables code compilation using a server without affecting local development and debugging, effectively improving compilation efficiency and saving manpower and time.
[0113] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The methods disclosed in the embodiments are described simply because they correspond to the systems disclosed in the embodiments; relevant details can be found in the method section.
[0114] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0115] In the embodiments provided by this invention, it should be understood that the disclosed systems, methods, and approaches can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.
[0116] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0117] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit.
[0118] Similarly, in the various embodiments of the present invention, each processing unit can be integrated into a functional module, or each processing unit can exist physically, or two or more processing units can be integrated into a functional module.
[0119] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0120] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0121] The foregoing has provided a detailed description of the web-based remote code compilation method, system, apparatus, and readable storage medium provided by this invention. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this invention. It should be noted that those skilled in the art can make various improvements and modifications to this invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this invention.
Claims
1. A web-based remote code compilation method, characterized in that, include: Start the Git daemon service locally to share the local Git repository on the local network; Access the web service provided by the remote compilation server locally and perform login verification; After successfully logging in, write the commands required for code compilation in the compilation command editing module; Choose manual mode, automatic mode, or timed mode to trigger code compilation; Displays compilation logs and error messages generated during the compilation process in real time; When a compilation stop command is issued, code compilation is stopped immediately, and the compiler waits for manual or automatic mode to trigger a new code compilation. After successful compilation, download the generated BIOS BIN file and code compilation log; Compilation-related information, including compilation logs, BIN files, usernames, branch names, and compilation status, is stored in a specific format in the MySQL database of the compilation server. The compilation success rate is calculated by matching the corresponding user information from the MySQL database. Statistical analysis and ranking of users' compilation success rates; The commands required for code compilation are written in the compilation command editing module, including: In the compiler command editing module, select the Git branch using commands, choose the corresponding compiler version, and save the selection results; if multiple code branches need to be compiled, edit the specific execution commands for each code branch as needed; The selection of manual mode, automatic mode, or timed mode to trigger code compilation includes: Select the code compilation mode using the preset mode selection dropdown button; If manual mode is selected, code compilation will be triggered based on the user's instructions; the user's instructions refer to the user clicking the start compilation button corresponding to the code branch. If you choose automatic mode, when there are multiple code branches, the server will actively check if there are any new commits on each code branch. As soon as there is a new commit, the compilation of the code on the corresponding code branch will be triggered. In timed mode, code branch compilation is triggered once according to the preset time interval; The selection of manual mode, automatic mode, or timed mode to trigger code compilation also includes: If the code to be compiled is being compiled on the server for the first time, the code of the branch to be compiled will be completely downloaded from the local Git repository to the corresponding user directory on the server. If the code has already been compiled, only the new changes in the local Git repository will be synchronized, and the compilation will begin after the code is synchronized.
2. The web-based remote code compilation method according to claim 1, characterized in that, The login verification process includes: New users register by clicking the registration button and entering their email address and password. The registration information is then stored in the MySQL database on the server. Existing users log in directly. The login information is matched with the information stored in the database. If the match is successful, the login is successful; otherwise, the login fails.
3. The web-based remote code compilation method according to claim 1, characterized in that, The real-time display of compilation logs and prompts generated during the compilation process includes: Display the compilation log generated during the compilation process in real time; After compilation is complete, the preset "Start Compilation" button will turn green as a message indicating that the corresponding code branch has been successfully compiled. If compilation fails, the default "Start Compilation" button will turn red as a message indicating that the compilation of the corresponding code branch has failed. After compilation is complete, the compilation results will be sent to the user via email.
4. The web-based remote code compilation method according to claim 1, characterized in that, The MySQL database on the server stores compilation-related information for the last 20 compilations.
5. A web-based remote code compilation system, characterized in that, include: Registration and login module, function button module, command editing module, information display module, and history module; The registration and login module is used for user verification and identification; The function button module includes a code branch X start compilation button, a code branch X stop compilation button, a code branch X generate Bin file download button, a code branch X compilation log download button, and a mode selection drop-down button; The code branch X includes code branch a, code branch b, and code branch c. The mode selection dropdown button has three modes: manual compilation, automatic compilation, and scheduled compilation. If manual mode is selected, code compilation is triggered according to the user's instructions. The user's instructions refer to the user clicking the start compilation button corresponding to the code branch. If automatic mode is selected, when there are multiple code branches, the server will actively check if there are any new commits on each code branch. As soon as a new commit is made, the code compilation of the corresponding code branch will be triggered. If scheduled mode is selected, code branch compilation will be triggered once at a preset time interval. The command editing module is used to select compilation commands and git branches based on the code, and edit specific commands for code branches a, b, and c as needed. The information display module is used to display the code compilation log and compilation time in real time during the current code compilation process. When multiple branches of code are compiled at the same time, they are displayed in a split screen. The history module is used to record code compilation logs, generate bin files and provide download functionality, and also to statistically analyze and rank the compilation success rates of multiple users; The system is also configured to perform the following steps: If the code to be compiled is being compiled on the server for the first time, the code of the branch to be compiled will be completely downloaded from the local Git repository to the corresponding user directory on the server. If the code has already been compiled, only the new changes in the local Git repository will be synchronized, and the compilation will begin after the code is synchronized.
6. A web-based remote code compilation device, characterized in that, include: Memory used to store web-based remote code compilers; A processor, configured to implement the steps of the web-based remote code compilation method as described in any one of claims 1 to 4 when executing the web-based remote code compilation program.
7. A readable storage medium, characterized in that: The readable storage medium stores a web-based remote code compiler, which, when executed by a processor, implements the steps of the web-based remote code compilation method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Development environment control method and device, computer equipment and storage medium
CN109582291A
Unity project compiling method and system, computer equipment and storage medium
CN110659030A