Version upgrading method and device, equipment and storage medium

By obtaining and using pre-configured version upgrade configuration information, the version of the function package is automatically determined and upgraded, and the problem of manual verification and upgrading in the existing technology is solved, and efficient, accurate version upgrade and secure version of the function package is achieved. automatic verification.

CN119088410APending Publication Date: 2024-12-06BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310666485.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing manual verification and upgrade methods are time-consuming and labor-intensive, and cannot effectively ensure that the version of the function package is upgraded to a secure version, resulting in low upgrade efficiency and accuracy.

Method used

By obtaining the current version information of the target software and the pre-configured version upgrade configuration information, including the upgrade method identification information and security version information, the target version information is automatically determined and the version upgrade process is performed, and the automatic checksum version upgrade of the function package is realized.

Benefits of technology

Improve the efficiency and accuracy of the version upgrade of the feature package, ensure that the version is upgraded to a secure version, and reduce labor costs and the duration of security vulnerabilities exposed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088410A_ABST
    Figure CN119088410A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a version upgrading method and device, equipment and a storage medium. The method comprises the steps of obtaining current version information of a target function program package in target software; obtaining version upgrading configuration information corresponding to pre-configured target software, wherein the version upgrading configuration information comprises upgrading mode identification information corresponding to the target function program package and at least one piece of security version information; determining target version information corresponding to the target function program package from the security version information based on an upgrading mode corresponding to the upgrading mode identification information; and if the current version information is different from the target version information, performing version upgrading processing on the target function program package based on the target version information. Through the technical scheme of the embodiment of the invention, the version upgrading efficiency and accuracy of the function program package can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer technology, and in particular to a version upgrade method, device, equipment and storage medium. Background Art

[0002] With the rapid development of computer technology, different functional packages can be developed, such as Jar (Java Archive) packages of middleware or tool components. When developing software, different functional packages can be introduced to combine the required software functions, and the introduced functional packages can be packaged to generate software installation packages to achieve software packaging and online release.

[0003] At present, the versions of function packages are changing with each passing day and iterating at a high speed. Developers need to manually verify the version information of the introduced function packages and manually upgrade the version information with security vulnerabilities to ensure information security.

[0004] However, in the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0005] The existing manual verification and upgrade method is time-consuming and labor-intensive, and cannot effectively guarantee the upgrade to safe version information, thereby reducing the version upgrade efficiency and accuracy of the functional program package. Summary of the invention

[0006] Embodiments of the present invention provide a version upgrade method, apparatus, device and storage medium to improve the version upgrade efficiency and accuracy of a function program package.

[0007] In a first aspect, an embodiment of the present invention provides a version upgrade method, comprising:

[0008] Obtaining current version information of a target function package in the target software;

[0009] Acquire pre-configured version upgrade configuration information corresponding to the target software, the version upgrade configuration information including: upgrade mode identification information corresponding to the target function program package and at least one security version information;

[0010] Based on the upgrade mode corresponding to the upgrade mode identification information, determining the target version information corresponding to the target function program package from the security version information;

[0011] If the current version information is different from the target version information, the target function program package is upgraded based on the target version information.

[0012] In a second aspect, an embodiment of the present invention further provides a version upgrade device, comprising:

[0013] A current version information acquisition module is used to acquire the current version information of the target function program package in the target software;

[0014] A version upgrade configuration information acquisition module, used to acquire the pre-configured version upgrade configuration information corresponding to the target software, the version upgrade configuration information including: upgrade mode identification information corresponding to the target function program package and at least one security version information;

[0015] a target version information determination module, configured to determine the target version information corresponding to the target function program package from the security version information based on the upgrade mode corresponding to the upgrade mode identification information;

[0016] The version upgrade processing module is used to perform version upgrade processing on the target function program package based on the target version information if the current version information is different from the target version information.

[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0018] one or more processors;

[0019] A memory for storing one or more programs;

