Standalone build/development pipeline for Electron with a Vue.js frontend.
electron-vue-builder
is a CLI tool that comes packaged with everything you need to build and develop an Electron app with a Vue.js frontend. Why? So you can unbloat your project from extraneous build scripts and dev dependencies and focus on making your product awesome.
Notable features:
- Hot module reloading with Webpack dev server
- Company-wide ESLint config
- Multilingual setup
- Client-side router setup
- Continuous integration setup with CircleCI
- Auto-publishing via GitHub releases
- Auto-updating for distributed apps
Follow these steps to quickly set up a project built with electron-vue-builder
and create your first release:
- Generate the project with
vue-cli
, install dependencies and run the dev server:$ vue init andrewscwei/electron-vue-builder#<release_tag> <project_dir> --clone $ cd <project_dir> $ yarn $ yarn dev
- Set up CircleCI:
- Push your project to GitHub
- Log in to CircleCI dashboard
- Projects > Add Project > Find the GitHub repo for your project > Setup project > Start building
- In your project settings > Checkout SSH keys > Add user key
- In your project settings > Environment Variables > Create the following variables:
GH_TOKEN
: GitHub access token (for permission to create releases in a private repo)CSC_LINK
: macOS code sign certificatebase64
stringCSC_KEY_PASSWORD
: Password to unlockCSC_LINK
WIN_CSC_LINK
: Windows code sign certificatebase64
stringWIN_CSC_KEY_PASSWORD
: Password to unlockWIN_CSC_LINK
- Trigger rebuild on CircleCI (your first build probably failed). Once complete, your app create a drafted release in its repo. Note that it is still a draft. Edit it to make it an official release.