Deployment system and deployment method of Web and desktop application programs based on YAML

Through the modular configuration system based on YAML, it solves the problems of time-consuming initialization, difficult dependency management, security risks and insufficient visibility of software development tools in application construction and deployment, achieving a simplified deployment process and improved Security and cross-platform consistency.

CN118585205APending Publication Date: 2024-09-03XIAN YUANMOU SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410511893.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-26
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing software development tools suffer from time-consuming and error-prone initialization, difficult dependency management, limited visibility and control, high security risks, and inconsistent results across environments in application building, deployment, and environment setup, especially with manual deployment Processes are complex and difficult to integrate and maintain.

Method used

Adopts a modular execution and configuration system based on YAML, including translator component, operator component, job execution component, variable control component, process running component, configuration component and signature component. It analyzes and interprets configuration instructions through YAML specifications to manage variables, Execute deployment tasks, orchestrate deployment actions, identify conflicts, provide a security layer, and ensure the integrity and consistency of configuration files.

Benefits of technology

Simplifies the setup of the development environment and deployment pipeline, reduces manual workload and error rates, improves deployment security and stability, ensures cross-platform reliability and consistency, supports multi-platform and complex dependency deployment, and enhances Improved user interface visualization and interactivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585205A
    Figure CN118585205A
Patent Text Reader

Abstract

The invention discloses a deployment system and a deployment method for Web and desktop application programs based on YAML. The deployment system comprises a graphic user interface for Web or desktop application deployment, an executor for reading and executing configuration and a configuration signer for protecting configuration information. The graphical user interface deployed by the Web or desktop application provides a deployment operation page of the application; the executor for reading and executing the configuration reads a configuration instruction written based on the YAML; the configuration signer for protecting the configuration information can use a private key to sign according to the workflow YAML configuration, and use a public key to verify the content to avoid tampering, thereby providing high security for the tool. The invention provides a novel continuous deployment tool, the conciseness and flexibility of the YAML are utilized, the deployment and configuration of any type of application programs are simplified, and the software deployment efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software development tools, and mainly to a deployment system and method for Web and desktop applications based on YAML. Background Art

[0002] 1. Challenges in application building, deployment, and environment setup

[0003] Initialization is time-consuming and error-prone: Manually configuring development, test, and production environments, build tools, frameworks, on-demand services, and deployment pipelines is time-consuming and error-prone, such as incomplete environment setup and incorrect configuration of variables, services, or applications, which leads to delays, rework, and inconsistencies.

[0004] Difficulty managing dependencies: Installing and managing software dependencies in multiple environments and for different software template architectures is very challenging, especially for complex projects with numerous components.

[0005] Limited visibility and control: Inaccurate visibility into the code lifecycle and environment setup hinders troubleshooting and optimization efforts. Lack of insight into unit test runs and results, builds, and deployments, combined with inconsistent configurations, creates an opaque and error-prone process that is difficult to accurately identify issues, enables simpler and more efficient deployments, and is not easy to use and install without tools and measures that can enhance visibility and control.

[0006] Security risks: Manual deployment processes can introduce security vulnerabilities due to human error or improper configuration.

[0007] Inconsistent results across environments: Changes or incorrect configurations can lead to inconsistencies and availability issues across environments, complicating the cycle from analysis to deployment and testing.

[0008] 2. Current software solutions and their trade-offs

[0009] Configuration and deployment tools: While existing tools (such as Ansible, Chef, Puppet) and continuous deployment (CI / CD) pipelines (such as Jenkins) have improved configuration management and deployment efficiency in CI / CD pipelines, they often require a lot of complex setup and maintenance overhead. The huge knowledge barrier brought by the steep learning curve complicates the onboarding process, which may slow down the team's acceptance and extend the timeline. In addition, operating system compatibility restrictions may further limit its applicability, as well as security issues that configuration files may be modified, which will endanger the entire process, data, and cause infrastructure outages for servers and connected devices.

