|
@@ -4,7 +4,8 @@ doZip=true |
|
|
path="./.build" |
|
|
path="./.build" |
|
|
|
|
|
|
|
|
# Windows Folder |
|
|
# Windows Folder |
|
|
winPATH=$path"/builds/$1-win" |
|
|
|
|
|
|
|
|
winDir=$1-win |
|
|
|
|
|
winPATH=$path"/builds/$winDir" |
|
|
mkdir "$winPATH" |
|
|
mkdir "$winPATH" |
|
|
|
|
|
|
|
|
# Creating .exe |
|
|
# Creating .exe |
|
@@ -16,7 +17,11 @@ cp $path"/win/"* "$winPATH" |
|
|
|
|
|
|
|
|
# Zip it if $doZip == "true" |
|
|
# Zip it if $doZip == "true" |
|
|
if [[ $doZip == "true" ]]; then |
|
|
if [[ $doZip == "true" ]]; then |
|
|
|
|
|
currentPath=$( pwd ) |
|
|
|
|
|
cd "$path/builds" |
|
|
name=$1"-win.zip" |
|
|
name=$1"-win.zip" |
|
|
zip "$path/builds/$name" -r "$winPATH" |
|
|
|
|
|
|
|
|
zip "$name" -r "$winDir" |
|
|
|
|
|
|
|
|
|
|
|
cd "$currentPath" |
|
|
rm -rf "$winPATH" |
|
|
rm -rf "$winPATH" |
|
|
fi |
|
|
fi |