Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
/ go-web-wrapper Public template

A simple template that wrap your static website into an executable file.

License

Notifications You must be signed in to change notification settings

fumiama/go-web-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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