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 (發布於 )
用户参与
星數401
關注者數17
派生數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.