💥 fix(scripts/release): wrong gresource target

This commit is contained in:
retrozinndev
2025-08-11 12:37:39 -03:00
parent 8bea6e1fab
commit e82eebca91
+3 -3
View File
@@ -1,7 +1,6 @@
set -e
outdir="./build/release"
gresource_file='$XDG_LOCAL_HOME/colorshell/resources.gresource' # send literal variable name, so it's interpreted in the shell rather than in the build
while getopts o:r:h args; do
case "$args" in
@@ -16,7 +15,7 @@ while getopts o:r:h args; do
colorshell's automated release-build script.
options:
-r \$file: gresource's target path (shell-only, file is kept in \$output. default: \$XDG_LOCAL_HOME/colorshell/resources.gresource)
-r \$file: gresource's target path (shell-only, file is kept in \$output. default: \$XDG_DATA_HOME/colorshell/resources.gresource)
-o \$path: build output path (default: \`./build/release\`)
-h: show this help message"
exit 0
@@ -24,4 +23,5 @@ options:
esac
done
pnpm build -o "${outdir:-./build/release}" -b -r "${gresource_file:-\$XDG_LOCAL_HOME/colorshell/resources.gresource}"
# send literal variable name, so it's interpreted in the shell rather than in the build
pnpm build -o "${outdir:-./build/release}" -b -r "${gresource_file:-\$XDG_DATA_HOME/colorshell/resources.gresource}"