CN117891478A - Application program upgrading method, device, equipment and storage medium - Google Patents

Application program upgrading method, device, equipment and storage medium Download PDF

Info

Publication number
CN117891478A
CN117891478A CN202311769921.XA CN202311769921A CN117891478A CN 117891478 A CN117891478 A CN 117891478A CN 202311769921 A CN202311769921 A CN 202311769921A CN 117891478 A CN117891478 A CN 117891478A
Authority
CN
China
Prior art keywords
application program
server
application
code
script code
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
CN202311769921.XA
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202311769921.XA priority Critical patent/CN117891478A/en
Publication of CN117891478A publication Critical patent/CN117891478A/en
Pending legal-status Critical Current

Links

Abstract

According to the upgrading method, device, equipment and storage medium of the application program, script codes are obtained, and version numbers of the application program corresponding to the script codes are determined; and sending the script code and the version number to a server, and sending an update instruction to the server, wherein the server updates the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction, so that the updated code can be replaced, and the update efficiency of the application program is improved.

Description

Application program upgrading method, device, equipment and storage medium
Technical Field
The present invention relates to the field of application program updating, and in particular, to an application program upgrading method, apparatus, device and storage medium.
Background
Application APP generally requires constant development of plug-ins to meet the user's needs due to the changing user's needs, traditionally by recompiling and redeploying the application to update the script code, but traditional methods consume significant time and resources.
Disclosure of Invention
In view of the above problems, the present application provides an application program upgrading method, device, apparatus, and storage medium, which can implement replacement of a code that is updated only, and improve update efficiency of an application program.
The embodiment of the application provides an upgrading method of an application program, comprising the following steps:
acquiring a script code and determining a version number of an application program corresponding to the script code;
and sending the script code and the version number to a server, and sending an update instruction to the server, so that the server updates the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction.
In some embodiments, the method further comprises:
acquiring an updated application program from the server;
the updated application is tested.
In some embodiments, the update instructions include: and the timer code is executed by the server under the condition that the server acquires the updating instruction, and the script code is adopted to update the application program corresponding to the version number based on the time corresponding to the timer code.
The embodiment of the application provides an upgrading method of an application program, which is applied to a server and comprises the following steps:
under the condition that an update instruction, a script code and a version number of an application program corresponding to the script code are acquired, determining the application program corresponding to the version number;
and updating the application program by adopting the script code based on the updating instruction.
In some embodiments, the update instructions include: timer code, said updating said application program with said script code based on said update instruction, comprising:
executing the timer code to obtain the time corresponding to the timer code;
and updating the application program corresponding to the version number by adopting the script code based on the time.
The embodiment of the application provides an upgrading device for an application program, which comprises the following components:
the first acquisition module is used for acquiring script codes and determining version numbers of application programs corresponding to the script codes;
and the sending module is used for sending the script code and the version number to a server and sending an update instruction to the server so that the server can update the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction.
In some embodiments, the upgrade apparatus of the application program further includes:
the second acquisition module is used for acquiring the updated application program from the server;
and the test module is used for testing the updated application program.
The embodiment of the application further provides an upgrade device for application programs, which is applied to a server and comprises:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for determining an application program corresponding to a version number under the condition that an update instruction, a script code and the version number of the application program corresponding to the script code are acquired;
and the updating module is used for updating the application program by adopting the script code based on the updating instruction.
An embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the method for upgrading an application program according to any one of the foregoing embodiments is executed.
Embodiments of the present application provide a computer readable storage medium storing a computer program executable by one or more processors for implementing the above-mentioned method for upgrading an application program.
According to the upgrading method, device, equipment and storage medium of the application program, script codes are obtained, and version numbers of the application program corresponding to the script codes are determined; and sending the script code and the version number to a server, and sending an update instruction to the server, wherein the server updates the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction, so that the updated code can be replaced, and the update efficiency of the application program is improved.
Drawings
The present application will be described in more detail hereinafter based on embodiments and with reference to the accompanying drawings.
Fig. 1 is a schematic implementation flow chart of an upgrade method of an application program according to an embodiment of the present application;
fig. 2 is a schematic implementation flow chart of another method for upgrading an application program according to an embodiment of the present application;
fig. 3 is a schematic implementation flow chart of another method for upgrading an application program according to an embodiment of the present application;
fig. 4 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application.
In the drawings, like elements are denoted by like reference numerals, and the drawings are not drawn to scale.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail with reference to the accompanying drawings, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
If a similar description of "first\second\third" appears in the application document, the following description is added, in which the terms "first\second\third" are merely distinguishing between similar objects and do not represent a particular ordering of the objects, it being understood that the "first\second\third" may be interchanged in a particular order or precedence, where allowed, so that the embodiments of the application described herein may be practiced in an order other than that illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
Based on the problems existing in the related art, the embodiment of the application provides an upgrade method of an application program, and an execution subject of the method may be an electronic device, and the electronic device may be a mobile terminal, a computer, or the like. In some embodiments, the electronic device may be a controller of a mobile terminal, a computer.
The functions implemented by the application program upgrading method provided by the embodiment of the application program can be implemented by calling program codes by a processor of the electronic device, wherein the program codes can be stored in a computer storage medium.
The embodiment of the application provides an upgrading method of an application program. The electronic device may be a local device, and fig. 1 is a schematic implementation flow chart of an application program upgrading method provided in an embodiment of the present application, where as shown in fig. 1, the application program upgrading method includes:
step S1, acquiring a script code and determining a version number of an application program corresponding to the script code.
In the present embodiment, script code is computer program code that is typically used to perform specific tasks or operations within an application program. The script code may be written in a variety of programming languages, such as JavaScript, python, perl, etc. Script code is commonly used in the fields of automation tasks, batch processing, data processing, web development, network management, and the like. In the embodiment of the application, the script code is used for updating or repairing the application program so as to realize better performance, safety and stability.
Script code may be used to repair bugs, improve functionality, or enhance performance. The script code may include files, database schemas, configuration settings, etc. that update the application.
In the embodiment of the application program development stage, a programmer can write script codes in the application program by adopting a local editor through local equipment, and the script codes needing to be replaced are compiled, so that the script codes are obtained.
In the embodiment of the application, the user can associate the version number of the application program corresponding to the script code through the input device, so as to determine the version number of the application program corresponding to the script code.
In the embodiment of the application, a page can be provided in the user interface of the application program, and the version number of the current application program is displayed. The user can determine the version of the application by looking at this version number. And then associating the version numbers of the application programs corresponding to the script codes in the future.
In the embodiment of the present application, the input device may be a mouse, a keyboard, or the like.
And step S2, the script code and the version number are sent to a server, and an update instruction is sent to the server, so that the server updates the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction.
In this embodiment of the present application, the local device may be communicatively connected to a server, and the connection manner between the server and the local device may generally have various options, depending on your needs and environment. The following are some common ways of connection: network connection: the connection is made via the internet or a local area network. This may be by standard HTTP/HTTPs protocols or by using a dedicated remote connection protocol such as SSH or RDP. API call: the server provides an API interface, and the local equipment can communicate with the server through HTTP requests or other protocols to realize data exchange and command transmission. VPN connection: a secure connection is established over a Virtual Private Network (VPN) so that local devices can directly access resources on the server. Message queues: asynchronous communication between the server and the local device is achieved using a message queuing system (e.g., rabbitMQ, kafka, etc.). In this embodiment of the present application, after the local device is connected to the server, the script code and the version number may be sent to the server.
In this embodiment of the present application, how the communication protocol is HTTP or HTTPs, and the script code and the version number are sent to the server through the POST request, where the POST request may be sent using a requests library of Python. It is necessary to replace url with API address of the your server side receiving script code and version number, and replace script_code and version_number with actual script code and version number.
In this embodiment of the present application, sending the update instruction to the server may also be implemented by sending a network request. An API may be written at the server side, for receiving the update instruction, and executing the corresponding operation after receiving the update instruction.
In this embodiment of the present application, the POST request may be sent by using the requests library of Python, and an update instruction is sent to the server, where url needs to be replaced with an API address of the server to receive the update instruction, and update_command needs to be replaced with an actual update instruction.
In this embodiment of the present application, the server may execute the following steps to update the application program corresponding to the version number:
downloading new script code: the server may download script code for the application corresponding to the version number from a specified location (e.g., a code repository or a particular URL). And deploying the script code of the downloaded application program code to a server to replace the code of the old version. This may involve copying, decompressing, compiling, configuring, etc. the files, the specific operation depends on your application type and deployment. The server may execute a restart application or service to ensure that the new application code is validated.
In the embodiment of the application, the following are some common application update operations:
in the embodiment of the application, if the application is file-based, the update may involve copying the file. For example, new script code may be downloaded from a code repository or a specific URL to a server and then copied into an application catalog. If the application is in a compressed file format (e.g., tar. Gz or zip), then the update may involve a decompression operation. The downloaded script code may be decompressed into a specified directory.
Compiling: if the application requires compilation, the update may involve a compilation operation. A compilation tool (e.g., gcc or make) may be used to compile the script code and copy the compiled binary file into an application catalog.
Configuration: if the application requires a configuration file, the update may involve configuration operations. The new configuration file of the downloaded script code may be copied into the application catalog or the existing configuration file updated using a configuration tool (e.g., sed or awk).
Illustratively, the server has a script named update_script. After receiving the update instruction, the server executes the script through the sub-process module of Python, and transmits the version number as a parameter to the script to update the application program.
According to the upgrading method of the application program, the script code is obtained, and the version number of the application program corresponding to the script code is determined; and sending the script code and the version number to a server, and sending an update instruction to the server, wherein the server updates the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction, so that the updated code can be replaced, and the update efficiency of the application program is improved.
In some embodiments, after step S2, the method further comprises:
step S3, acquiring an updated application program from the server;
and S4, testing the updated application program.
In the embodiment of the application, after the application program is updated, a test can be run to ensure that the new version of the application program can work normally. The testing may include automated testing, integrated testing, performance testing, etc. to ensure that the updated application meets the expected functional and performance requirements.
In the embodiment of the application, the local device may be connected to the server through a network and download the updated application program. The updated application program is deployed to the local device to replace the old version of the application program. This may include copying new files to a specified directory, updating a configuration file, or recompiling an application. After the updated application is deployed, a test may be run to ensure that the new version of the application is working properly. The testing may include automated testing, integrated testing, performance testing, etc. to ensure that the updated application meets the expected functional and performance requirements.
Illustratively, the local device has a script named test_script.sh thereon for testing the updated application. After the updated application program is deployed, the local device executes the test script through the sub-bprogows module of the Python to ensure that the updated application program can work normally.
In some embodiments, the update instructions include: a timer code. And under the condition that the server acquires the updating instruction, executing the timer code, and updating the application program corresponding to the version number by adopting the script code based on the time corresponding to the timer code.
The embodiment of the application further provides an upgrading method of the application program. The electronic device may be a server, and fig. 2 is a schematic implementation flow chart of an application program upgrading method provided in the embodiment of the present application, where as shown in fig. 2, the application program upgrading method includes:
step S21, under the condition that the update instruction, the script code and the version number of the application program corresponding to the script code are obtained, determining the application program corresponding to the version number;
and step S22, updating the application program by adopting the script code based on the updating instruction.
In the embodiment of the application program, the application program corresponding to the version number can be determined by checking the version information or the related document of the application program.
In the embodiment of the application, whether the application program contains the information related to the version number of the application program can be checked. The version number of the application may be compared with the obtained version number to determine the application to which the version number corresponds.
In this embodiment of the present application, the server may execute the following steps to update the application program corresponding to the version number:
downloading new script code: the server may download script code for the application corresponding to the version number from a specified location (e.g., a code repository or a particular URL). And deploying the script code of the downloaded application program code to a server to replace the code of the old version. This may involve copying, decompressing, compiling, configuring, etc. the files, the specific operation depends on your application type and deployment. The server may execute a restart application or service to ensure that the new application code is validated.
In the embodiment of the application, the following are some common application update operations:
in the embodiment of the application, if the application is file-based, the update may involve copying the file. For example, new script code may be downloaded from a code repository or a specific URL to a server and then copied into an application catalog. If the application is in a compressed file format (e.g., tar. Gz or zip), then the update may involve a decompression operation. The downloaded script code may be decompressed into a specified directory.
Compiling: if the application requires compilation, the update may involve a compilation operation. A compilation tool (e.g., gcc or make) may be used to compile the script code and copy the compiled binary file into an application catalog.
Configuration: if the application requires a configuration file, the update may involve configuration operations. The new configuration file of the downloaded script code may be copied into the application catalog or the existing configuration file updated using a configuration tool (e.g., sed or awk).
Illustratively, the server has a script named update_script. After receiving the update instruction, the server executes the script through the sub-process module of Python, and transmits the version number as a parameter to the script to update the application program.
In the embodiment of the application, the old version of the application program can be backed up before updating. Old versions of the application files may be copied to another directory or storage device so that they may be restored when needed. This may be performed using file copy commands provided by the operating system, or using specialized backup tools. If an application uses a database to store data, then the database needs to be backed up in addition to the application files. This may be accomplished by a backup tool or script provided by the database management system. If the application code uses a version control system (e.g., git), you can create a backup by submitting the current code state so that you can roll back to the old version if needed.
In the embodiment of the application program backup method, the application program backup device and the application program backup system, the old version application program can be quickly rolled back to the previous state when a problem occurs in the updating process, and unnecessary loss is avoided. Before performing the update operation, it is ensured that you have successfully completed the backup work of the old version application.
In this embodiment, after the server obtains the script code, it is involved in modifying the configuration file of the application program to adapt to the new version. Scripts may be written to automate this process.
In some embodiments, the update instructions include: timer code, said updating said application program with said script code based on said update instruction, comprising:
executing the timer code to obtain the time corresponding to the timer code;
and updating the application program corresponding to the version number by adopting the script code based on the time.
In the embodiment of the application, the timer code may be a simple script, if the server uses the Linux system, a flash script may be written, and then the cron job scheduler is used to execute the script at regular time.
For example, the time is 3 a.m., the script code may be used to update the application program corresponding to the version number at 3 a.
According to the upgrading method of the application program, the script code is obtained, and the version number of the application program corresponding to the script code is determined; and sending the script code and the version number to a server, and sending an update instruction to the server, wherein the server updates the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction, so that the updated code can be replaced, and the update efficiency of the application program is improved.
Based on the foregoing embodiments, the embodiments of the present application further provide an application program upgrading method, which can implement better version control and upgrade management through alternate hot update of the local script code and the cloud script code. The developer can select a proper version for deployment according to the needs, and can easily roll back to the previous version. This approach may also improve compatibility between different versions, as the native and cloud scripting code may be modified and updated relatively independently.
Fig. 3 is a schematic implementation flow chart of another method for upgrading an application program according to an embodiment of the present application. As shown in fig. 3, the method for upgrading an application program may include the steps of:
development stage: in the development stage of the application program, a programmer writes script codes in the application program by using a local editor, and compiles the script codes needing replacement.
The construction stage is as follows: in the construction stage of the application program, a programmer submits a script code written locally to a cloud server, and version control is carried out through corresponding instructions or timer codes, so that the cloud can be easily subjected to hot update and upgrade.
Testing: in the test stage of the application program, a programmer needs to test the script of the cloud in a local mode, and normal operation is guaranteed. And then some compatibility tests are carried out, so that the operation on different devices and browsers can be ensured. And uploading the cloud after no problem exists, and testing that the cloud server can also normally operate.
The release stage: in the release phase of the application program, a programmer writes the latest version of script code by using a local editor and submits the latest version of script code to a cloud server by using a version control system.
A hot update stage: it is first checked whether the version number is correct, each code version having a unique version number or tag. And uploading the updated codes to the cloud and associating the updated codes with the appointed version numbers. When the application program runs, a programmer can use the cloud server to update the application program by running the appointed script code, and normal running of the application program is ensured. And the script to be replaced is replaced on the cloud without recompilation and redeployment of the application program.
According to the method provided by the embodiment of the application program, by using the technology of alternately hot updating the local script code and the cloud script code, a programmer can develop and deploy the application program more efficiently, the process of recompilation and deployment by the programmer is saved, and meanwhile, the stability of user data and the application program can be better protected.
Based on the foregoing embodiments, the embodiments of the present application provide an apparatus for upgrading an application, where each module included in the apparatus and each unit included in each module may be implemented by a processor in a computer device; of course, the method can also be realized by a specific logic circuit; in practice, the processor may be a central processing unit (CPU, central Processing Unit), a microprocessor (MPU, microprocessor Unit), a digital signal processor (DSP, digital Signal Processing), or a field programmable gate array (FPGA, field Programmable Gate Array), or the like.
The embodiment of the application provides an upgrading device for an application program, which comprises the following components:
the first acquisition module is used for acquiring script codes and determining version numbers of application programs corresponding to the script codes;
and the sending module is used for sending the script code and the version number to a server and sending an update instruction to the server so that the server can update the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction.
In some embodiments, the upgrade apparatus of the application program further includes:
the second acquisition module is used for acquiring the updated application program from the server;
and the test module is used for testing the updated application program.
In some embodiments, the update instructions include: and the timer code is executed by the server under the condition that the server acquires the updating instruction, and the script code is adopted to update the application program corresponding to the version number based on the time corresponding to the timer code.
The embodiment of the application also provides an upgrading device of the application program, which is applied to the server and comprises the following steps:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for determining an application program corresponding to a version number under the condition that an update instruction, a script code and the version number of the application program corresponding to the script code are acquired;
and the updating module is used for updating the application program by adopting the script code based on the updating instruction.
In some embodiments, the update instructions include: timer code, said updating said application program with said script code based on said update instruction, comprising:
executing the timer code to obtain the time corresponding to the timer code;
and updating the application program corresponding to the version number by adopting the script code based on the time.
In the embodiment of the present application, if the method for upgrading an application program is implemented in the form of a software functional module, and sold or used as a separate product, the method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art, and the computer software product may be stored in a storage medium, and include several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of 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 magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present application provides a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps in the method for upgrading an application program provided in the above embodiment.
The embodiment of the application provides electronic equipment; fig. 4 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application, as shown in fig. 4, an electronic device 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, a memory 505. Wherein the communication bus 502 is configured to enable connected communication between these components. The user interface 503 may include a display screen, and the external communication interface 504 may include a standard wired interface and a wireless interface, among others. The processor 501 is configured to execute a program of an upgrade method of an application program stored in a memory to implement the steps in the upgrade method of an application program provided in the above-described embodiment.
The method for upgrading the application program comprises the following steps:
acquiring a script code and determining a version number of an application program corresponding to the script code;
and sending the script code and the version number to a server, and sending an update instruction to the server, so that the server updates the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction.
In some embodiments, the method further comprises:
acquiring an updated application program from the server;
the updated application is tested.
In some embodiments, the update instructions include: and the timer code is executed by the server under the condition that the server acquires the updating instruction, and the script code is adopted to update the application program corresponding to the version number based on the time corresponding to the timer code.
The embodiment of the application further provides an upgrading method of the application program, which is applied to the server and comprises the following steps:
under the condition that an update instruction, a script code and a version number of an application program corresponding to the script code are acquired, determining the application program corresponding to the version number;
and updating the application program by adopting the script code based on the updating instruction.
In some embodiments, the update instructions include: timer code, said updating said application program with said script code based on said update instruction, comprising:
executing the timer code to obtain the time corresponding to the timer code;
and updating the application program corresponding to the version number by adopting the script code based on the time.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and the apparatus of the present application, please refer to the description of the method embodiments of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of units is only one logical function division, and there may be other divisions in actual implementation, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components controlled or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components for controlling the units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the integrated units described above may be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art, embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a controller to execute all or part of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The foregoing is merely an embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for upgrading an application program, comprising:
acquiring a script code and determining a version number of an application program corresponding to the script code;
and sending the script code and the version number to a server, and sending an update instruction to the server, so that the server updates the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction.
2. The method according to claim 1, wherein the method further comprises:
acquiring an updated application program from the server;
the updated application is tested.
3. The method of claim 1, wherein the update instruction comprises: and the timer code is executed by the server under the condition that the server acquires the updating instruction, and the script code is adopted to update the application program corresponding to the version number based on the time corresponding to the timer code.
4. An application program upgrading method is characterized by being applied to a server and comprising the following steps:
under the condition that an update instruction, a script code and a version number of an application program corresponding to the script code are acquired, determining the application program corresponding to the version number;
and updating the application program by adopting the script code based on the updating instruction.
5. The method of claim 4, wherein the update instruction comprises: timer code, said updating said application program with said script code based on said update instruction, comprising:
executing the timer code to obtain the time corresponding to the timer code;
and updating the application program corresponding to the version number by adopting the script code based on the time.
6. An application program upgrading apparatus, comprising:
the first acquisition module is used for acquiring script codes and determining version numbers of application programs corresponding to the script codes;
and the sending module is used for sending the script code and the version number to a server and sending an update instruction to the server so that the server can update the application program corresponding to the version number by adopting the script code under the condition that the server acquires the update instruction.
7. The apparatus for upgrading an application according to claim 6, further comprising:
the second acquisition module is used for acquiring the updated application program from the server;
and the test module is used for testing the updated application program.
8. An apparatus for upgrading an application program, applied to a server, comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for determining an application program corresponding to a version number under the condition that an update instruction, a script code and the version number of the application program corresponding to the script code are acquired;
and the updating module is used for updating the application program by adopting the script code based on the updating instruction.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, performs a method of upgrading an application according to any of claims 1 to 3 or 4 to 5.
10. A storage medium storing a computer program executable by one or more processors for implementing a method of upgrading an application according to any one of claims 1 to 3 or 4 to 5.
CN202311769921.XA 2023-12-20 2023-12-20 Application program upgrading method, device, equipment and storage medium Pending CN117891478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311769921.XA CN117891478A (en) 2023-12-20 2023-12-20 Application program upgrading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311769921.XA CN117891478A (en) 2023-12-20 2023-12-20 Application program upgrading method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117891478A true CN117891478A (en) 2024-04-16

