From 7bc4bef2c01afbc98b1aa94c9d90cc248fb4be5e Mon Sep 17 00:00:00 2001 From: Hans5958 Date: Mon, 2 Oct 2023 14:34:18 +0700 Subject: [PATCH] Adjust scripts further Related: #11 --- _script/build-1.43.sh | 23 +++++++++------ _script/build-1.44.sh | 23 +++++++++------ _script/build-1.45_x64.sh | 25 +++++++++------- _script/build-1.45_x86.sh | 23 +++++++++------ _script/compile-2.sh | 9 +++--- _script/modules/clean.sh | 4 +-- _script/workflow/build-all-artifact.sh | 41 +++++++++++--------------- _script/workflow/build-all-nightly.sh | 34 ++++++++++----------- _script/workflow/build-all-release.sh | 32 ++++++++++---------- 9 files changed, 112 insertions(+), 102 deletions(-) diff --git a/_script/build-1.43.sh b/_script/build-1.43.sh index 8249ec7..c468133 100644 --- a/_script/build-1.43.sh +++ b/_script/build-1.43.sh @@ -1,23 +1,28 @@ +VERSION_NUM="$(cat ../version.txt)" +BUILD_DATE=$(date +'%Y%m%d%H%M%S') +if [[ "$(python -V)" =~ "Python 3" ]]; then + PYTHON_EXECUTABLE="python" +else + PYTHON_EXECUTABLE="python3" +fi + +echo "Cleaning folders..." +bash modules/clean.sh +mkdir dist + echo "Building 1.43 (development version)..." # Preparation echo "Preparing..." echo "Removing temporary files..." -bash modules/clean.sh +rm -rf temp/ echo "Copying translations and other required files..." bash modules/copy-base.sh echo "Extracting 1.43 original files..." 7z x ../_deploy/Domino143.7z -otemp/_compile echo "Creating compile config file..." -VERSION_NUM="$(cat ../version.txt)" -BUILD_DATE=$(date +'%Y%m%d%H%M%S') -if [[ "$(python -V)" =~ "Python 3" ]]; then - PYTHON_EXECUTABLE="python" -else - PYTHON_EXECUTABLE="python3" -fi cat >temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <temp/compile-config.json <