[0010] Limitations of existing tools: Integration with other tools can be difficult and force users to use their interfaces, and some require complex configurations that make it difficult for developers without specific expertise to get started. Many tools focus primarily on web applications or desktop applications, lacking support for both types of applications with different deployment requirements. Summary of the invention

[0011] In response to the technical problems of limitations of deployment tools in the prior art, this application proposes a modular execution and configuration system that can install and configure software on a single or multiple hosts. It can also execute and coordinate source code testing, build and deployment pipelines, and any commands or executable files that can be run on a shell or on a host. These hosts can be physical machines (such as servers) or virtual machines running on-premises or in cloud services. They can be located with the system itself or within the user's infrastructure. It may also be possible to execute instructions on any device that provides a standard connection interface, such as Wi-Fi, a network technology used for device communication on a smartphone.

[0012] According to one aspect of the present invention, a YAML-based Web and desktop application deployment system is proposed, comprising:

[0013] The translator component is used to translate the placeholder variables in the configuration file;

[0014] An operator component, used for the decision engine, selects a matching operator according to the characteristics of the host system, wherein the operator is located in an environment variable or in a specified file path;

[0015] The job execution component is used to call the operator component through the collected data information and select the operation command to perform the translation and arrangement of the job task action;

[0016] The variable control component is used to manage and provide the context for job execution by providing the variable types required for deployment in different environments;

[0017] The process running component is used to orchestrate a series of actions required for program deployment according to the requirements of the code template architecture;

[0018] Configuration component, which is used to identify and report conflicts and anomalies from the program deployment process, parse and interpret configuration instructions according to the YAML specification, and provide placeholders for variables;

[0019] The signature component is an independent security layer used to protect the integrity of the configuration. It uses encryption to sign the configuration file with a private key and embeds the signature in the configuration file for decryption and verification using the public key during program deployment.

[0020] The operator component is responsible for managing the results of program deployment or job execution.

[0021] The job execution component also includes: analyzing instructions parsed from the configuration file, and applying the analysis results to the system environment for execution.

[0022] The job execution component has precise resource management and powerful error handling capabilities, which can ensure the successful execution of tasks in various environments.

[0023] The different environments include application environment, system environment and process environment, and the variable types include application program variables, system variables and process variables.

[0024] The variable control component is an information anchor that manages and provides the context of job execution and can dynamically adapt to any scenario, ensuring consistent and reliable execution by providing flexible deployment of required variable types under various conditions, including but not limited to application, system, and process variables.

[0025] The process execution component orchestrates a series of actions required for successful deployment, including starting applications, shells, allocating resources, and interacting with different operator plug-ins.

[0026] The process running component also includes monitoring the execution process, capturing and processing exit codes, information, debugging or warning messages to ensure completion and identify any potential errors. The process running component's focus on accuracy and sequence ensures predictable and reliable deployment in cross-platform environments.

[0027] The configuration component also includes generating an internal representation of the deployment plan for syntax and semantic checking, verifying consistency and identifying and reporting errors or inconsistencies.

[0028] The configuration component is used to configure the configuration file manager, ensure controlled access during the deployment process, identify and report potential conflicts and anomalies, and thus prevent accidents during deployment. During configuration, the configuration component integrates with other components to share configuration information, parses and interprets configuration instructions according to the YAML specification, and provides placeholders for variables. In addition, the configuration component generates an internal representation of the deployment plan for further processing, performs syntax and semantic checks to ensure that the configuration file meets the defined standards, verifies consistency to avoid potential conflicts in the data, and identifies and reports errors or inconsistencies for users to correct before deployment.

[0029] The signature component is an independent security layer that protects the integrity of the configuration. It uses cryptography to sign the configuration file with a private key and embeds the signature in the file for subsequent verification using the public key. This cryptographic handshake ensures data authenticity, prevents unauthorized modifications, and enables non-repudiation. It works seamlessly with the core system to verify the configuration signature before execution, thereby ensuring the reliability of the process.

