summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjak1 <mike.wollmann@gmail.com>2021-03-16 18:27:03 +0000
committerjak1 <mike.wollmann@gmail.com>2021-03-16 18:27:03 +0000
commitd9b7af98d5234e3d1863f0aea237e62960f3a8ac (patch)
treee83279723e93388e043364cb7d9163de2cbd72cb
parent9b6a1bb23cafdec63f40bfe2cf219c1799c80677 (diff)
downloaddocker-windows-builder-d9b7af98d5234e3d1863f0aea237e62960f3a8ac.tar.gz
docker-windows-builder-d9b7af98d5234e3d1863f0aea237e62960f3a8ac.tar.bz2
docker-windows-builder-d9b7af98d5234e3d1863f0aea237e62960f3a8ac.tar.xz
docker-windows-builder-d9b7af98d5234e3d1863f0aea237e62960f3a8ac.zip
- split runtime & debug zip
- added checksum files
-rw-r--r--manaplus.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/manaplus.sh b/manaplus.sh
index 0bc7d9f..130c27e 100644
--- a/manaplus.sh
+++ b/manaplus.sh
@@ -39,6 +39,7 @@ make_portable(){
root_dir="/manaplus/"
files_list=("build/tmp/src/manaplusd.exe build/tmp/src/manaplus.exe packaging/windows/portable.xml build/tmp/data/ build/tmp/docs/ AUTHORS COPYING NEWS README.txt") # build/tmp/src/gdb.exe (already included in dll_dir)
tmp_dir="/tmp/Mana/"
+ debug_files="${tmp_dir}manaplusd.exe ${tmp_dir}gdb.exe"
mkdir -p $tmp_dir
cp ${dll_dir}* $tmp_dir
@@ -52,7 +53,11 @@ make_portable(){
cp -r $root_dir/translations/ ${tmp_dir}
cd /tmp
get_version_by_tag
+ zip -r debug-manaplus-$VERSION.zip Mana/
+ sha256sum debug-manaplus-$VERSION.zip > debug-sha256checksum.txt
+ rm -rf $debug_files
zip -r manaplus-$VERSION.zip Mana/
+ sha256sum manaplus-$VERSION.zip > sha256checksum.txt
}
@@ -83,7 +88,8 @@ make_portable $dll_dir
# artifacts
#cp /manaplus/packaging/windows/manaplus-*.exe ${CI_PROJECT_DIR}/build/ || exit 1
-cp /tmp/*.zip ${CI_PROJECT_DIR}/build/ || exit 1 # copy portable client zip file
+cp /tmp/*.zip ${CI_PROJECT_DIR}/build/ || exit 1 # copy portable client zip files
+cp /tmp/*.txt ${CI_PROJECT_DIR}/build/ || exit 1 # copy sha256checksum files
# TODO: checksum [zip->sha->{version?}.sha] ${CI_PROJECT_DIR}/build/
cp /manaplus/build/tmp/config.log ${CI_PROJECT_DIR}/logs/ || true
cp /manaplus/build/make2.log ${CI_PROJECT_DIR}/logs/ || true