rebuildted2.sh 922 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. source common.sh
  2. echo ""
  3. echo "***** Rebuilding ted2 *****"
  4. echo ""
  5. $mx2cc makeapp -apptype=gui -clean -build -config=release -target=desktop ../src/ted2/ted2.monkey2
  6. $mx2cc makeapp -apptype=gui -clean -build -config=release -target=desktop ../src/launcher/launcher.monkey2
  7. if [ "$OSTYPE" = "linux-gnu" ]
  8. then
  9. rm -r -f "$ted2"
  10. mkdir "$ted2"
  11. cp -R "$ted2_new/assets" "$ted2/assets"
  12. cp "$ted2_new/ted2" "$ted2/ted2"
  13. rm -r -f "$launcher"
  14. cp "$launcher_new" "$launcher"
  15. elif [ "$OSTYPE" = "linux-gnueabihf" ]
  16. then
  17. rm -r -f "$ted2"
  18. mkdir "$ted2"
  19. cp -R "$ted2_new/assets" "$ted2/assets"
  20. cp "$ted2_new/ted2" "$ted2/ted2"
  21. rm -r -f "$launcher"
  22. cp "$launcher_new" "$launcher"
  23. else
  24. rm -r -f "$ted2"
  25. cp -R "$ted2_new" "$ted2"
  26. rm -r -f "$launcher"
  27. cp -R "$launcher_new" "$launcher"
  28. cp ../src/launcher/info.plist "$launcher/Contents"
  29. cp ../src/launcher/Monkey2logo.icns "$launcher/Contents/Resources"
  30. fi