Skip to content

Commit

Permalink
Change workdir to script directory on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
FriwiDev committed Nov 23, 2021
1 parent b07f47a commit 9940b72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compile_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions compile_macosx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if [ $# -lt 2 ] || [ $# -eq 3 ]
exit 1
fi

cd "$( dirname "$0" )"

TARGETARCH=$1
BUILD_TYPE=$2
if [ $# -lt 4 ]
Expand Down
2 changes: 2 additions & 0 deletions compile_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9940b72

Please sign in to comment.