No description
| .forgejo/workflows | ||
| pkg | ||
| winlib | ||
| .gitignore | ||
| .golangci.yml | ||
| go.mod | ||
| go.sum | ||
| History.md | ||
| main.go | ||
| Makefile | ||
| README.md | ||
| renovate.json | ||
Luzifer / Native-Web
This project contains a very lightweight Go webserver with webview bindings and a SQLite database interface to put HTML / JS applications into a single native binary having access to a SQLite database for storing data.
How to use
Very simple spoken: Put your HTML / JS into the pkg/frontend/assets directory, make sure there is an index.html as starting point and then make build / make build_windows the application.
A bit more complex: Set up your project, add this repo as a git submodule, let your frontend compile into pkg/frontend/assets and then build it.
See main.go for variables to override during build to modify window title, version, productID (and therefore the storage path), …
go build \
-ldflags "-X main.productID=io.luzifer.myproject -X main.version=v1.0.0 -X main.windowTitle=Foobar" \
-mod=readonly \
-modcacherw \
-trimpath