Closed rafaga closed 1 week ago
Thank you for reaching out, will try to fix the error messages soon.
As for your issue, seems like it maybe the resources paths are incorrect? you have your icons specified as ../assets/icon01-256.png
but then in resources they are assets/icon01-*
, I suppose resources should be ../assets/icon01-*
as well. Might be helpful if you provide your repo structure.
I tried your suggestion, yet no success. Thank you for taking some time in solving this issue
could you share the repo with the issue or a simple replica of it so I can take a better look?
This is the repository
I can see two issues here:
../
where it should be just ./
as these files all reside next to the config.You're using a packager.json
config file and when cargo-packager
sees a dedicated config file, it can't tell it is a rust project or not and so it doesn't set the outDir
value automatically, so you need to add "outDir": "target/release"
(the path where cargo outputs your executable) or move your config to Cargo.toml
under [package.metadata.packager]
key like this https://github.com/crabnebula-dev/cargo-packager/blob/2ad7706a3c8929dcd50a220c98c2c29032fdf187/examples/egui/Cargo.toml
I am not sure if we can automatically detect if it is a Rust project with a dedicated config, but as a last resort we can add an option in config to explicitly tells us, maybe "isRust": true
or something.
OK thank you for the feedback, I will make the suggested changes. Returning to the issue there is any way to make the error messages more explicit and helpful, because it is not feasible to debug cargo-packager every time an error like this appears.
Ok, it runs but ... in the config file in the repo I'm Using Wix Toolkit
, and builds the installer on NSIS , nsis
configuration part has null
value. Why ?
wix installer is not built by default, set "formats": ["wix", "nsis", "app", ...etc ]
in the config
I'm trying to build packages on windows and macOS, when I ran the command
cargo packager
on project directorythe following error is shown on terminal
When I used the
--verbose
flag, the error message is not better in terms of informationI'm using
packager.json
with the following content:There is any way to get more helpful error messages?