user friendly electron auto updates. Contribute to davidwinter/electron-auto-update development by creating an account on GitHub.
Create a new release for your Github repository matching the version of your app and name the release v.2.0.0. Upload release files: auto-update-electron-app-win-2.0.0.exe, auto-update-electron-app-win-2.0.0.exe.blockmap & latest.yml for windows, files will be named similiar for each ...
src/main下新建一个update.js(其他位置也行,回头我贴个完整的开源案例出来) import { dialog } from 'electron'; import { autoUpdater } from 'electron-updater'; import http from 'http'; // see https://www.electron.build/auto-update#events autoUpdater.on('update-downloaded', (info) => { if ...
使用GitHub来发布应用程序。设置provider: github时,需要提供GitHub仓库的相关信息,例如repo、owner和GitHub Personal Access Token。 publish: provider: github repo: owner/repo owner: owner token: $GITHUB_TOKEN Generic (generic): 使用通用的发布提供者,这通常用于自定义或私有的发布流程。需要指定发布的目标地址...
博主主攻后端,对于electron自动升级也是费了非常多的事儿,github、gitee也下载了很多源码。发现案例可能好用,但是很难融入公司的项目。 要注意的点如下: 1.Electron版本问题。 2.Electron-Vue版本问题。(我手里的项目使用的electron-vue版本为"vue-electron": "^1.0.6",对应的electron是 "electron": "^2.0.4",...
这次我先记录下最近用的这个electron-builder的auto update。由于是开源项目,项目中我用的是github ...
autoupdate-backend -package.json -index.js -node_modules -releases -latest 此时latest文件夹里面还是空的,之后我们开始打包,将打包出来的三个文件放在此处即可。 electron-packager 在myapp下安装: npm install electron-packager --save-dev npm install electron-packager -g ...
provider:github# 选择github平台 owner:apache# github用户名 repo:dubbo# github仓库名 # 更新日志 releaseInfo: releaseNotes:| 这是更新日志 测试测试 工程代码修改 我是基于 TypeScript 的写法,如果需要 JavaScript 的写法,请参考文档:Auto-Update和官方案例 ...
A free, fast, and reliable CDN for @el3um4s/renderer-for-electron-auto-updater. Allow the renderer to update electron apps
updateConfigPath = path.join(__dirname, '../dev-app-update.yml') } export default () => { let win = null //设置自动下载 autoUpdater.autoDownload = false // 检测是否有新版本 autoUpdater.checkForUpdates() autoUpdater.on('checking-for-update', res => { log.info("获取版本信息:" + res...