go-astilectron 演示

通过演示应用发现 Astilectron 的力量。(Discover the power of Astilectron through a demo app)

Github星跟踪图

go-astilectron 演示

这个包是一个使用 bootstrapbundlerastilectron 应用的演示。

这也是这篇 博文 的主题。

screenshot

第一步:安装演示

运行以下命令:

$ go get -u github.com/asticode/go-astilectron-demo/...
$ rm $GOPATH/src/github.com/asticode/go-astilectron-demo/bind.go

第二步:安装 bundler

运行以下命令:

$ go get -u github.com/asticode/go-astilectron-bundler/...
$ go install github.com/asticode/go-astilectron-bundler/astilectron-bundler

Go 构建二进制文件。别忘了把 $GOPATH/bin 添加到你的 $PATH 中。

运行以下命令:

$ cd $GOPATH/src/github.com/asticode/go-astilectron-demo
$ astilectron-bundler

第四步:测试应用程序

结果在 output/<your os>-<your arch> 文件夹中,正等着你来测试呢!

第五步:为更多的环境捆绑应用程序

要为更多环境捆绑应用程序,请在捆绑程序配置(bundler.json)中添加一个环境键。

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

并重复步骤三。


(The first version translated by vz on 2020.08.22)

主要指标

概览
名称与所有者asticode/go-astilectron-demo
主编程语言Go
编程语言Go (语言数: 4)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2017-08-20 06:52:57
推送于2024-02-16 13:57:18
最后一次提交2024-02-16 14:57:06
发布数22
最新版本名称v0.6.16 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数403
关注者数18
派生数81
提交数59
已启用问题?
问题数79
打开的问题数14
拉请求数3
打开的拉请求数1
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

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

Step 1: install the demo

Run the following commands:

$ go get -u github.com/asticode/go-astilectron-demo/...
$ rm $GOPATH/src/github.com/asticode/go-astilectron-demo/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 $GOPATH/src/github.com/asticode/go-astilectron-demo
$ 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.