[0030] According to a second aspect of the present invention, a method for deploying an application based on the above-mentioned component tool is proposed, comprising: an initialization phase, a deployment preparation phase, a decision and execution phase, a process running phase, and a verification and security phase, specifically comprising the following steps:

[0031] 1) Initial stage:

[0032] Parse and load the configuration file for program deployment, use the configuration component to analyze configuration instructions according to the YAML specification, identify and report any conflicts or anomalies, the configuration file contains placeholder variables, and the placeholder variables are replaced with actual values ​​during the deployment process;

[0033] The configuration file is encrypted and signed by using the signature component to ensure the integrity and security of the configuration information. Before being deployed, the configuration file is signed by a private key and the signature is attached to the file for verification using a public key during deployment;

[0034] 2) Deployment preparation phase:

[0035] According to the deployment scenario and context, the variable control component manages and provides the variable types required for deployment, including environment variables and specified file path variables, and is responsible for filling the placeholder variables in the configuration file to make the configuration file become configuration information with practical significance;

[0036] The translator component is responsible for converting the placeholder variables in the configuration file into corresponding values ​​in the actual application scenario;

[0037] 3) Decision-making and execution stage:

[0038] According to the collected data information, the operator component is used to select the required operator, and the selection of the operator is based on the characteristics of the host system, specifically including: selecting a suitable operator to perform a specific deployment task through an environment variable or a specified file path variable;

[0039] Utilizing the job execution component to execute a series of operation commands, the operation commands are translated and arranged to adapt to the deployment requirements of the host environment;

[0040] 4) Process running stage:

[0041] The process running component is used to orchestrate the startup, configuration and operation required for program deployment according to the architectural requirements of the program code template. The process running component will create and manage the program's execution process according to a predetermined process to ensure that the program is deployed and run in the correct manner.

[0042] 5) Verification and security stage:

[0043] During or after the deployment, the signature of the configuration file is verified using the public key provided by the signature component to ensure that the configuration information used in the deployment process has not been tampered with, thereby ensuring the integrity and security of the deployment.

[0044] The program deployment is finally dynamically and visually displayed on a user interface, and the core architecture of the user interface can be interactive and used across platforms.

[0045] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which one or more computer programs are stored. When the one or more computer programs are executed by a computer processor, any of the above methods is implemented.

[0046] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:

[0047] 1) Simplified setup and configuration: Meeting the need for solutions that simplify the setup of development environments, build processes, and deployment pipelines, reducing manual work and potential errors.

[0048] 2) Enhanced security: Frequent configuration errors and unauthorized modifications can compromise deployment security. Implementing signed configuration files acts as a digital safety shield, minimizing human errors and preventing unauthorized modifications. This powerful approach significantly improves deployment security, ensuring stability and reliability.

[0049] 3) Cross-platform: Ensure reliable testing and quality assurance solutions that minimize changes in application behavior across different environments.

[0050] 4) YAML-based configuration: Due to the intuitive structure with indentation and key-value pairs, the configuration is simplified and can be understood by both technical and non-technical users, making it easy to access and maintain.

[0051] 5) Multi-platform support: Setting up a new environment can be tedious, especially when there are numerous dependencies. It contains platform universality at its core, providing a focused, dependency-free desktop launcher, as well as web that can be launched instantly in any relatively modern browser.

[0052] 6) Scalability: Can handle everything from simple unit test runs and environment tests to large, complex deployments with multiple dependencies.

[0053] 7) Security: Workflow YAML configuration files can be signed with a private key and the content can be verified with a public key to avoid tampering, which is not used in other tools on the market. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The accompanying drawings illustrate the embodiments and are used together with the description to explain the principles of the present invention. It will be easy to recognize other embodiments and many expected advantages of the embodiments because they become better understood by reference to the following detailed description. The elements of the drawings are not necessarily to scale with each other. The same reference numerals refer to corresponding similar parts.

[0055] Figure 1 A schematic diagram of a core driving process according to an embodiment of the present invention is shown;

[0056] Figure 2 An activity diagram schematic diagram showing the key role of the core library in process execution according to a specific embodiment of the present invention;

