asticode / go-astilectron-demo

Discover the power of Astilectron through a demo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This package is a demo of an astilectron app that uses the bootstrap and the bundler.

It's also the subject of this blog post.

screenshot

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-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 {root_of_this_repo}
$ astilectron-bundler

Step 4: test the app

The result is in the output/<your os>-<your arch> 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):

"environments": [
  {"arch": "amd64", "os": "linux"},
  {"arch": "386", "os": "windows"}
]

and repeat step 3.

About

Discover the power of Astilectron through a demo app

License:MIT License


Languages

Language:Go 34.3%Language:JavaScript 31.9%Language:CSS 27.3%Language:HTML 6.6%