- include webui via CID instead of via git submodule
- include webui via car file during pre-build hook
go install github.com/wailsapp/wails/v2/cmd/wails@latest
See https://wails.io/docs/gettingstarted/installation
wails dev
The first run will take a long time since the ipfs/ipfs-webui package has so many dependencies to install.
To build a redistributable, production mode package, use wails build
.
wails is weird.. I finally got this figured out by using npx --yes serve -u build
as the "frontend:dev:watcher"
setting.
You may want to follow https://gist.github.com/int128/e0cdec598c5b3db728ff35758abdbafd as mentioned by https://wails.io/docs/guides/application-development#external-dev-server
Wails seems to leave processes and file handles open.. without a restart, the following worked for a quick fix:
ulimit -n 10240
Example
Building application for development...
- No Install command. Skipping.
- Compiling frontend:
You can try to do wails dev -v 2
to see more info, but basically, if you set a non-exiting command (npm run start
) for the wails.json
file's frontend:dev
command, wails will wait, the same as you would in your terminal, when you run that command. You should use a dev oriented build command in that slot, which is basically npm run build
for the ipfs-webui project.