[0057] Figure 3 A schematic diagram showing an example of components for general function expansion according to a specific embodiment of the present invention is shown;

[0058] Figure 4 A schematic diagram showing a Web interface supporting script execution according to a specific embodiment of the present invention is shown;

[0059] Figure 5 A simplified workflow diagram of a desktop application mirroring its Web counterpart according to a specific embodiment of the present invention is shown;

[0060] Figure 6 A schematic diagram of a YAML configuration file source code example according to a specific embodiment of the present invention is shown. DETAILED DESCRIPTION

[0061] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0062] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0063] like Figure 1FIG. 4 shows a schematic diagram of a core driving process according to an embodiment of the present invention. Figure 1 As shown,

[0064] The translator component 1011 is used to translate and convert the placeholder variables in the configuration file;

[0065] An operator component 1012 is used for the decision engine to select a matching operator according to the characteristics of the host system, wherein the operator is located in an environment variable or in a specified file path;

[0066] The job execution component 1013 is used to call the operator component through the collected data information and select the operation command to perform the translation and arrangement of the job task action;

[0067] The variable control component 1014 is used to manage and provide the context for job execution by providing the variable types required for deployment in different environments;

[0068] The process running component 1015 is used to orchestrate a series of actions required for program deployment according to the requirements of the code template architecture;

[0069] Configuration component 1016, used to identify and report conflicts and anomalies from the program deployment process, analyze and interpret configuration instructions according to the YAML specification, and provide placeholders for variables;

[0070] The signature component 102 is an independent security layer for protecting the integrity of the configuration. It uses encryption to sign the configuration file through a private key and embeds the signature in the configuration file for decryption and verification using a public key during program deployment.

[0071] The user interface 103 is used to provide access permissions compatible with modern web browsers in a web interface, and the desktop version 104 provides out-of-the-box functions to perform jobs, suitable for environment configuration and settings.

[0072] The operator component 1012 is responsible for managing the results of program deployment or job execution.

[0073] The job execution component 1013 further includes: analyzing instructions parsed from the configuration file, and applying the analysis results to the system environment for execution.

[0074] The job execution component has precise resource management and powerful error handling capabilities, which can ensure the successful execution of tasks in various environments.

[0075] The different environments include application environment, system environment and process environment, and the variable types include application program variables, system variables and process variables.

[0076] The variable control component 1014 is an information anchor that manages and provides the context of job execution and can dynamically adapt to any scenario, ensuring consistent and reliable execution by providing flexible deployment of required variable types under various conditions, including but not limited to application, system, and process variables.

[0077] The process execution component 1015 orchestrates a series of actions required for successful deployment, including starting applications, shells, allocating resources, and interacting with different operator plug-ins.

[0078] The process running component 1015 also includes monitoring the execution process, capturing and processing exit codes, information, debugging or warning messages to ensure completion and identify any potential errors. The process running component's focus on accuracy and sequence ensures predictable and reliable deployment in a cross-platform environment.

[0079] The configuration component 1016 also includes: generating an internal representation of the deployment plan for syntax and semantic checking, verifying consistency and identifying and reporting errors or inconsistencies.

[0080] The configuration component 1016 is used to configure the configuration file manager, ensure controlled access during the deployment process, and can identify and report potential conflicts and anomalies to prevent accidents during deployment. During configuration, the configuration component 1016 integrates with other components to share configuration information, parses and interprets configuration instructions according to the YAML specification, and provides placeholders for variables. In addition, the configuration component 1016 generates an internal representation of the deployment plan for further processing, performs syntax and semantic checks to ensure that the configuration file meets the defined standards, verifies consistency to avoid potential conflicts in the data, and identifies and reports errors or inconsistencies for users to correct before deployment.

[0081] The signature component 102 is an independent security layer that protects the integrity of the configuration. It uses encryption to sign the configuration file with a private key and embeds the signature in the file for subsequent verification using a public key. This cryptographic handshake ensures data authenticity, prevents unauthorized modification and achieves non-repudiation. It works seamlessly with the core system to verify the configuration signature before execution, thereby ensuring the reliability of the process.

