Skip to content

这是一个使用electron和electron-builder对前端静态文件进行打包成exe文件的模板

License

Notifications You must be signed in to change notification settings

zhanghaifei1997/electron-builder-templete

Repository files navigation

electron-builder-templete

Clone and run for a quick way to see Electron in action.

This is a minimal Electron application based on the Quick Start Guide within the Electron documentation.

A basic Electron application needs just these files:

  • package.json - Points to the app's main file and lists its details and dependencies.
  • main.js - Starts the app and creates a browser window to render HTML. This is the app's main process.
  • index.html - A web page to render. This is the app's renderer process.
  • preload.js - A content script that runs before the renderer process loads.

You can learn more about each of these components in depth within the Tutorial.

To Use

To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/zhanghaifei1997/electron-builder-templete.git

# Go into the repository
cd electron-builder-templete

# Install dependencies
npm/yarn install

# Run the app
npm/yarn start

#build the app

npm/yarn run electron:build

Note: If you're using Linux Bash for Windows, see this guide or use node from the command prompt.

Resources for Learning Electron

License

本示例是利用electorn官方的模板 + vue-element-plus-admin打包后的dist包 dist包就是大家真实需要打包的项目文件可自行替换成自己的项目文件。

CC0 1.0 (Public Domain)

About

这是一个使用electron和electron-builder对前端静态文件进行打包成exe文件的模板

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published