您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
469 B

  1. #!/bin/bash
  2. project=$1
  3. # Check if main.lua exists:
  4. if [[ ! -f "main.lua" ]]; then
  5. echo -e "\e[31m !! Could not find main.lua file, terminating build process !! \e[0m"
  6. exit 1
  7. fi
  8. # Give Permissions and check for build directory:
  9. chmod +x -R ./.build
  10. if [[ ! -d ./.build/builds ]]; then
  11. mkdir ./.build/builds
  12. fi
  13. # Build .love
  14. ./.build/make-love.sh $project
  15. # Build .exe
  16. ./.build/make-exe.sh $project
  17. # End
  18. echo -e "\e[1;33m Finished Building Project! \e[0m"
  19. exit 0