CN115167896A - Method and device for updating software version, storage medium and electronic equipment - Google Patents
Method and device for updating software version, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN115167896A CN115167896A CN202210918153.9A CN202210918153A CN115167896A CN 115167896 A CN115167896 A CN 115167896A CN 202210918153 A CN202210918153 A CN 202210918153A CN 115167896 A CN115167896 A CN 115167896A
- Authority
- CN
- China
- Prior art keywords
- software
- update
- package
- resource package
- target
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本申请涉及软件处理技术领域,具体而言,涉及一种更新软件版本的方法、装置、存储介质及电子设备。The present application relates to the technical field of software processing, and in particular, to a method, an apparatus, a storage medium and an electronic device for updating a software version.
背景技术Background technique
随着面向企业型业务的发展,面临着向客户提供混合云架构的软件服务。With the development of enterprise-oriented business, it is faced with providing customers with software services of hybrid cloud architecture.
目前,在混合云架构的软件服务交付的过程中主要以现场交付为主。但是,由于客户的软件系统需要在公司内网下才能使用的情况下,软件又需要经常进行调整就需要交付工程师需要频繁到客户现场进行软件调整,因此在面对海量的软件调整工作量时,交付周期大大增加,且无法确保软件交付效率,进而造成较差的客户体验。At present, the software service delivery process of the hybrid cloud architecture is mainly based on on-site delivery. However, because the customer's software system needs to be used under the company's intranet, and the software needs to be adjusted frequently, the delivery engineer needs to frequently go to the customer's site to adjust the software. Therefore, in the face of massive software adjustment workload, The delivery cycle is greatly increased and the software delivery efficiency cannot be ensured, resulting in a poor customer experience.
因此,如何提供一种高效的更新软件版本的方法的技术方案成为亟需解决的技术问题。Therefore, how to provide a technical solution of an efficient method for updating a software version has become an urgent technical problem to be solved.
发明内容SUMMARY OF THE INVENTION
本申请的一些实施例的目的在于提供一种更新软件版本的方法、装置、存储介质及电子设备,通过本申请的实施例的技术方案可以将软件资源包存储至内网环境中去进行安全的软件交付更新工作,实现了软件远程交付更新,提升了交付工程师的工作效率,降低了人为失误率和交付周期,提升了客户体验。The purpose of some embodiments of the present application is to provide a method, device, storage medium and electronic device for updating a software version, through the technical solutions of the embodiments of the present application, software resource packages can be stored in an intranet environment for safe The software delivery and update work realizes the remote delivery and update of software, improves the work efficiency of delivery engineers, reduces the human error rate and delivery cycle, and improves customer experience.
第一方面,本申请的一些实施例提供了一种更新软件版本的方法,包括:获取存储在外网的更新资源包,并将所述更新资源包存储至内网内,其中,所述内网在目标区域内被有权限的对象访问,所述更新资源包包括:目标软件包、更新脚本、数据库更新脚本以及回滚脚本;利用所述更新资源包对在所述内网的待更新软件的本地软件包进行更新,获取目标软件。In a first aspect, some embodiments of the present application provide a method for updating a software version, including: acquiring an update resource package stored in an external network, and storing the update resource package in an internal network, wherein the internal network Accessed by authorized objects in the target area, the update resource package includes: a target software package, an update script, a database update script and a rollback script; using the update resource package to update the software to be updated on the intranet The local software package is updated to obtain the target software.
本申请的一些实施例通过将外网中的更新资源包存储到可被访问的内网中以此实现对内网中待更新软件的更新,不需要交付工程师频繁到客户现场,在安全的内网环境下,实现了软件的远程交付更新,提升了交付工程师的工作效率,降低了人为失误率和交付周期,提升了客户体验。Some embodiments of the present application implement the update of the software to be updated in the intranet by storing the update resource package in the extranet in the intranet that can be accessed, without the need for delivery engineers to frequently visit the customer site, and in a safe internal network In the network environment, the remote delivery and update of software is realized, which improves the work efficiency of delivery engineers, reduces the human error rate and delivery cycle, and improves customer experience.
在一些实施例,所述获取存储在外网的更新资源包,包括:在所述外网中获取软件资源包列表,其中,所述软件资源包列表包括至少一个软件的目标版本号和软件资源包,所述至少一个软件中各软件之间相容;从所述软件资源包列表中选取任意一个包作为所述更新资源包。In some embodiments, the acquiring an update resource package stored in an external network includes: acquiring a software resource package list in the external network, wherein the software resource package list includes a target version number of at least one software and a software resource package , the software in the at least one piece of software is compatible; any one package is selected from the software resource package list as the update resource package.
本申请的一些实施例通过获取各软件相容情况下的软件资源包列表,将软件资源包列表中的任一个作为更新资源包,可以实现对软件资源包列表中所有软件的有效正常更新。Some embodiments of the present application can achieve effective and normal updating of all software in the software resource package list by acquiring the software resource package list under the condition that each software is compatible, and using any one of the software resource package list as the update resource package.
在一些实施例,所述在所述外网中获取软件资源包列表,包括:获取在所述内网中的多个软件的软件当前版本号;获取任一软件与其他软件之间的相容结果,其中,所述任一软件为所述多个软件中的一个,所述其他软件为所述多个软件中除所述任一软件之外的软件;在所述相容结果为相容的情况下,从所述多个软件中获取软件当前版本号列表;获取与所述软件当前版本号列表对应的软件资源包列表,其中,一个软件当前版本号对应一个目标版本号和一个软件资源包。In some embodiments, the acquiring a list of software resource packages in the external network includes: acquiring current software version numbers of multiple software in the intranet; acquiring compatibility between any software and other software As a result, the any software is one of the plurality of software, and the other software is software other than the any software in the plurality of software; in the compatibility result, it is compatible Under the situation, obtain the software current version number list from the multiple software; obtain the software resource package list corresponding to the software current version number list, wherein, a software current version number corresponds to a target version number and a software resource Bag.
本申请的一些实施例通过从内网中多个软件中筛选出任一软件与其他软件相容的软件当前版本号列表,进而得到对应的软件资源包列表。该实施例可以得到可更新的软件,以此可以实现对可更新软件的正常更新,避免出现因软件之间不相容导致软件无法正常使用的问题。Some embodiments of the present application obtain a list of corresponding software resource packages by filtering out a list of current software versions of any software that are compatible with other software from a plurality of software in the intranet. In this embodiment, updatable software can be obtained, so that the normal update of the updatable software can be realized, and the problem that the software cannot be used normally due to the incompatibility between the softwares can be avoided.
在一些实施例,在所述利用所述更新资源包对待更新软件的本地软件包进行更新之前,所述方法还包括:获取所述更新资源包在所述外网时的第一标识值;计算所述更新资源包在所述内网时的第二标识值;确认所述第一标识值和所述第二标识值相同,以确保所述更新资源包未被篡改。In some embodiments, before using the update resource package to update the local software package of the software to be updated, the method further includes: acquiring a first identification value of the update resource package when it is on the external network; calculating The second identification value of the update resource package when it is in the intranet; confirm that the first identification value and the second identification value are the same to ensure that the update resource package has not been tampered with.
本申请的一些实施例通过第一标识值和第二标识值判定更新资源包在从外网转到内网的过程中是否被恶意篡改,确保了更新资源包的安全性和准确性。Some embodiments of the present application use the first identification value and the second identification value to determine whether the update resource package has been maliciously tampered with during the process of transferring from the external network to the internal network, which ensures the security and accuracy of the update resource package.
在一些实施例,所述利用所述更新资源包对待更新软件的本地软件包进行更新,获取目标软件,包括:响应于用户的选中操作,获取所述待更新软件和待更新软件版本号,以使所述更新资源包与所述待更新软件匹配;响应于所述用户的选中或输入操作,获取软件更新时间;在所述软件更新时间内,利用所述更新资源包对所述本地软件包进行更新,得到所述目标软件。In some embodiments, the step of using the update resource package to update the local software package of the software to be updated to obtain the target software includes: in response to a user's selection operation, obtaining the software to be updated and the version number of the software to be updated, to Match the update resource package with the software to be updated; obtain the software update time in response to the user's selection or input operation; within the software update time, use the update resource package to update the local software package Update to obtain the target software.
本申请的一些实施例通过用户选择待更新软件和设定软件更新时间,以使其与更新资源包匹配,并实现定时更新,实现了待更新软件的自动更新,灵活性较高。In some embodiments of the present application, the user selects the software to be updated and sets the software update time, so that it matches the update resource package, and realizes the regular update, which realizes the automatic update of the software to be updated, and has high flexibility.
在一些实施例,所述利用所述更新资源包对所述待更新软件的本地软件包进行更新,获取目标软件,包括:在灰度环境下或正式环境下执行如下操作:执行所述更新脚本和所述数据库更新脚本,并将所述目标软件包替换所述本地软件包,得到灰度环境下目标软件和正式环境下目标软件。In some embodiments, using the update resource package to update the local software package of the software to be updated to obtain the target software includes: performing the following operations in a grayscale environment or a formal environment: executing the update script and the database update script, and replace the local software package with the target software package to obtain target software in a grayscale environment and target software in a formal environment.
本申请的一些实施例通过在灰度环境或正式环境下执行对应的脚本和利用目标软件包替换本地软件包得到相应的目标软件,不需要人工参与,实现了对软件的自动更新。In some embodiments of the present application, the corresponding target software is obtained by executing the corresponding script in a grayscale environment or a formal environment and replacing the local software package with the target software package, without manual participation, and realizes automatic updating of the software.
在一些实施例,在所述获取所述目标软件之后,所述方法还包括:在灰度环境下执行如下操作:对所述灰度环境下目标软件进行测试,获取测试结果;若所述测试结果为通过,则确认所述灰度环境下目标软件正常;若所述测试结果为不通过,则确认所述灰度环境下目标软件异常,并执行回滚脚本以取消更新软件的操作。In some embodiments, after obtaining the target software, the method further includes: performing the following operations in a grayscale environment: testing the target software in the grayscale environment, and obtaining a test result; if the test If the result is passed, it is confirmed that the target software in the grayscale environment is normal; if the test result is not passed, it is confirmed that the target software in the grayscale environment is abnormal, and a rollback script is executed to cancel the operation of updating the software.
本申请的一些实施例通过在灰度环境下对灰度环境下目标软件进行测试,可以有效确定灰度环境下目标软件是否运行正常,在灰度环境下目标软件异常时还可以实现快速自动回滚,提高了更新过程的稳定性,进而为后续目标软件的正常运行提供保障。Some embodiments of the present application can effectively determine whether the target software is running normally in a gray-scale environment by testing the target software in a gray-scale environment, and can also realize fast automatic recovery when the target software is abnormal in a gray-scale environment. This improves the stability of the update process, thereby ensuring the normal operation of the subsequent target software.
在一些实施例,在所述确认所述灰度环境下目标软件正常之后,所述方法还包括:在正式环境下执行如下操作:对所述正式环境下目标软件进行检测,获取检测结果;若所述检测结果为通过,则确认所述正式环境下目标软件正常;若所述检测结果为不通过,则确认所述正式环境下目标软件异常,并执行所述回滚脚本以取消更新软件的操作。In some embodiments, after confirming that the target software is normal in the grayscale environment, the method further includes: performing the following operations in a formal environment: detecting the target software in the formal environment, and obtaining a detection result; If the test result is passed, it is confirmed that the target software in the formal environment is normal; if the test result is not passed, it is confirmed that the target software in the formal environment is abnormal, and the rollback script is executed to cancel the update of the software. operate.
本申请的一些实施例除了在灰度环境下测试后还需要在正式环境中测试以确保正式环境下目标软件可以正常运行,在正式环境下目标软件异常时还可以实现快速自动回滚,提高了更新过程的稳定性。In addition to testing in a grayscale environment, some embodiments of the present application also need to be tested in a formal environment to ensure that the target software can run normally in the formal environment, and can also achieve fast automatic rollback when the target software is abnormal in the formal environment. Stability of the update process.
第二方面,本申请的一些实施例提供了一种更新软件版本的装置,包括:获取模块,被配置为获取存储在外网的更新资源包,并将所述更新资源包存储至内网内,其中,所述内网在目标区域内被有权限的对象访问,所述更新资源包包括:目标软件包、更新脚本、数据库更新脚本以及回滚脚本;更新模块,被配置为利用所述更新资源包对在所述内网的待更新软件的软件包进行更新,获取目标软件。In a second aspect, some embodiments of the present application provide an apparatus for updating a software version, comprising: an acquisition module configured to acquire an update resource package stored in an external network, and store the update resource package in an internal network, Wherein, the intranet is accessed by authorized objects in the target area, and the update resource package includes: a target software package, an update script, a database update script and a rollback script; an update module is configured to utilize the update resource The package updates the software package of the software to be updated on the intranet to obtain the target software.
第三方面,本申请的一些实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时可实现如第一方面任一实施例所述的方法。In a third aspect, some embodiments of the present application provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method according to any embodiment of the first aspect can be implemented.
第四方面,本申请的一些实施例提供一种电子设备,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述程序时可实现如第一方面任一实施例所述的方法。In a fourth aspect, some embodiments of the present application provide an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the The method as described in any of the embodiments of the first aspect can be implemented in the program.
第五方面,本申请的一些实施例提供一种计算机程序产品,所述的计算机程序产品包括计算机程序,其中,所述的计算机程序被处理器执行时可实现如第一方面任一实施例所述的方法。In a fifth aspect, some embodiments of the present application provide a computer program product, and the computer program product includes a computer program, wherein, when the computer program is executed by a processor, the computer program can be implemented as described in any embodiment of the first aspect. method described.
附图说明Description of drawings
为了更清楚地说明本申请的一些实施例的技术方案,下面将对本申请的一些实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of some embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in some embodiments of the present application. It should be understood that the following drawings only show some of the drawings of the present application. Therefore, the embodiments should not be regarded as a limitation of the scope. For those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without creative efforts.
图1为本申请的一些实施例提供的更新软件版本的系统图;FIG. 1 is a system diagram of updating a software version provided by some embodiments of the present application;
图2为本申请的一些实施例提供的更新软件版本的方法流程图之一;FIG. 2 is one of the flow charts of methods for updating a software version provided by some embodiments of the present application;
图3为本申请的一些实施例提供的软件架构组成示意图;3 is a schematic diagram of software architecture composition provided by some embodiments of the present application;
图4为本申请的一些实施例提供的更新软件版本的方法流程图之二;FIG. 4 is the second flow chart of a method for updating a software version provided by some embodiments of the present application;
图5为本申请的一些实施例提供的更新软件版本的装置组成框图;FIG. 5 is a block diagram of an apparatus for updating a software version provided by some embodiments of the present application;
图6为本申请的一些实施例提供的一种电子设备示意图。FIG. 6 is a schematic diagram of an electronic device according to some embodiments of the present application.
具体实施方式Detailed ways
下面将结合本申请的一些实施例中的附图,对本申请的一些实施例中的技术方案进行描述。The technical solutions in some embodiments of the present application will be described below with reference to the accompanying drawings in some embodiments of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
相关技术中,现有的远程软件更新方案在同一网络环境下可以实施,但是不可以在不同的网络环境(例如,所述外网和内网)下实施。在面对医疗行业、金融行业、互联网行业和教育行业等信息安全尤其重要的行业,每个行业都有属于自身的内网或私有云,不允许外部人员随意访问。由上述相关技术可知,现有技术在不同的网络环境中无法远程实现对软件的交付更新,需要交付工程师去现场调整对应的软件,效率较低,交付周期延长,造成客户体验较差。In the related art, the existing remote software update solution can be implemented in the same network environment, but cannot be implemented in different network environments (eg, the external network and the internal network). In industries where information security is particularly important, such as the medical industry, the financial industry, the Internet industry, and the education industry, each industry has its own intranet or private cloud that does not allow outsiders to access at will. It can be seen from the above-mentioned related technologies that the existing technology cannot remotely realize the delivery and update of software in different network environments, and requires delivery engineers to adjust the corresponding software on site, which is inefficient and prolongs the delivery cycle, resulting in poor customer experience.
鉴于此,本申请的一些实施例提供了一种更新软件版本的方法、装置、存储介质及电子设备,该方法通过将存储在外网的更新资源包转存至内网中,以实现对内网待更新软件的更新,得到目标软件。本申请的一些实施例不需要人工参与即可远程实现不同网络环境下的软件的交付更新,提升了交付工程师的工作效率,降低了人为失误率和交付周期,提升了客户体验。In view of this, some embodiments of the present application provide a method, apparatus, storage medium, and electronic device for updating a software version. The method implements an update resource package stored in the external network to the internal network by transferring the update resource package stored in the external network to the internal network. Update the software to be updated to obtain the target software. Some embodiments of the present application can remotely realize the delivery and update of software in different network environments without manual participation, which improves the work efficiency of delivery engineers, reduces the human error rate and delivery cycle, and improves customer experience.
如图1所示,本申请的一些实施例提供了一种更新软件版本的系统,该系统包括终端200。其中,交付工程师100可以将更新资源包存储至终端200中内网可访问的共享目录,还可以选择待更新软件、待更新软件版本号以及软件更新时间,以使终端200在软件更新时间内对待更新软件进行更新得到目标软件。本申请的一些实施例可以在不同的网络环境中实现远程对软件的更新(例如,软件的升级或降级)。As shown in FIG. 1 , some embodiments of the present application provide a system for updating a software version, and the system includes a
在本申请的一些实施例中,终端200可以是移动终端也可以是非便携的电脑设备,本申请在此不作具体限定。In some embodiments of the present application, the
下面结合附图2示例性阐述本申请的一些实施例提供的由终端200执行的更新软件版本的实现过程。The implementation process of updating the software version executed by the
请参见附图2,图2为本申请的一些实施例提供的一种更新软件版本的方法流程图,该方法包括:S210,获取存储在外网的更新资源包,并将所述更新资源包存储至内网内,其中,所述内网在目标区域内被有权限的对象访问,所述更新资源包包括:目标软件包、更新脚本、数据库更新脚本以及回滚脚本。S220,利用所述更新资源包对在所述内网的待更新软件的本地软件包进行更新,获取目标软件。Please refer to FIG. 2. FIG. 2 is a flowchart of a method for updating a software version provided by some embodiments of the present application. The method includes: S210, acquiring an update resource package stored in an external network, and storing the update resource package To the intranet, wherein the intranet is accessed by the authorized object in the target area, and the update resource package includes: the target software package, the update script, the database update script and the rollback script. S220, using the update resource package to update the local software package of the software to be updated on the intranet, to obtain target software.
由于现有技术的远程软件更新方案只能在网络通畅的环境下实施,也就是网络环境相同的时候。在网络环境存在外网和内网两种环境时无法实现对软件的远程交付更新。例如,在医疗行业、金融行业和教育行业等均有自身的公司内网,为了确保公司数据的安全,只有该公司内部人员或有权限的人可以访问公司内网,外部人员无法访问。Because the remote software update solution in the prior art can only be implemented in an environment with a smooth network, that is, when the network environment is the same. The remote delivery and update of the software cannot be realized when the network environment has two environments, the external network and the internal network. For example, the medical industry, the financial industry, and the education industry have their own company intranets. In order to ensure the security of company data, only the company's internal personnel or authorized people can access the company intranet, and external personnel cannot.
因此,在本申请的一些实施例中,可以通过将存储在外网(也可以称为公网)的更新资源包下载后,存储至可被内网访问的共享目录,以此使得内网可以将更新资源包转移存储至内网中。最后利用更新软件包可以对内网的待更新软件进行安全更新,得到目标软件。Therefore, in some embodiments of the present application, the update resource package stored in the external network (also referred to as the public network) can be downloaded and stored in a shared directory that can be accessed by the internal network, so that the internal network can The updated resource package is transferred and stored in the intranet. Finally, by using the update software package, the software to be updated in the intranet can be safely updated to obtain the target software.
下面示例性阐述上述过程。The above process is exemplified below.
在本申请的一些实施例中,S210可以包括:在所述外网中获取软件资源包列表,其中,所述软件资源包列表包括至少一个软件的目标版本号和软件资源包,所述至少一个软件中各软件之间相容;从所述软件资源包列表中选取任意一个包作为所述更新资源包。In some embodiments of the present application, S210 may include: acquiring a software resource package list in the external network, where the software resource package list includes a target version number of at least one software and a software resource package, the at least one The software in the software is compatible; any one package is selected from the software resource package list as the update resource package.
例如,在本申请的一些实施例中,通过在确定各软件相容的情况下得到的软件资源包列表,从中选取任意一个作为更新资源包对待更新软件进行更新,确保了软件的有效更新。需要说明的是,软件资源包列表中的每个包对对应的软件进行更新的原理与上述更新资源包的原理相同。为了描述简洁,本申请以软件资源包列表中的任意一个作为更新资源包进行阐述。For example, in some embodiments of the present application, the software to be updated is updated by selecting any one of the software resource packages obtained when the software is determined to be compatible, and selecting any one of them as an update resource package to update the software to be updated, ensuring effective software update. It should be noted that the principle of updating the corresponding software for each package in the software resource package list is the same as the above-mentioned principle of updating the resource package. For the sake of brevity, this application uses any one of the software resource package lists as the update resource package for description.
在本申请的一些实施例中,混合云架构的软件服务中可能会存在多个软件,如图3所示的软件架构,其中,软件A、软件B、软件C、软件D运行在同一个软件环境中,软件A依赖于软件B、软件C以及软件D。为了确保更新后的软件A还可以依赖于其他软件,需要在更新之前获取相容的软件资源包列表。In some embodiments of the present application, there may be multiple software in the software service of the hybrid cloud architecture, such as the software architecture shown in FIG. 3 , wherein software A, software B, software C, and software D run on the same software In the environment, software A depends on software B, software C, and software D. To ensure that the updated software A can also depend on other software, it is necessary to obtain a list of compatible software resource packs before updating.
为了确保更新软件的有效性,在本申请的一些实施例中,S210还可以包括:获取在所述内网中的多个软件的软件当前版本号;获取任一软件与其他软件之间的相容结果,其中,所述任一软件为所述多个软件中的一个,所述其他软件为所述多个软件中除所述任一软件之外的软件;在所述相容结果为相容的情况下,从所述多个软件中获取软件当前版本号列表;获取与所述软件当前版本号列表对应的软件资源包列表,其中,一个软件当前版本号对应一个目标版本号和一个软件资源包。In order to ensure the validity of the updated software, in some embodiments of the present application, S210 may further include: obtaining the current software version numbers of multiple softwares in the intranet; obtaining the relative relationship between any software and other software. A compatible result, wherein the any software is one of the plurality of softwares, and the other software is software other than the any software among the plurality of software; in the compatible result, the same In the case of content, obtain a list of software current version numbers from the multiple software; obtain a software resource package list corresponding to the software current version number list, wherein, a software current version number corresponds to a target version number and a software resource pack.
例如,在本申请的一些实施例中,首先需要获取内网的本地软件环境信息,也就是获取内网环境下的所有软件的清单,该清单中包含多个软件的软件当前版本号。然后根据研发人员整理的软件版本相容信息表,得到基于任一软件与其他软件之间的相容结果,以此从多个软件中选取出相容结果为相容的软件当前版本号列表作为可更新的版本号列表。最后基于软件当前版本号列表可以在外网中查找到对应的目标版本号以及软件资源包,构建软件资源包列表。例如,软件A的软件当前版本号为1.0.0,目标版本号为1.1.0,更新资源包为1.0.0_1.1.0.zip。其中更新资源包可以是升级资源包也可以是降级资源包。For example, in some embodiments of the present application, the local software environment information of the intranet needs to be obtained first, that is, a list of all software in the intranet environment needs to be obtained, and the list includes the current software version numbers of multiple softwares. Then, according to the software version compatibility information table organized by the R&D personnel, the compatibility result between any software and other software is obtained, and the current version number list of the software whose compatibility result is compatible is selected from multiple software as A list of updatable version numbers. Finally, based on the current software version number list, the corresponding target version number and software resource package can be found in the external network, and a software resource package list can be constructed. For example, the current software version number of software A is 1.0.0, the target version number is 1.1.0, and the update resource package is 1.0.0_1.1.0.zip. The updating resource pack may be an upgrade resource pack or a downgrade resource pack.
为了防止更新资源包在转移的过程中被恶意篡改,在本申请的一些实施例中,在执行S220之前,更新软件版本的方法还包括:获取所述更新资源包在所述外网时的第一标识值;计算所述更新资源包在所述内网时的第二标识值;确认所述第一标识值和所述第二标识值相同,以确保所述更新资源包未被篡改。In order to prevent the update resource package from being maliciously tampered with during the transfer process, in some embodiments of the present application, before performing S220, the method for updating a software version further includes: acquiring the first number of the update resource package when it is on the external network. an identification value; calculating a second identification value of the update resource package when it is on the intranet; confirming that the first identification value and the second identification value are the same to ensure that the update resource package has not been tampered with.
例如,在本申请的一些实施例中,通过Hash(哈希)码的方式对更新软件包进行标识。当更新资源包在外网时计算得到第一Hash码(作为第一标识值的一个具体示例)。当更新资源包被存储到内网后,计算出此时的第二Hash码(作为第二标识值的一个具体示例)。若第一Hash码和第二Hash码相同,则表明更新资源包未被篡改。否则,表明更新资源包被篡改,为了确保内网环境的安全,需要取消对待更新软件进行更新的操作,并提醒交付工程师,使其尽快核查原因解决相应问题。可以理解的是,除了采用Hash码校验,还可以采用其他校验方法,本申请并不局限于此。For example, in some embodiments of the present application, the update software package is identified by means of a Hash code. The first Hash code (as a specific example of the first identification value) is obtained by calculating when the update resource package is on the external network. After the update resource package is stored in the intranet, the second Hash code at this time is calculated (as a specific example of the second identification value). If the first Hash code and the second Hash code are the same, it indicates that the update resource package has not been tampered with. Otherwise, it indicates that the update resource package has been tampered with. In order to ensure the security of the intranet environment, it is necessary to cancel the operation of updating the software to be updated, and remind the delivery engineer to check the cause and solve the corresponding problem as soon as possible. It can be understood that, in addition to using Hash code verification, other verification methods may also be used, and the present application is not limited to this.
为了实现软件的自动更新,提升更新效率,在本申请的一些实施例中,S220可以包括:响应于用户的选中操作,获取所述待更新软件和待更新软件版本号,以使所述更新资源包与所述待更新软件匹配;响应于所述用户的选中或输入操作,获取软件更新时间;在所述软件更新时间内,利用所述更新资源包对所述本地软件包进行更新,得到所述目标软件。In order to realize automatic software update and improve update efficiency, in some embodiments of the present application, S220 may include: in response to a user's selection operation, acquiring the software to be updated and the version number of the software to be updated, so as to enable the update resource The software package is matched with the software to be updated; in response to the user's selection or input operation, the software update time is obtained; within the software update time, the local software package is updated by using the update resource package to obtain the the target software.
例如,在本申请的一些实施例中,用户(例如,交付工程师或者区域管理人员)可以选择好待更新软件、待更新软件版本号和软件更新时间,以使待更新软件在软件更新时间内自动更新。通过用户辅助一方面可以确保待更新软件与更新资源包匹配,确保更新的准确度和有效性。另一方面可以设定软件更新时间,可以在空闲时间更新,不会影响软件的使用。For example, in some embodiments of the present application, a user (eg, a delivery engineer or an area manager) can select the software to be updated, the version number of the software to be updated, and the software update time, so that the software to be updated is automatically updated within the software update time. renew. On the one hand, through user assistance, it can be ensured that the software to be updated matches the update resource package, and the accuracy and effectiveness of the update can be ensured. On the other hand, the software update time can be set, which can be updated in idle time without affecting the use of the software.
在本申请的一些实施例中,S210还可以包括:在灰度环境下或正式环境下执行如下操作:执行所述更新脚本和所述数据库更新脚本,并将所述目标软件包替换所述本地软件包,得到灰度环境下目标软件和正式环境下目标软件。In some embodiments of the present application, S210 may further include: performing the following operations in a grayscale environment or a formal environment: executing the update script and the database update script, and replacing the local software package with the target software package software package to obtain the target software in the grayscale environment and the target software in the formal environment.
例如,在本申请的一些实施例中在软件更新时,可以在灰度环境下或正式环境下停止待更新软件的软件进程,然后执行相应的脚本并将资源包替换本地软件包,得到灰度环境下目标软件和正式环境下目标软件,以便于后续对目标软件进行测试。在本申请的一些实施例中可以根据需要生成灰度环境下目标软件和正式环境下目标软件,也就是需要测试哪种目标软件生成哪种目标软件。For example, in some embodiments of the present application, when the software is updated, the software process of the software to be updated can be stopped in a grayscale environment or a formal environment, and then a corresponding script is executed and the resource package is replaced with the local software package to obtain a grayscale The target software in the environment and the target software in the formal environment, so as to facilitate the subsequent testing of the target software. In some embodiments of the present application, target software in a grayscale environment and target software in a formal environment may be generated as required, that is, which target software needs to be tested to generate which target software.
为了确保目标软件可以正常运行,使得软件更新成功,在本申请的一些实施例中,在执行S220之后(图中未示出),更新软件版本的方法还包括:在灰度环境下执行如下操作:对所述灰度环境下目标软件进行测试,获取测试结果;若所述测试结果为通过,则确认所述灰度环境下目标软件正常;若所述测试结果为不通过,则确认所述灰度环境下目标软件异常,并执行回滚脚本以取消更新软件的操作。In order to ensure that the target software can run normally, so that the software update is successful, in some embodiments of the present application, after performing S220 (not shown in the figure), the method for updating the software version further includes: performing the following operations in a grayscale environment : Test the target software in the grayscale environment, and obtain the test result; if the test result is passed, then confirm that the target software is normal under the grayscale environment; if the test result is not passed, then confirm the The target software is abnormal in the grayscale environment, and the rollback script is executed to cancel the operation of updating the software.
例如,在本申请的一些实施例中,灰度环境也可称为线上仿真环境或者预发布环境,在上线之前发布到灰度环境,灰度环境通过测试后再上线。在灰度环境下测试时,若测试结果为通过则表明目标软件正常。否则目标软件异常,此时会关闭灰度流量,执行回滚脚本取消该操作,以此提升更新软件过程的稳定性。For example, in some embodiments of the present application, the grayscale environment may also be referred to as an online simulation environment or a pre-release environment, and is released to the grayscale environment before going online, and the grayscale environment goes online after passing the test. When testing in a grayscale environment, if the test result is passed, it means that the target software is normal. Otherwise, the target software is abnormal. At this time, the grayscale traffic will be closed, and the rollback script will be executed to cancel the operation, so as to improve the stability of the software update process.
在本申请的一些实施例中,在所述确认所述灰度环境下目标软件正常之后,所述方法还包括:在正式环境下执行如下操作:对所述正式环境下目标软件进行检测,获取检测结果;若所述检测结果为通过,则确认所述正式环境下目标软件正常;若所述检测结果为不通过,则确认所述正式环境下目标软件异常,并执行所述回滚脚本以取消更新软件的操作。In some embodiments of the present application, after confirming that the target software is normal in the grayscale environment, the method further includes: performing the following operations in a formal environment: detecting the target software in the formal environment, obtaining test result; if the test result is passed, confirm that the target software in the formal environment is normal; if the test result is not passed, confirm that the target software in the formal environment is abnormal, and execute the rollback script to Cancel the operation to update the software.
例如,在本申请的一些实施例中,在灰度环境下对灰度环境下目标软件测试后还需要在正式环境中,也就是软件运行环境中进行再次检测。通过测试确保正式环境下目标软件可以正常运行。若正式环境下目标软件异常也会关闭灰度流量并执行更新资源包中的回滚脚本取消更新软件操作,以此提升更新软件过程的稳定性。For example, in some embodiments of the present application, after the target software is tested in a grayscale environment, it needs to be tested again in a formal environment, that is, a software running environment. Test to ensure that the target software can run normally in the formal environment. If the target software is abnormal in the official environment, the grayscale traffic will be closed and the rollback script in the update resource package will be executed to cancel the software update operation, thereby improving the stability of the software update process.
下面结合附图4示例性阐述本申请的一些实施例提供的更新软件版本的具体实现过程。The specific implementation process of updating the software version provided by some embodiments of the present application is exemplarily described below with reference to FIG. 4 .
请参见附图4,图4为本申请的一些实施例提供的一种更新软件版本的方法流程图。以下实施例以某互联网公司向某个医疗公司提供软件交付更新服务,医疗公司有自己的内网,只可以供公司内部人员访问,或者有权限的人员。互联网公司相对于医疗公司来说属于外网,其无法直接访问医疗公司。下面示例性阐述上述过程。Please refer to FIG. 4 , which is a flowchart of a method for updating a software version provided by some embodiments of the present application. The following embodiment uses an Internet company to provide a software delivery update service to a medical company. The medical company has its own intranet, which can only be accessed by internal personnel or authorized personnel. Compared with medical companies, Internet companies belong to the extranet and cannot directly access medical companies. The above process is exemplified below.
S410,获取在内网中的多个软件的软件当前版本号。S410: Acquire current software version numbers of multiple software in the intranet.
在本申请的一些实施例中,每个软件随着不断升级会产生多个历史版本,一般用版本号来进行标识,版本号一般采用GNU命名规则。In some embodiments of the present application, each software will generate multiple historical versions as it is continuously upgraded, which is generally identified by a version number, and the version number generally adopts the GNU naming rules.
例如,作为本申请的一个具体示例,获取医疗公司内网中的本地软件环境信息,也就是内网下的所有的软件。本地软件环境信息中包括多个软件的软件当前版本号(以下简称“版本号”),一个软件对应一个软件当前版本号。For example, as a specific example of this application, the local software environment information in the intranet of the medical company, that is, all the software under the intranet, is acquired. The local software environment information includes software current version numbers of a plurality of software (hereinafter referred to as "version numbers"), and one software corresponds to one current software version number.
S420,获取任一软件与其他软件之间的相容结果,并在所述相容结果为相容的情况下,从所述多个软件中获取软件当前版本号列表。S420: Obtain a compatibility result between any piece of software and other software, and if the compatibility result is compatible, obtain a list of current software version numbers from the multiple pieces of software.
例如,作为本申请的一个具体示例,研发人员在研发出软件的不同版本后,会对软件间的兼容性进行测试,得到相容结果,如表1所示,由表1可知,版本号为1.0.0的软件A与版本号为1.0.0、1.1.0的软件B相容,版本号为1.0.0的软件A与版本号为1.2.0的软件B不相容。版本号为1.1.0的软件A与上述提及的软件B的版本号均相容。以此,可以得到相容软件的软件当前版本号列表,该表中的软件为可升级软件(作为可更新软件的一个具体示例)。For example, as a specific example of this application, after developing different versions of the software, the developers will test the compatibility between the software, and obtain the compatibility result, as shown in Table 1. It can be seen from Table 1 that the version number is Software A of version 1.0.0 is compatible with software B of version 1.0.0 and 1.1.0, and software A of version 1.0.0 is incompatible with software B of version 1.2.0. Software A with version number 1.1.0 is compatible with the version numbers of software B mentioned above. In this way, a list of current software version numbers of compatible software can be obtained, and the software in the table is upgradeable software (as a specific example of upgradeable software).
表1Table 1
S430,获取与所述软件当前版本号列表对应的软件资源包列表。S430: Obtain a software resource package list corresponding to the current software version number list.
例如,作为本申请的一个具体示例,在外网中查找并下载与软件当前版本号列表中各软件的目标版本号和软件资源包,构成软件资源包列表。For example, as a specific example of this application, the target version number and software resource package of each software in the current software version number list are searched and downloaded from the external network to form a software resource package list.
例如,研发人员在研发时会依据软件当前版本和目标版本号生成如下信息表,如表2所示。由表中可知软件A需要从1.0.0升级到1.1.0,升级资源包为1.0.0_1.1.0.zip的压缩文件。软件B和软件C的升级信息也能读取到。For example, the R&D personnel will generate the following information table according to the current software version and target version number during development, as shown in Table 2. It can be seen from the table that software A needs to be upgraded from 1.0.0 to 1.1.0, and the upgrade resource package is a compressed file of 1.0.0_1.1.0.zip. The upgrade information of software B and software C can also be read.
表2Table 2
S440,获取存储在外网的更新资源包,并将所述更新资源包存储至内网内。S440: Acquire the update resource package stored in the external network, and store the update resource package in the internal network.
例如,作为本申请的一个具体示例,以软件资源包列表中的任意一个包作为升级资源包(作为更新资源包的一个具体示例)进行阐述。该升级资源包从外网下载之后,存储到内网可访问的共享目录,然后将更新资源包转移到内网中。每个升级资源包内包括:目标软件包、更新脚本、数据库更新脚本以及回滚脚本。For example, as a specific example of the present application, any package in the software resource package list is used as an upgrade resource package (as a specific example of an update resource package) for description. After the upgrade resource package is downloaded from the external network, it is stored in a shared directory accessible on the internal network, and then the update resource package is transferred to the internal network. Each upgrade resource package includes: target software package, update script, database update script, and rollback script.
S450,判定更新资源包是否被篡改,若否,则执行S450,若是执行S490。S450, determine whether the update resource package has been tampered with, if not, execute S450, and if so, execute S490.
为了防止更新资源包被篡改,例如,作为本申请的一个具体示例,以哈希码为校验依据对更新资源包校验。例如,升级资源包存储在外网时的哈希码为第一码(作为第一标识值的一个具体示例),升级资源包存储在内网时重新计算得到的哈希码为第二码(作为第二标识值的一个具体示例)。若第一码和第二码相同,则确认升级资源包未被篡改,继续进行后续操作。否则确认升级资源包被篡改,此时取消升级软件操作。In order to prevent the update resource package from being tampered with, for example, as a specific example of the present application, the update resource package is verified based on a hash code. For example, the hash code when the upgrade resource package is stored on the external network is the first code (as a specific example of the first identification value), and the hash code recalculated when the upgrade resource package is stored on the internal network is the second code (as a specific example of the first identification value) a specific example of the second identification value). If the first code and the second code are the same, it is confirmed that the upgrade resource package has not been tampered with, and subsequent operations are continued. Otherwise, confirm that the upgrade resource package has been tampered with, and cancel the software upgrade operation at this time.
S460,响应于用户的操作,得到待更新软件、待更新软件版本号和软件更新时间,对待更新软件进行更新。S460, in response to the user's operation, obtain the software to be updated, the version number of the software to be updated, and the software update time, and update the software to be updated.
例如,作为本申请的一个具体示例,用户可以通过选择待更新软件以及待更新软件版本号,在软件更新时间内在灰度环境下停止运行待更新软件,然后执行升级资源包中的更新脚本和数据库更新脚本,并将目标软件包替换内网中的本地软件包,得到灰度环境下目标软件。For example, as a specific example of this application, the user can select the software to be updated and the version number of the software to be updated, stop running the software to be updated in a grayscale environment within the software update time, and then execute the update script and database in the upgrade resource package Update the script and replace the local software package in the intranet with the target software package to obtain the target software in the grayscale environment.
S470,在灰度环境下对灰度环境下目标软件进行测试,若通过测试,则执行S480,否则执行S490。S470 , test the target software in the grayscale environment in a grayscale environment, and if the test passes, execute S480 , otherwise execute S490 .
例如,作为本申请的一个具体示例,可以对灰度环境下目标软件进行自动测试。通过测试可以检测灰度环境下目标软件的核心流程是否可以正常运行。测试方法采用传统的软件测试方法即可。若灰度环境下目标软件通过测试,则确认灰度环境下目标软件可正常运行,否则不能正常运行,存在异常。For example, as a specific example of the present application, automatic testing of target software in a grayscale environment can be performed. Through the test, it can be detected whether the core process of the target software can run normally in the grayscale environment. The testing method can use the traditional software testing method. If the target software in the grayscale environment passes the test, it is confirmed that the target software in the grayscale environment can run normally, otherwise it cannot run normally, and there is an abnormality.
例如,作为本申请的另一个具体示例,用户可以点击“测试”按钮进行测试。For example, as another specific example of the present application, the user can click the "test" button to test.
S480,在正式环境下对正式环境下目标软件进行测试,若通过测试,则确认正式环境下目标软件正常,否则执行S490。S480, the target software in the formal environment is tested in the formal environment, and if the test is passed, it is confirmed that the target software in the formal environment is normal, otherwise, S490 is performed.
例如,作为本申请的一个具体示例,测试灰度环境下目标软件在灰度环境下运行没问题后,可以在正式环境,也就是目标软件运行的环境中进行确认。首先在正式环境下停止运行待更新软件,然后执行升级资源包中的更新脚本和数据库更新脚本,并将目标软件包替换内网中的本地软件包,得到正式环境下目标软件,并对正式环境下目标软件进行测试。若通过测试,则确认正式环境下目标软件没有问题,可以正常使用。否则确认正式环境下目标软件存在异常。For example, as a specific example of the present application, after testing that the target software runs in the grayscale environment without problems, it can be confirmed in the formal environment, that is, the environment in which the target software runs. First, stop running the software to be updated in the official environment, then execute the update script and database update script in the upgrade resource package, and replace the target software package with the local software package in the intranet to obtain the target software in the official environment, and perform the update on the official environment. Test the target software. If the test is passed, it is confirmed that the target software in the official environment has no problems and can be used normally. Otherwise, confirm that the target software is abnormal in the official environment.
S490,执行回滚脚本以取消更新软件的操作。S490, execute the rollback script to cancel the operation of updating the software.
例如,作为本申请的一个具体示例,通过执行回滚脚本可以确保升级出现异常时可以实现快速自动回滚,提升了软件升级过程的稳定性。For example, as a specific example of the present application, by executing the rollback script, it can be ensured that rapid automatic rollback can be achieved when an upgrade occurs abnormally, which improves the stability of the software upgrade process.
例如,作为本申请的另一个具体示例,该步骤也可以是用户点击“回退”按钮后再执行。本申请并不局限于此。For example, as another specific example of the present application, this step may also be executed after the user clicks the "Back" button. The present application is not limited to this.
请参考图5,图5示出了本申请的一些实施例提供的更新软件版本的装置的组成框图。应理解,该更新软件版本的装置与上述方法实施例对应,能够执行上述方法实施例涉及的各个步骤,该更新软件版本的装置的具体功能可以参见上文中的描述,为避免重复,此处适当省略详细描述。Please refer to FIG. 5 , which shows a block diagram of an apparatus for updating a software version provided by some embodiments of the present application. It should be understood that the device for updating the software version corresponds to the above-mentioned method embodiments, and can perform various steps involved in the above-mentioned method embodiments. The specific functions of the device for updating the software version can refer to the description above. In order to avoid repetition, appropriate Detailed description is omitted.
图5的更新软件版本的装置包括至少一个能以软件或固件的形式存储于存储器中或固化在更新软件版本的装置中的软件功能模块,该更新软件版本的装置包括:获取模块510,被配置为获取存储在外网的更新资源包,并将所述更新资源包存储至内网内,其中,所述内网在目标区域内被有权限的对象访问,所述更新资源包包括:目标软件包、更新脚本、数据库更新脚本以及回滚脚本;更新模块520,被配置为利用所述更新资源包对在所述内网的待更新软件的软件包进行更新,获取目标软件。The apparatus for updating the software version in FIG. 5 includes at least one software function module that can be stored in the memory or solidified in the apparatus for updating the software version in the form of software or firmware. The apparatus for updating the software version includes: an
在本申请的一些实施例中,获取模块510至少被配置为在所述外网中获取软件资源包列表,其中,所述软件资源包列表包括至少一个软件的目标版本号和软件资源包,所述至少一个软件中各软件之间相容;从所述软件资源包列表中选取任意一个包作为所述更新资源包。In some embodiments of the present application, the obtaining
在本申请的一些实施例中,获取模块510至少被配置为获取在所述内网中的多个软件的软件当前版本号;获取任一软件与其他软件之间的相容结果,其中,所述任一软件为所述多个软件中的一个,所述其他软件为所述多个软件中除所述任一软件之外的软件;在所述相容结果为相容的情况下,从所述多个软件中获取软件当前版本号列表;获取与所述软件当前版本号列表对应的软件资源包列表,其中,一个软件当前版本号对应一个目标版本号和一个软件资源包。In some embodiments of the present application, the obtaining
在本申请的一些实施例中,在更新模块520之前,该装置还包括校验模块(图中未示出),校验模块至少被配置为获取所述更新资源包在所述外网时的第一标识值;计算所述更新资源包在所述内网时的第二标识值;确认所述第一标识值和所述第二标识值相同,以确保所述更新资源包未被篡改。In some embodiments of the present application, before the
在本申请的一些实施例中,更新模块520至少被配置为响应于用户的选中操作,获取所述待更新软件和待更新软件版本号,以使所述更新资源包与所述待更新软件匹配;响应于所述用户的选中或输入操作,获取软件更新时间;在所述软件更新时间内,利用所述更新资源包对所述本地软件包进行更新,得到所述目标软件。In some embodiments of the present application, the
在本申请的一些实施例中,更新模块520至少被配置为在灰度环境下或正式环境下执行如下操作:执行所述更新脚本和所述数据库更新脚本,并将所述目标软件包替换所述本地软件包,得到灰度环境下目标软件和正式环境下目标软件。In some embodiments of the present application, the
在本申请的一些实施例中,在更新模块520之后,该装置还包括测试模块(图中未示出),测试模块至少被配置为在灰度环境下执行如下操作:对所述灰度环境下目标软件进行测试,获取测试结果;若所述测试结果为通过,则确认所述灰度环境下目标软件正常;若所述测试结果为不通过,则确认所述灰度环境下目标软件异常,并执行回滚脚本以取消更新软件的操作。In some embodiments of the present application, after the
在本申请的一些实施例中,测试模块至少被配置为在所述确认所述灰度环境下目标软件正常之后,在正式环境下执行如下操作:对所述正式环境下目标软件进行检测,获取检测结果;若所述检测结果为通过,则确认所述正式环境下目标软件正常;若所述检测结果为不通过,则确认所述正式环境下目标软件异常,并执行所述回滚脚本以取消更新软件的操作。In some embodiments of the present application, the testing module is at least configured to perform the following operations in the formal environment after confirming that the target software is normal in the grayscale environment: detect the target software in the formal environment, obtain test result; if the test result is passed, confirm that the target software in the formal environment is normal; if the test result is not passed, confirm that the target software in the formal environment is abnormal, and execute the rollback script to Cancel the operation to update the software.
本申请的一些实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时可实现如上述实施例提供的上述方法中的任意实施例所对应方法的操作。Some embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method corresponding to any one of the above-mentioned methods provided by the above-mentioned embodiments can be implemented. operation.
本申请的一些实施例还提供了一种计算机程序产品,所述的计算机程序产品包括计算机程序,其中,所述的计算机程序被处理器执行时可实现如上述实施例提供的上述方法中的任意实施例所对应方法的操作。Some embodiments of the present application also provide a computer program product, where the computer program product includes a computer program, wherein, when the computer program is executed by a processor, any one of the above methods provided by the above embodiments can be implemented. Operation of the method corresponding to the embodiment.
如图6所示,本申请的一些实施例提供一种电子设备600,该电子设备600包括:存储器610、处理器620以及存储在存储器610上并可在处理器620上运行的计算机程序,其中,处理器620通过总线630从存储器610读取程序并执行所述程序时可实现如上述任意实施例的方法。As shown in FIG. 6, some embodiments of the present application provide an
处理器620可以处理数字信号,可以包括各种计算结构。例如复杂指令集计算机结构、结构精简指令集计算机结构或者一种实行多种指令集组合的结构。在一些示例中,处理器620可以是微处理器。The
存储器610可以用于存储由处理器620执行的指令或指令执行过程中相关的数据。这些指令和/或数据可以包括代码,用于实现本申请实施例描述的一个或多个模块的一些功能或者全部功能。本公开实施例的处理器620可以用于执行存储器610中的指令以实现上述所示的方法。存储器610包括动态随机存取存储器、静态随机存取存储器、闪存、光存储器或其它本领域技术人员所熟知的存储器。
以上所述仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above descriptions are merely examples of the present application, and are not intended to limit the protection scope of the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application. It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210918153.9A CN115167896A (en) | 2022-08-01 | 2022-08-01 | Method and device for updating software version, storage medium and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210918153.9A CN115167896A (en) | 2022-08-01 | 2022-08-01 | Method and device for updating software version, storage medium and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115167896A true CN115167896A (en) | 2022-10-11 |
Family
ID=83476682
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210918153.9A Pending CN115167896A (en) | 2022-08-01 | 2022-08-01 | Method and device for updating software version, storage medium and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115167896A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116048585A (en) * | 2023-02-09 | 2023-05-02 | 国核自仪系统工程有限公司 | Industrial control safety protection system and software updating method, device, equipment and medium thereof |
| CN118916052A (en) * | 2024-07-11 | 2024-11-08 | 北京火山引擎科技有限公司 | Application program updating method and related device |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104503789A (en) * | 2014-12-17 | 2015-04-08 | 华为技术有限公司 | Version updating control method and ICT (information and communication technology) equipment |
| CN104820602A (en) * | 2015-05-18 | 2015-08-05 | 北京瑞星信息技术有限公司 | Method, device and system for publishing software package |
| CN112463208A (en) * | 2020-12-22 | 2021-03-09 | 上海有个机器人有限公司 | Version management method and device, electronic equipment and storage medium |
| CN112948278A (en) * | 2021-05-14 | 2021-06-11 | 太平金融科技服务(上海)有限公司深圳分公司 | Product gray level publishing method, device, equipment and medium based on gray level database |
| CN113326059A (en) * | 2020-02-28 | 2021-08-31 | 腾讯科技(深圳)有限公司 | Resource updating method, device and storage medium |
| CN114281380A (en) * | 2021-12-21 | 2022-04-05 | 上海小传科技有限公司 | Update processing method, mobile terminal and storage medium |
-
2022
- 2022-08-01 CN CN202210918153.9A patent/CN115167896A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104503789A (en) * | 2014-12-17 | 2015-04-08 | 华为技术有限公司 | Version updating control method and ICT (information and communication technology) equipment |
| CN104820602A (en) * | 2015-05-18 | 2015-08-05 | 北京瑞星信息技术有限公司 | Method, device and system for publishing software package |
| CN113326059A (en) * | 2020-02-28 | 2021-08-31 | 腾讯科技(深圳)有限公司 | Resource updating method, device and storage medium |
| CN112463208A (en) * | 2020-12-22 | 2021-03-09 | 上海有个机器人有限公司 | Version management method and device, electronic equipment and storage medium |
| CN112948278A (en) * | 2021-05-14 | 2021-06-11 | 太平金融科技服务(上海)有限公司深圳分公司 | Product gray level publishing method, device, equipment and medium based on gray level database |
| CN114281380A (en) * | 2021-12-21 | 2022-04-05 | 上海小传科技有限公司 | Update processing method, mobile terminal and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 周纪海等: "《DevSecOps实战》", 31 January 2022, 北京:机械工业出版社, pages: 193 - 196 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116048585A (en) * | 2023-02-09 | 2023-05-02 | 国核自仪系统工程有限公司 | Industrial control safety protection system and software updating method, device, equipment and medium thereof |
| CN116048585B (en) * | 2023-02-09 | 2023-08-25 | 国核自仪系统工程有限公司 | Industrial control safety protection system and software updating method, device, equipment and medium thereof |
| CN118916052A (en) * | 2024-07-11 | 2024-11-08 | 北京火山引擎科技有限公司 | Application program updating method and related device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2019052234A1 (en) | Automated test method for product algorithm, and application server | |
| US20160026519A1 (en) | Application Compatibility Leveraging Successful Resolution of Issues | |
| CN109446753A (en) | Detect method, apparatus, computer equipment and the storage medium of pirate application program | |
| CN107092491B (en) | A configuration loading method and system | |
| CN113448862B (en) | Software version testing method and device and computer equipment | |
| CN112559337A (en) | Code coverage rate testing method and device, electronic equipment and storage medium | |
| CN110795447A (en) | Data processing method, data processing system, electronic device, and medium | |
| CN115167896A (en) | Method and device for updating software version, storage medium and electronic equipment | |
| CN114185591A (en) | Code checking method, apparatus, storage medium and computer program product | |
| CN109254791A (en) | Develop management method, computer readable storage medium and the terminal device of data | |
| CN114661423A (en) | Cluster configuration detection method and device, computer equipment and storage medium | |
| US12073295B2 (en) | Machine learning model operation management system and method | |
| US9396239B2 (en) | Compiling method, storage medium and compiling apparatus | |
| US11347533B2 (en) | Enhanced virtual machine image management system | |
| CN110674491B (en) | Method and device for real-time evidence obtaining of android application and electronic equipment | |
| CN112561690A (en) | Method, system, equipment and storage medium for testing credit card staging service interface | |
| CN116599881B (en) | Methods, apparatus, equipment and storage media for cloud platform tenant modeling and testing | |
| CN116483888B (en) | Program evaluation method and device, electronic equipment and computer readable storage medium | |
| US20100070797A1 (en) | Data processing systems and methods to ensure the consistency of data | |
| CN110008073B (en) | Hardware platform differentiated shielding method, device, equipment and readable storage medium | |
| CN111633642B (en) | Robot management method and device, electronic equipment and storage medium | |
| CN114527993A (en) | Application deployment method, device, equipment and medium | |
| RU2851029C1 (en) | Method and system for automated management of application releases | |
| CN113824847A (en) | Method and device for determining charging abnormity, computing equipment and computer storage medium | |
| RU2830052C1 (en) | Method and system for automated application release management |
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 |