Software processing method and device, equipment and storage medium

CN118567668APending Publication Date: 2024-08-30SHENZHEN STREAMING VIDEO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410711776.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the development of desktop application systems, the separate packaging method of front-end and back-end results in cumbersome independent deployment and management of user interface and back-end services, low usage efficiency, and poor version matching.

Method used

By setting a preset packaging configuration file, the packaging tool in the cross-platform desktop application development framework is used to package the resource files of the interface application and the back-end service together, and generate the target executable file installation package to realize the integration of the user interface and the back-end service. Deployment and management.

Benefits of technology

It simplifies the software installation and management operations, improves the fluency of use, reduces the complexity of manual operations, and realizes the integrated deployment of interface applications and back-end services for easy management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567668A
    Figure CN118567668A
Patent Text Reader

Abstract

The invention is suitable for the technical field of computer software, and provides a software processing method and device, equipment and a storage medium, the method comprises the following steps: setting a preset packaging configuration file according to a resource file corresponding to an interface application and a resource file corresponding to a back-end service; according to the preset packaging configuration file, packaging a resource file corresponding to the interface application and a resource file corresponding to the back-end service by utilizing a packaging tool in a preset cross-platform desktop application program development framework, and generating a target executable file installation package, a resource file corresponding to the interface application and a resource file corresponding to the back-end service exist in the target executable file installation package at the same time; according to the target executable file installation package, the interface application and the back-end service are installed at the same time, according to the scheme, the resource files corresponding to the interface application and the back-end service are packaged together, and then integrated deployment of the interface application and the back-end service is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer software technology, and in particular to a software processing method, device, equipment and storage medium. Background Art

[0002] In desktop application system development, the front-end is responsible for displaying the interface and user interaction, while the back-end is responsible for data processing and business logic. The front-end and back-end usually use different technology stacks and development languages. For example, the front-end may use technologies such as HyperText Markup Language (HTML), Cascading Style Sheets (CSS), and JavaScript, while the back-end may use technologies such as Java, Python, and Node.js.

[0003] During the software development process, in order to integrate various resource files, such as code, images, style sheets, etc., it is necessary to package the corresponding resource files of the front-end and back-end to help developers better manage the code.

[0004] In traditional solutions, the user interface and backend services are packaged separately, that is, they are packaged into two installation packages independently. In this way, the user interface and backend services can be deployed and expanded independently. However, the separate packaging requires the user interface and backend services to be deployed and managed separately. The operations that users need to perform when using the software are cumbersome and the usage efficiency is low. Summary of the invention

[0005] The embodiments of the present application provide a software processing method, apparatus, device and storage medium, which can solve the technical problem of how to achieve integrated management of front-end user interface and back-end service.

[0006] In a first aspect, an embodiment of the present application provides a software processing method, including:

[0007] A preset packaging configuration file is set according to the resource files corresponding to the interface application and the resource files corresponding to the backend service. The preset packaging configuration file is used to indicate the moving path of the resource files corresponding to the backend service during the software packaging process.

[0008] According to the preset packaging configuration file, the resource files corresponding to the interface application and the resource files corresponding to the back-end service are packaged using the packaging tool in the preset cross-platform desktop application development framework to generate a target executable file installation package, which contains both the resource files corresponding to the interface application and the resource files corresponding to the back-end service.

[0009] Install the UI application and backend service at the same time according to the target executable file installation package.

[0010] In one implementation, according to a preset packaging configuration file, a packaging tool in a preset cross-platform desktop application development framework is used to package resource files corresponding to the interface application and resource files corresponding to the backend service to generate a target executable file installation package, including:

[0011] According to the preset packaging configuration file, the resource files corresponding to the backend service are copied from the source path to the target path to generate the target file. The source path is the location of the resource files corresponding to the backend service, and the target path is the location of the resource files corresponding to the interface application. The target file contains both the resource files corresponding to the interface application and the resource files corresponding to the backend service.

[0012] The target files are packaged using a packaging tool in a preset cross-platform desktop application development framework to generate a target executable file installation package.

[0013] In one implementation, after the interface application and the backend service are installed, when the interface application is started, the startup script corresponding to the backend service in the target file is called, and the backend service is started at the same time.

