You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- echo -e "\e[1;33m Building .exe! \e[0m"
- doZip=true
- path="./.build"
-
- # Windows Folder
- winDir=$1-win
- winPATH=$path"/builds/$winDir"
- mkdir "$winPATH"
-
- # Creating .exe
- cat $path"/love/love.exe" $path"/builds/$1.love" > "$1.exe"
- mv "$1.exe" "$winPATH"
-
- # Moving dll's
- cp $path"/win/"* "$winPATH"
-
- # Zip it if $doZip == "true"
- if [[ $doZip == "true" ]]; then
- currentPath=$( pwd )
- cd "$path/builds"
- name=$1"-win.zip"
- zip "$name" -r "$winDir"
-
- cd "$currentPath"
- rm -rf "$winPATH"
- fi
|