Last active
April 12, 2023 16:10
-
-
Save carlosrovira/200753108de263fa43e80d3228213509 to your computer and use it in GitHub Desktop.
Build Royale (new script)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SDK_FOLDER="/Users/carlosrovira/Dev/Royale/Sdks/apache-royale-maven" | |
#stty -echo | |
cd $ROYALE_COMPILER_HOME | |
#git pull -v --progress "origin" | |
#stty echo | |
#echo Royale Compiler updated from repo | |
if [[ $? != 0 ]]; then | |
echo "Error:Build stopped - check for git conflicts in COMPILER" | |
exit 0 | |
fi | |
#stty -echo | |
cd $ROYALE_TYPEDEFS_HOME | |
#git pull -v --progress "origin" | |
#stty echo | |
#echo Royale TypeDefs updated from repo | |
if [[ $? != 0 ]]; then | |
echo "Error:Build stopped - check for git conflicts in TYPEDEFS" | |
exit 0 | |
fi | |
#stty -echo | |
cd $ROYALE_ASJS_HOME | |
#git pull -v --progress "origin" | |
#stty echo | |
#echo Royale ASJS updated from repo | |
if [[ $? != 0 ]]; then | |
echo "Error:Build stopped - check for git conflicts in FRAMEWORK" | |
exit 0 | |
fi | |
#stty -echo | |
#set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 -Xmx1024m | |
cd $ROYALE_COMPILER_HOME | |
ant wipe-all | |
mvn clean install -DskipTests --quiet | |
#stty echo | |
#echo Royale Compiler built with Maven | |
if [[ $? != 0 ]]; then | |
echo "Error:Build stopped - build COMPILER with MAVEN" | |
exit 0 | |
fi | |
#stty -echo | |
cd $ROYALE_TYPEDEFS_HOME | |
ant wipe | |
mvn clean install --quiet | |
#stty echo | |
#echo Royale TypeDefs built with Maven | |
if [[ $? != 0 ]]; then | |
echo "Error:Build stopped - build TYPEDEFS with MAVEN" | |
exit 0 | |
fi | |
#stty -echo | |
cd $ROYALE_ASJS_HOME | |
ant super-clean | |
mvn clean install -P option-with-swf,option-with-sass-compile,with-examples,with-distribution,with-ui-testsuite -Dwebdriver.gecko.driver=/Users/carlosrovira/Dev/Royale/geckodriver -DdistributionTargetFolder="$SDK_FOLDER" | |
#mvn clean install -P with-distribution,option-with-swf,option-with-sass-compile -DdistributionTargetFolder="$SDK_FOLDER" | |
#,with-examples,with-distribution,with-ui-testsuite -Dwebdriver.gecko.driver=/Users/carlosrovira/Dev/Royale/geckodriver | |
#-Drat.skip=true | |
#stty echo | |
#echo Royale ASJS built with Maven | |
if [[ $? != 0 ]]; then | |
echo "Error:Build stopped - build FRAMEWORK with MAVEN" | |
exit 0 | |
fi | |
#stty -echo | |
ant all -Dbuild.noprompt=true -Drelease.target=true | |
#stty echo | |
#echo Royale SDK built with Ant | |
if [[ $? != 0 ]]; then | |
echo "Error:Build stopped - build SDK with ANT" | |
exit 0 | |
fi |
Hi, the script is pretty basic, there's no much to change there only for your own concrete purposes such as the path you want to put the SDK. Also, I'm not involved these days in Royale. If you need support, you should ask in the royale mailing lists. I recommend you go line by line trying and understanding the script. Its crucial for you. Best luck
How do I get the script on Build Royale to make it work?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can u make one for tamper monkey pls