[go: up one dir, main page]

CN115098128A - Software updating method, device, equipment and storage medium - Google Patents

Software updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN115098128A
CN115098128A CN202210650326.3A CN202210650326A CN115098128A CN 115098128 A CN115098128 A CN 115098128A CN 202210650326 A CN202210650326 A CN 202210650326A CN 115098128 A CN115098128 A CN 115098128A
Authority
CN
China
Prior art keywords
version
update
software
version number
local
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.)
Granted
Application number
CN202210650326.3A
Other languages
Chinese (zh)
Other versions
CN115098128B (en
Inventor
刘新
周辉濂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202210650326.3A priority Critical patent/CN115098128B/en
Publication of CN115098128A publication Critical patent/CN115098128A/en
Application granted granted Critical
Publication of CN115098128B publication Critical patent/CN115098128B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version 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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a software updating method, a device, equipment and a storage medium, wherein the method comprises the following steps: after a software updating and upgrading thread is started, acquiring version configuration information of currently running target software, wherein the version configuration information comprises a local version number, a latest version number and at least one intermediate version number of the target software, determining that the target software needs to be updated when the local version number is lower than the latest version number, and downloading a corresponding software updating package according to the local version number, the intermediate version number and a multi-stage updating strategy so as to update the software. The invention realizes the control of the size of the download update package in the software update process, saves the software update time and improves the software update efficiency.

Description

软件更新方法、装置、设备及存储介质Software update method, device, device and storage medium

技术领域technical field

本发明涉及软件领域,尤其涉及一种软件更新方法、装置、设备及存储介质。The present invention relates to the field of software, and in particular, to a software update method, apparatus, device and storage medium.

背景技术Background technique

现今社会中,移动端设备(包括手机、平板电脑、可移动PC等可移动设备)中的软件APP已经充斥了人们生活中的方方面面,而对于每个软件来说,都有其侧重性和周期性,软件更新人员会根据软件的适用方向和用户的使用与反馈情况对软件进行针对性的优化,并将其整合为软件的版本更新包,上传至服务器以供用户下载更新。In today's society, software APPs in mobile devices (including mobile phones, tablet computers, mobile PCs and other mobile devices) have filled all aspects of people's lives, and each software has its own focus and cycle. The software update personnel will optimize the software according to the applicable direction of the software and the user's use and feedback, and integrate it into a software version update package, which will be uploaded to the server for users to download and update.

在现今技术中,在软件的版本更迭的过程中,为了兼顾使用老版本的用户以及使用老版本安装包进行软件安装的用户的软件更新升级,版本更新升级的更新包文件必须包含多个旧版本的更新内容,因而随着版本的迭代,高版本的更新包文件会越来越大,对于多数及时更新软件的用户来说,他们所使用的软件版本接近最新版本,新版本发布后只需要更新最新的修改文件,但是软件更新时却要下载和软件版本较低的用户更新是相同大小的软件更新包,这样不仅造成下载软件更新包时耗时过多,而且也增大了下载流量损耗。In the current technology, in the process of software version change, in order to take into account the software update and upgrade of users who use the old version and users who use the old version installation package for software installation, the update package file for version update and upgrade must contain multiple old versions. Update content, so with the iteration of the version, the update package file of the higher version will become larger and larger. For most users who update the software in time, the software version they use is close to the latest version, and only the latest version needs to be updated after the new version is released. However, when the software is updated, it needs to download the software update package of the same size as the user update with a lower software version, which not only causes too much time to download the software update package, but also increases the loss of download traffic.

因此为了提高用户使用体验,现急需一种能够有效解决上述问题的方法。Therefore, in order to improve the user experience, there is an urgent need for a method that can effectively solve the above problems.

发明内容SUMMARY OF THE INVENTION

本发明的主要目的在于提供一种软件更新方法、装置、设备及存储介质,旨在有效控制更新包的大小,减少更新下载时间,降低软件更新流量耗损。The main purpose of the present invention is to provide a software update method, device, device and storage medium, which aim to effectively control the size of the update package, reduce the update download time, and reduce the consumption of software update traffic.

为实现上述目的,本发明提供了一种软件更新的方法,所述软件更新的方法包括:In order to achieve the above object, the present invention provides a method for software update, the method for software update includes:

在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;After the software update and upgrade thread is started, the version configuration information of the currently running target software is obtained, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software;

在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;When the local version number is lower than the latest version number, determine that the target software needs to be updated;

根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。The corresponding software update package is downloaded according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update.

可选地,所述根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新的步骤包括:Optionally, the step of downloading a corresponding software update package according to the local version number, the intermediate version number, and a multi-level update strategy to perform software update includes:

当所述中间版本号为一个时,确定所述本地版本号是否低于所述中间版本号;When the intermediate version number is one, determine whether the local version number is lower than the intermediate version number;

若所述本地版本号不低于所述中间版本号,则下载最新版本更新包,以进行软件更新;If the local version number is not lower than the intermediate version number, download the latest version update package for software update;

当所述中间版本号为多个时,确定所述本地版本号是否低于最新的中间版本号;When there are multiple intermediate version numbers, determine whether the local version number is lower than the latest intermediate version number;

若所述本地版本号不低于所述最新的中间版本号,则下载最新版本安装包,以进行软件更新。If the local version number is not lower than the latest intermediate version number, download the latest version installation package for software update.

可选地,所述当所述中间版本号为一个时,确定所述本地版本号是否低于所述中间版本号的步骤之后,还包括:Optionally, after the step of determining whether the local version number is lower than the intermediate version number when the intermediate version number is one, the method further includes:

若所述本地版本号低于所述中间版本号,则下载中间版本更新包进行更新升级后,再下载最新版本更新包,以升级至最新版本。If the local version number is lower than the intermediate version number, after downloading the intermediate version update package for update and upgrade, download the latest version update package to upgrade to the latest version.

可选地,所述当所述中间版本号为多个时,确定所述本地版本号是否低于最新的中间版本号的步骤之后,还包括:Optionally, after the step of determining whether the local version number is lower than the latest intermediate version number when there are multiple intermediate version numbers, the method further includes:

若所述本地版本号低于所述最新的中间版本号,则将所述本地版本号与其余的中间版本号由低到高依次对比,确定出第一个高于所述本地版本号的起始更新版本号;If the local version number is lower than the latest intermediate version number, compare the local version number with the rest of the intermediate version numbers in order from low to high, and determine the first one that is higher than the local version number. Begin to update the version number;

从所述起始更新版本号对应的更新包开始下载进行更新升级后,再依次下载比所述起始更新版本号更新包更高版本的更新包进行软件更新升级,直至更新至所述目标软件的新版本。After downloading the update package corresponding to the initial update version number for update and upgrade, download the update package with a higher version than the initial update version number update package in sequence for software update and upgrade until the target software is updated. new version of .

为实现上述目的,本发明实施例还提供了一种应用于服务器软件更新方法,所述软件更新方法包括:In order to achieve the above object, an embodiment of the present invention also provides a software update method applied to a server, the software update method comprising:

在终端侧的软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;After the software update and upgrade thread on the terminal side is started, the version configuration information of the currently running target software is obtained, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software;

将所述版本配置信息下发给所述终端,以供所述终端在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;根据所述本地版本号和所述中间版本号,以及多级更新策略触发对应的软件更新包下载请求;delivering the version configuration information to the terminal, so that the terminal can determine that the target software needs to be updated when the local version number is lower than the latest version number; according to the local version number and the The intermediate version number and the multi-level update strategy trigger the corresponding software update package download request;

接收所述终端发送的软件更新包下载请求,根据所述软件更新包下载请求发送对应的软件更新包至所述终端,以进行软件更新。Receive a software update package download request sent by the terminal, and send a corresponding software update package to the terminal according to the software update package download request to perform software update.

可选地,所述在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息的步骤之前,还包括:Optionally, before the step of acquiring the version configuration information of the currently running target software after the software update and upgrade thread is started, the method further includes:

当检测到上传新版本更新包后,检测版本更新次数是否到达预设的阈值;When it is detected that a new version update package is uploaded, it is detected whether the number of version updates reaches a preset threshold;

若版本更新次数高于所述版本更新次数阈值,则设定当前更新版本为中间版本,生成对应的中间版本的更新包,并在所述版本配置信息中写入对应的版本信息。If the number of version updates is higher than the threshold for the number of version updates, the current update version is set as an intermediate version, an update package of the corresponding intermediate version is generated, and the corresponding version information is written in the version configuration information.

可选地,所述在终端侧的软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息的步骤之前,还包括:Optionally, before the step of acquiring the version configuration information of the currently running target software after the software update and upgrade thread on the terminal side is started, the method further includes:

检测目标软件的当前最新版本更新包的大小是否超过预设的阈值,如果超过预设阈值,则在检测到下一个版本更新包上传后,将所述当前最新版本设置为中间版本;或者Detecting whether the size of the current latest version update package of the target software exceeds a preset threshold, and if it exceeds the preset threshold, after detecting that the next version update package is uploaded, set the current latest version as an intermediate version; or

在目标软件对外发行到最新版本的过程中,若检测到低于所述最新版本的其中一个或多个低版本的更新包的大小超过预设阈值,则将检测到的低版本设置为中间版本。During the process of releasing the target software to the latest version, if it is detected that the size of the update package of one or more lower versions lower than the latest version exceeds the preset threshold, the detected lower version is set as the intermediate version .

为实现上述目的,本发明实施例还提供了一种软件更新装置,所述软件更新装置包括:To achieve the above object, an embodiment of the present invention further provides a software update device, the software update device includes:

信息获取模块,用于在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;an information acquisition module, configured to acquire version configuration information of the currently running target software after the software update and upgrade thread is started, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software;

确定模块,用于在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;A determining module, configured to determine that the target software needs to be updated when the local version number is lower than the latest version number;

更新升级模块,用于根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。An update and upgrade module, configured to download a corresponding software update package according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update.

为实现上述目的,本发明实施例还提供了一种终端设备,所述终端设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的软件更新程序,所述软件更新程序被所述处理器执行时实现如上述任一项所述软件更新的方法的步骤。To achieve the above object, an embodiment of the present invention further provides a terminal device, the terminal device includes: a memory, a processor, and a software update program stored in the memory and running on the processor, the When the software update program is executed by the processor, the steps of the method for software update described in any of the above are implemented.

为实现上述目的,本发明实施例还提供了一种存储介质,所述存储介质中存储有软件更新程序,所述软件更新程序被处理器执行时实现如上所述的软件更新的方法的步骤。To achieve the above object, an embodiment of the present invention further provides a storage medium, where a software update program is stored in the storage medium, and when the software update program is executed by a processor, the steps of the above software update method are implemented.

本发明实施例提出的软件更新方法、装置、设备及存储介质,通过设置中间版本,将软件更新版本划分为多个更新区间,以及一种多级更新策略,在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号,在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新,根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。通过多级更新策略进行软件的升级,可以有效控制更新包的大小,减少更新下载时间,进行软件快速升级更新。基于本发明方案,从将软件版本迭代的过程出发,通过设置一个或多个中间版本,将软件版本划分为多个等级,通过对用户软件版本的判别,确定用户需要更新的软件版本内容的大小,在通过引入一种多级更新的策略进行软件升级,进而控制下载更新包的大小,减少了软件更新时间,降低了软件更新的流量耗损。The software update method, device, device and storage medium proposed by the embodiments of the present invention divide the software update version into multiple update intervals by setting an intermediate version, and a multi-level update strategy, after the software update and update thread is started, obtain Version configuration information of the currently running target software, the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software. When the local version number is lower than the latest version number, It is determined that the target software needs to be updated, and a corresponding software update package is downloaded according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update. Software upgrade through multi-level update strategy can effectively control the size of the update package, reduce the update download time, and quickly upgrade the software. Based on the solution of the present invention, starting from the process of iterating the software version, by setting one or more intermediate versions, the software version is divided into multiple levels, and the size of the software version content that the user needs to update is determined by judging the user's software version. , by introducing a multi-level update strategy to upgrade the software, thereby controlling the size of the download update package, reducing the software update time and reducing the traffic consumption of the software update.

附图说明Description of drawings

图1为本发明软件更新装置所属终端设备的功能模块示意图;Fig. 1 is the functional module schematic diagram of the terminal equipment to which the software updating device of the present invention belongs;

图2为本发明软件更新方法一示例性实施例的流程示意图;2 is a schematic flowchart of an exemplary embodiment of a software update method of the present invention;

图3为本发明软件更新方法另一示例性实施例的流程示意图;3 is a schematic flowchart of another exemplary embodiment of a software update method of the present invention;

图4为本发明提供的软件更新方法的又一示例性实施例的流程示意图;4 is a schematic flowchart of another exemplary embodiment of a software update method provided by the present invention;

图5为本发明提供的软件更新方法的又一示例性实施例的流程示意图;5 is a schematic flowchart of another exemplary embodiment of a software update method provided by the present invention;

图6为本发明提供的软件更新方法的又一示例性实施例的流程示意图。FIG. 6 is a schematic flowchart of another exemplary embodiment of a software update method provided by the present invention.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the following description, suffixes such as 'module', 'component' or 'unit' used to represent elements are used only to facilitate the description of the present invention and have no specific meaning per se. Thus, "module", "component" or "unit" may be used interchangeably.

本申请实施例的主要解决方案是:通过设置一个或多个中间版本,在配置文件中写入相应版本配置信息,软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号,通过在所述本地版本号低于所述最新版本号的大小,确定所述目标软件是否需要更新,当所述软件需要更新时,通过所述本地版本号和所述中间版本号的大小,确定目标软件的起始更新版本,在根据起始更新版本,通过设置的多级更新策略下载对应的软件更新包,以进行软件更新。通过设置的中间版本,将软件版本划分为多个等级,通过对用户软件版本的判别,确定用户需要更新的软件版本内容的大小,进而控制下载更新包的大小,减少更新包下载时间。基于本发明方案,从将软件版本迭代的过程出发,通过设置一个或多个中间版本,将软件版本划分为多个等级,通过对用户软件版本的判别,确定用户需要更新的软件版本内容的大小,在通过引入一种多级更新的策略进行软件升级,进而控制下载更新包的大小,减少了软件更新时间,降低了软件更新的流量耗损。The main solution of the embodiment of the present application is: by setting one or more intermediate versions, write the corresponding version configuration information in the configuration file, after the software update and upgrade thread is started, obtain the version configuration information of the currently running target software, the said The version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software. By the size of the local version number being lower than the latest version number, it is determined whether the target software needs to be updated. When the software needs to be updated, the initial update version of the target software is determined by the size of the local version number and the intermediate version number, and the corresponding software update is downloaded through the set multi-level update strategy according to the initial update version. package for software updates. By setting the intermediate version, the software version is divided into multiple levels, and by judging the user's software version, the size of the software version content that the user needs to update is determined, and then the size of the download update package is controlled and the download time of the update package is reduced. Based on the solution of the present invention, starting from the process of iterating the software version, by setting one or more intermediate versions, the software version is divided into multiple levels, and the size of the software version content that the user needs to update is determined by judging the user's software version. , by introducing a multi-level update strategy to upgrade the software, thereby controlling the size of the download update package, reducing the software update time and reducing the traffic consumption of the software update.

具体地,参照图1,图1为本申请软件更新装置所属终端设备的功能模块示意图。该软件更新装置可以为独立于终端设备的、能够进行软件下载、软件更新的装置,其可以通过硬件或软件的形式承载于终端设备上。该终端设备可以为手机、平板电脑等具有数据处理功能的智能移动终端,还可以为具有数据处理功能的固定终端设备或服务器等。Specifically, referring to FIG. 1 , FIG. 1 is a schematic diagram of functional modules of a terminal device to which the software updating apparatus of the present application belongs. The software update apparatus may be an apparatus independent of the terminal device and capable of software download and software update, which may be carried on the terminal device in the form of hardware or software. The terminal device may be an intelligent mobile terminal with a data processing function, such as a mobile phone or a tablet computer, or a fixed terminal device or a server with a data processing function.

在本实施例中,该软件更新装置所属终端设备至少包括输出模块110、处理器120、存储器130以及通信模块140。In this embodiment, the terminal device to which the software updating apparatus belongs includes at least an output module 110 , a processor 120 , a memory 130 and a communication module 140 .

存储器130中存储有操作系统以及软件更新程序,软件更新装置可以将当前运行的目标软件的版本配置信息、软件更新包等信息存储于该存储器130中;输出模块110可为显示屏等。通信模块140可以包括有线网络接口、WIFI模块、移动通信模块以及蓝牙模块等,通过通信模块140与外部设备或服务器进行通信。The memory 130 stores an operating system and a software update program, and the software update device can store the version configuration information, software update package and other information of the currently running target software in the memory 130; the output module 110 can be a display screen or the like. The communication module 140 may include a wired network interface, a WIFI module, a mobile communication module, a Bluetooth module, etc., and communicates with an external device or server through the communication module 140 .

其中,当软件更新装置为用户使用的终端设备时,存储器130中的软件更新程序被处理器执行时实现以下步骤:Wherein, when the software update device is a terminal device used by the user, the following steps are implemented when the software update program in the memory 130 is executed by the processor:

在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;After the software update and upgrade thread is started, the version configuration information of the currently running target software is obtained, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software;

在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;When the local version number is lower than the latest version number, determine that the target software needs to be updated;

根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。The corresponding software update package is downloaded according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update.

进一步地,存储器130中的软件更新程序被处理器执行时还实现以下步骤:Further, when the software update program in the memory 130 is executed by the processor, the following steps are also implemented:

当所述中间版本号为一个时,确定所述本地版本号是否低于所述中间版本号;When the intermediate version number is one, determine whether the local version number is lower than the intermediate version number;

若所述本地版本号不低于所述中间版本号,则下载最新版本更新包,以进行软件更新;If the local version number is not lower than the intermediate version number, download the latest version update package for software update;

当所述中间版本号为多个时,确定所述本地版本号是否低于最新的中间版本号;When there are multiple intermediate version numbers, determine whether the local version number is lower than the latest intermediate version number;

若所述本地版本号不低于所述最新的中间版本号,则下载最新版本安装包,以进行软件更新。If the local version number is not lower than the latest intermediate version number, download the latest version installation package for software update.

进一步地,存储器130中的软件更新程序被处理器执行时还实现以下步骤:Further, when the software update program in the memory 130 is executed by the processor, the following steps are also implemented:

若所述本地版本号低于所述中间版本号,则下载中间版本更新包进行更新升级后,再下载最新版本更新包,以升级至最新版本。If the local version number is lower than the intermediate version number, after downloading the intermediate version update package for update and upgrade, download the latest version update package to upgrade to the latest version.

进一步地,存储器130中的软件更新程序被处理器执行时还实现以下步骤:Further, when the software update program in the memory 130 is executed by the processor, the following steps are also implemented:

若所述本地版本号低于所述最新的中间版本号,则将所述本地版本号与其余的中间版本号由低到高依次对比,确定出第一个高于所述本地版本号的起始更新版本号;If the local version number is lower than the latest intermediate version number, compare the local version number with the rest of the intermediate version numbers in order from low to high, and determine the first one that is higher than the local version number. Begin to update the version number;

从所述起始更新版本号对应的更新包开始下载进行更新升级后,再依次下载比所述起始更新版本号更高的版本号对应的更新包进行软件更新升级,直至更新至所述目标软件的新版本。After downloading the update package corresponding to the initial update version number for update and upgrade, download the update package corresponding to the version number higher than the initial update version number in sequence to perform software update and upgrade until the target is updated. New version of the software.

当软件更新装置应用的终端设备为服务器时,存储器130中的软件更新程序被处理器执行时实现以下步骤:When the terminal device applied by the software updating apparatus is a server, the following steps are implemented when the software updating program in the memory 130 is executed by the processor:

在终端侧的软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;After the software update and upgrade thread on the terminal side is started, the version configuration information of the currently running target software is obtained, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software;

将所述版本配置信息下发给所述终端,以供所述终端在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;根据所述本地版本号和所述中间版本号,以及多级更新策略触发对应的软件更新包下载请求;delivering the version configuration information to the terminal, so that the terminal can determine that the target software needs to be updated when the local version number is lower than the latest version number; according to the local version number and the The intermediate version number and the multi-level update strategy trigger the corresponding software update package download request;

接收所述终端发送的软件更新包下载请求,根据所述软件更新包下载请求发送对应的软件更新包至终端,以进行软件更新。Receive a software update package download request sent by the terminal, and send a corresponding software update package to the terminal according to the software update package download request to perform software update.

进一步地,存储器130中的软件更新程序被处理器执行时还实现以下步骤:Further, when the software update program in the memory 130 is executed by the processor, the following steps are also implemented:

当检测到上传新版本更新包后,检测版本更新次数是否到达预设的阈值;When it is detected that a new version update package is uploaded, it is detected whether the number of version updates reaches a preset threshold;

若版本更新次数高于所述版本更新次数阈值,则设定当前更新版本为中间版本,生成对应的中间版本的更新包,并在所述版本配置信息中写入对应的版本信息。If the number of version updates is higher than the threshold for the number of version updates, the current update version is set as an intermediate version, an update package of the corresponding intermediate version is generated, and the corresponding version information is written in the version configuration information.

进一步地,存储器130中的软件更新程序被处理器执行时还实现以下步骤:当检测新的中间版本生成时,检测所述中间版本个数是否到达预设的合理需求数;Further, when the software update program in the memory 130 is executed by the processor, the following steps are also implemented: when detecting that a new intermediate version is generated, detecting whether the number of the intermediate versions reaches a preset reasonable demand number;

当所述中间版本个数不高于所述合理需求数时,保留所有中间版本对应的更新包以及版本配置信息中的版本信息;When the number of the intermediate versions is not higher than the reasonable demand number, retain the update packages corresponding to all intermediate versions and the version information in the version configuration information;

当所述中间版本个数高于所述合理需求数时,将第一中间版本和第二中间版本合并为第二中间版本,并删除所述第一中间版本在版本配置信息中的版本信息。When the number of intermediate versions is higher than the reasonable required number, the first intermediate version and the second intermediate version are merged into a second intermediate version, and the version information of the first intermediate version in the version configuration information is deleted.

本实施例通过上述方案,通过设置中间版本的方式,将软件更新过程划分为多个不同中间版本号的等级,在软件更新升级线程启动后,通过获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号,在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新,根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。通过多级更新策略进行软件的升级,可以有效控制更新包的大小,减少更新下载时间,进行软件快速升级更新。基于本发明方案,从将软件版本迭代的过程出发,通过设置一个或多个中间版本,将软件版本划分为多个中间版本等级,通过对用户目标软件版本的判别,确定用户需要更新的目标软件更新时的起始更新版本,再通过引入一种多级更新的策略进行软件升级,进而控制下载更新包的大小,减少了软件更新时间,降低了软件更新的流量耗损。In this embodiment, through the above solution, the software update process is divided into multiple levels of different intermediate version numbers by setting the intermediate version. After the software update and upgrade thread is started, the version configuration information of the currently running target software is obtained. The version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software. When the local version number is lower than the latest version number, it is determined that the target software needs to be updated. According to the The local version number, the intermediate version number, and the multi-level update strategy download the corresponding software update package for software update. Software upgrade through multi-level update strategy can effectively control the size of the update package, reduce the update download time, and quickly upgrade the software. Based on the solution of the present invention, starting from the process of iterating software versions, by setting one or more intermediate versions, the software version is divided into multiple intermediate version levels, and the target software that the user needs to update is determined by judging the user's target software version. The initial update version at the time of update, and then introduce a multi-level update strategy to upgrade the software, thereby controlling the size of the download update package, reducing the software update time and reducing the traffic consumption of the software update.

基于上述终端设备架构但不限于上述架构,提出本申请方法实施例。Based on the above-mentioned terminal device architecture but not limited to the above-mentioned architecture, the method embodiments of the present application are proposed.

参照图2,图2为当软件更新装置为用户使用的终端设备时,本申请软件更新方法一示例性实施例的流程示意图。所述软件更新方法包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of an exemplary embodiment of a software update method of the present application when the software update apparatus is a terminal device used by a user. The software update method includes:

步骤S10,在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;Step S10, after the software update and upgrade thread is started, obtain version configuration information of the currently running target software, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software;

本实施例方法的执行主体可以是一种软件更新装置,也可以是一种软件更新终端设备或者服务器,本实施例以软件更新装置进行举例,该软件更新装置可以集成在具有数据处理功能的智能手机、平板电脑等终端设备上。The execution body of the method in this embodiment may be a software update device, or a software update terminal device or server. In this embodiment, a software update device is used as an example, and the software update device may be integrated into an intelligent device with data processing function. on terminal devices such as mobile phones and tablet computers.

本实施例方案主要实现对软件尤其是待更新软件的升级更新过程进行优化,减少下载更新包的大小,缩短更新包下载时间,降低流量损耗。The solution of this embodiment mainly realizes optimization of the upgrade and update process of the software, especially the software to be updated, reduces the size of the download update package, shortens the download time of the update package, and reduces the traffic loss.

本发明实施例从软件更新包过大的实际问题出发,引入中间版本的概念,对软件更新迭代的过程划分为一个或多个等级,而每个等级版本都有对应的版本编号,本发明实施例就是通过对比目标软件的本地版本号和最新版本号,确定出目标软件是否需要更新,根据本地版本号与中间版本号的对比,则可以判断出目标软件需要从那个等级开始更新,由此可以做到控制软件升级时更新包下载的大小,减少更新下载时长的目标。Starting from the actual problem that the software update package is too large, the embodiment of the present invention introduces the concept of an intermediate version, and divides the software update iterative process into one or more levels, and each level version has a corresponding version number. The present invention implements the For example, by comparing the local version number and the latest version number of the target software, it is determined whether the target software needs to be updated. To achieve the goal of controlling the download size of the update package when the software is upgraded, and reducing the update download time.

具体地,目标软件的软件更新程序启动后,先解析出本地目标软件的本地版本号,之后,本地终端通过向服务器端发送对应的网络请求,与服务器建立网络连接,并向服务器发送版本配置文件下载请求,在本地终端与服务器建立通信连接后,下载版本配置文件,所述版本配置文件中包含本本配置信息,解析所述版本配置文件,得到相应的版本配置信息,所述版本配置信息中包含最新版本号以及中间版本号等信息,以供软件更新升级线程做下一步的处理。Specifically, after the software update program of the target software is started, the local version number of the local target software is first parsed. After that, the local terminal establishes a network connection with the server by sending a corresponding network request to the server, and sends a version configuration file to the server. Download request, after the local terminal establishes a communication connection with the server, download the version configuration file, the version configuration file contains the configuration information of this book, parse the version configuration file, and obtain the corresponding version configuration information, the version configuration information contains Information such as the latest version number and the intermediate version number are used for the next step of the software update and upgrade thread.

其中,本发明实施例中,版本配置文件可以包含版本配置信息,版本配置信息可以包括:软件的不同版本号,比如最新版本号以及一个或多个中间版本号等。在软件需要更新时,若是版本配置信息中存在中间版本的版本信息,软件更新升级线程可以通过中间版本的版本信息,根据多级更新策略快速进行软件升级,减少更新耗时。Wherein, in this embodiment of the present invention, the version configuration file may include version configuration information, and the version configuration information may include: different version numbers of the software, such as the latest version number and one or more intermediate version numbers. When the software needs to be updated, if the version information of the intermediate version exists in the version configuration information, the software update and upgrade thread can quickly upgrade the software according to the multi-level update strategy according to the version information of the intermediate version, reducing the update time.

步骤S20,对比所述本地版本号与所述最新版本号,得到所述当前运行的软件是否需要更新的对比结果;Step S20, comparing the local version number and the latest version number to obtain a comparison result of whether the currently running software needs to be updated;

在获取到版本配置信息后,软件更新升级线程对比目标软件本地版本号与所述版本配置信息中的最新版本号,确定软件是否低于最新版本,进而确定软件是否需要更新。After acquiring the version configuration information, the software update and upgrade thread compares the local version number of the target software with the latest version number in the version configuration information, determines whether the software is lower than the latest version, and then determines whether the software needs to be updated.

具体地,在本地终端内目标软件的软件更新升级线程启动后,开始运行版本自检程序,解析出本地文件中目标软件的本地版本号,并与服务器或者云端数据库建立通信连接,向服务器发送版本配置文件的下载请求,获取版本配置文件,根据版本配置文件得到最新版本号以及中间版本号等版本配置信息,通过本地版本号与版本配置信息中的最新版本号相对比,确定软件是否需要更新;Specifically, after the software update and upgrade thread of the target software in the local terminal is started, the version self-checking program starts to run, parses out the local version number of the target software in the local file, establishes a communication connection with the server or cloud database, and sends the version to the server. The download request of the configuration file, obtain the version configuration file, obtain the version configuration information such as the latest version number and the intermediate version number according to the version configuration file, and determine whether the software needs to be updated by comparing the local version number with the latest version number in the version configuration information;

当检测到本地版本号不低于最新版本配置信息中的版本号时,则目标软件不需要更新;When it is detected that the local version number is not lower than the version number in the latest version configuration information, the target software does not need to be updated;

反之,当所述本地版本号低于所述最新版本号时,则目标软件需要更新。Conversely, when the local version number is lower than the latest version number, the target software needs to be updated.

例如,用户使用版本老旧的安装包在本地终端安装目标软件,在目标软件程序启动之后,进行版本自检,获取本地版本号,再与目标软件对应的服务器或云端数据库建立通信连接,获取版本配置文件,根据版本配置文件得到最新版本号以及中间版本号,当检测到本地版本号低于最新版本号后,确定软件需要更新,软件程序弹出版本需要更新的窗口,并提供立即更新和稍后更新的选项卡,以供用户选择,在接收到立即更新的指令后,根据多级更新策略更新升级目标软件。For example, the user installs the target software on the local terminal using an installation package with an old version. After the target software program is started, it performs version self-check to obtain the local version number, and then establishes a communication connection with the server or cloud database corresponding to the target software to obtain the version. Configuration file, obtain the latest version number and the intermediate version number according to the version configuration file. When it is detected that the local version number is lower than the latest version number, it is determined that the software needs to be updated, and the software program pops up a window that the version needs to be updated, and provides immediate update and later The update tab is for the user to select, after receiving the instruction to update immediately, update and upgrade the target software according to the multi-level update strategy.

步骤S30,根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。Step S30, download a corresponding software update package according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update.

目标软件的软件更新线程启动后,获取本地版本号以及目标软件对应服务器中的版本配置文件,根据版本配置文件得到最新版本号以及中间版本号,再根据所述目标软件的本地版本号与最新版本号,确定所述目标软件是否需要更新,如果确定软件需要更新,则再次将目标软件的本地版本号与配置文件中的中间版本号进行由低到高依次对比,并根据多级更新策略下载对应的软件更新包,以进行软件更新。After the software update thread of the target software is started, obtain the local version number and the version configuration file in the corresponding server of the target software, obtain the latest version number and the intermediate version number according to the version configuration file, and then obtain the latest version number and the latest version according to the local version number and the latest version of the target software. number, determine whether the target software needs to be updated, if it is determined that the software needs to be updated, then compare the local version number of the target software with the intermediate version number in the configuration file in order from low to high, and download the corresponding software update package for software updates.

本发明实施例通过上述方案,在软件更新升级线程启动后,获取本地运行的目标软件的本地版本号以及目标软件对应服务器中的版本配置信息,所述版本配置信息包括目标软件的最新版本号以及至少一个中间版本号,在本地版本号低于最新版本号时,确定目标软件需要更新,再根据本地版本号和中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。基于本发明方案,从软件版本迭代的过程的角度出发,通过设置一个或多个中间版本,将软件版本划分为多个更新版本等级,根据用户目标软件的版本确定目标软件的更新版本等级,确定更新版本等级以及通过多级更新的策略下载对应的软件更新包,以进行目标软件更新升级,进而控制下载更新包的大小,减少了软件更新时间,降低了软件更新的流量耗损。In this embodiment of the present invention, through the above solution, after the software update and upgrade thread is started, the local version number of the target software running locally and the version configuration information in the server corresponding to the target software are obtained, where the version configuration information includes the latest version number of the target software and At least one intermediate version number. When the local version number is lower than the latest version number, determine that the target software needs to be updated, and then download the corresponding software update package according to the local version number, the intermediate version number, and the multi-level update strategy for software update. Based on the solution of the present invention, from the perspective of the software version iteration process, by setting one or more intermediate versions, the software version is divided into multiple update version levels, and the update version level of the target software is determined according to the version of the user's target software, Update the version level and download the corresponding software update package through the multi-level update strategy to update and upgrade the target software, thereby controlling the size of the downloaded update package, reducing the software update time and reducing the traffic consumption of the software update.

进一步的,参照图3,图3为本发明的软件更新方法另一示例性实施例的流程示意图。基于上述图2所示的实施例,在本实施例中,步骤S30,根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新的步骤包括:Further, referring to FIG. 3 , FIG. 3 is a schematic flowchart of another exemplary embodiment of the software update method of the present invention. Based on the embodiment shown in FIG. 2, in this embodiment, step S30 is to download a corresponding software update package according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform a software update step include:

步骤S301,判断中间版本号是否为一个。Step S301, it is judged whether the intermediate version number is one.

步骤S302,当中间版本号有一个时,判断本地版本号是否不低于中间版本号。Step S302, when there is one intermediate version number, determine whether the local version number is not lower than the intermediate version number.

步骤S303,若本地版本号不低于中间版本号,则下载最新版本更新包,以进行软件更新。步骤S304,若本地版本号低于中间版本号,则下载中间版本更新包进行升级后,下载最新版本更新包,以升级更新至最新版本。Step S303, if the local version number is not lower than the intermediate version number, download the latest version update package for software update. Step S304, if the local version number is lower than the intermediate version number, after downloading the intermediate version update package for upgrade, download the latest version update package to upgrade to the latest version.

具体地,软件更新升级线程在启动后向服务器发送版本配置文件下载请求,获取版本配置文件,根据版本配置文件得到相应的版本配置信息,所述版本配置信息中包含最新版本号以及至少一个中间版本号等信息,根据版本配置信息,确定目标软件是否需要更新,若是目标软件需要更新则判断版本配置信息中的中间版本号是否只有一个,当版本配置信息中的中间版本号有一个时,再确定所述本地版本号是否不低于所述中间版本号,若本地版本号不低于所述中间版本号,则可以直接下载最新版本的更新包进行软件的更新升级,若本地版本号低于中间版本号,则可以判定本地软件的版本比较低,需要先下载中间版本更新包更新升级后,再下载最新版本更新包进行软件更新。Specifically, the software update and upgrade thread sends a version configuration file download request to the server after being started, obtains the version configuration file, and obtains corresponding version configuration information according to the version configuration file, where the version configuration information includes the latest version number and at least one intermediate version Number and other information, according to the version configuration information, determine whether the target software needs to be updated, if the target software needs to be updated, determine whether there is only one intermediate version number in the version configuration information, when there is one intermediate version number in the version configuration information, then confirm Whether the local version number is not lower than the intermediate version number, if the local version number is not lower than the intermediate version number, you can directly download the update package of the latest version to update and upgrade the software, if the local version number is lower than the intermediate version number If the version number is selected, it can be determined that the version of the local software is relatively low, and it is necessary to download the update package of the intermediate version first, and then download the update package of the latest version to update the software.

具体地,若是所述本地版本号低于所述中间版本号,则将所述中间版本号标记为起始更新版本号,在目标软件更新过程中,先下载所述起始更新版本号对应的更新包进行软件更新升级后,再下载最新版本的更新包,将目标软件升级更新至最新版本。Specifically, if the local version number is lower than the intermediate version number, the intermediate version number is marked as the initial update version number, and in the target software update process, the corresponding initial update version number is downloaded first. After the update package is updated and upgraded, download the latest version of the update package to upgrade the target software to the latest version.

例如,手机终端中运行的目标软件在某一时刻启动软件更新升级线程,获取到所述目标软件的本地版本号Vi、最新版本号Vn以及中间版本号Vx,在本地版本号Vi与最新版本号Vn对比后,若确定所述目标软件需要更新,则将本地版本号Vi与所述中间版本号Vx做对比,当本地版本号Vi不低于所述中间版本号Vx时,即可判定目标软件版本比较高,在软件更新过程中,直接下载最新版本号Vn对应的更新包,进行版本更新;当本地版本号Vi低于所述中间版本号Vx时,即可判定所述用户使用的目标软件为低版本,在软件更新过程中,先下载中间版本号Vx对应更新包进行升级更新,升级更新完成后,再下载最新版本号Vn对应的更新包,升级更新至最新版本。For example, the target software running in the mobile phone terminal starts a software update and upgrade thread at a certain moment, and obtains the local version number Vi, the latest version number Vn and the intermediate version number Vx of the target software, and the local version number Vi and the latest version number are obtained. After Vn is compared, if it is determined that the target software needs to be updated, the local version number Vi is compared with the intermediate version number Vx, and when the local version number Vi is not lower than the intermediate version number Vx, the target software can be determined. The version is relatively high. In the software update process, directly download the update package corresponding to the latest version number Vn, and perform version update; when the local version number Vi is lower than the intermediate version number Vx, it can be determined that the target software used by the user It is a lower version. During the software update process, first download the update package corresponding to the intermediate version number Vx to upgrade and update. After the upgrade and update is completed, download the update package corresponding to the latest version number Vn to upgrade to the latest version.

其中,所述中间版本号Vx所对应的更新包中包含版本V1至中间版本Vx之间的所有内容;所述最新版本号Vn所对应的更新包中包含中间版本Vx至最新版本Vn之间的所有版本更新内容。Wherein, the update package corresponding to the intermediate version number Vx includes all contents between the version V1 and the intermediate version Vx; the update package corresponding to the latest version number Vn includes the intermediate version Vx to the latest version Vn. All version updates.

步骤S305,当中间版本号有多个时,判断本地版本号是否不低于最新的中间版本号。Step S305, when there are multiple intermediate version numbers, determine whether the local version number is not lower than the latest intermediate version number.

步骤S306,若本地版本号不低于最新的中间版本号时,下载最新版本的更新包,以进行软件更新。Step S306, if the local version number is not lower than the latest intermediate version number, download the update package of the latest version for software update.

步骤S307,若本地版本号低于最新的中间版本号时,将本地版本号与其余的中间版本号由低到高依次对比,确定出第一个高于本地版本号的起始更新版本号。Step S307, if the local version number is lower than the latest intermediate version number, compare the local version number with the other intermediate version numbers from low to high, and determine the first initial update version number higher than the local version number.

步骤S308,从所述起始更新版本号开始,下载对应的更新包进行更新升级后,再依次下载比起始更新版本号更高版本号对应的更新包进行软件更新升级,直至更新至所述目标软件的最新版本。Step S308: Starting from the initial update version number, after downloading the corresponding update package for update and upgrade, download the update package corresponding to a higher version number than the initial update version number in turn to perform software update and upgrade, until the update reaches the The latest version of the target software.

软件更新升级线程启动后向服务器发送版本配置文件下载请求,获取版本配置文件,根据版本配置文件获取相应的版本配置信息,当目标软件需要更新时判断版本配置信息中的中间版本号是否只有一个,若中间版本号有多个,则需要将本地版本号与所有的中间版本号进行比较,具体实现如下:After the software update and upgrade thread is started, it sends a version configuration file download request to the server, obtains the version configuration file, and obtains the corresponding version configuration information according to the version configuration file. When the target software needs to be updated, it is judged whether there is only one intermediate version number in the version configuration information, If there are multiple intermediate version numbers, the local version number needs to be compared with all intermediate version numbers. The specific implementation is as follows:

首先,从所有的中间版本号中找出最新的中间版本号,将本地版本号与最新的中间版本号进行比较,确定所述本地版本号是否低于最新的中间版本号;若所述本地版本号不低于所述最新的中间版本号,则下载最新版本安装包,以进行软件更新。First, find out the latest intermediate version number from all intermediate version numbers, compare the local version number with the latest intermediate version number, and determine whether the local version number is lower than the latest intermediate version number; if the local version number is lower than the latest intermediate version number; If the number is not lower than the latest intermediate version number, download the latest version installation package for software update.

若所述本地版本号低于所述最新的中间版本号,则将所述本地版本号与其余的中间版本号由低到高依次对比,确定出第一个高于所述本地版本号的起始更新版本号;If the local version number is lower than the latest intermediate version number, compare the local version number with the rest of the intermediate version numbers in order from low to high, and determine the first one that is higher than the local version number. Begin to update the version number;

从所述起始更新版本号开始,下载对应的更新包进行更新升级后,再依次下载比所述起始更新版本号更高的版本号对应的更新包进行软件更新升级,直至更新至所述目标软件的新版本。Starting from the initial update version number, after downloading the corresponding update package for update and upgrade, download the update package corresponding to the version number higher than the initial update version number in sequence for software update and upgrade, until the update reaches the The new version of the target software.

具体地,目标软件的软件升级更新进程启动后获取本地版本号,并与目标软件的对应服务器进行通信连接,获取目标软件的版本配置文件,根据版本配置文件,解析得到最新版本号以及多个中间版本号,根据本地版本号与最新版本号之间的对比结果,确定目标软件是否需要更新,若软件需要更新,则更具多个中间版本号找出最新的中间版本号,再根据本地版本号与中间版本号之间的对比结果确定本地版本号是否不低于最新的中间版本号;若是本地版本号不低于所述最新中间版本号,则可以直接下载最新版本的更新包进行软件的更新升级,若是本地版本号低于最新中间版本号,则可以判定本地软件的版本比较低,需要再次将本地版本号与其他的中间版本号由低到高依次进行对比,确定出第一个高于本地版本号的中间版本号,并将确定的第一个高于本地版本号的中间版本号设置为起始更新版本号,根据起始更新版本号下载对应的更新包,并进行更新升级后,再依次下载比起始更新版本号更高的版本号所对应的更新包,进行软件更新升级,直至更新至所述目标软件的新版本。Specifically, after the software upgrade and update process of the target software is started, the local version number is obtained, and a communication connection is made with the corresponding server of the target software to obtain the version configuration file of the target software. According to the version configuration file, the latest version number and a plurality of intermediate Version number. Determine whether the target software needs to be updated according to the comparison result between the local version number and the latest version number. If the software needs to be updated, there are multiple intermediate version numbers to find the latest intermediate version number, and then based on the local version number The comparison result with the intermediate version number determines whether the local version number is not lower than the latest intermediate version number; if the local version number is not lower than the latest intermediate version number, the update package of the latest version can be directly downloaded to update the software For upgrade, if the local version number is lower than the latest intermediate version number, it can be determined that the version of the local software is relatively low, and it is necessary to compare the local version number with other intermediate version numbers from low to high again, and determine the first one higher than The intermediate version number of the local version number, and set the first determined intermediate version number higher than the local version number as the initial update version number, download the corresponding update package according to the initial update version number, and update and upgrade, Then download the update package corresponding to the version number higher than the initial update version number in sequence, and perform software update and upgrade until the new version of the target software is updated.

在本地版本号低于最新中间版本号时,便需要将本地版本号与其余的中间版本号由低到高依次对比,确定出第一个高于所述本地版本号的中间版本号,将该确定出的第一个高于所述本地版本号的中间版本号标记为起始更新版本号,软件更新升级线程则可以根据所述更新起始版本号为更新起点下载高版本的更新包,低版本的更新包则直接跳过,从而达到控制更新包大小的目的,减少软件升级耗时。When the local version number is lower than the latest intermediate version number, it is necessary to compare the local version number with the rest of the intermediate version numbers from low to high, and determine the first intermediate version number higher than the local version number. The first determined intermediate version number higher than the local version number is marked as the initial update version number, and the software update upgrade thread can download the update package of the high version as the update starting point according to the update initial version number, and the low The update package of the version is skipped directly, so as to achieve the purpose of controlling the size of the update package and reduce the time-consuming of software upgrade.

在一些实施例中,目标软件的本地版本为Vi,软件更新升级线程与软件更新服务器通讯获取目标软件的版本配置文件,根据所述版本配置文件可以得到目标软件的最新版本号以及目标软件的多个中间版本对应的中间版本号,分别为Vx1、Vx2、Vx3以及Vx4,通过本地版本号与最新版本号之间的对比,确定目标软件是否需要更新,如果目标软件需要更新,则将本地版本号Vi与所述中间版本号V4做对比,若是本地版本号Vi不低与中间版本号V4,即可判定目标软件版本比较高,在软件更新过程中,直接下载最新版本号Vn对应的更新包,以进行版本更新;若是本地版本号Vi低与中间版本号V4,则需要再次将本地版本号Vi与其他中间版本号由低到高依次对比,当检测到第一个高于本地版本号的中间版本号时,将比所述第一个高于本地版本号的中间版本号设置为目标软件的起始更新版本号,软件更新升级线程根据所述起始更新版本号,下载对应的软件更新包进行软件更新升级;假设中间版本Vx3是第一个高于本地版本Vi的中间版本,软件版本更新检测进程根据对比结果,则将中间版本Vx3标记为起始更新版本,下载中间版本Vx3对应更新包更新升级后、再下载中间版本Vx4对应更新包进行升级,最后下载最新版本更新包,以将软件升级至最新版本。In some embodiments, the local version of the target software is Vi, the software update and upgrade thread communicates with the software update server to obtain the version configuration file of the target software, and the latest version number of the target software and the multi-level information of the target software can be obtained according to the version configuration file. The intermediate version numbers corresponding to each intermediate version are Vx1, Vx2, Vx3 and Vx4 respectively. Through the comparison between the local version number and the latest version number, it is determined whether the target software needs to be updated. If the target software needs to be updated, the local version number Vi and the intermediate version number V4 are compared, if the local version number Vi is not lower than the intermediate version number V4, it can be determined that the target software version is relatively high, in the software update process, directly download the update package corresponding to the latest version number Vn, For version update; if the local version number Vi is low and the intermediate version number V4, you need to compare the local version number Vi and other intermediate version numbers from low to high again. When the first intermediate version higher than the local version number is detected During the version number, the first intermediate version number higher than the local version number is set as the initial update version number of the target software, and the software update and upgrade thread downloads the corresponding software update package according to the initial update version number. Perform software update and upgrade; assuming that the intermediate version Vx3 is the first intermediate version higher than the local version Vi, the software version update detection process will mark the intermediate version Vx3 as the initial update version according to the comparison result, and download the corresponding update package of the intermediate version Vx3 After the update and upgrade, download the corresponding update package of the intermediate version Vx4 to upgrade, and finally download the latest version update package to upgrade the software to the latest version.

上述可以看出,在本发明实施例中,目标软件的软件升级更新进程从服务器或者云端数据库中,获取版本配置文件,根据版本配置文件得到最新版本号与相应的中间版本号,当版本配置文件中仅有一个中间版本时,如果本地版本号不低于中间版本号,则可以直接下载最新版本的更新包,当所述版本配置文件中包含多个版本号时,对比本地版本号与最新的中间版本号,确定出本地版本号是否不低于最新的中间版本号,如果本地版本不低于最新的中间版本号,则下载最新版本的更新包,以进行软件升级,如果本地版本低于最新的中间版本号,则将本地版本号与其余的中间版本号由低到高依次对比,得出,将所述第一个高于本地版本号的中间版本号设定为起始更新版本号,从起始更新版本号开始由低版本号到高版本号依次下载对应更新包升级,直至更新至最新版本;通过上述方案,可以快速确定出目标软件需要下载的更新包的大小,减少下载已更新过的版本内容,缩短了更新时间。As can be seen from the above, in the embodiment of the present invention, the software upgrade and update process of the target software obtains the version configuration file from the server or the cloud database, and obtains the latest version number and the corresponding intermediate version number according to the version configuration file. When there is only one intermediate version, if the local version number is not lower than the intermediate version number, you can directly download the update package of the latest version. When the version configuration file contains multiple version numbers, compare the local version number with the latest version. Intermediate version number, determine whether the local version number is not lower than the latest intermediate version number, if the local version is not lower than the latest intermediate version number, download the latest version of the update package for software upgrade, if the local version is lower than the latest version number the intermediate version number, then the local version number is compared with the rest of the intermediate version numbers in order from low to high, and it is obtained that the first intermediate version number higher than the local version number is set as the initial update version number, From the initial update version number, download the corresponding update package from the low version number to the high version number and upgrade until the latest version; through the above solution, the size of the update package that needs to be downloaded for the target software can be quickly determined, reducing the number of downloads that have been updated The content of the previous version has shortened the update time.

参照图4,图4为本申请软件更新方法另一示例性实施例的流程示意图。所述软件更新方法应用于服务器,所述软件更新方法包括:步骤A10,在终端侧的软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;Referring to FIG. 4 , FIG. 4 is a schematic flowchart of another exemplary embodiment of a software update method of the present application. The software update method is applied to a server, and the software update method includes: step A10, after the software update and upgrade thread on the terminal side is started, obtain version configuration information of the currently running target software, where the version configuration information includes the target software The local version number of the software, the latest version number, and at least one intermediate version number;

具体地,本地终端内目标软件的软件更新升级线程启动后,开始运行版本自检程序,解析出本地文件中目标软件的本地版本号,并与服务器或者云端数据库建立通信连接,向服务器发送版本配置文件的下载请求,所述下载请求中包含用户终端侧目标软件的软件信息以及终端的网络源地址等信息,根据所述下载请求,获取用户终端侧目标软件的软件信息以及网络地址,根据所述软件信息找到目标软件的版本配置文件,所述版本配置文件中包含最新版本号以及中间版本号等版本配置信息,以供将所述版本配置文件发送给用户终端侧。Specifically, after the software update and upgrade thread of the target software in the local terminal is started, the version self-checking program starts to run, parses out the local version number of the target software in the local file, establishes a communication connection with the server or cloud database, and sends the version configuration to the server. A file download request, the download request includes software information of the target software on the user terminal side and information such as the network source address of the terminal, according to the download request, obtain the software information and network address of the target software on the user terminal side, according to the The software information finds the version configuration file of the target software, and the version configuration file includes version configuration information such as the latest version number and the intermediate version number, so as to send the version configuration file to the user terminal side.

步骤A20,将所述版本配置信息下发给终端,以供终端在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;根据所述本地版本号和所述中间版本号,以及多级更新策略触发对应的软件更新包下载请求;Step A20, delivering the version configuration information to the terminal, so that when the local version number is lower than the latest version number, the terminal determines that the target software needs to be updated; according to the local version number and the intermediate version number The version number and the multi-level update strategy trigger the corresponding software update package download request;

具体地,用户终端侧设备软件更新线程启动后,会发送目标软件下载版本配置文件的下载请求,所述下载请求中包含用户终端侧中目标软件的相关信息以及用户终端侧设备的网络源地址,服务器端接收到对应的网络请求后,根据所述网络源地址,向用户终端侧设备发送对应目标软件的版本配置文件,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号,以供终端本地版本是否需要更新,若用户终端侧确定目标软件需要更新;则用户终端侧会根据多级更新策略触发对应的软件更新包下载请求。Specifically, after the user terminal side device software update thread is started, a download request for the target software download version configuration file will be sent, and the download request includes the relevant information of the target software in the user terminal side and the network source address of the user terminal side device, After receiving the corresponding network request, the server side sends a version configuration file corresponding to the target software to the user terminal side device according to the network source address, where the version configuration information includes the local version number of the target software, the latest version number, At least one intermediate version number for whether the local version of the terminal needs to be updated. If the user terminal side determines that the target software needs to be updated; the user terminal side will trigger the corresponding software update package download request according to the multi-level update policy.

步骤A30,接收所述终端发送的软件更新包下载请求,根据所述软件更新包下载请求发送对应的软件更新包至所述终端,以进行软件更新。Step A30: Receive a software update package download request sent by the terminal, and send a corresponding software update package to the terminal according to the software update package download request to perform software update.

具体地,在本地终端侧目标软件的软件更新升级线程启动后,开始运行版本自检程序,解析出本地文件中目标软件的本地版本号,并向服务器侧建立通信连接,发送版本配置文件的下载请求,服务器侧接收到用户终端侧设备发送的软件更新包下载请求后,根据所述软件更新包下载请求,得出用户终端侧设备需要下载的更新包版本号,根据更新包版本号将对应版本的更新包发送给用户终端侧设备,以供用户终端侧设备进行更新。Specifically, after the software update and upgrade thread of the target software on the local terminal side is started, the version self-checking program starts to run, parses out the local version number of the target software in the local file, establishes a communication connection to the server side, and sends the download of the version configuration file After receiving the software update package download request sent by the user terminal side device, the server side obtains the version number of the update package that needs to be downloaded by the user terminal side device according to the software update package download request, and converts the corresponding version according to the update package version number. The update package is sent to the user terminal side device for the user terminal side device to update.

用户终端侧获取到版本配置文件后,根据本地版本号以及版本配置文件得到最新版本号以及中间版本号,确定目标软件是否需要更新,若所述目标软件需要更新,则判断中间版本是否仅有一个,当所述中间版本号为一个时,确定所述本地版本号是否低于所述中间版本号,若所述本地版本号不低于所述中间版本号,则向服务器侧发送最新版本下载请求,服务器侧接收到相应请求后,找到对应的最新版本更新包发送给用户终端侧,以供其升级至最新版本;若所述本地版本号低于所述中间版本号,则触发多级更新策略向服务器侧发送中间版本更新包下载请求以及最新版本更新包下载请求,服务器侧更具对应下载请求发送与所述下载请求对应的更新包,以供用户终端侧软件更新升级;当所述中间版本号为多个时,确定所述本地版本号是否低于最新的中间版本号,若所述本地版本号不低于所述最新的中间版本号,则向服务器侧发送下载最新版本安装包请求,服务器侧根据所述请求发送对应的更新包至用户终端侧,以供其进行软件更新,若所述本地版本号低于所述最新的中间版本号,则将所述本地版本号与其余的中间版本号由低到高依次对比,确定出第一个高于所述本地版本号的起始更新版本号,用户终端侧软件升级更新线程触发多级更新策略,开始向服务器侧逐次发送从所述起始更新版本号至最新版本号中每个中间版本所对应的更新包下载请求,服务器侧则根据所述下载请求,向用户终端侧逐次发送与所述下载请求一一对应的更新包,以供用户终端侧进行软件升级。本发明实施例通过上述方案,在软件更新升级线程启动后,获取本地运行的目标软件的本地版本号以及目标软件对应服务器中的版本配置信息,所述版本配置信息包括目标软件的最新版本号以及至少一个中间版本号,在本地版本号低于最新版本号时,确定目标软件需要更新,再根据本地版本号和中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。基于本发明方案,从软件版本迭代的过程的角度出发,根据用户目标软件的版本确定目标软件的更新版本等级,确定更新版本等级以及通过多级更新的策略下载对应的软件更新包,以进行目标软件更新升级,进而控制下载更新包的大小,减少了软件更新时间,降低了软件更新的流量耗损。After obtaining the version configuration file, the user terminal side obtains the latest version number and the intermediate version number according to the local version number and the version configuration file, and determines whether the target software needs to be updated. If the target software needs to be updated, it is determined whether there is only one intermediate version. , when the intermediate version number is one, determine whether the local version number is lower than the intermediate version number, and if the local version number is not lower than the intermediate version number, send the latest version download request to the server side , after receiving the corresponding request, the server side finds the corresponding latest version update package and sends it to the user terminal side for upgrading to the latest version; if the local version number is lower than the intermediate version number, a multi-level update strategy is triggered Send the intermediate version update package download request and the latest version update package download request to the server side, and the server side sends the update package corresponding to the download request with the corresponding download request, so as to update and upgrade the software on the user terminal side; when the intermediate version When there are multiple numbers, determine whether the local version number is lower than the latest intermediate version number, and if the local version number is not lower than the latest intermediate version number, send a request for downloading the latest version installation package to the server side, The server side sends the corresponding update package to the user terminal side according to the request for software update. If the local version number is lower than the latest intermediate version number, the local version number is compared with the rest of the intermediate version numbers. The version numbers are compared in order from low to high, and the first initial update version number higher than the local version number is determined. The user terminal side software upgrade and update thread triggers a multi-level update strategy, and starts to send to the server side one by one. The update package download request corresponding to each intermediate version in the starting update version number to the latest version number, the server side sends the update package corresponding to the download request one by one to the user terminal side according to the download request, to It is used for software upgrade on the user terminal side. In this embodiment of the present invention, through the above solution, after the software update and upgrade thread is started, the local version number of the target software running locally and the version configuration information in the server corresponding to the target software are obtained, where the version configuration information includes the latest version number of the target software and At least one intermediate version number. When the local version number is lower than the latest version number, determine that the target software needs to be updated, and then download the corresponding software update package according to the local version number, the intermediate version number, and the multi-level update strategy for software update. Based on the solution of the present invention, from the perspective of the software version iteration process, the update version level of the target software is determined according to the version of the user's target software, the update version level is determined, and the corresponding software update package is downloaded through a multi-level update strategy to achieve the target software. Software update and upgrade, and then control the size of the download update package, reduce the software update time, and reduce the traffic consumption of the software update.

进一步的,如图5所示,在终端侧的软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息的步骤之前可以包括:Further, as shown in Figure 5, after the software update and upgrade thread on the terminal side is started, before the step of acquiring the version configuration information of the currently running target software may include:

步骤A101,当检测到上传新版本更新包后,检测版本更新次数是否到达预设的阈值;Step A101, after detecting that a new version update package is uploaded, detect whether the number of version updates reaches a preset threshold;

步骤A102,若版本更新次数达到所述版本更新次数阈值,则设定当前更新版本为中间版本,生成对应的中间版本的更新包,并在所述版本配置信息中写入对应的版本信息。Step A102, if the number of version updates reaches the threshold of the number of version updates, set the current update version as an intermediate version, generate an update package of the corresponding intermediate version, and write the corresponding version information in the version configuration information.

当终端设备为服务器时,软件维护人员可以在服务器中预先设定中间版本设置阈值,假设设定每隔k个版本就变动或修改一次中间版本,当系统检测到新版本上传后,计数器中的累加数M便会累加一次,在累加数M不高于阈值K时,不需要设置中间版本,反之则将第K版本设置中间版本,并在版本配置文件中写入新的中间版本的版本信息以及对应的版本号;When the terminal device is a server, the software maintainer can preset the intermediate version setting threshold in the server. Assuming that the intermediate version is changed or modified every k versions, when the system detects that a new version is uploaded, the value in the counter will be changed. The accumulated number M will be accumulated once. When the accumulated number M is not higher than the threshold K, the intermediate version does not need to be set. Otherwise, the K-th version will be set as the intermediate version, and the version information of the new intermediate version will be written in the version configuration file. and the corresponding version number;

通过设置中间版本的方式,可以将整个版本迭代过程划分为多个更新版本等级,用户可以通过本地版本号与中间版本号之间的对比关系得出本地版本所属更新版本等级,并更具所述更新版本等级下载对应的更新包,已进行软件升级。By setting the intermediate version, the entire version iteration process can be divided into multiple update version levels. The user can obtain the updated version level to which the local version belongs through the comparison between the local version number and the intermediate version number. Update the version level to download the corresponding update package, and the software has been upgraded.

例如,当阈值K=7时,即从V1版本开始,V1-V7时都不需要设置中间版本,当检测到V8版本后,将V7设置为中间版本;其中,V7包含版本V1-V7的所有更新内容,而最新版本Vn则不需要包含版本V1-V7的更新内容;在最新版本Vn为V7到V14这个区间时,中间版本都是V7。如果用户使用小于V7版本,则需要下载中间版本V7的更新包和Vn的更新包进行更新升级。反之,当用户使用版本大于或等于V7,且小于Vn时,则只需要下载Vn的更新包即可;而最新版本Vn的更新包仅包含V7到Vn版本所需要修改或增加的文件,而不需要或可选的包含V7版本等前面修改或增加的文件,从而可以实现有效控制更新包大小;For example, when the threshold K=7, that is, starting from the V1 version, no intermediate version needs to be set for V1-V7. When the V8 version is detected, V7 is set as the intermediate version; among them, V7 contains all the versions V1-V7. The latest version Vn does not need to include the updated content of versions V1-V7; when the latest version Vn is in the range from V7 to V14, the intermediate versions are all V7. If the user uses a version less than V7, you need to download the update package of the intermediate version V7 and the update package of Vn to update and upgrade. On the contrary, when the user's version is greater than or equal to V7 and less than Vn, he only needs to download the update package of Vn; and the update package of the latest version of Vn only contains the files that need to be modified or added from V7 to Vn, not It is required or optional to include the previously modified or added files such as the V7 version, so that the size of the update package can be effectively controlled;

进一步的,如图6所示,上述步骤A102,若版本更新次数达到所述版本更新次数阈值,则设定当前更新版本为中间版本,生成对应的中间版本的更新包,并在所述版本配置信息中写入对应的版本信息的步骤之后可以包括:Further, as shown in FIG. 6, in the above step A102, if the number of version updates reaches the threshold of the number of version updates, the current update version is set as an intermediate version, an update package of the corresponding intermediate version is generated, and the version is configured. The steps of writing the corresponding version information in the information may include:

步骤A103,当检测新的中间版本生成时,检测所述中间版本个数是否到达预设的合理需求数;Step A103, when detecting that a new intermediate version is generated, detect whether the number of the intermediate versions reaches a preset reasonable demand number;

软件维护人员在设置中间版本阈值时,同样需要设置中间版本的合理需求数,在检测到中间版本生成后,需要确定中间版本的个数是否超过合理需求数,如果超过所述合理需求数,则根据所述中间版本个数以及预设的合理需求数,确定中间版本是否需要删减。避免生成太多的中间版本,而造成软件更新升级线程进行升级更新次数过多占用大量内存,影响用户体验。When setting the intermediate version threshold, the software maintainer also needs to set the reasonable number of required intermediate versions. After detecting that the intermediate version is generated, it is necessary to determine whether the number of intermediate versions exceeds the reasonable required number. If it exceeds the reasonable required number, then Whether the intermediate version needs to be deleted is determined according to the number of the intermediate versions and the preset reasonable demand number. Avoid generating too many intermediate versions, which will cause the software update thread to perform too many updates and occupy a lot of memory and affect the user experience.

例如,当中间版本的存在数量M=1时,若目标软件版本更新到V15,此时可以将V14设置为中间版本,将中间版本V7中的更新内容合并到中间版本V14中后,删除中间版本V7。For example, when the existing number of intermediate versions M=1, if the target software version is updated to V15, V14 can be set as the intermediate version at this time, and the updated content in the intermediate version V7 can be merged into the intermediate version V14, and then delete the intermediate version V7.

当中间版本的存在数量M=2时,若目标软件版本更新到V15,此时可以将V14设置为第二中间版本,中间版本V7可以保留为第一中间版本。When the existing number of intermediate versions M=2, if the target software version is updated to V15, V14 may be set as the second intermediate version at this time, and the intermediate version V7 may be retained as the first intermediate version.

步骤A104,判断所述中间版本个数是否不高于所述合理需求数;Step A104, judging whether the number of intermediate versions is not higher than the number of reasonable requirements;

步骤A105:当所述中间版本个数不高于所述合理需求数时,保留所有中间版本对应的更新包以及版本配置信息中的版本信息;Step A105: when the number of intermediate versions is not higher than the reasonable number of requirements, retain the update packages corresponding to all intermediate versions and the version information in the version configuration information;

步骤A106:当所述中间版本个数高于所述合理需求数时,将第一中间版本和第二中间版本合并为第二中间版本,并删除所述第一中间版本在版本配置信息中的版本信息。Step A106: When the number of intermediate versions is higher than the number of reasonable requirements, merge the first intermediate version and the second intermediate version into a second intermediate version, and delete the first intermediate version in the version configuration information. Version Information.

当所述中间版本个数不高于所述合理需求数时,保留所有中间版本对应的更新包以及版本配置信息中的版本信息,并生成新的中间版本的更新包以及对应的版本号,所述版本号将写入版本配置文件中,作为最新中间版本号;When the number of intermediate versions is not higher than the reasonable required number, the update packages corresponding to all intermediate versions and the version information in the version configuration information are retained, and new update packages and corresponding version numbers of the intermediate versions are generated. The above version number will be written into the version configuration file as the latest intermediate version number;

当所述中间版本存在个数高于所述合理需求数时,在一些实施例中,将第一中间版本和第二中间版本合并为第二中间版本,并删除所述第一中间版本在版本配置文件中的版本信息。When the number of the intermediate versions is higher than the reasonable required number, in some embodiments, the first intermediate version and the second intermediate version are merged into a second intermediate version, and the first intermediate version is deleted in the version Version information in the configuration file.

例如,若目标软件版本更新到V22,此时可以将V21设置为中间版本,将中间版本V10中的更新内容合并到中间版本V20中后,删除中间版本V10。For example, if the target software version is updated to V22, you can set V21 as the intermediate version, and delete the intermediate version V10 after merging the updated content in the intermediate version V10 into the intermediate version V20.

在另外的一些实施例中,检测到所述中间版本存在个数高于所述合理需求数时,会将相邻两个中间版本的更新包进行大小对比,选择差值最大的两个进行合并,即将低版本中间版本的更新内容合并到高版本中间版本的更新包中,并删除版本配置文件中低版本中间版本的版本号及关于低版本中间版本的其他版本配置信息。In other embodiments, when it is detected that the number of intermediate versions is higher than the reasonable required number, the size of the update packages of two adjacent intermediate versions will be compared, and the two with the largest difference will be selected for merging. , that is, merge the update content of the intermediate version of the lower version into the update package of the intermediate version of the higher version, and delete the version number of the intermediate version of the lower version and other version configuration information about the intermediate version of the lower version in the version configuration file.

在本发明实施例中,中间版本的个数越多,则适用的用户越多,但是中间版本的个数同样会增加目标软件更新的复杂程度,因此中间版本的数量必须设置在一个合理的区间范围内。In the embodiment of the present invention, the more the number of intermediate versions, the more applicable users, but the number of intermediate versions also increases the complexity of the target software update, so the number of intermediate versions must be set within a reasonable range within the range.

在另外的一些实施例中,软件更新人员可以通过预设更新包大小阈值,进而设置中间版本,具体实施方法如下:In some other embodiments, the software update personnel can set the intermediate version by presetting the update package size threshold, and the specific implementation method is as follows:

系统自动检测现有的最新版本更新包的大小是否超过预设的阈值,如果超过预设阈值,则在检测到下一个版本更新包上传后,将所述现有的最新版本设置为中间版本。The system automatically detects whether the size of the existing latest version update package exceeds a preset threshold, and if it exceeds the preset threshold, after detecting that the next version update package is uploaded, the existing latest version is set as an intermediate version.

例如,当软件从V1对外更新到V7过程,发现V7版本的更新包的大小超过预设阈值,则在V8版本上传后,将V7版本设定为中间版本,此时中间版本V7的更新包包含了V1~V7所有版本升级的内容,使用V7版本和使用软件比V7更高版本的用户在更新时只需要下载包含V8到最新版本Vn之间的版本升级内容,通过这种对比版本之间的更新包大小,可以避免高版本用户下载已经更新过的大文件。For example, when the software is updated from V1 to V7, and it is found that the size of the update package of the V7 version exceeds the preset threshold, after the V8 version is uploaded, the V7 version is set as the intermediate version. At this time, the update package of the intermediate version V7 contains The upgrade content of all versions from V1 to V7 is included. Users who use V7 version and software versions higher than V7 only need to download the version upgrade content between V8 and the latest version Vn when updating. Updating the package size can prevent users of higher versions from downloading large files that have been updated.

在另一些情况下,在目标软件对外发行到V7版本的过程中,其中包含了V1-V2、V2-V3、V3-V4、V4-V5的数次更新修改或增加的文件的V5更新包较大并超出了指定阈值,则将V5设置为中间版本,其中V5版本的更新包中包含V1-V5所有的版本更新内容,而V7的更新包只需要包含V6到V7两个版本之间所需要更新的较小的文件,当高于V5版本的用户进行软件升级更新时。仅需下载较小的V7版本更新包即可,从而有效控制更新包大小,减少使用V5或V6版本的用户升级到V7的下载更新包大小,减少下载时间,节约下载流量。In other cases, during the process of the target software being released to the V7 version, the V5 update package that contains the files modified or added by several updates of V1-V2, V2-V3, V3-V4, and V4-V5 is relatively small. If it is too large and exceeds the specified threshold, V5 is set as the intermediate version, where the update package of V5 version contains all the version updates of V1-V5, while the update package of V7 only needs to contain the two versions between V6 and V7. The updated smaller file, when the user of the version higher than V5 performs software upgrade update. You only need to download the smaller V7 version update package, so as to effectively control the update package size, reduce the download update package size for users who use V5 or V6 versions to upgrade to V7, reduce download time, and save download traffic.

而在另外的一些实施例中,中间版本的生成方式可以结合以上两种,具体包括:In some other embodiments, the generation method of the intermediate version may combine the above two, specifically including:

软件更新人员预设一个较大的更新包大小阈值和一个版本更新次数阈值;The software update personnel preset a larger update package size threshold and a version update number threshold;

在检测到某个版本更新包超过更新包大小阈值时,则生成对应的中间版本,同时版本更新次数累加器M清0;When it is detected that a certain version update package exceeds the update package size threshold, a corresponding intermediate version is generated, and the version update times accumulator M is cleared to 0;

在版本次数到预设的次数阈值后,生成对应的中间版本,同时版本更新次数累加器M清0;After the number of versions reaches the preset number of times threshold, a corresponding intermediate version is generated, and the version update times accumulator M is cleared to 0;

同样的,中间版本也需要设定一个合理存在数,当中间版本存在个数超过合理存在数后,可以根据上述步骤A105中间版本的设置方式对中间版本进行删减合并。Similarly, an intermediate version also needs to set a reasonable number of existing versions. When the number of existing intermediate versions exceeds the reasonable number of existing versions, the intermediate versions can be deleted and merged according to the setting method of the intermediate versions in the above step A105.

例如,当更新次数阈值K=7时,从版本V1更新到版本V12没有任何一个版本的更新包的大小超过指定阈值,当对外发行V13版本更新的过程中,发现V13更新包的大小超出指定阈值,则在V14版本上传后,将V13版本设置为中间版本,而V14版本不设置中间版本,同样的,软件更新人员同样可以通过设置中间版本的合理存在数,来限制中间版本的存在数量,如果中间版本存在数量M=1,则V13更新包需要包含V1-12等12个版本更新升级到V13版本所需要修改或增加的文件内容,在V13中间版本生成后,需要将中间版本V7版本的相关配置信息删除,并将中间版本V7版本的更新内容合并到V13版本中;For example, when the number of updates threshold K=7, the size of the update package from version V1 to version V12 does not exceed the specified threshold. When the V13 version update is released to the outside world, it is found that the size of the V13 update package exceeds the specified threshold. , then after the V14 version is uploaded, set the V13 version as the intermediate version, while the V14 version does not set the intermediate version. Similarly, the software updater can also limit the existence of the intermediate version by setting the reasonable number of intermediate versions. If If the number of intermediate versions is M = 1, the V13 update package needs to include the contents of the files that need to be modified or added to upgrade to the V13 version, including 12 versions such as V1-12. The configuration information is deleted, and the updated content of the intermediate version V7 version is merged into the V13 version;

如果中间版本合理存在数M=2,则保留V7中间版本,则V13更新包只需要包含V7-12版本更新到V13所需要的内容;若是从版本V14更新到V20的更新包大小没有超过指定阈值,则在版本V21发行后,将V20版本设置为中间版本。但超过了指定的合理存在数,可以将中间版本V7合并到中间版本V13中,生成新的V13版本的更新包,并且将版本配置文件中中间版本V7的版本配置信息删除。If there is a reasonable number of intermediate versions M=2, the V7 intermediate version is retained, and the V13 update package only needs to contain the content required to update the V7-12 version to V13; if the update package size from version V14 to V20 does not exceed the specified threshold , after the release of version V21, set the V20 version as an intermediate version. However, if it exceeds the specified reasonable number of existences, the intermediate version V7 can be merged into the intermediate version V13, a new V13 version update package can be generated, and the version configuration information of the intermediate version V7 in the version configuration file can be deleted.

此种中间版本的设置方式,根据中间版本的合理需求数,可以保留多个中间版本。此种生成中间版本的办法更加灵活,更加有效,可以最大程度上避免版本较高且需要更新的用户下载文件较大的更新包。With this intermediate version setting method, multiple intermediate versions can be retained according to the reasonable number of intermediate versions. This method of generating an intermediate version is more flexible and effective, and can avoid, to the greatest extent, a user who has a higher version and needs to be updated from downloading an update package with a larger file.

通过上述方法可以看出,本发明实时例提出的软件更新方法、装置、设备及存储介质,通过设置中间版本,将软件更新版本划分为多个更新版本等级,在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号,在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新,根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。通过多级更新策略进行软件的升级,可以有效控制更新包的大小,减少更新下载时间,进行软件快速升级更新。基于本发明方案,从将软件版本迭代的过程出发,通过设置一个或多个中间版本,将软件版本划分为多个等级,通过对用户软件版本的判别,确定用户需要更新的软件版本内容的大小,在通过引入一种多级更新的策略进行软件升级,进而控制下载更新包的大小,减少了软件更新时间,降低了软件更新的流量耗损。It can be seen from the above method that the software update method, device, device and storage medium proposed by the real-time example of the present invention divide the software update version into multiple update version levels by setting the intermediate version, and after the software update and upgrade thread is started, obtain Version configuration information of the currently running target software, the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software. When the local version number is lower than the latest version number, It is determined that the target software needs to be updated, and a corresponding software update package is downloaded according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update. Software upgrade through multi-level update strategy can effectively control the size of the update package, reduce the update download time, and quickly upgrade the software. Based on the solution of the present invention, starting from the process of iterating the software version, by setting one or more intermediate versions, the software version is divided into multiple levels, and the size of the software version content that the user needs to update is determined by judging the user's software version. , by introducing a multi-level update strategy to upgrade the software, thereby controlling the size of the download update package, reducing the software update time and reducing the traffic consumption of the software update.

此外,本申请实施例还提出一种软件更新装置,所述软件更新装置包括:In addition, an embodiment of the present application also proposes a software update device, where the software update device includes:

信息获取模块,用于在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;an information acquisition module, configured to acquire version configuration information of the currently running target software after the software update and upgrade thread is started, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software;

确定模块,用于在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;A determining module, configured to determine that the target software needs to be updated when the local version number is lower than the latest version number;

更新升级模块,用于根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。An update and upgrade module, configured to download a corresponding software update package according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update.

进一步地,所述软件更新装置还包括:Further, the software update device also includes:

中间版本生成模块,用于当检测到上传新版本更新包后,检测版本更新次数到达预设的阈值,设定当前更新版本为中间版本,生成对应的中间版本的更新包,并在所述版本配置信息中写入对应的版本信息。The intermediate version generation module is used to detect that the number of version updates reaches a preset threshold after detecting that the update package of the new version is uploaded, set the current update version as the intermediate version, generate the update package of the corresponding intermediate version, and generate the update package of the corresponding intermediate version. The corresponding version information is written in the configuration information.

本实施例实现软件更新的原理及实施过程,请参照上述各实施例,在此不再赘述。For the principle and implementation process of the software update implemented in this embodiment, please refer to the above-mentioned embodiments, which will not be repeated here.

此外,本申请实施例还提出一种终端设备,所述终端设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的软件更新程序,所述软件更新程序被所述处理器执行时实现如上所述的软件更新方法的步骤。In addition, an embodiment of the present application also proposes a terminal device, the terminal device includes a memory, a processor, and a software update program stored on the memory and executable on the processor, the software update program being The steps of implementing the above-mentioned software updating method when executed by the processor are described.

由于本软件更新程序被处理器执行时,采用了前述所有实施例的全部技术方案,因此至少具有前述所有实施例的全部技术方案所带来的所有有益效果,在此不再一一赘述。Since the software update program adopts all the technical solutions of the foregoing embodiments when executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of the foregoing embodiments, and will not be repeated here.

此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有软件更新程序或者更新版本划分程序,所述软件更新程序被处理器执行时实现如上所述的软件更新方法的步骤,所述更新版本划分程序被处理器执行时实现如上所述的更新版本划分方法的步骤。In addition, an embodiment of the present application also proposes a computer-readable storage medium, where a software update program or an update version division program is stored on the computer-readable storage medium, and the software update program is executed by a processor to implement the above-mentioned The steps of the software update method, when the update version dividing program is executed by the processor, implements the steps of the above-mentioned update version dividing method.

由于本软件更新程序被处理器执行时,采用了前述所有实施例的全部技术方案,因此至少具有前述所有实施例的全部技术方案所带来的所有有益效果,在此不再一一赘述。Since the software update program adopts all the technical solutions of the foregoing embodiments when executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of the foregoing embodiments, and will not be repeated here.

相比与现有技术,本发明实时例提出的软件更新方法、装置、设备及存储介质,通过设置中间版本,将软件更新版本划分为多个更新区间,以及一种多级更新策略,在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号,在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新,根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。通过多级更新策略进行软件的升级,可以有效控制更新包的大小,减少更新下载时间,进行软件快速升级更新。基于本发明方案,从将软件版本迭代的过程出发,通过设置一个或多个中间版本,将软件版本划分为多个等级,通过对用户软件版本的判别,确定用户需要更新的软件版本内容的大小,在通过引入一种多级更新的策略进行软件升级,进而控制下载更新包的大小,减少了软件更新时间,降低了软件更新的流量耗损。Compared with the prior art, the software update method, device, device and storage medium proposed by the real-time example of the present invention divide the software update version into multiple update intervals by setting an intermediate version, and a multi-level update strategy. After the update and upgrade thread is started, the version configuration information of the currently running target software is obtained, and the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software. When the latest version number is obtained, it is determined that the target software needs to be updated, and the corresponding software update package is downloaded according to the local version number, the intermediate version number, and the multi-level update strategy to perform software update. Software upgrade through multi-level update strategy can effectively control the size of the update package, reduce the update download time, and quickly upgrade the software. Based on the solution of the present invention, starting from the process of iterating the software version, by setting one or more intermediate versions, the software version is divided into multiple levels, and the size of the software version content that the user needs to update is determined by judging the user's software version. , by introducing a multi-level update strategy to upgrade the software, thereby controlling the size of the download update package, reducing the software update time and reducing the traffic consumption of the software update.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.

上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,被控终端,或者网络设备等)执行本申请每个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in the above storage medium (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields , are similarly included within the scope of patent protection of this application.

Claims (10)

1.一种软件更新方法,其特征在于,应用于终端,所述软件更新方法包括:1. a software update method, is characterized in that, is applied to terminal, described software update method comprises: 在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;After the software update and upgrade thread is started, the version configuration information of the currently running target software is obtained, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software; 在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;When the local version number is lower than the latest version number, determine that the target software needs to be updated; 根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。The corresponding software update package is downloaded according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update. 2.根据权利要求1所述的软件更新方法,其特征在于,所述根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新的步骤包括:2. software update method according to claim 1, is characterized in that, described according to described local version number and described intermediate version number, and multi-level update strategy download corresponding software update package, to carry out the step of software update include: 当所述中间版本号为一个时,确定所述本地版本号是否低于所述中间版本号;When the intermediate version number is one, determine whether the local version number is lower than the intermediate version number; 若所述本地版本号不低于所述中间版本号,则下载最新版本更新包,以进行软件更新;If the local version number is not lower than the intermediate version number, download the latest version update package for software update; 当所述中间版本号为多个时,确定所述本地版本号是否低于最新的中间版本号;When there are multiple intermediate version numbers, determine whether the local version number is lower than the latest intermediate version number; 若所述本地版本号不低于所述最新的中间版本号,则下载最新版本安装包,以进行软件更新。If the local version number is not lower than the latest intermediate version number, download the latest version installation package for software update. 3.根据权利要求2所述的软件更新方法,其特征在于,所述当所述中间版本号为一个时,确定所述本地版本号是否低于所述中间版本号的步骤之后,还包括:3. The software update method according to claim 2, wherein, after the step of determining whether the local version number is lower than the intermediate version number when the intermediate version number is one, the method further comprises: 若所述本地版本号低于所述中间版本号,则下载中间版本更新包进行更新升级后,再下载最新版本更新包,以升级至最新版本。If the local version number is lower than the intermediate version number, after downloading the intermediate version update package for update and upgrade, download the latest version update package to upgrade to the latest version. 4.根据权利要求2所述的更新方法,其特征在于,所述当所述中间版本号为多个时,确定所述本地版本号是否低于最新的中间版本号的步骤之后,还包括:4. The update method according to claim 2, wherein, when the intermediate version number is multiple, after the step of determining whether the local version number is lower than the latest intermediate version number, the method further comprises: 若所述本地版本号低于所述最新的中间版本号,则将所述本地版本号与其余的中间版本号由低到高依次对比,确定出第一个高于所述本地版本号的起始更新版本号;If the local version number is lower than the latest intermediate version number, compare the local version number with the rest of the intermediate version numbers in order from low to high, and determine the first one that is higher than the local version number. Begin to update the version number; 从所述起始更新版本号开始,下载对应的更新包进行更新升级后,再依次下载比所述起始更新版本号更高的版本号对应的更新包进行软件更新升级,直至更新至所述目标软件的新版本。Starting from the initial update version number, after downloading the corresponding update package for update and upgrade, download the update package corresponding to the version number higher than the initial update version number in sequence for software update and upgrade, until the update reaches the The new version of the target software. 5.一种软件更新方法,其特征在于,所述方法应用于服务器,所述软件更新方法包括:5. A software update method, wherein the method is applied to a server, and the software update method comprises: 在终端侧的软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;After the software update and upgrade thread on the terminal side is started, the version configuration information of the currently running target software is obtained, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software; 将所述版本配置信息下发给所述终端,以供所述终端在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;根据所述本地版本号和所述中间版本号,以及多级更新策略触发对应的软件更新包下载请求;delivering the version configuration information to the terminal, so that the terminal can determine that the target software needs to be updated when the local version number is lower than the latest version number; according to the local version number and the The intermediate version number and the multi-level update strategy trigger the corresponding software update package download request; 接收所述终端发送的软件更新包下载请求,根据所述软件更新包下载请求发送对应的软件更新包至所述终端,以进行软件更新。Receive a software update package download request sent by the terminal, and send a corresponding software update package to the terminal according to the software update package download request to perform software update. 6.根据权利要求5所述的软件更新方法,其特征在于,所述在终端侧的软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息的步骤之前,还包括:6. The software updating method according to claim 5, characterized in that, before the step of acquiring the version configuration information of the currently running target software after the software updating and upgrading thread on the terminal side is started, the method further comprises: 当检测到上传新版本更新包后,检测版本更新次数是否到达预设的阈值;When it is detected that a new version update package is uploaded, it is detected whether the number of version updates reaches a preset threshold; 若版本更新次数高于所述版本更新次数阈值,则设定当前更新版本为中间版本,生成对应的中间版本的更新包,并在所述版本配置信息中写入对应的版本信息。If the number of version updates is higher than the threshold for the number of version updates, the current update version is set as an intermediate version, an update package of the corresponding intermediate version is generated, and the corresponding version information is written in the version configuration information. 7.根据权利要求5所述的软件更新方法,其特征在于,所述在终端侧的软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息的步骤之前,还包括:7. The software updating method according to claim 5, characterized in that, before the step of acquiring the version configuration information of the currently running target software after the software updating and upgrading thread on the terminal side is started, the method further comprises: 检测目标软件的当前最新版本更新包的大小是否超过预设的阈值,如果超过预设阈值,则在检测到下一个版本更新包上传后,将所述当前最新版本设置为中间版本;或者Detecting whether the size of the current latest version update package of the target software exceeds a preset threshold, and if it exceeds the preset threshold, after detecting that the next version update package is uploaded, set the current latest version as an intermediate version; or 在目标软件对外发行到最新版本的过程中,若检测到低于所述最新版本的其中一个或多个低版本的更新包的大小超过预设阈值,则将检测到的低版本设置为中间版本。During the process of releasing the target software to the latest version, if it is detected that the size of the update package of one or more lower versions lower than the latest version exceeds the preset threshold, the detected lower version is set as the intermediate version . 8.一种软件更新装置,其特征在于,所述软件更新装置包括:8. A software update device, wherein the software update device comprises: 信息获取模块,用于在软件更新升级线程启动后,获取当前运行的目标软件的版本配置信息,所述版本配置信息包括所述目标软件的本地版本号、最新版本号、至少一个中间版本号;an information acquisition module, configured to acquire version configuration information of the currently running target software after the software update and upgrade thread is started, where the version configuration information includes the local version number, the latest version number, and at least one intermediate version number of the target software; 确定模块,用于在所述本地版本号低于所述最新版本号时,确定所述目标软件需要更新;A determining module, configured to determine that the target software needs to be updated when the local version number is lower than the latest version number; 更新升级模块,用于根据所述本地版本号和所述中间版本号,以及多级更新策略下载对应的软件更新包,以进行软件更新。An update and upgrade module, configured to download a corresponding software update package according to the local version number, the intermediate version number, and the multi-level update strategy, so as to perform software update. 9.一种终端设备,其特征在于,所述终端设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的软件更新程序,所述软件更新程序被所述处理器执行时实现如权利要求1至4中任一项所述的软件更新的方法的步骤,或者5至7中任一项所述的软件更新的方法的步骤。9. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a software update program stored on the memory and executable on the processor, the software update program being executed by the When executed by the processor, the steps of the method for software updating according to any one of claims 1 to 4 or the steps of the method for software updating according to any one of claims 5 to 7 are implemented. 10.一种存储介质,其特征在于,所述存储介质中存储有软件更新程序,所述软件更新程序被处理器执行时实现如权利要求1至4中任一项所述的软件更新的方法的步骤,或者5至7中任一项所述的软件更新的方法的步骤。10. A storage medium, characterized in that, a software update program is stored in the storage medium, and when the software update program is executed by a processor, the method for software update according to any one of claims 1 to 4 is implemented steps, or steps of the software updating method described in any one of 5 to 7.
CN202210650326.3A 2022-06-10 2022-06-10 Software updating method, device, equipment and storage medium Active CN115098128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210650326.3A CN115098128B (en) 2022-06-10 2022-06-10 Software updating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210650326.3A CN115098128B (en) 2022-06-10 2022-06-10 Software updating method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115098128A true CN115098128A (en) 2022-09-23
CN115098128B CN115098128B (en) 2025-05-16

Family

ID=83290612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210650326.3A Active CN115098128B (en) 2022-06-10 2022-06-10 Software updating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115098128B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093650A (en) * 2023-08-15 2023-11-21 武汉安天信息技术有限责任公司 Data synchronization method, storage medium and terminal in weak network environment
CN117130627A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Accessories upgrade methods and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071839A1 (en) * 2003-09-25 2005-03-31 Curitel Communications, Inc. Communication terminal and communication network for partially updating software, software update method, and software creation device and method therefor
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof
CN104301383A (en) * 2014-09-05 2015-01-21 小米科技有限责任公司 Upgrading method, device and upgrading equipment
CN106502696A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of generation method of upgrade installation package and relevant apparatus
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN109445827A (en) * 2018-11-16 2019-03-08 网易(杭州)网络有限公司 A kind of method and device of game renewal, electronic equipment, storage medium
US20190155598A1 (en) * 2017-11-17 2019-05-23 Apple Inc. Techniques for updating a file using a multi-version patch file
CN110262827A (en) * 2019-05-20 2019-09-20 北京三快在线科技有限公司 Method, apparatus, storage medium and the electronic equipment of incremental update
CN110865828A (en) * 2018-08-28 2020-03-06 成都鼎桥通信技术有限公司 Data upgrading method, device, equipment and computer readable storage medium
CN111427596A (en) * 2020-03-12 2020-07-17 浙江大华技术股份有限公司 Software upgrading method and device and terminal equipment
WO2021147668A1 (en) * 2020-01-23 2021-07-29 华为技术有限公司 Software upgrading method and device
CN113326058A (en) * 2021-07-01 2021-08-31 苏州好玩友网络科技有限公司 Method, device, equipment and medium for updating version of application

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050071839A1 (en) * 2003-09-25 2005-03-31 Curitel Communications, Inc. Communication terminal and communication network for partially updating software, software update method, and software creation device and method therefor
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof
CN104301383A (en) * 2014-09-05 2015-01-21 小米科技有限责任公司 Upgrading method, device and upgrading equipment
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN106502696A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of generation method of upgrade installation package and relevant apparatus
US20190155598A1 (en) * 2017-11-17 2019-05-23 Apple Inc. Techniques for updating a file using a multi-version patch file
CN110865828A (en) * 2018-08-28 2020-03-06 成都鼎桥通信技术有限公司 Data upgrading method, device, equipment and computer readable storage medium
CN109445827A (en) * 2018-11-16 2019-03-08 网易(杭州)网络有限公司 A kind of method and device of game renewal, electronic equipment, storage medium
CN110262827A (en) * 2019-05-20 2019-09-20 北京三快在线科技有限公司 Method, apparatus, storage medium and the electronic equipment of incremental update
WO2021147668A1 (en) * 2020-01-23 2021-07-29 华为技术有限公司 Software upgrading method and device
CN111427596A (en) * 2020-03-12 2020-07-17 浙江大华技术股份有限公司 Software upgrading method and device and terminal equipment
CN113326058A (en) * 2021-07-01 2021-08-31 苏州好玩友网络科技有限公司 Method, device, equipment and medium for updating version of application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TA来了TA来了: "kubernets升级策略以及版本控制", Retrieved from the Internet <URL:https://blog.csdn.net/u010519674/article/details/107735198> *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117130627A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Accessories upgrade methods and electronic equipment
CN117130627B (en) * 2023-02-28 2024-05-17 荣耀终端有限公司 Fitting upgrading method and electronic equipment
CN117093650A (en) * 2023-08-15 2023-11-21 武汉安天信息技术有限责任公司 Data synchronization method, storage medium and terminal in weak network environment

Also Published As

Publication number Publication date
CN115098128B (en) 2025-05-16

Similar Documents

Publication Publication Date Title
CN109857548B (en) Storage space optimization method, storage space optimization device, computer equipment and storage medium
EP3147782A1 (en) Method and device for upgrading software
CN107463400B (en) Hot updating method of mobile application and terminal equipment
US20110265071A1 (en) Apparatus and Method for Loading and Updating Codes of Cluster-Based Java Application System
CN107291481B (en) Component updating method, device and system
CN103353845A (en) Method and device for uploading and pushing script
CN115098128A (en) Software updating method, device, equipment and storage medium
CN103324507A (en) Method and apparatus for updating terminal preset application program
CN108874884B (en) Data synchronization updating method, device and system and server equipment
KR101201276B1 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN109840096A (en) The installation method and device of operating system
CN106484454A (en) The processing method and processing device of difference AKU, upgrade method, system and device
US8769521B2 (en) Calendar aware adaptive patching of a computer program
CN105786636B (en) System repair method and device
CN104077161A (en) Client application updating method and device
CN113961346A (en) Data cache management and scheduling method and device, electronic equipment and storage medium
CN108572837A (en) Software upgrading method and device, readable storage medium and computer equipment
CN104572212A (en) Terminal updating system and updating method thereof
CN117707853A (en) Power-down data storage method, device, equipment and readable storage medium
CN108733444A (en) A kind of method for refreshing of the page, device, storage medium and mobile terminal
CN115640034B (en) Data storage method and device
CN104350476A (en) A version detection cycle adjustment method and device
CN114546522A (en) Application picture configuration method, device, electronic device and storage medium
CN116467344A (en) Data processing method, device, device, storage medium and computer program product
CN112217885A (en) Dynamic management method, device, equipment and storage medium for components

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
GR01 Patent grant
GR01 Patent grant