Skip to content

Instantly share code, notes, and snippets.

@carlosrovira
Last active April 12, 2023 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosrovira/200753108de263fa43e80d3228213509 to your computer and use it in GitHub Desktop.
Save carlosrovira/200753108de263fa43e80d3228213509 to your computer and use it in GitHub Desktop.
Build Royale (new script)
#!/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
@carlosrovira
Copy link
Author

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

@gman152007
Copy link

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