# electron_starter **Repository Path**: yuncommunity/electron_starter ## Basic Information - **Project Name**: electron_starter - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-03 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README This package is a demo of an [astilectron](https://github.com/asticode/go-astilectron) app that uses the [bootstrap](https://github.com/asticode/go-astilectron-bootstrap) and the [bundler](https://github.com/asticode/go-astilectron-bundler). It's also the subject of this [blog post](https://medium.com/@social_57971/how-to-add-a-gui-to-your-golang-app-in-5-easy-steps-c25c99d4d8e0). # Step 1: install the demo Run the following commands: $ git clone --depth=1 --branch=master https://gitee.com/yuncommunity/electron_starter.git $ rm -rf ./electron_starter/.git # Step 2: install the bundler Run the following command: $ go get -u github.com/asticode/go-astilectron-bundler/... $ go install github.com/asticode/go-astilectron-bundler/astilectron-bundler Go get and build the binary. And don't forget to add `$GOPATH/bin` to your `$PATH`. # Step 3: bundle the app for your current environment Run the following commands: $ cd electron_starter $ astilectron-bundler $ go run main.go bind*.go # Step 4: test the app The result is in the `output/-` folder and is waiting for you to test it! # Step 5: bundle the app for more environments To bundle the app for more environments, add an `environments` key to the bundler configuration (`bundler.json`): ```json "environments": [ {"arch": "amd64", "os": "linux"}, {"arch": "386", "os": "windows"} ] ``` and repeat **step 3**.