[0014] In one implementation, when the interface application is closed, a stop script corresponding to the backend service in the target file is called to stop the backend service at the same time.

[0015] In one implementation, when the interface application is uninstalled, the installation directory corresponding to the interface application is deleted, and the backend service is uninstalled at the same time, and the installation directory includes resource files corresponding to the backend service.

[0016] In one implementation, the cross-platform desktop application development framework is preset as an electronic framework.

[0017] In one implementation, the packaging tool is an electron-builder packaging tool.

[0018] In a second aspect, an embodiment of the present application provides a software processing device, which has the function of implementing the method in the first aspect or any possible implementation thereof. Specifically, the device includes a unit for implementing the method in the first aspect or any possible implementation thereof.

[0019] In one embodiment, the device comprises:

[0020] The configuration unit is used to set a preset packaging configuration file according to the resource files corresponding to the interface application and the resource files corresponding to the backend service. The preset packaging configuration file is used to indicate the movement path of the resource files corresponding to the backend service during the software packaging process.

[0021] The packaging unit is used to package the resource files corresponding to the interface application and the resource files corresponding to the backend service according to the preset packaging configuration file and use the packaging tool in the preset cross-platform desktop application development framework to generate a target executable file installation package, in which the target executable file installation package contains both the resource files corresponding to the interface application and the resource files corresponding to the backend service.

[0022] The processing unit is used to simultaneously install the interface application and the backend service according to the target executable file installation package.

[0023] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the computer device implements a method according to any one of the implementation modes of the first aspect.