[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the version upgrade method provided by any embodiment of the present invention.

[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a version upgrade method as provided in any embodiment of the present invention.

[0022] One embodiment of the above invention has the following advantages or beneficial effects:

[0023] By pre-configuring the corresponding version upgrade configuration information for each function package in each software, namely, the upgrade method identification information and at least one security version information, the personalized configuration of the function package can be realized, and the accuracy of the function package version upgrade can be guaranteed. By obtaining the current version information of the target function package in the target software and the pre-configured upgrade method identification information and at least one security version information, and based on the upgrade method corresponding to the upgrade method identification information, the target version information corresponding to the target function package is determined from the security version information. If the current version information is different from the target version information, the target function package is upgraded based on the target version information, so that the automatic verification and version upgrade of the function package can be realized, and the function package is effectively guaranteed to be upgraded to the security version information, thereby improving the efficiency and accuracy of the function package version upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 It is a flow chart of a version upgrade method provided by an embodiment of the present invention;

[0026] Figure 2 is a flow chart of another version upgrade method provided by an embodiment of the present invention;

[0027] Figure 3 This is an example of a version upgrade process involved in an embodiment of the present invention;

[0028] Figure 4 It is a structural diagram of a version upgrade device provided by an embodiment of the present invention;

[0029] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0031] Figure 1This is a flowchart of a version upgrade method provided by an embodiment of the present invention. This embodiment is applicable to the case of upgrading the version information of the functional program package in the case installation package, especially to the application scenario of using the management tool Maven to upgrade the Jar package during the software development process. The method can be executed by a version upgrade device, which can be implemented by software and / or hardware and integrated in an electronic device, such as a software development terminal. Figure 1 As shown, the method specifically comprises the following steps:

[0032] S110: Obtain current version information of a target function program package in the target software.

[0033] Among them, the target software may refer to the software to be launched under development. The functions in the target software can be implemented by introducing different functional packages. The functional package may include a program for implementing a specific function. For example, the functional package may be, but is not limited to, a Jar package of middleware. Middleware may be a general term for a tool or technology decoupled by abstraction. Jar package is a compressed file compiled by JAVA language, which is used to provide tools or methods. The target functional package may be a functional package that is pre-set based on business needs and that requires security verification and version upgrade in the target software. For example, all functional packages in the target software may be used as target functional packages so that security verification and version upgrade are performed on each functional package in the target software. The external functional package that the target software depends on may also be determined as the target functional package so that security verification and version upgrade are performed only on each external functional package that depends on it. The number of target functional packages may be one or more. The current version information may refer to the version number of the target functional package currently introduced by the target software.

[0034] Specifically, the current version information of the target function package in the target software can be obtained by thread scanning. For example, when the target function package is a Jar package and there are multiple target function packages, the maven pom file under the Java project can be scanned in parallel by multiple threads to obtain the target location of each target function package, that is, the target maven coordinates. The maven coordinates can be composed of organization identification information GroupId, project identification information ArtifactId and version information. Among them, the organization identification information and project identification information are used to determine a unique function package in order to distinguish different program function packages. The version information in the target maven coordinates corresponding to each target function package can be determined as the current version information of the corresponding target function package. By means of multi-threaded parallel scanning, the current version information of each target function package can be obtained more quickly, further improving the efficiency of version upgrades.

[0035] S120. Obtain version upgrade configuration information corresponding to the pre-configured target software, where the version upgrade configuration information includes: upgrade mode identification information corresponding to the target function program package and at least one security version information.

[0036] Among them, each functional program package in each software corresponds to a pre-configured version upgrade configuration information. The upgrade method can be pre-set, and the upgrade strategy for the functional program package to perform version upgrade. Different functional programs can correspond to different upgrade methods, or they can correspond to the same upgrade method, which is specifically personalized based on business needs and actual scenarios. The upgrade method identification information can be information used to uniquely identify the upgrade method, so as to distinguish different upgrade methods. The security version information can refer to the version number corresponding to the target functional program package that does not have security vulnerabilities. The security version information can also refer to the security version information recommended to be introduced in the data warehouse. Each functional program package can correspond to one or more security version information, and the specific number can be configured based on actual conditions.

[0037] Specifically, developers can pre-configure the corresponding version upgrade configuration information for each functional program package in each software developed on the local side, so that the version upgrade configuration information corresponding to the target software can be obtained directly on the local side to improve the acquisition efficiency. Developers can also pre-configure the corresponding version upgrade configuration information for each functional program package in each software developed on an additional configuration terminal, such as a server, so as to obtain the version upgrade configuration information corresponding to the target software by interacting with the configuration terminal. The configuration terminal can be used to achieve unified configuration and remote unified management of version upgrades, further improving the configuration efficiency. It should be noted that by configuring the upgrade method identification information and security version information for each functional program package, different upgrade methods can be used to perform personalized upgrades on each functional program package, thereby ensuring the accuracy of the functional program package version upgrade.

[0038] S130. Determine the target version information corresponding to the target function program package from the security version information based on the upgrade method corresponding to the upgrade method identification information.

[0039] The target version information may refer to the security version information of the target function package that best matches the target software. Specifically, if only one security version information is configured for the target function package, the upgrade method corresponding to the upgrade method identification information is used to detect whether the security version information matches the target software. If it matches, the security version information is determined to be the target version information; if it does not match, it is determined that the target version information does not currently exist, and no version upgrade is required at this time, and a reminder message can be sent to the user. If multiple security version information is configured for the target function package, the upgrade method corresponding to the upgrade method identification information is used to determine the target version information that best matches the target software from all security version information.

[0040] It should be noted that since different function packages have different version upgrade contents, directly upgrading to the highest version may cause incompatibility, so it is necessary to use a personalized configured upgrade method to determine the target version information, thereby ensuring the accuracy of the version upgrade.

[0041] Exemplarily, the upgrade method corresponding to the upgrade method identification information may include, but is not limited to, the following three upgrade methods, namely, a first upgrade method, a second upgrade method, and a third upgrade method.

[0042] Exemplarily, S130 may include: if the upgrade mode corresponding to the upgrade mode identification information is the first upgrade mode, then based on the current version information, determine the target version information corresponding to the target function package from the security version information. Specifically, the first upgrade mode may be to match the current version information with each security version information, and filter out the target version information that meets the preset matching condition from all security version information.

[0043] For example, based on the current version information, determining the target version information corresponding to the target function package from the security version information may include: based on a preset matching condition, filtering out the first candidate version information matching the current version information from the security version information; and determining the target version information corresponding to the target function package based on the first candidate version information. The first candidate version information refers to the security version information that can be used as the target version information in the first upgrade mode. The preset matching condition may be a pre-set condition for matching the current version information with the first candidate version information. For example, the preset matching condition may mean that the current version information and the first candidate version information have the same version numbers except for the last digit. For example, if the security version information includes: 1.1.46 and 1.2.2, and the current version information is 1.1.2, the first candidate version information is determined to be 1.1.46. If there is only one first candidate version information, the first candidate version information is directly determined as the target version information. If there are at least two first candidate version information, the highest version of the first candidate version information may be determined as the target version information.

[0044] Exemplarily, S130 may include: if the upgrade mode corresponding to the upgrade mode identification information is the second upgrade mode, then based on the operating environment information of the target software, determine the target version information corresponding to the target function package from the security version information. The operating environment information may refer to but is not limited to the current operating system of the target software. Specifically, the second upgrade mode may be to filter out the target version information compatible with the operating environment information of the target software from all the security version information.

[0045] For example, based on the operating environment information of the target software, determining the target version information corresponding to the target function package from the security version information may include: based on the operating environment information of the target software, screening out the second candidate version information compatible with the operating environment information from the security version information; determining the target version information corresponding to the target function package based on the second candidate version information. The second candidate version information refers to the security version information that can be used as the target version information in the second upgrade method. The security version information compatible with the operating environment information of the target software can be determined as the second candidate version information based on matching the compatible operating environment information corresponding to each security version information with the operating environment information of the target software. If there is only one second candidate version information, the second candidate version information is directly determined as the target version information. If there are at least two second candidate version information, the second candidate version information of the highest version can be determined as the target version information.

[0046] Exemplarily, S130 may include: if the upgrade mode corresponding to the upgrade mode identification information is the third upgrade mode, then based on the current version information and the operating environment information of the target software, determine the target version information corresponding to the target function package from the security version information. Specifically, the third upgrade mode may be to filter out the target version information that is compatible with the operating environment information of the target software and matches the current version information from all the security version information.

[0047] Specifically, the current version information can be matched with each security version information first, and the third candidate version information that meets the preset matching condition can be screened out from all security version information, and then the third candidate version information that is compatible with the operating environment information of the target software can be determined as the fourth candidate version information. If there is only one fourth candidate version information, the fourth candidate version information is directly determined as the target version information. If there are at least two fourth candidate version information, the fourth candidate version information of the highest version can be determined as the target version information.

[0048] S140: If the current version information is different from the target version information, perform version upgrade processing on the target function program package based on the target version information.

[0049] Specifically, if it is detected that the current version information is different from the target version information, for example, the current version information is lower than the target version information, or the current version information is higher than the target version information, it indicates that the version information of the target function package currently introduced is not the best version information, and there may be security vulnerabilities. At this time, the current version information of the target function package introduced in the target software can be changed to the target version information, so as to rely on the target function package under the target version information, and avoid security vulnerabilities during the operation of the target software. By using the version upgrade configuration information, automatic verification and version upgrade of the function package can be achieved, which reduces the labor cost of version upgrade, improves the user upgrade experience, and reduces the exposure time to security vulnerabilities, avoiding production accidents or losses caused by security information leakage.

[0050] Exemplarily, "based on the target version information, performing version upgrade processing on the target function package" in S140 may include: locating the target location corresponding to the target function package, wherein the target location refers to the coordinate address location pointing to the target function package in the function package management file; changing the current version information in the target location to the target version information.

[0051] The function package management file may refer to a Maven pom file under a Java project. Maven is a function package version management tool. The target location refers to the target Maven coordinates. The target Maven coordinates may be composed of organization identification information GroupId, project identification information ArtifactId and version information.

[0052] Specifically, when the target function package needs to be upgraded, the target location of the target function package to be upgraded can be automatically located, and the current version information in the target location can be changed to the target version information. Alternatively, an upgrade prompt button is displayed at the target location, and if the user clicks the upgrade prompt button, the current version information in the target location can be automatically changed to the target version information, thereby completing the version upgrade of the target function package.

[0053] It should be noted that the version upgrade process of each target function package is the same, so the versions of multiple target function packages can be upgraded in parallel using a multi-threaded approach, further improving the efficiency of the version upgrade. After the version upgrade, the target function package version upgrade success information can be sent to the developer, thereby promptly reminding the developer to further test the upgraded target function package, thereby further ensuring the normal operation of the target software.

[0054] The technical solution of this embodiment configures the corresponding version upgrade configuration information, i.e., upgrade method identification information and at least one security version information, for each function package in each software in advance, so as to realize personalized configuration of the function package and ensure the accuracy of the function package version upgrade. By obtaining the current version information of the target function package in the target software and the pre-configured upgrade method identification information and at least one security version information, and based on the upgrade method corresponding to the upgrade method identification information, determining the target version information corresponding to the target function package from the security version information, if the current version information is different from the target version information, then based on the target version information, performing version upgrade processing on the target function package, so as to realize automatic verification and version upgrade of the function package, and effectively ensure that the function package is upgraded to the security version information, thereby improving the efficiency and accuracy of the function package version upgrade.

[0055] Based on the above technical solution, S120 may include: generating a configuration information acquisition request corresponding to the target software; sending the configuration information acquisition request to the configuration end, so that the configuration end determines the version upgrade configuration information corresponding to the target software based on the configuration information acquisition request and returns it; obtaining the version upgrade configuration information corresponding to the target software returned by the configuration end.

[0056] Among them, the configuration end can be a device for configuring version upgrade information. The configuration end can be but not limited to a server, such as a cloud server. Specifically, developers can uniformly configure the version upgrade configuration information corresponding to each functional program package in each software in the configuration end, so that each software development end can obtain the required version upgrade configuration information by interacting with the configuration end. For example, in the configuration end, the organization identification information, project identification information, security version information and upgrade method identification information corresponding to each functional program package can be configured. Among them, the functional program package is uniquely characterized by the organization identification information and the project identification information. The configuration end can be used to achieve unified configuration and remote unified management of version upgrades, further improving configuration efficiency.

[0057] Figure 2 This is a flowchart of another version upgrade method provided by an embodiment of the present invention. Based on the above embodiments, this embodiment further optimizes the step of "performing version upgrade processing on the target function package based on the target version information". The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0058] See also Figure 2 Another version upgrade method provided in this embodiment specifically includes the following steps:

