📦 build: implement automated release-build script
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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
|
||||
o)
|
||||
outdir=${OPTARG}
|
||||
;;
|
||||
r)
|
||||
gresource_file=${OPTARG}
|
||||
;;
|
||||
h)
|
||||
echo "\
|
||||
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)
|
||||
-o \$path: build output path (default: \`./build/release\`)
|
||||
-h: show this help message"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
pnpm build -o "${outdir:-./build/release}" -b -r "${gresource_file:-\$XDG_LOCAL_HOME/colorshell/resources.gresource}"
|
||||
Reference in New Issue
Block a user