Skip to content

Commit

Permalink
🎨 (update README and robo.yml)
Browse files Browse the repository at this point in the history
  • Loading branch information
patarapolw committed Aug 31, 2020
1 parent b2efd5c commit e0390bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ I learnt this from [pywebview](https://pywebview.flowrl.com/guide/security.html)

Please see [custom.go](/custom.go). The easiest way is to create `config.json` alongside the built `webview-server[.exe]`.

## Building

You can also build for your platform, or multiple platforms at once -- take a peek inside [robo.yml](/robo.yml)

Note that executables in macOS can also run in windowed mode (no console), by renaming the extension to `*.app`. No need to make a folder of `*.app/`.

[`darwin`](https://en.wikipedia.org/wiki/Darwin_%28operating_system%29) binaries can used for macOS, although not built natively on macOS.

## Open without Chrome

You can also open from Terminal with
Expand Down
4 changes: 4 additions & 0 deletions robo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ build-all:
-ldflags="-H windowsgui" \
-targets=windows/* \
{{.repo}}
$(go env GOPATH)/bin/xgo \
-targets=darwin/amd64 \
{{.repo}}
docker-build:
command: |
for arch in amd64 i386
Expand Down

0 comments on commit e0390bf

Please sign in to comment.