[0059] S210: Obtain current version information of a target function program package in the target software.

[0060] Specifically, Figure 3 An example of a version upgrade process is given. Figure 3 As shown, the developer can install an IDE (Integrated Development Environment) plug-in on the software development end in advance so that the entire version upgrade process can be implemented through the IDE plug-in. The IDE tool can refer to the interactive interface of the IDE plug-in. The developer can open the IDE tool.

[0061] S220. Obtain version upgrade configuration information corresponding to the pre-configured target software, where the version upgrade configuration information includes: upgrade mode identification information corresponding to the target function program package and at least one security version information.

[0062] Specifically, Figure 3As shown, the configuration personnel can configure the version upgrade configuration information of each functional program package in each software in the configuration terminal based on the collected security information, and store the configured version upgrade configuration information in the database of the configuration terminal. After the IDE tool is opened, the IDE plug-in can send a configuration information acquisition request corresponding to the target software to the configuration terminal in a regular polling manner. The configuration terminal can query the corresponding version upgrade configuration information from the database based on the configuration information acquisition request and return it, so that the IDE plug-in can obtain the version upgrade configuration information corresponding to the target functional program package in the target software.

[0063] S230. Determine the target version information corresponding to the target function program package from the security version information based on the upgrade method corresponding to the upgrade method identification information.

