electron_package's Introduction
基于Electron生成window打包exe #### 大概说明如下 - [x] 自动启动 - [x] 版权信息配置 - [x] 自定义图标配置 - [x] 自定义安装目录 #### 修改位置如下: 1. 修改`main.js` 文件 - 1. `url` 跳转链接 - 2. `appName` 软件名 - 3. 调整自动启动 `openAtLogin` - 4. `updateUrl` 自动更新链接 2. 修改 `package.json`文件 - 1. `name` 打包路径目录名 - 2. `productName` exe名 - 3. `shortcutName` 桌面快捷图标 - 4. `icon` 图标 - 5. `url` 修改更新链接 - 6. `version` 版本号 #### 运行打包 运行 `npm run dist` #### 更新 1. 改变package.json中的version属性, 例如:改为 `version: "1.0.1"` (之前为1.0.0) 2. 再次执行electron-builder打包, 将新版本latest.yml文件和exe文件放到package.json中`build -> publish`中的url对应的地址下 3. 在应用中触发更新检查, `electron-updater`自动会通过对应url下的yml文件检查更新
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.