AppImage-build.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/bash
  2. FILE=build/bin/yuzu
  3. if test -f "$FILE"; then
  4. # remove any previously made AppImage in the base torzu git folder
  5. rm ./torzu.AppImage
  6. # enter AppImage utility folder
  7. cd AppImageBuilder
  8. # run the build script to create the AppImage
  9. # (usage) ./build.sh [source torzu build folder] [destination .AppImage file]
  10. ./build.sh ../build ./torzu.AppImage
  11. FILE=./torzu.AppImage
  12. if test -f "$FILE"; then
  13. # move the AppImage to the main torzu folder
  14. mv torzu.AppImage ..
  15. # return to main torzu folder
  16. cd ..
  17. # show contents of current folder
  18. echo
  19. ls
  20. # show AppImages specifically
  21. echo
  22. ls *.AppImage
  23. echo
  24. echo "'torzu.AppImage' is now located in the current folder."
  25. echo
  26. else
  27. cd ..
  28. echo "AppImage was not built."
  29. fi
  30. else
  31. echo
  32. echo "$FILE does not exist."
  33. echo
  34. echo "No yuzu executable found in the /torzu/build/bin folder!"
  35. echo
  36. echo "You must first build a native linux version of torzu before running this script!"
  37. echo
  38. fi