[0064] Specifically, Figure 3 As shown, the IDE plug-in can identify the Maven pom file by scanning the Java project directory under the IDE in parallel through multiple threads, obtain the current version information of the target function package in the target software, and obtain the target version information corresponding to the target function package based on the upgrade method corresponding to the upgrade method identification information.

[0065] S240: If the current version information is different from the target version information, version upgrade reminder information corresponding to the target function package is generated based on the target version information, and the version upgrade reminder information is displayed.

[0066] Specifically, Figure 3 As shown, the IDE plug-in compares the current version information of the target function package with the target version information. If they are different, it can generate version upgrade reminder information corresponding to the target function package, such as: "The current version information of the function package data-sinker-core is V1.0.0, which is lower than the security version V2.0.0. The current version has a high-risk vulnerability. Please update it in time." The IDE plug-in can push the version upgrade reminder information to the message module of the IDE tool and display the version upgrade reminder information on the interactive interface.

[0067] Exemplarily, after generating the version upgrade reminder information corresponding to the target function package, it may also include: calling a voice playback function to play the version upgrade reminder information. Specifically, the IDE plug-in may also call a voice playback function to play the version upgrade reminder information by voice, thereby improving the reminder effect.

[0068] S250: If it is detected that the user agrees to the upgrade operation triggered by the displayed version upgrade reminder information, the target function package is upgraded based on the target version information.

[0069] Specifically, Figure 3 As shown, after seeing the displayed version upgrade reminder information, if the user (such as a developer) agrees to the version upgrade, the upgrade consent operation can be triggered, such as clicking on the version upgrade reminder information. If the upgrade consent operation is detected, the target location of the target function package that needs to be upgraded can be automatically located, and the current version information in the target location can be changed to the target version information. Alternatively, if the upgrade consent operation is detected, the target location of the target function package that needs to be upgraded can be located first, and an upgrade prompt button can be displayed at the target location. If it is detected that the user clicks the upgrade prompt button, the current version information in the target location is automatically changed to the target version information, thereby completing the version upgrade of the target function package.

[0070] The technical solution of this embodiment generates version upgrade reminder information corresponding to the target function package based on the target version information, and displays the version upgrade reminder information; if it is detected that the user has agreed to the upgrade operation triggered by the displayed version upgrade reminder information, the target function package is version upgraded based on the target version information, so that the user can freely decide whether to perform the version upgrade, so as to meet the user's personalized needs and avoid software operation abnormalities caused by direct upgrades.

[0071] The following is an embodiment of a version upgrade device provided in an embodiment of the present invention. The device and the version upgrade methods of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the version upgrade device, reference can be made to the embodiment of the above version upgrade method.

[0072] Figure 4 This is a schematic diagram of a version upgrade device provided by an embodiment of the present invention. This embodiment is applicable to the case of upgrading the version information of the functional program package in the case installation package, especially to the application scenario of using the management tool Maven to upgrade the version of the Jar package during the software development process. Figure 4 As shown, the device specifically includes: a current version information acquisition module 410, a version upgrade configuration information acquisition module 420, a target version information determination module 430 and a version upgrade processing module 440.

