mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-22 03:05:16 +00:00
[docker-build.sh] new: clean up build artifacts when switching to/from emulator builds
This commit is contained in:
parent
92d7b4e368
commit
9cdcf68b46
1 changed files with 19 additions and 0 deletions
|
@ -2,7 +2,26 @@
|
|||
set -euo pipefail
|
||||
|
||||
ISEMU=${1:-0}
|
||||
if [ "$ISEMU" -ne "1" ] ; then
|
||||
ISEMU="0"
|
||||
fi
|
||||
|
||||
# clean up build artifacts when switching to/from emulator builds
|
||||
if [ "$ISEMU" -eq "1" ] && ! [ -f ./build100/.for_emulators ] ; then
|
||||
rm -rf ./build100/
|
||||
elif [ "$ISEMU" -eq "0" ] && ! [ -f ./build100/.for_switch ] ; then
|
||||
rm -rf ./build100/
|
||||
fi
|
||||
|
||||
# remember what system this build is for
|
||||
mkdir -p ./build100/
|
||||
if [ "$ISEMU" -eq "1" ] ; then
|
||||
touch ./build100/.for_emulators
|
||||
else
|
||||
touch ./build100/.for_switch
|
||||
fi
|
||||
|
||||
# build
|
||||
export DOCKER_BUILDKIT=1
|
||||
docker build . -t smoo-client-build
|
||||
docker run --rm \
|
||||
|
|
Loading…
Reference in a new issue