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.

27 regels
493 B

  1. #!/bin/bash
  2. echo -e "\e[1;33m Building .exe! \e[0m"
  3. doZip=true
  4. path="./.build"
  5. # Windows Folder
  6. winDir=$1-win
  7. winPATH=$path"/builds/$winDir"
  8. mkdir "$winPATH"
  9. # Creating .exe
  10. cat $path"/love/love.exe" $path"/builds/$1.love" > "$1.exe"
  11. mv "$1.exe" "$winPATH"
  12. # Moving dll's
  13. cp $path"/win/"* "$winPATH"
  14. # Zip it if $doZip == "true"
  15. if [[ $doZip == "true" ]]; then
  16. currentPath=$( pwd )
  17. cd "$path/builds"
  18. name=$1"-win.zip"
  19. zip "$name" -r "$winDir"
  20. cd "$currentPath"
  21. rm -rf "$winPATH"
  22. fi