CN116225456A - Program deployment method, device, storage medium and terminal - Google Patents

Program deployment method, device, storage medium and terminal Download PDF

Info

Publication number
CN116225456A
CN116225456A CN202211600308.0A CN202211600308A CN116225456A CN 116225456 A CN116225456 A CN 116225456A CN 202211600308 A CN202211600308 A CN 202211600308A CN 116225456 A CN116225456 A CN 116225456A
Authority
CN
China
Prior art keywords
current
information
deployment
program
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211600308.0A
Other languages
Chinese (zh)
Inventor
张广华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211600308.0A priority Critical patent/CN116225456A/en
Publication of CN116225456A publication Critical patent/CN116225456A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses a program deployment method, a device, a storage medium and a terminal, which relate to the technical field of intelligent home/intelligent families, wherein the program deployment method comprises the following steps: based on a pre-acquired to-be-processed instruction, acquiring analysis information, wherein the analysis information comprises to-be-audited information and a current deployment identifier, determining a current deployment mode based on the current deployment identifier, processing the to-be-audited information based on the current deployment mode to obtain to-be-uploaded information, and sending the to-be-uploaded information to a current server, wherein the to-be-uploaded information is used for realizing functions corresponding to a program. Thus, the workload of a developer in the process of developing the program can be reduced, and the development efficiency of the program is improved.

Description

