mirror of
https://github.com/fumiama/go-web-wrapper.git
synced 2026-06-08 12:00:32 +08:00
init
This commit is contained in:
17
README.md
Normal file
17
README.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# go-web-wrapper
|
||||
A simple template that wrap your static website into an executable file.
|
||||
|
||||
## Quick Start
|
||||
1. Place `dist.zip` at project root dir (include all your website files like index.html, etc.).
|
||||
2. Build project.
|
||||
- Windows
|
||||
```bash
|
||||
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -H=windowsgui" -trimpath -o web.exe
|
||||
```
|
||||
- Unix-Like
|
||||
```bash
|
||||
# MacOS ARM
|
||||
GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o web_darwin_arm64
|
||||
# Linux AMD64
|
||||
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o web_linux_amd64
|
||||
```
|
||||
Reference in New Issue
Block a user