Family

ID=90638792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311769921.XA Pending CN117891478A (en) 2023-12-20 2023-12-20 Application program upgrading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117891478A (en)

Similar Documents

Publication Publication Date Title
US8533676B2 (en) Single development test environment
US8745585B2 (en) Meta-data for single development test environment
US10114637B1 (en) Automatically updating a shared project build platform
US10095489B1 (en) GUI-based application template for containerized application software development
US20130174124A1 (en) Version numbering in single development and test environment
US10579966B1 (en) Adapting a shared project build platform to a developer plugin
KR102341154B1 (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
CN106897093A (en) A kind of dispositions method and device of windows operating systems
CN110647332A (en) Software deployment method and device based on container cloud
CN105389187B (en) System updating method
AU2012201749B2 (en) Single development test environment
CN106897223A (en) A kind of software kit delivery method and device based on continuous integrating
CN111563032A (en) APP debugging method and device, computer equipment and storage medium
CN107678969B (en) Test version release method and device, version control equipment and test machine
WO2017192340A1 (en) Updating of operating system images
US9760364B2 (en) Checks for software extensions
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN114490103A (en) Operating system interface calling method and device and electronic equipment
US20150355997A1 (en) Server-Platform Simulation Service
CN116643761A (en) Customized mirror image manufacturing and deploying method, device, terminal and medium
CN117891478A (en) Application program upgrading method, device, equipment and storage medium
EP2503450A2 (en) Version numbering in single development and test environment
CN114816475A (en) Method, device, equipment and medium for updating embedded operating system
CN109428936B (en) APP upgrading method, device, system, electronic equipment and storage medium
CN112905217B (en) Program updating method, terminal, system and storage medium of embedded program

Legal Events

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