Program deployment method, device, storage medium and terminal
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for deploying a program.
Background
The applet has the characteristics of complete functions, no memory occupation, low popularization cost and the like, occupies more and more important positions in the front-end field, is an application which can be used without downloading and installing, and can be called by a user after being opened.
However, the functions of the existing applet development tool are not perfect, and the user is time-consuming and tedious in the process of developing the applet, so that the use requirement of the user cannot be met.
Disclosure of Invention
The application provides a program deployment method, a program deployment device, a storage medium and a terminal, which are used for solving the problems of time consumption, complexity and the like in the process of developing a small program in the prior art and improving the program development efficiency.
The application provides a program deployment method, which comprises the following steps:
based on a pre-acquired to-be-processed instruction, acquiring analysis information, wherein the analysis information comprises to-be-audited information and a current deployment identifier;
determining a current deployment mode based on the current deployment identifier;
and processing the information to be checked based on the current deployment mode to obtain information to be uploaded, and sending the information to be uploaded to a current server, wherein the information to be uploaded is used for realizing the functions corresponding to the program.
According to the method for deploying a program provided by the application, the step of acquiring analysis information based on the pre-acquired to-be-processed instruction comprises the following steps:
analyzing the instruction to be processed to obtain an analysis result, wherein the analysis result comprises a current identifier to be audited and a current deployment identifier;
acquiring the information to be checked based on the current identification to be checked, wherein the current identification to be checked and the information to be checked have a corresponding relation;
and taking the information to be checked and the current deployment identification as analysis information.
According to the program deployment method provided by the application, the current deployment identifier comprises a current compiling identifier and a current tool identifier;
the step of determining the current deployment mode based on the current deployment identifier comprises the following steps:
determining the current compiling capacity based on the current compiling identification;
determining a current uploading tool based on the current tool identifier;
and taking the current compiling capacity and the current uploading tool as a current deployment mode.
According to the method for deploying a program provided by the application, the step of determining the current compiling capability based on the current compiling identification includes:
and determining a function corresponding to the current compiling identification from a preset database based on the current compiling identification as the current compiling capability, wherein the database stores the corresponding relation between the compiling identification and the function.
According to the method for deploying the program provided by the application, the step of determining the current uploading tool based on the current tool identifier comprises the following steps:
and determining an interface corresponding to the current tool identifier from a preset database based on the current tool identifier as the current uploading tool, wherein the database stores the corresponding relation between the tool identifier and the interface.
According to the program deployment method provided by the application, the analysis information further comprises personalized information;
the step of sending the information to be uploaded to the current server comprises the following steps:
and adding a personalized tag to the information to be uploaded based on the personalized information, and sending the information to be uploaded with the personalized tag to the current server.
According to the method for deploying a program provided by the application, after the step of sending the information to be uploaded to the current server, the method further comprises:
and under the condition that the personalized information indicates that notification is required, receiving a deployment result sent by the current server, and performing notification processing on the deployment result.
The application also provides a program deployment device, which comprises:
the acquisition module is used for acquiring analysis information based on a pre-acquired to-be-processed instruction, wherein the analysis information comprises to-be-audited information and a current deployment identifier;
the determining module is used for determining a current deployment mode based on the current deployment identifier;
and the uploading module is used for processing the information to be checked based on the current deployment mode to obtain information to be uploaded and sending the information to be uploaded to a current server, wherein the information to be uploaded is used for realizing the functions corresponding to the program.
The present application also provides a terminal comprising a memory having stored therein a computer program and a processor arranged to implement a method of program deployment as described in any of the above by execution of the computer program.
The present application also provides a computer-readable storage medium comprising a stored program, wherein the program when run performs a method of implementing a program deployment as described in any of the above.
According to the program deployment method, device, storage medium and terminal, analysis information is acquired based on a pre-acquired to-be-processed instruction, wherein the analysis information comprises to-be-audited information and a current deployment identifier, a current deployment mode is determined based on the current deployment identifier, the to-be-audited information is processed based on the current deployment mode, to-be-uploaded information is obtained, and the to-be-uploaded information is sent to a current server, wherein the to-be-uploaded information is used for achieving functions corresponding to the program.
By the method, workload of a developer in the process of developing the program can be reduced, and therefore development efficiency of the program is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a method of program deployment according to an embodiment of the present application;
FIG. 2 is one of the flow diagrams of the method of program deployment provided herein;
FIG. 3 is a second flow chart of the method of program deployment provided in the present application;
FIG. 4 is a schematic diagram of a method of program deployment provided herein;
FIG. 5 is a schematic diagram of the apparatus for program deployment provided herein;
fig. 6 is a schematic structural diagram of a terminal provided in the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, a method of program deployment is provided. The program deployment method is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described program deployment method may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In order to improve the development efficiency of the program, the embodiments of the present application provide a method, an apparatus, a computer-readable storage medium, a terminal and a computer program product for deploying the program. A method for deploying a program according to an embodiment of the present application is described below with reference to fig. 2:
as shown in fig. 2, an embodiment of the present application provides a method for deploying a program, where the method includes:
s201, based on a pre-acquired to-be-processed instruction, analysis information is acquired.
Under the condition that a user needs to deploy the program, the user can receive a to-be-processed instruction sent by the user by clicking a corresponding deployment button, and further can acquire analysis information based on the pre-acquired to-be-processed instruction.
The analysis information comprises information to be audited and a current deployment identifier. The information to be checked is information of changing content corresponding to program deployment at the time, and the information to be checked is information which needs to be checked by an auditor.
For example, the terminal device may be provided with a vscore plug-in or an IDE (Integrated Development Environment ) plug-in, and the user may click on a "one-button deployment" button displayed on the terminal device, so that the terminal device may obtain a to-be-processed instruction sent by the user, and further may obtain the analysis information based on the pre-obtained to-be-processed instruction.
S202, determining a current deployment mode based on the current deployment identification.
The current deployment identifier is an identifier capable of identifying a deployment mode required by the program deployment at this time, that is, the current deployment identifier is an identifier capable of identifying a deployment mode for processing the information to be checked.
In one embodiment, after the current deployment identifier is obtained, a deployment mode corresponding to the current deployment identifier can be determined from a pre-stored corresponding relationship between the deployment identifier and the deployment mode based on the current deployment identifier, and the deployment mode corresponding to the current deployment identifier is used as the current deployment mode. The method is equivalent to determining the current deployment mode based on the current deployment identifier.
S203, processing the information to be checked based on the current deployment mode to obtain information to be uploaded, and sending the information to be uploaded to a current server.
After the current deployment mode is acquired, compiling and packaging the information to be audited based on the current deployment mode to obtain the information to be uploaded, and sending the information to be uploaded to the current server. The current server is a server determined based on the analysis information, and the information to be uploaded is used for realizing the corresponding function of the program.
The current server can receive the information to be uploaded, and then after the auditing personnel audit the information to be uploaded, the user can trigger the function corresponding to the information to be uploaded through the applet, so that the use experience of the user can be improved.
It can be seen that, in this embodiment, the current deployment manner may be determined based on the current deployment identifier, and further, the steps of compiling, packaging and uploading may be implemented based on the current deployment manner, so that the deployment of the program is completed, and the user does not need to perform corresponding operations in the steps of compiling, packaging and uploading, which may improve the development efficiency of the program and reduce the workload of the developer.
As an implementation manner of the embodiment of the present application, the step of obtaining the analysis information based on the pre-obtained to-be-processed instruction may include:
and analyzing the instruction to be processed to obtain an analysis result. The analysis result comprises a current identifier to be audited and a current deployment identifier. The current to-be-checked mark is an mark capable of marking information required to be deployed in the current program deployment.
And acquiring the information to be checked based on the current identification to be checked.
After the current to-be-checked identifier is obtained, corresponding information can be obtained based on the current to-be-checked identifier, namely to-be-checked information is obtained, wherein the current to-be-checked identifier and the to-be-checked information have a corresponding relation.
In one embodiment, the current pending identification may be a version number corresponding to the pending information, and further after the current pending identification is obtained, the pending information corresponding to the version number corresponding to the pending information may be determined based on the version number corresponding to the pending information.
And taking the information to be checked and the current deployment identification as analysis information.
After the information to be checked and the current deployment identifier are obtained, the information to be checked and the current deployment identifier can be used as analysis information so as to carry out corresponding processing on the information to be checked subsequently, thereby realizing program deployment.
It can be seen that, in this embodiment, the information to be checked may be obtained based on the current identifier to be checked included in the analysis result, so as to obtain the analysis result, so as to complete the deployment of the program subsequently.
As an implementation manner of the embodiment of the present application, the current deployment identifier includes a current compiling identifier and a current tool identifier. The current compiling identifier is an identifier capable of identifying a compiling mode required by the current program deployment, and the current tool identifier is an identifier capable of identifying an uploading tool required by the current program deployment.
That is, the current compilation flag is a flag that can identify the manner in which the compilation process is performed on the above-described information to be checked. The current tool identifier is an identifier capable of identifying a mode of uploading the information to be uploaded.
The step of determining the current deployment mode based on the current deployment identifier includes:
and determining the corresponding compiling capability based on the current compiling identification as the current compiling capability. And determining a corresponding uploading tool based on the current tool identifier, and taking the corresponding uploading tool as the current uploading tool. And taking the current compiling capacity and the current uploading tool as a current deployment mode.
The compiling capability includes compiling capability corresponding to a plurality of different platforms, and the uploading tool includes uploading tools corresponding to a plurality of different platforms, where the different platforms may be a WeChat platform, a Payment platform, a tremble platform, a hundred degree platform, etc., which are all reasonable and not specifically limited herein.
The compiling capability corresponding to different platforms is different, and the uploading tools corresponding to different platforms are also different. In one embodiment, the current compiling identifier may be an identifier that includes a platform capable of identifying the corresponding platform of the information to be verified, and further, based on the current compiling identifier, the corresponding platform may be determined, and the compiling capability of the corresponding platform may be regarded as the current compiling capability.
Accordingly, the current tool identifier includes an identifier capable of identifying a platform corresponding to the information to be checked, and further, the corresponding platform can be determined based on the current tool identifier, and an uploading tool of the corresponding platform is used as a current uploading tool.
The uploading tool corresponding to the micro-message platform is miniprogram-ci, the uploading tool corresponding to the payment device platform is minidev, the uploading tool corresponding to the tremble platform is tt-ide-cli, and the uploading tool corresponding to the hundred-degree platform is swan-tool kit. The present invention is not particularly limited herein.
In another embodiment, the compiling capability and the uploading tool both carry the identifier, after the current compiling identifier and the current tool identifier are obtained, the compiling capability carrying the current compiling identifier can be searched from the plurality of compiling capabilities to be used as the current compiling capability, and correspondingly, the uploading tool carrying the current tool identifier can be searched from the plurality of uploading tools to be used as the current uploading tool.
It can be seen that in this embodiment, the current compiling capability and the current uploading tool can be obtained, so as to implement program deployment.
As an implementation manner of the embodiment of the present application, the step of determining the current compiling capability based on the current compiling identifier may include:
and determining a function corresponding to the current compiling identification from a preset database based on the current compiling identification, and taking the function as the current compiling capability. The database stores the corresponding relation between the compiling identification and the function.
As an implementation manner of the embodiment of the present application, the step of determining the current uploading tool based on the current tool identifier includes:
and determining an interface corresponding to the current tool identifier from a preset database based on the current tool identifier as the current uploading tool, wherein the database stores the corresponding relation between the tool identifier and the interface.
After the current compiling capacity and the current uploading tool are obtained, a function corresponding to the current compiling capacity can be executed so as to compile the information to be checked, after the compiling of the information to be checked is carried out, the compiled information to be checked can be packaged to obtain the information to be uploaded, and then the step of sending the information to be uploaded to the current server is achieved through an interface corresponding to the current uploading tool.
As an implementation manner of the embodiment of the present application, the information to be uploaded may include a version number corresponding to the information to be checked, where the version number may uniquely identify the information to be uploaded. So that the subsequent auditor can audit the information to be uploaded.
As an implementation manner of the embodiment of the present application, the parsing information further includes personalized information. The personalized information is information capable of characterizing personalized settings of a user.
The step of sending the information to be uploaded to the current server may include:
and adding a personalized tag to the information to be uploaded based on the personalized information, and sending the information to be uploaded with the personalized tag to the current server.
In one embodiment, the personalized information may be added to the information to be uploaded as a personalized tag, and the information to be uploaded to which the personalized information is added may be further transmitted to the current server.
After receiving the information to be uploaded including the personalized information, the current server can analyze the personalized information, and under the condition that the personalized information indicates that notification is needed, the current server can send the deployment result to the terminal equipment. In the case where the personalized information indicates that no notification is required, the current server may not send the deployment result.
In another embodiment, content corresponding to the personalized information may be obtained, and when the personalized information indicates that notification is required, the notification required tag may be added to the information to be uploaded as the personalized tag, and then the information to be uploaded to which the notification required tag is added is sent to the current server. After receiving the information to be uploaded including the notification required tag, the current server may send the deployment result to the terminal device.
Under the condition that the personalized information indicates that notification is not needed, the notification-unnecessary tag can be used as the personalized tag and added to the information to be uploaded, and then the information to be uploaded, to which the notification-unnecessary tag is added, is sent to the current server. After receiving the information to be uploaded including the notification-free tag, the current server may not send the deployment result to the terminal device.
Under the condition that the personalized information indicates that notification is not needed, a personalized tag is not added to the information to be uploaded, and the information to be uploaded is further sent to the current server. After receiving the information to be uploaded, the current server may not send the deployment result to the terminal device.
Therefore, through the method, the content corresponding to the personalized information of the user can be added into the information to be uploaded, so that the use experience of the user can be improved.
As an implementation manner of the embodiment of the present application, after the step of sending the information to be uploaded to the current server, the method further includes:
and under the condition that the personalized information indicates that notification is required, receiving a deployment result sent by the current server, and performing notification processing on the deployment result.
In the case where the personalized information indicates that notification is required, the deployment result sent by the current server may be received, and in one embodiment, after receiving the deployment result, the deployment result may be notified to the corresponding user by the IM (Intelligent Manufacturing, smart manufacturing) robot.
As an implementation manner, after receiving the deployment result, a notification manner preset by the user may be obtained, so that the user is notified of the deployment result by adopting the preset notification manner. The preset notification modes may include popup window display, mail, telephone, etc., which are all reasonable and not specifically limited again.
It can be seen that, in this embodiment, the deployment result can be notified to the user, so that the program deployment link can be made to form a closed loop.
In order to facilitate understanding of a method for deploying a program provided in an embodiment of the present application, a method for deploying a program provided in an embodiment of the present application is described below with reference to fig. 3 and fig. 4:
for example, as shown in fig. 3, a method for deploying a program provided in an embodiment of the present application includes:
s301, starting a vscode plug-in.
S302, receiving a to-be-processed instruction.
The instruction to be processed is an instruction generated based on a platform, a version number, edition content (information to be checked) and notification information input by a user, and the notification information is information for determining to notify by the user.
S303, based on the to-be-processed instruction, acquiring analysis information.
The analysis information comprises information to be audited and a current deployment identifier, wherein the current deployment identifier is an identifier corresponding to a platform input by a user.
S304, compiling and packaging the content to be audited from the uni-app calling the corresponding compiling capability based on the identification corresponding to the platform input by the user, and obtaining the content to be uploaded.
S305, based on the identification corresponding to the platform input by the user, calling a corresponding uploading tool, and sending the information to be uploaded to the current server.
The current server is a server corresponding to the platform input by the user, and the information to be uploaded further comprises a version number and notification information.
S306, receiving the deployment result sent by the current server, and notifying the deployment result.
Therefore, the program deployment method provided by the application can realize compiling processing, packaging processing and uploading processing of the content to be audited based on the 5-pending instruction sent by the user,
from the perspective of a user, the user can automatically realize compiling processing, packaging processing and uploading processing by only one operation, which is equivalent to realizing one-key deployment of programs.
For example, as shown in fig. 4, a method for deploying a program provided in an embodiment of the present application is described with reference to different layers.
0 for the view layer, i.e. for the interface that the user can see, the user can
The input boxes corresponding to the edition (deployment) are seen, and the platform, the edition number, the edition content (to-be-checked information) and the personalized information can be input.
For the plug-in layer, the plug-in may execute a version command issued by the user through the terminal device, that is, a pending instruction sent by the user.
5 for the script layer, the corresponding functions and interfaces may be invoked based on the current deployment identity,
the functions are used to perform compilation and packaging processes, and the interfaces are used to connect different upload tools.
The tool layer comprises uploading tools corresponding to different platforms.
The following describes a program deployment device provided in the present application, and the program deployment device described below and the program deployment method described above may be referred to correspondingly to each other.
As shown in fig. 5, an embodiment of the present application provides a device for deploying a program, where the device includes:
the obtaining module 510 is configured to obtain the parsing information based on the pre-obtained instruction to be processed.
The analysis information comprises information to be audited and a current deployment identifier.
A determining module 520, configured to determine a current deployment mode based on the current deployment identifier. 5 an upload module 530, configured to, based on the current deployment manner, perform the verification on the information to be verified
And processing to obtain information to be uploaded, and sending the information to be uploaded to a current server.
The information to be uploaded is used for realizing functions corresponding to the program.
As an implementation manner of the embodiment of the present application, the obtaining module 510 may include:
and the analysis unit is used for analyzing the instruction to be processed to obtain an analysis result.
The analysis result comprises a current identifier to be audited and a current deployment identifier;
the first acquisition unit is used for acquiring the information to be checked based on the current identification to be checked.
And the current to-be-audited identifier and the to-be-audited information have a corresponding relation.
The first acquisition unit is used for taking the information to be checked and the current deployment identification as analysis information.
As an implementation manner of the embodiment of the present application, the current deployment identifier includes a current compiling identifier and a current tool identifier.
The determining module 520 includes:
and the first determining unit is used for determining the current compiling capacity based on the current compiling identification.
And the second determining unit is used for determining the current uploading tool based on the current tool identifier.
And the third determining unit is used for taking the current compiling capacity and the current uploading tool as a current deployment mode.
As an implementation manner of the embodiment of the present application, the first determining unit is specifically configured to determine, based on the current compiling identifier, a function corresponding to the current compiling identifier from a preset database, as the current compiling capability.
The database stores the corresponding relation between the compiling identification and the function.
As an implementation manner of the embodiment of the present application, the first determining unit is specifically configured to determine, based on the current tool identifier, an interface corresponding to the current tool identifier from a preset database, and use the interface as the current uploading tool.
And the database stores the corresponding relation between the tool identifier and the interface.
As an implementation manner of the embodiment of the present application, the parsing information further includes personalized information. The uploading module 530 includes:
and the uploading unit is used for adding a personalized tag to the information to be uploaded based on the personalized information and sending the information to be uploaded added with the personalized tag to the current server.
As an implementation manner of the embodiment of the present application, the foregoing apparatus further includes:
and the receiving module is used for receiving the deployment result sent by the current server and carrying out notification processing on the deployment result under the condition that the personalized information indicates that the notification is required after the information to be uploaded is sent to the current server.
Fig. 6 illustrates a physical structure diagram of a terminal, and as shown in fig. 6, the terminal may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. The processor 610 may call logic instructions in the memory 630 to execute a method for deploying a program, where the method includes obtaining parsing information based on a pre-obtained instruction to be processed, where the parsing information includes information to be audited and a current deployment identifier, determining a current deployment mode based on the current deployment identifier, processing the information to be audited based on the current deployment mode, obtaining information to be uploaded, and sending the information to be uploaded to a current server, where the information to be uploaded is used to implement a function corresponding to the program.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program may be stored on a computer readable storage medium, and when the computer program is executed by a processor, the computer is capable of executing a method for deploying the program provided by the above methods, where the method includes obtaining analysis information based on a pre-obtained instruction to be processed, where the analysis information includes information to be audited and a current deployment identifier, determining a current deployment manner based on the current deployment identifier, performing compiling processing and packaging processing on the information to be audited based on the current deployment manner, to obtain information to be uploaded, and sending the information to be uploaded to a current server, where the information to be uploaded is used to implement a function corresponding to the program.
In still another aspect, the present application further provides a computer readable storage medium, where the computer readable storage medium includes a stored program, where the program executes a method for deploying the program provided by the above methods when running, where the method includes obtaining analysis information based on a pre-obtained instruction to be processed, where the analysis information includes information to be audited and a current deployment identifier, determining a current deployment mode based on the current deployment identifier, processing the information to be audited based on the current deployment mode, obtaining information to be uploaded, and sending the information to be uploaded to a current server, where the information to be uploaded is used to implement a function corresponding to the program.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A method of program deployment, the method comprising:
based on a pre-acquired to-be-processed instruction, acquiring analysis information, wherein the analysis information comprises to-be-audited information and a current deployment identifier;
determining a current deployment mode based on the current deployment identifier;
and processing the information to be checked based on the current deployment mode to obtain information to be uploaded, and sending the information to be uploaded to a current server, wherein the information to be uploaded is used for realizing the functions corresponding to the program.
2. The method of program deployment according to claim 1, wherein the step of acquiring parsing information based on pre-acquired pending instructions comprises:
analyzing the instruction to be processed to obtain an analysis result, wherein the analysis result comprises a current identifier to be audited and a current deployment identifier;
acquiring the information to be checked based on the current identification to be checked, wherein the current identification to be checked and the information to be checked have a corresponding relation;
and taking the information to be checked and the current deployment identification as analysis information.
3. The method of program deployment of claim 1, wherein the current deployment identity comprises a current compilation identity and a current tool identity;
the step of determining the current deployment mode based on the current deployment identifier comprises the following steps:
determining the current compiling capacity based on the current compiling identification;
determining a current uploading tool based on the current tool identifier;
and taking the current compiling capacity and the current uploading tool as a current deployment mode.
4. A method of program deployment according to claim 3, wherein the step of determining current compilation capacity based on the current compilation identification comprises:
and determining a function corresponding to the current compiling identification from a preset database based on the current compiling identification as the current compiling capability, wherein the database stores the corresponding relation between the compiling identification and the function.
5. A method of program deployment according to claim 3, wherein the step of determining a current upload tool based on the current tool identification comprises:
and determining an interface corresponding to the current tool identifier from a preset database based on the current tool identifier as the current uploading tool, wherein the database stores the corresponding relation between the tool identifier and the interface.
6. The method of program deployment according to any of claims 1-5, wherein the parsed information further includes personalized information;
the step of sending the information to be uploaded to the current server comprises the following steps:
and adding a personalized tag to the information to be uploaded based on the personalized information, and sending the information to be uploaded with the personalized tag to the current server.
7. The method of program deployment according to claim 6, wherein after the step of transmitting the information to be uploaded to a current server, the method further comprises:
and under the condition that the personalized information indicates that notification is required, receiving a deployment result sent by the current server, and performing notification processing on the deployment result.
8. An apparatus for program deployment, the apparatus comprising:
the acquisition module is used for acquiring analysis information based on a pre-acquired to-be-processed instruction, wherein the analysis information comprises to-be-audited information and a current deployment identifier;
the determining module is used for determining a current deployment mode based on the current deployment identifier;
and the uploading module is used for processing the information to be checked based on the current deployment mode to obtain information to be uploaded and sending the information to be uploaded to a current server, wherein the information to be uploaded is used for realizing the functions corresponding to the program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
10. A terminal comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.
CN202211600308.0A 2022-12-13 2022-12-13 Program deployment method, device, storage medium and terminal Pending CN116225456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211600308.0A CN116225456A (en) 2022-12-13 2022-12-13 Program deployment method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211600308.0A CN116225456A (en) 2022-12-13 2022-12-13 Program deployment method, device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN116225456A true CN116225456A (en) 2023-06-06

