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

Electron-based update method and system

An update method and a patch file technology, applied in the computer field, can solve problems such as slow program updates, inability to perform program updates, and inability to achieve fast program updates, etc.

Active Publication Date: 2021-06-22
SHENZHEN ZHIYAO TECH CO LTD
View PDF10 Cites 0 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
  • Electron-based update method and system
  • Electron-based update method and system

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

An update method and system based on Electron includes: receiving a startup command, calling a program in the main process; checking whether a patch file exists or is imported into the directory of the current program; if a patch file is detected, calling the version management of the main process Check the current version number; according to the version number of the patch file, if an updated patch file is detected, determine whether the container needs to be updated; 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 patch file test script; If the test passes, upgrade the current program version number, back up and replace the built-in program, execute the built-in program, and update the program; the above method and system find the latest version of the patch file through version detection, verify the functional integrity of the patch through the test, and pass the verification. Update, the built-in program that executes the rendering process, the client does not need to be restarted, and there is no need to install a new client installation package, which solves the problem of frequent updates by users.

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 Patents(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