[0073] Among them, the current version information acquisition module 410 is used to obtain the current version information of the target function package in the target software; the version upgrade configuration information acquisition module 420 is used to obtain the version upgrade configuration information corresponding to the pre-configured target software, and the version upgrade configuration information includes: upgrade method identification information corresponding to the target function package and at least one security version information; the target version information determination module 430 is used to determine the target version information corresponding to the target function package from the security version information based on the upgrade method corresponding to the upgrade method identification information; the version upgrade processing module 440 is used to perform version upgrade processing on the target function package based on the target version information if the current version information is different from the target version information.

[0074] The technical solution of this embodiment configures the corresponding version upgrade configuration information, i.e., upgrade method identification information and at least one security version information, for each function package in each software in advance, so as to realize personalized configuration of the function package and ensure the accuracy of the function package version upgrade. By obtaining the current version information of the target function package in the target software and the pre-configured upgrade method identification information and at least one security version information, and based on the upgrade method corresponding to the upgrade method identification information, determining the target version information corresponding to the target function package from the security version information, if the current version information is different from the target version information, then based on the target version information, performing version upgrade processing on the target function package, so as to realize automatic verification and version upgrade of the function package, and effectively ensure that the function package is upgraded to the security version information, thereby improving the efficiency and accuracy of the function package version upgrade.

[0075] Optionally, the version upgrade configuration information acquisition module 420 is specifically used to:

[0076] Generate a configuration information acquisition request corresponding to the target software; send the configuration information acquisition request to the configuration end, so that the configuration end determines the version upgrade configuration information corresponding to the target software based on the configuration information acquisition request and returns it; obtain the version upgrade configuration information corresponding to the target software returned by the configuration end.

[0077] Optionally, the target version information determination module 430 includes:

[0078] A first determining unit, configured to determine target version information corresponding to a target function program package from the security version information based on the current version information if the upgrade mode corresponding to the upgrade mode identification information is the first upgrade mode;

[0079] a second determining unit, configured to determine, if the upgrade mode corresponding to the upgrade mode identification information is the second upgrade mode, target version information corresponding to the target function program package from the security version information based on the operating environment information of the target software;

[0080] The third determining unit is used to determine the target version information corresponding to the target function package from the security version information based on the current version information and the operating environment information of the target software if the upgrade method corresponding to the upgrade method identification information is the third upgrade method.

[0081] Optionally, the first determination unit is specifically used to: based on a preset matching condition, filter out first candidate version information matching the current version information from the security version information; and determine the target version information corresponding to the target function package based on the first candidate version information.

[0082] Optionally, the second determination unit is specifically used to: based on the operating environment information of the target software, filter out second candidate version information compatible with the operating environment information from the security version information; and determine the target version information corresponding to the target function package based on the second candidate version information.

[0083] Optionally, the version upgrade processing module 440 is specifically configured to:

[0084] Based on the target version information, version upgrade reminder information corresponding to the target function package is generated and displayed; if it is detected that the user agrees to the upgrade operation triggered by the displayed version upgrade reminder information, the target function package is upgraded based on the target version information.

[0085] Optionally, the version upgrade processing module 440 is specifically configured to:

[0086] Locate the target location corresponding to the target function package, where the target location refers to the coordinate address location pointing to the target function package in the function package management file; change the current version information in the target location to the target version information.

[0087] The version upgrade device provided in the embodiment of the present invention can execute the version upgrade method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the version upgrade method.

[0088] It is worth noting that in the embodiment of the above-mentioned version upgrade device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0089] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 5 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0090] like Figure 5 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0091] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0092] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0093] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0094] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0095] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0096] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, for example, implementing a version upgrade method provided in the embodiment of the present invention, the method comprising:

[0097] Obtaining current version information of a target function package in the target software;

[0098] Acquire pre-configured version upgrade configuration information corresponding to the target software, the version upgrade configuration information including: upgrade mode identification information corresponding to the target function program package and at least one security version information;

[0099] Based on the upgrade mode corresponding to the upgrade mode identification information, determining the target version information corresponding to the target function program package from the security version information;

