Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Updating method and system based on Electron

An update method and program update technology, applied in the computer field, can solve problems such as inability to update programs, slow program updates, and waste of bandwidth

Active Publication Date: 2021-03-09
SHENZHEN ZHIYAO TECH CO LTD
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the case of no network, the program update cannot be performed, which cannot realize the rapid update of the program in some working environments with higher security levels;
[0007] In the case of high network delay, the program update is slow, and there may be a problem of delay in updating, which may occur between multinational departments of multinational enterprises;
[0008] Many updates of electron are to update the interface developed based on front-end technology, internal data processing logic, etc. The content that needs to be updated may only be tens of hundreds of kb, and does not involve the modification of the framework, but the current update plan is for the entire client. The program is fully updated, and the smallest installation package is 50 to 60Mb. When a large number of download requests exist, bandwidth is wasted, and the content of the framework will reinstall the same content again

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Updating method and system based on Electron
  • Updating method and system based on Electron

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Such as figure 1 As shown, the update method based on Electron in an embodiment of the present invention includes:

[0040] Step S101, program startup: receiving a startup command, calling a program in the main process;

[0041] Step S103, patch detection: check whether a patch file exists or is imported under the directory of the current program;

[0042] Step S105, version detection: if a patch file is detected, call the version management of the main process to check the current version number;

[0043] Step S107, container update judgment: according to the version number of the patch file, if it is detected that there is an updated patch file, it is judged whether the container needs to be updated;

[0044] Step S109, testing: if there is no need to update the container, load the latest patch file, call the patch test of the rendering process, and execute the test script of the patch file;

[0045] Step S111, update: if the test passes, update the current program...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an Electron-based updating method and system. The method comprises the following steps: receiving a starting instruction, and calling a program in a host process; checking whether a patch file exists or is imported under the directory of the current program; and if it is detected that the patch file exists, calling version management of the main process check the current version number. According to the version number of the patch file, if it is detected that the patch file needs to be updated, whether a container needs to be updated is judged; if the container does notneed to be updated, loading the latest patch file, calling the patch test of the rendering process, and executing the patch file test script; if the test is passed, upgrading the version number of the current program, backing up and replacing the built-in program, executing the built-in program, and updating the program. According to the method and system, the latest version patch file is found through version detection, the function integrity of the patch is verified through testing, the built-in program of the rendering process is updated and executed after verification is passed, the client does not need to be restarted, a new client installation package does not need to be installed, and the problem of frequent updating of a user is solved.

Description

technical field [0001] The invention relates to the field of computers, in particular to an update method and system based on Electron. Background technique [0002] At present, there are two commonly used ways to update the client program developed based on Electron: [0003] The user manually downloads the new installation package. The Windows platform corresponds to the .exe file, and the MacOS platform corresponds to the .dmg file. After the new installation program is executed, the new program will replace the existing old version. [0004] Or build the application installation package through electron-builder, and use electron-builder's hot update scheme to check whether there is a new version update on the server side when the program starts, and download the new version on the server through the internal network module when there is an update After the download is complete, the installation and restart will be performed automatically to realize the hot update of the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/656G06F8/71G06F9/445G06F21/51G06F11/14G06F9/455
CPCG06F8/71G06F9/44505G06F9/45558G06F11/1433G06F21/51G06F8/656
Inventor 韩非马健温书豪赖力鹏
Owner SHENZHEN ZHIYAO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products