go-astilectron 演示

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

Github stars Tracking Chart

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)

Main metrics

Overview
Name With Ownerasticode/go-astilectron-demo
Primary LanguageGo
Program languageGo (Language Count: 4)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2017-08-20 06:52:57
Pushed At2024-02-16 13:57:18
Last Commit At2024-02-16 14:57:06
Release Count22
Last Release Namev0.6.16 (Posted on )
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count403
Watchers Count18
Fork Count81
Commits Count59
Has Issues Enabled
Issues Count79
Issue Open Count14
Pull Requests Count3
Pull Requests Open Count1
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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.