[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a computer device, the computer device implements the method of any one of the implementation methods of the first aspect above.

[0025] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device executes a method of any one of the implementation modes of the first aspect above.

[0026] Compared with the prior art, the embodiments of the present application have the following beneficial effects: through a user-defined preset packaging configuration file, the moving path of the back-end service resource file in the software packaging process can be accurately indicated, ensuring that the resource file can be correctly packaged into the target executable file installation package; using the packaging tool in the cross-platform desktop application development framework, the resource files corresponding to the interface application and the back-end service can be conveniently packaged together, reducing the complexity of manual operations and improving packaging efficiency; the target executable file installation package generated by packaging contains both the resource files corresponding to the interface application and the resource files corresponding to the back-end service. The user only needs to install it once to deploy the interface application and the back-end service at the same time, realizing the integrated deployment of the interface application and the back-end service, and facilitating the integrated management of the interface application and the back-end service. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a schematic diagram of an interaction scenario between a user and an application provided in an embodiment of the present application.

[0028] Figure 2 It is a flowchart of a software processing method provided in an embodiment of the present application.

[0029] Figure 3This is a schematic diagram of a scenario for starting an application program provided in an embodiment of the present application.

[0030] Figure 4 This is a schematic diagram of a scenario in which an application is stopped provided in an embodiment of the present application.

[0031] Figure 5 It is a structural diagram of a software processing device provided in an embodiment of the present application.

[0032] Figure 6 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In the usage scenario of computer applications, users can interact with various applications through the desktop application system installed on the computer.

[0034] Among them, the interface that can be displayed intuitively is the user interface, which is usually in graphical form. The user interface includes various elements that users can see and operate, such as buttons, menus, text boxes, etc. Users interact with the application through these elements.

[0035] Correspondingly, the server-side part of these applications is the back-end service, which is responsible for handling data storage, logic processing, interaction with the database, etc. Back-end services usually run on the server and provide data and functional support to the front-end application.

[0036] Combine the following Figure 1 Let's explain a specific interaction scenario between a user and an application.

[0037] Figure 1 It is a schematic diagram of an interaction scenario between a user and an application provided in an embodiment of the present application.

[0038] like Figure 1 As shown, data can be transmitted between the user interface (also known as the front end) and the backend service (also known as the back end) through the network. Usually, the user interface sends a request (such as an HTTP request) to the backend service, the backend service receives the request and processes the data, and then returns the processing result to the user interface.

[0039] During the use of the application, the user usually performs a series of operations such as installation, startup, shutdown, and uninstallation. In the traditional software packaging and installation solution, the user interface and backend service are generally packaged separately and deployed in different environments. The user interface is usually packaged into static resource files (such as HTML, CSS, JavaScript files), and the backend service is packaged into a server program (such as Java, Python, Node.js application). Such a separate packaging solution allows the front-end and back-end to work independently, but this method requires the user interface and back-end service to be installed separately during the installation phase, and independent management is also required when starting, shutting down or uninstalling the application. In other words, the traditional solution divides the two interrelated software, the user interface and the back-end service, into two independent individuals, which leads to a series of problems such as cumbersome operation and poor version matching during the installation, use, and management of the application.

[0040] In response to the above problems, this application proposes a software processing method that can realize the integrated installation and use of the user interface and back-end services, simplify the software usage operations, improve the fluency of software use, and avoid the cumbersome operations and version incompatibility problems caused by the separate packaging method of the user interface and back-end services.

[0041] In order to further illustrate the technical solution of the present application, specific embodiments are provided below.

[0042] Figure 2 It is a flowchart of a software processing method provided in an embodiment of the present application.

[0043] like Figure 2 As shown, the above method includes the following steps S201 to S203.

[0044] S201. Set a preset packaging configuration file according to the resource files corresponding to the interface application and the resource files corresponding to the backend service.

[0045] The preset packaging configuration file is used to indicate the movement path of the resource files corresponding to the backend service during the software packaging process.

[0046] Interface applications refer to the front-end user interface part, which is used to build the user interaction interface. Interface applications usually run on the user's device, such as a computer, mobile phone, tablet, etc. Users interact with the application through the interface application to input data, view information, perform operations, etc.

[0047] Backend services refer to server-side programs that provide data processing, logic processing, storage management and other functional support. Backend services usually run on the server side and are responsible for receiving requests from interface applications or other clients, processing requests and returning results. Backend services can communicate with interface applications or other clients through the network and provide data storage, processing, calculation and other functions.

[0048] Resource files refer to various files used in software development, including but not limited to text files, image files, style sheet files, script files, etc., which are used to implement software functions and interface display. Resource files usually contain various data and information required for program operation.

[0049] As an example but not limitation, the resource files corresponding to the interface application may include the following: HTML files, used to define the structure and content of the web page; CSS files, used to define the style and layout of the web page; JavaScript files, used to implement the interactive functions of the web page; image files (such as PNG, JPEG, etc.), used for image display in the web page; font files, used to define the font style in the web page; other front-end frameworks or library files (such as React, Vue.js, etc.), used to build web applications.

[0050] As an example but not a limitation, the resource files corresponding to the back-end service may include the following: back-end code files (such as Java, Python, Node.js, etc.), used to implement the business logic of the back-end service; database configuration files (such as MySQL, MongoDB, etc.), used to connect to the database and perform data operations, configuration files (such as JSON, YAML, etc.), used to configure the operating parameters of the back-end service, log files (such as .log files), used to record the operating logs of the back-end service, and other back-end frameworks or library files (such as Spring Boot, Express.js, etc.) used to build back-end services.

[0051] It can be understood that resource files play an important role in software development. By properly organizing and managing these resource files, the functions of the front-end user interface and back-end services can be realized and displayed.

[0052] A packaging configuration file is a configuration file used to instruct packaging tools on how to package a project. Packaging tools usually package the source code, resource files, etc. in a project into a deployable application or library based on the rules and instructions in the packaging configuration file.

[0053] The preset packaging configuration file is a packaging configuration file that is customized according to user needs. The preset packaging configuration file can specify the movement path of the resource files corresponding to the backend service during the software packaging process. As an example but not a limitation, the preset packaging configuration file can be package.json.

[0054] package.json is a file used to configure Electron applications, which contains information such as application metadata, dependency packages, scripts, etc. In Electron Builder, you can use the package.json file to configure packaging options.

[0055] Taking package.json as an example, the specific content of the preset packaging configuration file can be expressed in code as follows:

[0056]

[0057] The moving path indicates the file address of the resource file corresponding to the backend service after the move, and can be specifically set according to different applications, and is not limited here.

[0058] According to user needs, the preset packaging configuration file can be set in a customized way, which can flexibly adapt to the packaging scenarios of various applications, avoid users manually copying and pasting resource files, reduce the possibility of configuration errors, and improve software processing efficiency.

[0059] S202: According to a preset packaging configuration file, a packaging tool in a preset cross-platform desktop application development framework is used to package resource files corresponding to the interface application and resource files corresponding to the backend service to generate a target executable file installation package.

[0060] The target executable file installation package contains both resource files corresponding to the interface application and resource files corresponding to the backend service.

[0061] In one implementation, the preset cross-platform desktop application development framework is the Electron framework.

[0062] The Electron framework is an open source framework that uses Web technologies (such as JavaScript, HTML, and CSS) to build cross-platform desktop applications. It allows developers to use front-end technologies to develop desktop applications that can run on platforms such as Windows, macOS, and Linux.

[0063] In one implementation, the packaging tool is an Electron Builder packaging tool.

[0064] Electron Builder is a packaging tool that comes with the Electron framework, which can package Electron applications into executable files.

[0065] Combined with the above, the application's entry file, output file path and other information are pre-specified through the configured preset packaging configuration file (such as package.json, etc.). The resource files corresponding to the interface application (HTML, CSS, JavaScript, pictures, etc.) and the resource files corresponding to the backend service (backend code, database configuration, etc.) are placed in the project directory. Use Electron Builder for packaging. Electron Builder will package all resource files in the project into the target executable file installation package according to the rules and instructions in the preset packaging configuration file.

[0066] After packaging is completed, installation package files (such as .exe files, dmg files, AppImage files, etc.) suitable for different operating systems can be generated, and users can directly install and run the application.

[0067] The Electron framework and the Electron Builder packaging tool can be used to quickly and easily package the interface application and backend services into a target executable file installation package, that is, to package the interface application and the backend service together into a complete application, which is convenient for subsequent deployment and distribution.

[0068] Combined with the above, this step can also be understood as Electron Builder reading the build field in the package.json file to obtain the packaging configuration options, and then performing packaging operations according to the configuration options, thereby realizing customized packaging of the application.

[0069] S203: Install the interface application and the backend service simultaneously according to the target executable file installation package.

[0070] It can be understood that after the resource files corresponding to the interface application and the resource files corresponding to the backend service are packaged according to the preset packaging configuration file, the interface application and the backend service will be packaged into a target executable file installation package.

[0071] In one example, when the target executable file installation package is an exe file, since the exe installation package is an executable installation file under the Windows platform, the user can directly double-click the file under the Windows system to install the application. The installed file contains both the interface application and the backend service.

[0072] By customizing the preset packaging configuration file, you can flexibly and clearly indicate the movement path of the backend service resource files during the software packaging process, ensuring that these resource files can be correctly packaged into the target executable file installation package, which can be applied to various different applications, expanding the flexibility of the solution; using the packaging tool in the cross-platform desktop application development framework, you can easily package the interface application and the backend service resource files together, reducing the complexity of manual operations and improving packaging efficiency; the packaged target executable file installation package contains both the resource files corresponding to the interface application and the resource files corresponding to the backend service. Users only need to install once to deploy the interface application and the backend service at the same time, simplifying the deployment process; when installing the target executable file, users can install the interface application and the backend service at the same time, reducing the user's operation steps and improving the user experience.

[0073] In one implementation, according to a preset packaging configuration file, resource files corresponding to the interface application and resource files corresponding to the backend service are packaged using a packaging tool in a preset cross-platform desktop application development framework to generate a target executable file installation package, including the following steps S301 to S302.

[0074] S301. Copy the resource files corresponding to the backend service from the source path to the target path according to the preset packaging configuration file to generate the target file.

[0075] The source path is the location of the resource files corresponding to the backend service, and the target path is the location of the resource files corresponding to the interface application. The target file contains both the resource files corresponding to the interface application and the resource files corresponding to the backend service.

[0076] It can be understood that the source path is the location of the original files, data or resources in the software development or packaging process. These original files can be various types of files such as source code files, configuration files, pictures, videos, etc. The source path is the starting point of the software development or packaging process. Developers or packaging tools will read the original files from the source path and process, compile, package, etc. to generate the final target file.

[0077] It can be understood that the target path refers to the location where the processed files, data or resources will be stored. These files are usually executable files, installation packages, configuration files, etc. generated after compilation, packaging or processing. The target path is the end point of the software development or packaging process. The processed files will be output to the target path for users to install, run or deploy.

[0078] As an example and not limitation, the source path may be expressed as "lib" and the target path may be expressed as "resources / app / lib".

[0079] Generally speaking, "lib" files are used to store dependent libraries, third-party libraries, or compiled library files of a project. For example, dependent libraries of Java services. These files can be the compilation results of a project, dependent library files, or other files related to project building and running. The "resources / app / lib" files are used to store resource files that need to be accessed when the application is running, such as static resources, configuration files, template files, etc. required for the interface application.

[0080] In one example, the package.json configuration file of the Electron framework includes the build attribute, under which there is the extraFiles attribute (i.e. "extra files and resources"). The extraFiles attribute can be used to recursively copy all files in the "source path" folder in the extraFiles configuration to the "target path" after the Electron Builder completes the core packaging process. Based on this function, the resource files corresponding to the backend service can be copied from the "lib" directory to "resources / app / lib".

[0081] The build property is a configuration item in the package.json file, which is used to define the packaging-related settings of the application, such as file paths, icons, etc.

[0082] The extraFiles property under the build property is a configuration item for additional files and resources, which is used to specify files or folders that need to be copied to the target path during the packaging process.

[0083] That is to say, by configuring the extraFiles property under the build property in the package.json file, you can copy the specified extra files and resources to the target path during the Electron Builder packaging process.

[0084] Combining the relevant principles, it can be understood that extraFiles is an array, each element of which is an object, containing two key properties, which can be expressed in code as follows:

[0085]

[0086] Correspondingly, copying the resource files corresponding to the backend service from the "lib" directory to "resources / app / lib" can be expressed in code as follows:

[0087]

[0088] The above content can be understood as starting from the project root directory "lib", copying the contents of all files and their subdirectories to the "resources / app / lib" directory in the final generated application package, that is, completing the copying of the resource files corresponding to the backend service from the source path to the target path and generating the target file.

[0089] The following introduces the specific content of a resource file corresponding to a backend service in conjunction with Table 1.

[0090] Table 1

[0091]

[0092] As shown in Table 1, in this way, the resource files corresponding to the backend service (represented by "server") can be placed in the "lib" directory. After packaging, all resources under the file "server" can be copied to "resources / app / lib".

[0093] S302: Use a packaging tool in a preset cross-platform desktop application development framework to package the target file to generate a target executable file installation package.

[0094] Combined with the above, according to the configured preset packaging configuration file, call the packaging tool Electron Builder in the Electron framework to package the interface application and the backend service resource files into the same installation package, that is, generate a target executable file installation package. The target executable file installation package can be used by users to deploy applications.

[0095] By presetting the packaging configuration file, you can accurately indicate the copy path of the resource files corresponding to the backend service, ensuring that the resource files corresponding to the backend service can be correctly copied to the target path, simplifying the operation process and avoiding possible errors caused by manual copying. Using the packaging tool Electron Builder in the Electron framework, you can easily package the target files together to generate a target executable file installation package, which improves the efficiency of packaging and reduces the complexity of manual operations. The final generated target executable file installation package contains both the resource files corresponding to the interface application and the backend service. Users only need to install it once to complete the deployment of the entire application, realizing integrated deployment.

[0096] In one implementation, after the interface application and the backend service are installed, when the interface application is started, the startup script corresponding to the backend service in the target file is called, and the backend service is started at the same time.

[0097] Combined with the above, because the "resources" directory is the resource directory of the interface application, the interface application can read the files in the directory and call the scripts in the directory at runtime, so the interface application can directly call the start script and stop script of the backend service.

[0098] As an example but not a limitation, the startup script of the backend service can be represented by code as follows:

[0099] \resources\app\lib\server\scripts\start.bat.

[0100] The content of start.bat is expressed in code as follows:

[0101] ..\jre\bin\java.exe-jar ..\dist_lib\pc-tool-service-1.0.0-SNAPSHOT.jar.

[0102] As an example but not a limitation, the stop script of the backend service can be represented by code as follows:

[0103] \resources\app\lib\server\scripts\stop.bat.

[0104] The content of stop.bat is expressed in code as follows:

[0105]

[0106] Combine the following Figure 3 This section introduces how users can start the UI application and backend services at the same time.

[0107] Figure 3 This is a schematic diagram of a scenario for starting an application program provided in an embodiment of the present application.

[0108] Combination Figure 3 In one example, when the UI application starts, the user clicks Figure 3 The startup icon corresponding to the interface application in the , through the user's click operation, can call the backend service startup script (\resources\app\lib\server\scripts\start.bat) at the same time, so as to realize the simultaneous startup of the interface application and the backend service.

[0109] In one implementation, when the interface application is closed, a stop script corresponding to the backend service in the target file is called to stop the backend service at the same time.

[0110] Combine the following Figure 4This section describes how to stop both the UI application and the backend service.

[0111] Figure 4 This is a schematic diagram of a scenario in which an application is stopped provided in an embodiment of the present application.

[0112] Combination Figure 4 In one example, when the interface application is closed, the user clicks Figure 4 The close button of the interface application in the , through the user's click operation, can call the backend service stop script (\resources\app\lib\server\scripts\stop.bat) at the same time, so as to stop the interface application and the backend service at the same time.

[0113] In one implementation, when the interface application is uninstalled, the installation directory corresponding to the interface application is deleted, and the backend service is uninstalled at the same time, and the installation directory includes resource files corresponding to the backend service.

[0114] The entire installation directory refers to the entire directory occupied by the application after it is installed on the computer, including executable files, dependent libraries, configuration files, resource files, etc. This directory usually contains all the components of the application and the required resources.

[0115] It is understandable that when uninstalling the interface application, the user can click to delete the entire application installation directory. Because the resource files corresponding to the backend service are under the interface application installation directory "resources / app / lib", the backend service will be deleted along with the interface application.

[0116] The above mainly introduces the method of the embodiment of the present application in conjunction with the accompanying drawings. It should be understood that although the various steps in the flowcharts involved in the embodiments described above are shown in sequence, these steps are not necessarily performed in sequence in the order shown in the figure. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the embodiments described above may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a part of the steps or stages in other steps. A device of an embodiment of the present application is introduced below in conjunction with the accompanying drawings. For simplicity, when introducing the device below, it will be appropriately omitted, and the relevant content can refer to the relevant description in the method above, and will not be repeated.

[0117] Figure 5A schematic diagram of the structure of a software processing device provided in an embodiment of the application.

[0118] like Figure 5 As shown, the device 1000 includes the following units.

[0119] The configuration unit 1001 is used to set a preset packaging configuration file according to the resource files corresponding to the interface application and the resource files corresponding to the backend service. The preset packaging configuration file is used to indicate the moving path of the resource files corresponding to the backend service during the software packaging process.

[0120] The packaging unit 1002 is used to package the resource files corresponding to the interface application and the resource files corresponding to the backend service according to the preset packaging configuration file using the packaging tool in the preset cross-platform desktop application development framework to generate a target executable file installation package, in which the target executable file installation package contains both the resource files corresponding to the interface application and the resource files corresponding to the backend service.

[0121] The processing unit 1003 is used to simultaneously install the interface application and the backend service according to the target executable file installation package.

[0122] In one implementation, the apparatus 1000 further includes a storage unit, which can be used to store instructions and / or data, so as to implement the method in the above embodiment.

[0123] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0124] Figure 6 Schematic diagram of the structure of the computer device provided in the embodiment of the present application. Figure 6 As shown, the computer device 3000 of this embodiment includes: at least one processor 3100 ( Figure 6 Only one) processor, memory 3200, and a computer program 3210 stored in the memory 3200 and executable on at least one processor 3100 are shown. When the processor 3100 executes the computer program 3210, the computer device implements the steps in the above embodiments.

