updateted2go-github.sh 1.1 KB

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