Closed jason-crabnebula closed 1 month ago
@amr-crabnebula shouldn't we create the out-dir upfront instead of making this change? what's your opinion?
yeah we should create the out-dir
upfront
Hmm, it creates the dir before invoking create_icns_file()
. Maybe we should canonicalize the new created folder path on line 1800?
https://github.com/crabnebula-dev/cargo-packager/blob/937de616aacac41c8e104e0d6abba4929e60b85a/crates/packager/src/config/mod.rs#L1796-L1801
@jason-crabnebula sounds good
When
out-dir
is provided but does not exist,create_icns_file()
returns a relative path (out/dir/icon.icns). Calling thecreate-dmg
script will change the working dir toout-dir
. When copying the volume icon, the icon does not exist at the path (out/dir/out/dir/icon.icns).