All Projects → ganyouyin → electron-autoupdate-scaffold

ganyouyin / electron-autoupdate-scaffold

Licence: other
Windows 下支持自动更新的 Electron 应用脚手架

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to electron-autoupdate-scaffold

Electron Builder
A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
Stars: ✭ 11,653 (+19991.38%)
Mutual labels:  auto-update, electron-builder
BrewUp
BrewUp - macOS Auto Update Homebrew
Stars: ✭ 22 (-62.07%)
Mutual labels:  auto-update
Electron Metamask Boilerplate
Easily create a desktop version of your dApp using Electron (Muon) + MetaMask.
Stars: ✭ 67 (+15.52%)
Mutual labels:  electron-builder
Picodeploy
Deploy Pico-8 Carts as Standalone Applications on Desktop 🖥️(Electron) and Mobile 📱(Ionic) 📦👾
Stars: ✭ 153 (+163.79%)
Mutual labels:  electron-builder
Vite Electron Builder
Electron app boilerplate based on Vite. TypeScript + Vue/React/Angular/Svelte/Vanilla
Stars: ✭ 96 (+65.52%)
Mutual labels:  electron-builder
Youtube Dl Gui
A cross-platform GUI for youtube-dl made in Electron and node.js
Stars: ✭ 183 (+215.52%)
Mutual labels:  electron-builder
Csgo Map Veto
An application to do map veto for the game Counter-Strike Global Offensive.
Stars: ✭ 24 (-58.62%)
Mutual labels:  electron-builder
Lector
📖 A simple PDF Reader built using Electron and PDF.js
Stars: ✭ 145 (+150%)
Mutual labels:  electron-builder
Infinitex
A LaTeX and WYSIWYG editor with academic search functionality and other helpful tools
Stars: ✭ 145 (+150%)
Mutual labels:  electron-builder
Invidious-Updater
Automatic install and update script for Invidious
Stars: ✭ 181 (+212.07%)
Mutual labels:  auto-update
Fable Elmish Electron Material Ui Demo
Complete boilerplate for Electron apps using Fable and Elmish with hot module reloading, time-travel debugging, etc.
Stars: ✭ 101 (+74.14%)
Mutual labels:  electron-builder
React Typescript Electron Sample With Create React App And Electron Builder
React-TypeScript-Electron sample with Create React App and Electron Builder
Stars: ✭ 143 (+146.55%)
Mutual labels:  electron-builder
Electron Vue
An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
Stars: ✭ 14,610 (+25089.66%)
Mutual labels:  electron-builder
Electrate
Quick and Easy Electron + React Boilerplace
Stars: ✭ 80 (+37.93%)
Mutual labels:  electron-builder
Xam.Plugin.AutoUpdate
Xamarin Forms plugin that auto updates your Android or UWP sideloaded application.
Stars: ✭ 22 (-62.07%)
Mutual labels:  auto-update
Lepton
💻 Democratizing Snippet Management (macOS/Win/Linux)
Stars: ✭ 9,067 (+15532.76%)
Mutual labels:  electron-builder
Vue Objccn
🔥 Use Vue.js to develop a cross-platform full stack application / 用 Vue.js 开发的跨三端应用
Stars: ✭ 1,993 (+3336.21%)
Mutual labels:  electron-builder
electron-auto-updater-example
Electron auto updater example
Stars: ✭ 39 (-32.76%)
Mutual labels:  electron-builder
audius
🎧 A cross-platform app for downloading songs from YouTube and Spotify
Stars: ✭ 19 (-67.24%)
Mutual labels:  auto-update
Bilibilivideodownload
PC端下载bilibili视频
Stars: ✭ 223 (+284.48%)
Mutual labels:  electron-builder

Windows 下支持自动更新的 Electron 应用脚手架

使用

  1. 下载应用

    # 工作目录下,比如 d/workspace
    git clone https://github.com/ganyouyin/electron-autoupdate-scaffold.git
    npm i
  2. 运行应用

    cd electron-autoupdate-scaffold
    npm start
  3. 打包应用

    # 在 electron-autoupdate-scaffold 目录下
    npm run build

    执行后会在控制台输入打包进度的日志:

    npm run build
    
    > [email protected] build D:\honey\electron-autoupdate-scaffold
    > electron-builder -w
    
    • electron-builder version=20.15.0
    • loaded configuration file=package.json ("build" field)
    • writing effective config file=dist\electron-builder-effective-config.yaml
    • no native production dependencies
    • packaging platform=win32 arch=x64 electron=2.0.1 appOutDir=dist\win-unpacked
    • default Electron icon is used reason=application icon is not set
    • building target=nsis file=dist\electron-autoupdate-scaffold Setup 0.0.1.exe archs=x64 oneClick=true
    • building block map blockMapFile=dist\electron-autoupdate-scaffold Setup 0.0.1.exe.blockmap

    第一次运行会比较慢,运行结束后会在当前目录下新增一个 dist 文件夹,dist 的目录结构如下:

    |- dist
      |- win-unpacked
      |- electron-autoupdate-scaffold Setup.exe
      |- electron-autoupdate-scaffold Setup.exe.blockmap
      |- electron-builder-effective-config.yaml
      |- latest.yml

    win-unpacked 下是可执行文件。

  4. 运行自动更新后台

    # 工作目录下,比如 d/workspace
    git clone https://github.com/ganyouyin/electron-autoupdate-server.git
    npm i
    npm start

    将之前打包出来的 dist 目录下的 4 个文件(除了 win-unpacked)拷贝到这边的 packages/win32 下(需要手动新建目录 packages/win32)。

  5. 测试自动更新

    • 进入 electron-autoupdate-scaffold/dist/win-unpacked 找到可执行文件,双击运行,看到打开窗口的控制台中依次输出:

       checking-for-update
       update-not-available
      
    • 进入 electron-autoupdate-scaffold,打开 package.json,把版本号改小,重新打包后再次进入 dist/win-unpacked 目录,运行 exe,看到打开窗口的控制台中依次输出:

       checking-for-update
       update-available
      

      并且出现弹窗提示「现在更新?」。

基于脚手架开发

该脚手架的自动更新实现基于 electron-builder,需要了解更多功能的请点这里

从 github 下载后文件夹目录如下:

|- electron-autoupdate-scaffold
  |- main.js
  |- src
    |- index.html
  |- package.json
  |- package-lock.json
  |- README.md
  |- .gitignore

其中 main.js 为主进程文件,src 中为渲染进程文件。

支持

任何使用问题请戳这里

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].