From e4261936904933ce5624172ddfafdf7f53aacffb Mon Sep 17 00:00:00 2001 From: philippe lhardy Date: Mon, 10 Jan 2022 15:55:52 +0100 Subject: [PATCH] ship default background in zip package - add static resources to zip package - cat background. --- specificdoit.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/specificdoit.sh b/specificdoit.sh index 6966d04..6f2120b 100644 --- a/specificdoit.sh +++ b/specificdoit.sh @@ -35,6 +35,9 @@ specific_run() create_zip_package() { dest=artloglaby/ + + # some static resources outside jar. + static_resources=lab/titou20.xpm if [[ -e $dest ]] then echo "[ERROR] $dest already exists ! move it away ">&2 @@ -49,7 +52,15 @@ create_zip_package() mkdir $dest/lab mkdir $dest/libs cp scripts/laby.sh $dest - + for sr in $static_resources + do + if [[ -f $sr ]] + then + cp $sr $dest/$sr + else + echo "[ERROR] expecting static resource $sr" >&2 + fi + done MAINJAR="" pushd dist/lib findmainjar