This is a simple desktop application developed based on wails, compatible with Linux, Windows and Mac, which can help you better maintain your local hosts configuration.
Based on go v1.21+, wails v2.8.2, nodejs v20.
Wails applications built for Windows have a runtime requirement on the Microsoft WebView2 Runtime. Windows 11 installs WebView2 by default, but some systems do not.
Run go install github.com/wailsapp/wails/v2/cmd/wails@latest
to install the Wails CLI.
To run in live development mode, run wails dev
in the project directory. This will run a Vite development
server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect
to this in your browser, and you can call your Go code from devtools.
To build a redistributable, production mode package, use wails build
.
Linux: hosts-switch-linux-amd64.deb, hosts-switch-linux-amd64
Windows: hosts-switch-windows-amd64, hosts-switch-amd64-installer.exe
MacOs: hosts-switch.pkg, hosts-switch.app.zip