Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asticode/go-astilectron-demo
Discover the power of Astilectron through a demo app
https://github.com/asticode/go-astilectron-demo
astilectron demo go golang
Last synced: 2 months ago
JSON representation
Discover the power of Astilectron through a demo app
- Host: GitHub
- URL: https://github.com/asticode/go-astilectron-demo
- Owner: asticode
- License: mit
- Archived: true
- Created: 2017-08-20T06:52:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-16T13:57:18.000Z (11 months ago)
- Last Synced: 2024-11-01T23:02:58.624Z (3 months ago)
- Topics: astilectron, demo, go, golang
- Language: Go
- Homepage:
- Size: 1.08 MB
- Stars: 403
- Watchers: 19
- Forks: 83
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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).
![screenshot](screenshot.png)
# Warning
This project is not maintained anymore.
# Step 1: install the demo
Run the following commands:
$ go get -u github.com/asticode/go-astilectron-demo/...
$ rm {root_of_this_repo}/bind.go# 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-bundlerGo 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 {root_of_this_repo}
$ astilectron-bundler# 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**.