[0125] The processor 3100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0126] The memory 3200 may be an internal storage unit of the computer device 3000 in some embodiments, such as a hard disk or memory of the computer device 3000. The memory 3200 may also be an external storage device of the computer device 3000 in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 3000. Further, the memory 3200 may also include both an internal storage unit of the computer device 3000 and an external storage device. The memory 3200 is used to store an operating system, an application program, a boot loader (Boot Loader) data, and other programs, such as a program code of a computer program, etc. The memory 3200 may also be used to temporarily store data that has been output or is to be output.

[0127] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0128] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a computer device, the computer device can implement the steps in the above-mentioned method embodiments.

[0129] The embodiment of the present application provides a computer program product. When the computer program product is executed on a computer device, the computer device can implement the above-mentioned methods.

[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the computer device can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0131] It should be understood that the size of the sequence number of each step in the above-described embodiment does not mean the order of execution, and the order of execution of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application. In the description, for the purpose of explanation rather than for limitation, specific details such as specific system structure, technology and the like are proposed, so as to thoroughly understand the embodiment of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, the detailed description of well-known systems, devices, circuits and methods is omitted to prevent unnecessary details from hindering the description of the present application.

[0132] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0133] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0134] Additionally, in the specification of the present application and the description of the appended claims, the terms “include,” “comprise,” “have,” and their variations all mean “including but not limited to,” unless otherwise specifically emphasized.