Family

ID=86584909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211600308.0A Pending CN116225456A (en) 2022-12-13 2022-12-13 Program deployment method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN116225456A (en)

Similar Documents

Publication Publication Date Title
CN105303112B (en) The detection method and device of component call loophole
CN104246740A (en) Test and management for cloud applications
CN111464351B (en) Network distribution method and device for intelligent household equipment, terminal equipment and storage medium
CN114938365B (en) Function module updating method and device, storage medium and electronic device
CN114896003A (en) Page configuration method and device, storage medium and electronic device
CN116225456A (en) Program deployment method, device, storage medium and terminal
CN116361155A (en) Method and device for testing software development kit, storage medium and electronic device
CN114911535B (en) Application program component configuration method, storage medium and electronic device
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN114675928A (en) Container mirror image construction method and device, storage medium and electronic device
CN104836708B (en) The binding method and device of information
CN114826899B (en) Debugging method and device for equipment control service, storage medium and electronic device
CN115174383B (en) Equipment updating method, storage medium and electronic device
CN115002014A (en) Method and device for determining test result, storage medium and electronic device
CN116521157A (en) Project integration method and device, storage medium and electronic device
CN115865650A (en) Service deployment method and device, storage medium and electronic device
CN116346686A (en) Information transmission method and device, storage medium and electronic device
CN117908856A (en) Work order construction method and device, storage medium and electronic device
CN115794116A (en) Dynamic project publishing method and device, storage medium and electronic device
CN116382766A (en) Page packaging method and device, storage medium and electronic device
CN116257300A (en) Method and device for generating target component, storage medium and electronic device
CN117376042A (en) Functional platform configuration method and device of intelligent equipment and electronic device
CN115174296A (en) Equipment function access method, device, storage medium and electronic device
CN116980403A (en) File uploading method and device, storage medium and electronic device
CN115766448A (en) Application updating method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination