"trunk build" needs additional changes before uploading to itch.io on MacOS
OS: MacOS Processor: M2 Comfy Version: 0.3.1 from crates.io
After following the guide here: https://comfyengine.org/book/releasing/ I was unable to run my game on itch.io. It showed a blank screen. Using inspect element I found that it was reporting the error: 403 - Resource not found.
Steps to upload to itch.io on MacOS:
- Place the
index.htmlfile in same directory ascargo.toml: https://github.com/darthdeus/comfy-demos/blob/master/bitmob/index.html trunk build --release --features comfy/ci-release- Inside the
dist/folder, edit the newly generatedindex.htmlfile. - Prepend all
*.jsand*.wasmfile directories with.(dot/full-stop) - Save
- Zip
dist/folder and upload to itch.io
I'm not sure if this additional step is only required for MacOS.
I'm placing this issue here so we can find out if this is an error or just something that needs to be documented.
I can relate to some of these issues for ldjam.
You can use Trunk.toml to override default behavior: https://trunkrs.dev/configuration/ https://github.com/trunk-rs/trunk/blob/main/Trunk.toml
example: https://github.com/JosePedroDias/ld55/blob/post-compo-improvements/Trunk.toml