[0082] The user interface 103 is used to provide access permissions that may be compatible with modern web browsers in a web interface, and the desktop version 104 provides out-of-the-box functions to perform jobs, suitable for environment configuration and settings.

[0083] Figure 1The component diagram intuitively maps the core architecture. The core drives the flow, interacts with external databases and accesses configurations stored in variables. Both the web interface 103 and the desktop interface 104 facilitate user interaction and progress monitoring. Specific implementation components such as code storage 1031 for template testing and artifact mapping for web downloads further enhance functionality. The diagram highlights features such as offline operation, library reuse, and configuration security.

[0084] The method for program deployment using the component tool of the present invention includes: an initialization phase, a deployment preparation phase, a decision and execution phase, a process operation phase, and a verification and security phase, specifically including the following steps:

[0085] 1) Initial stage:

[0086] Parse and load the configuration file for program deployment, using the configuration component 1016 to analyze configuration instructions according to the YAML specification, identify and report any conflicts or anomalies, the configuration file contains placeholder variables, and the placeholder variables are replaced with actual values ​​during the deployment process;

[0087] The configuration file is encrypted and signed by the signature component 102 to ensure the integrity and security of the configuration information. Before the configuration file is deployed, it is signed by a private key and the signature is attached to the file for verification by a public key during deployment.

[0088] 2) Deployment preparation phase:

[0089] According to the deployment scenario and context, the variable control component 1014 manages and provides the variable types required for deployment, including environment variables and specified file path variables, and is responsible for filling the placeholder variables in the configuration file to make the configuration file become configuration information with practical significance;

[0090] The translator component 1011 is responsible for converting the placeholder variables in the configuration file into corresponding values ​​in the actual application scenario;

[0091] 3) Decision-making and execution stage:

[0092] According to the collected data information, the operator component 1012 is used to select the required operator. The selection of the operator is based on the characteristics of the host system, specifically including: selecting a suitable operator to perform a specific deployment task through an environment variable or a specified file path variable;

[0093] Utilize the job execution component 1013 to execute a series of operation commands, which are translated and arranged to adapt to the deployment requirements of the host environment;

[0094] 4) Process running stage:

[0095] The process running component 1015 is used to orchestrate the startup, configuration and operation required for program deployment according to the architectural requirements of the program code template. The process running component 1015 will create and manage the program's execution process according to a predetermined process to ensure that the program is deployed and run in the correct manner.

[0096] 5) Verification and security stage:

[0097] During the deployment process or after the deployment is completed, the signature of the configuration file is verified using the public key provided by the signature component 102 to ensure that the configuration information used in the deployment process has not been tampered with, thereby ensuring the integrity and security of the deployment.

[0098] The final state of program deployment is displayed on the user interface, which is used to provide access permissions compatible with modern web browsers on the web interface 103, and the desktop interface 104 provides out-of-the-box functions to execute jobs, suitable for environment configuration and settings.

[0099] Both interfaces are seamlessly connected to the core system via API, empowering users through intuitive interaction and efficient management.

[0100] The desktop version minimizes external dependencies, uses minimal Microsoft Windows dependencies, and enables out-of-the-box environment configuration and setup. This reduced dependency simplifies the installation and configuration process and minimizes potential conflicts with existing system resources. Offline capabilities give developers the ability to work uninterrupted when the Internet connection is interrupted.

[0101] The deployment of the present invention also employs sequential execution enforcement, enforcing a single execution instance to prevent conflicts and unexpected side effects. This sequential mechanism can be implemented to ensure data integrity and consistency across multiple operations, avoid race conditions or resource contention issues, and enhance system reliability and prevent potential errors.

[0102] like Figure 2 The activity diagram schematic diagram shows the key role of the core library in the process execution according to a specific embodiment of the present invention. The template architecture is tested. The activity diagram traces the dynamic path from loading configuration to capturing results, showing the key role of the core library in the process execution. It depicts the process of preparation, mobilization, translation, execution and completion, and highlights the configuration security. The specific process is as follows:

[0103] First, load and analyze the configuration, use the signature component to verify whether the signature of the configuration file is valid, and create a configuration template to enter the configuration;

[0104] Get all related jobs, call the variable control component to prepare variables, and the variables may be application variables, system variables or process variables;

[0105] Variable-based configuration 215, 204 enables flexible multi-environment management, where scripts can be defined and assigned to specific environments (e.g., development, test, production) by setting environment variables 1014. This flexible approach can automatically execute appropriate scripts for each environment;

[0106] Select the execution module and the corresponding job, call the translator component to convert and process the variables, and generate the final executable data;

[0107] Execute the script command to obtain the result, and finally check whether there are remaining jobs. If there are remaining jobs, continue to execute the jobs; otherwise, the job execution ends.

[0108] The generated source code is used to test the code architecture template, and the generated application source code can be obtained from the code storage component 1031 to test the architecture template. The generated code can be deployed to a pre-configured web server to simulate a real-world scenario. This testing process allows developers to verify the validity of the template, identify design flaws, optimize performance, and gain insight into the behavior of deployed applications. This embodiment highlights the potential of the present invention in facilitating early detection of architecture problems, which can improve code quality and streamline development processes.

[0109] Figure 3 An example schematic diagram of components outlining functional extensions according to a specific embodiment of the present invention is shown. The central deployment module library acts as a repository of pre-configured, ready-to-use modules for various scenarios. The PowerShell module injects fine-grained scripting capabilities.

[0110] The MetaOps system 101 includes a translator component, an operator component, a job execution component, a variable control component, a process running component, a configuration component, and a signature component, which implement functional expansion and improve the reuse of libraries for efficiency. This function allows the expansion of functions in a shell (such as PowerShell 302) or the integration of external libraries through other similar mechanisms 301. This flexibility allows developers to use pre-built modules to simplify workflows and reduce development time to complete common tasks. Access special functions that are not available in the native shell environment, enhance application possibilities, automate repetitive processes through library functions, and improve efficiency and consistency.

[0111] Then, if Figure 4The figure shows a schematic diagram of a web interface supporting script execution according to a specific embodiment of the present invention. At its core, the central panel displays the available stages, jobs, and scripts. The real-time progress is visualized in a prominent position below, and the user is kept informed of the situation through detailed logs. This concise and orderly layout simplifies script execution.

[0112] Real-time execution status visualization can help developers monitor progress and identify potential bottlenecks, detect errors or unexpected behaviors in a timely manner, gain a deeper understanding of code execution patterns, and optimize code efficiency and performance.

[0113] Then, if Figure 5 A simplified workflow diagram of a desktop application mirroring its web counterpart according to a specific embodiment of the present invention is shown, where the desktop application mirrors the simplified workflow of its web counterpart, placing packages front and center for selection from a dedicated list. Real-time output commands are located below, and detailed logs keep users informed. Variable configuration takes center stage on an intuitive panel. This familiar layout is optimized for desktop interaction, allowing users to perform efficiently.

[0114] Artifact mapping for web interface download allows configuration of generated artifacts, including but not limited to APK, JAR, WAR, DLL, and EXE files 4012, for easy download through the system's web interface. This mapping mechanism enables direct distribution and sharing of assets without the use of external tools, and integrates with version control systems for artifact tracking and management, improving user experience.

[0115] Figure 6 A schematic diagram of a YAML configuration file source code example according to a specific embodiment of the present invention is shown, presenting a structured hierarchy of stages and jobs, each of which has a corresponding script configuration. It is worth noting that it highlights the "signature" parameter, which is an innovative feature that can implement execution and configuration independently of the source code, providing potential flexibility and efficiency enhancements.

[0116] The present invention implements optional signature verification 6011 for configurations to enhance security. This mechanism can be enabled or disabled through the web interface settings to verify the authenticity and integrity of the configuration before execution. This helps prevent unauthorized modifications and protects the system from potential malicious or misconfigurations.

