This is the official Wails Svelte-TS template.
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
.
./frontend/public/input
directorygo run dev/dev.go import
- this will iterate over all images in input
directory and parse them./frontend/public/input
and place them to .frontend/public/suspects
Sha256 sums are used to prevent duplicates. Also UUID is taken from the sha256 filename (and not generated) to ensure Suspects have same UUIDs across all game instances. This way statistics can be made from multiple computers.