[0135] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0136] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0137] In the embodiments provided in the present application, it should be understood that the disclosed devices, computer equipment and methods can be implemented in other ways. For example, the device and computer equipment embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0138] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A software processing method, characterized in that: include: A preset packaging configuration file is set according to the resource files corresponding to the interface application and the resource files corresponding to the backend service, wherein the preset packaging configuration file is used to indicate a moving path of the resource files corresponding to the backend service during the software packaging process; According to the preset packaging configuration file, the resource files corresponding to the interface application and the resource files corresponding to the backend service are packaged using a packaging tool in a preset cross-platform desktop application development framework to generate a target executable file installation package, in which the resource files corresponding to the interface application and the resource files corresponding to the backend service are simultaneously present; The interface application and the backend service are installed simultaneously according to the target executable file installation package.

2. The method according to claim 1, characterized in that The method of packaging resource files corresponding to the interface application and resource files corresponding to the backend service according to the preset packaging configuration file and generating a target executable file installation package by using a packaging tool in a preset cross-platform desktop application development framework, includes: According to the preset packaging configuration file, the resource files corresponding to the backend service are copied from the source path to the target path to generate a target file, wherein the source path is the location where the resource files corresponding to the backend service are located, and the target path is the location where the resource files corresponding to the interface application are located, and the target file contains both the resource files corresponding to the interface application and the resource files corresponding to the backend service; The target file is packaged using a packaging tool in the preset cross-platform desktop application development framework to generate the target executable file installation package.

