Change workdir to script directory on all platforms

This commit is contained in:
FriwiDev 2021-11-23 23:02:31 +01:00
parent b07f47aeb4
commit 9940b72ee3
3 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,11 @@ if [ $# -lt 2 ] || [ $# -eq 3 ]
exit 1
fi
cd "$( dirname "$0" )"
#Remove old build output
rm -rf out
#Execute buildx with linux dockerfile and output to current directory
if [ $# -eq 2 ]
then

View File

@ -11,6 +11,8 @@ if [ $# -lt 2 ] || [ $# -eq 3 ]
exit 1
fi
cd "$( dirname "$0" )"
TARGETARCH=$1
BUILD_TYPE=$2
if [ $# -lt 4 ]

View File

@ -10,6 +10,8 @@ if ("%2"=="") ( ^
exit 1 ^
)
cd /D "%~dp0"
::Determine repository and ref to pull from
if ("%3"=="") (set "REPO=https://bitbucket.org/chromiumembedded/java-cef.git") ^
else (set "REPO=%3")