Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

基于Electron框架搭建的桌面应用项目,包括目录结构设计、自动构建和软件升级等要点。

NotificationsYou must be signed in to change notification settings

xiaoping6688/electron-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于Electron框架:提供了一个能通过 JavaScript 和 HTML 创建桌面应用的平台,同时集成 Node 来授予网页访问底层系统的权限。

  • 本地构建、方便开发和调试
  • 开发环境和应用分离,便于打包
  • 软件依赖环境自动下载,nno Setup 打包 exe(build/setup-win.iss)
  • 软件升级检查(将upgrade.json文件传至服务器)
  • 支持Mac下打包和运行window软件(brew install wine --devel)

注: 上面使用Inno打包方式已经过时,请使用'electron-updater'实现客户端升级功能,热更新请参考Electron 在线热升级方案

Build Setup @see package.json#scripts

# install dependencies (npm install -g cnpm --registry=https://registry.npm.taobao.org)npm run installall# start client for developmentnpm start# build for production with win32npm run win32:dev/simu/prod# build for production with win64npm run win64:dev/simu/prod# build for production with macnpm run mac:dev/simu/prod# check update for npm packages, please install 'npm install npm-check-updates -g' at firstnpm run update

For OS X Users: If you getFailed to start Cocoa app main loop, you need to upgrade wine to the latest devel

brew install wine --devel

注:目前通过‘npm run win64’等自动编译的软件不支持中文名(setup-win.iss -> MyAppName),可通过‘npm run pack64’等先打包再运行dist/iss文件启动InnoSetup-Unicode手动编译。

About

基于Electron框架搭建的桌面应用项目,包括目录结构设计、自动构建和软件升级等要点。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp