-
-
Save carlosrovira/200753108de263fa43e80d3228213509 to your computer and use it in GitHub Desktop.
#!/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 |
This script is for OSX. If you want to run in other SO, you must adapt it, but the way it works is the same for all.
This script works with Maven and then with ANT. So you build Royale with Maven first, and then it builds the ANT version. You can comment the ANT lines if you just want Maven.
To configure the environment follow Royale you can follow this: https://github.com/apache/royale-asjs/wiki/Apache-Royale-OS-X-development-environment-in-five-minutes
Change the path for SDK_FOLDER to your custom folder where you want to create a valid Royale SDK.
Run this script from the 'royale-asjs' folder.
The script will build with maven the royale-compiler, royale-typedefs and finally royale-asjs, since the folders are siblings.
HTH
Carlos
can u make one for tamper monkey pls
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?
how do i get to build royale with this?