3. The method according to claim 2, characterized in that After the interface application and the backend service are installed, the method further includes: When the interface application is started, the startup script corresponding to the backend service in the target file is called, and the backend service is started at the same time.

4. The method according to claim 3, characterized in that: The method further comprises: When the interface application is closed, the stop script corresponding to the backend service in the target file is called to stop the backend service at the same time.

5. The method according to claim 3, characterized in that: The method further includes: when uninstalling the interface application, deleting the installation directory corresponding to the interface application and uninstalling the backend service at the same time, wherein the installation directory includes resource files corresponding to the backend service.

6. The method according to any one of claims 1 to 5, characterized in that The preset cross-platform desktop application development framework is an electronic framework.

7. The method according to claim 6, characterized in that The packaging tool is an electron builder packaging tool.

8. A software processing device, characterized in that: include: A configuration unit, used to set a preset packaging configuration file according to the resource files corresponding to the interface application and the resource files corresponding to the backend service, wherein the preset packaging configuration file is used to indicate a moving path of the resource files corresponding to the backend service during the software packaging process; A packaging unit, used to package the resource files corresponding to the interface application and the resource files corresponding to the backend service according to the preset packaging configuration file and to generate a target executable file installation package, wherein the target executable file installation package contains both the resource files corresponding to the interface application and the resource files corresponding to the backend service; A processing unit is used to simultaneously install the interface application and the backend service according to the target executable file installation package.

9. A computer device, characterized in that: The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the computer device implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer device, the method according to any one of claims 1 to 7 is implemented.