|
@@ -5,38 +5,41 @@ echo ""
|
|
|
echo "***** Rebuilding ted2 *****"
|
|
|
echo ""
|
|
|
|
|
|
-$mx2cc makeapp -apptype=gui -clean -build -config=release -target=desktop ../src/ted2/ted2.monkey2
|
|
|
+$mx2cc makeapp -clean -apptype=gui -build -config=release -product=scripts/ted2.products/$host/ted2 ../src/ted2/ted2.monkey2
|
|
|
|
|
|
-$mx2cc makeapp -apptype=gui -clean -build -config=release -target=desktop ../src/launcher/launcher.monkey2
|
|
|
+$mx2cc makeapp -clean -apptype=gui -build -config=release -product=scripts/launcher.products/$host/launcher ../src/launcher/launcher.monkey2
|
|
|
|
|
|
if [ "$OSTYPE" = "linux-gnu" ]
|
|
|
then
|
|
|
|
|
|
- rm -r -f "$ted2"
|
|
|
- mkdir "$ted2"
|
|
|
- cp -R "$ted2_new/assets" "$ted2/assets"
|
|
|
- cp "$ted2_new/ted2" "$ted2/ted2"
|
|
|
+ rm -r -f $ted2
|
|
|
+ mkdir $ted2
|
|
|
+ cp -R ./ted2.products/$host/assets $ted2/assets
|
|
|
+ cp ./ted2.products/$host/ted2 $ted2/ted2
|
|
|
+
|
|
|
rm -r -f "$launcher"
|
|
|
- cp "$launcher_new" "$launcher"
|
|
|
+ cp ./launcher.products/$host/launcher "$launcher"
|
|
|
|
|
|
elif [ "$OSTYPE" = "linux-gnueabihf" ]
|
|
|
then
|
|
|
|
|
|
- rm -r -f "$ted2"
|
|
|
- mkdir "$ted2"
|
|
|
- cp -R "$ted2_new/assets" "$ted2/assets"
|
|
|
- cp "$ted2_new/ted2" "$ted2/ted2"
|
|
|
+ rm -r -f $ted2
|
|
|
+ mkdir $ted2
|
|
|
+ cp -R ./ted2.products/$host/assets $ted2/assets
|
|
|
+ cp ./ted2.products/$host/ted2 $ted2/ted2
|
|
|
+
|
|
|
rm -r -f "$launcher"
|
|
|
- cp "$launcher_new" "$launcher"
|
|
|
+ cp ./launcher.products/$host/launcher "$launcher"
|
|
|
|
|
|
else
|
|
|
|
|
|
- rm -r -f "$ted2"
|
|
|
- cp -R "$ted2_new" "$ted2"
|
|
|
+ rm -r -f $ted2
|
|
|
+ cp -R ./ted2.products/macos/ted2.app $ted2
|
|
|
+
|
|
|
rm -r -f "$launcher"
|
|
|
- cp -R "$launcher_new" "$launcher"
|
|
|
+ cp -R ./launcher.products/macos/Launcher.app "$launcher"
|
|
|
|
|
|
cp ../src/launcher/info.plist "$launcher/Contents"
|
|
|
cp ../src/launcher/Monkey2logo.icns "$launcher/Contents/Resources"
|
|
|
-
|
|
|
+
|
|
|
fi
|