[0100] If the current version information is different from the target version information, the target function program package is upgraded based on the target version information.

[0101] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the version upgrade method provided by any embodiment of the present invention.

[0102] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of the version upgrade method provided in any embodiment of the present invention are implemented. The method includes:

[0103] Obtaining current version information of a target function package in the target software;

[0104] Acquire pre-configured version upgrade configuration information corresponding to the target software, the version upgrade configuration information including: upgrade mode identification information corresponding to the target function program package and at least one security version information;

[0105] Based on the upgrade mode corresponding to the upgrade mode identification information, determining the target version information corresponding to the target function program package from the security version information;

[0106] If the current version information is different from the target version information, the target function program package is upgraded based on the target version information.

[0107] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0108] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0109] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0110] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0111] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0112] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A version upgrade method, characterized in that: include: Obtaining current version information of a target function package in the target software; Acquire pre-configured version upgrade configuration information corresponding to the target software, the version upgrade configuration information including: upgrade mode identification information corresponding to the target function program package and at least one security version information; Based on the upgrade mode corresponding to the upgrade mode identification information, determining the target version information corresponding to the target function program package from the security version information; If the current version information is different from the target version information, the target function program package is upgraded based on the target version information.

2. The method according to claim 1, characterized in that The obtaining of the pre-configured version upgrade configuration information corresponding to the target software includes: Generate a configuration information acquisition request corresponding to the target software; Sending the configuration information acquisition request to the configuration end, so that the configuration end determines the version upgrade configuration information corresponding to the target software based on the configuration information acquisition request and returns it; Obtain the version upgrade configuration information corresponding to the target software returned by the configuration end.

3. The method according to claim 1, characterized in that The determining, based on the upgrade mode corresponding to the upgrade mode identification information, the target version information corresponding to the target function program package from the security version information includes: If the upgrade mode corresponding to the upgrade mode identification information is the first upgrade mode, determining the target version information corresponding to the target function program package from the security version information based on the current version information; If the upgrade mode corresponding to the upgrade mode identification information is the second upgrade mode, determining the target version information corresponding to the target function program package from the security version information based on the operating environment information of the target software; If the upgrade method corresponding to the upgrade method identification information is the third upgrade method, the target version information corresponding to the target function package is determined from the security version information based on the current version information and the operating environment information of the target software.

4. The method according to claim 3, characterized in that The determining, based on the current version information, target version information corresponding to the target function program package from the security version information includes: Based on a preset matching condition, filtering out first candidate version information matching the current version information from the security version information; The target version information corresponding to the target function package is determined based on the first candidate version information.

5. The method according to claim 3, characterized in that: The step of determining the target version information corresponding to the target function program package from the security version information based on the operating environment information of the target software includes: Based on the operating environment information of the target software, filtering out second candidate version information compatible with the operating environment information from the security version information; The target version information corresponding to the target function package is determined based on the second candidate version information.

6. The method according to claim 1, characterized in that The performing version upgrade processing on the target function program package based on the target version information includes: Based on the target version information, generate version upgrade reminder information corresponding to the target function program package, and display the version upgrade reminder information; If it is detected that the user agrees to the upgrade operation triggered by the displayed version upgrade reminder information, the target function program package is upgraded based on the target version information.

7. The method according to claim 1 or 6, characterized in that: The performing version upgrade processing on the target function program package based on the target version information includes: Locating a target position corresponding to the target function program package, wherein the target position refers to a coordinate address position pointing to the target function program package in a function program package management file; The current version information in the target location is changed to the target version information.

8. A version upgrade device, characterized in that: include: A current version information acquisition module is used to acquire the current version information of the target function package in the target software; A version upgrade configuration information acquisition module, used to acquire the pre-configured version upgrade configuration information corresponding to the target software, the version upgrade configuration information including: upgrade mode identification information corresponding to the target function program package and at least one security version information; a target version information determination module, configured to determine the target version information corresponding to the target function program package from the security version information based on the upgrade mode corresponding to the upgrade mode identification information; The version upgrade processing module is used to perform version upgrade processing on the target function program package based on the target version information if the current version information is different from the target version information.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the version upgrade method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the version upgrade method as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Database upgrading method and device, equipment, storage medium and program product

    CN119440590A