1
0
mirror of https://github.com/fumiama/go-web-wrapper.git synced 2026-06-05 00:32:43 +08:00
源文雨 28dca5ac1e init
2025-07-16 22:59:58 +09:00
2025-07-16 22:59:58 +09:00
2025-07-16 22:59:58 +09:00
2025-07-16 22:59:58 +09:00
2025-07-16 22:59:58 +09:00
2025-07-16 10:33:54 +09:00
2025-07-16 22:59:58 +09:00
2025-07-16 22:59:58 +09:00
2025-07-16 22:59:58 +09:00

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
      GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -H=windowsgui" -trimpath -o web.exe
      
    • Unix-Like
      # 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
      
Languages
Go 100%