[0117] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0118] The modules involved in the embodiments of the present application may be implemented by software or by hardware.

[0119] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.

Claims

1. A YAML-based deployment system for Web and desktop applications, characterized in that: Includes the following components: The translator component is used to translate the placeholder variables in the configuration file; An operator component, used for the decision engine, selects a matching operator according to the characteristics of the host system, wherein the operator is located in an environment variable or in a specified file path; The job execution component is used to call the operator component through the collected data information and select the operation command to perform the translation and arrangement of the job task action; The variable control component is used to manage and provide the context for job execution by providing the variable types required for deployment in different environments; The process running component is used to orchestrate a series of actions required for program deployment according to the requirements of the code template architecture; Configuration component, which is used to identify and report conflicts and anomalies from the program deployment process, parse and interpret configuration instructions according to the YAML specification, and provide placeholders for variables; The signature component is an independent security layer used to protect the integrity of the configuration. It uses encryption to sign the configuration file with a private key and embeds the signature in the configuration file for decryption and verification using the public key during program deployment.

2. The system according to claim 1, characterized in that: The operator component is responsible for managing the results of program deployment or job execution.

3. The system according to claim 1, characterized in that: The job execution component also includes: analyzing instructions parsed from the configuration file, and applying the analysis results to the system environment for execution.

4. The system according to claim 1, characterized in that: The different environments include application environment, system environment and process environment, and the variable types include application program variables, system variables and process variables.

5. The system according to claim 1, characterized in that: The process execution component orchestrates a series of actions required for program deployment, which involve starting applications, shells, allocating resources, and interacting with different operator plug-ins.

6. The system according to claim 1, characterized in that: The process running component also includes monitoring the execution process, capturing and processing exit codes, information, debugging or warning messages.

7. The system according to claim 1, characterized in that: The configuration component also includes generating an internal representation of the deployment plan for syntax and semantic checking, verifying consistency and identifying and reporting errors or inconsistencies.

8. A method for deploying Web and desktop applications based on YAML, characterized in that: The deployment method implemented by the system according to any one of claims 1 to 7 comprises: an initialization phase, a deployment preparation phase, a decision and execution phase, a process running phase and a verification and security phase, specifically comprising the following steps: 1) Initial stage: Parse and load the configuration file for program deployment, use the configuration component to analyze configuration instructions according to the YAML specification, identify and report any conflicts or anomalies, the configuration file contains placeholder variables, and the placeholder variables are replaced with actual values ​​during the deployment process; The configuration file is encrypted and signed by using the signature component to ensure the integrity and security of the configuration information. Before being deployed, the configuration file is signed by a private key and the signature is attached to the file for verification using a public key during deployment; 2) Deployment preparation phase: According to the deployment scenario and context, the variable control component manages and provides the variable types required for deployment, including environment variables and specified file path variables, and is responsible for filling the placeholder variables in the configuration file to make the configuration file become configuration information with practical significance; The translator component is responsible for converting the placeholder variables in the configuration file into corresponding values ​​in the actual application scenario; 3) Decision-making and execution stage: According to the collected data information, the operator component is used to select the required operator, and the selection of the operator is based on the characteristics of the host system, specifically including: selecting a suitable operator to perform a specific deployment task through an environment variable or a specified file path variable; Utilizing the job execution component to execute a series of operation commands, the operation commands are translated and arranged to adapt to the deployment requirements of the host environment; 4) Process running stage: The process running component is used to orchestrate the startup, configuration and operation required for program deployment according to the architectural requirements of the program code template. The process running component will create and manage the program's execution process according to a predetermined process to ensure that the program is deployed and run in the correct manner. 5) Verification and security stage: During or after the deployment, the signature of the configuration file is verified using the public key provided by the signature component to ensure that the configuration information used in the deployment process has not been tampered with, thereby ensuring the integrity and security of the deployment.

9. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as claimed in claim 8.

10. A computing system comprising a processor and a memory, the processor being configured to execute the method as claimed in claim 8.