Created
January 23, 2014 05:39
-
-
Save drkibitz/8573488 to your computer and use it in GitHub Desktop.
Bash script to build all openfl-samples
This file contains hidden or 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
## Needed for CI environment | |
export NEKOPATH="" | |
export HAXEPATH="" | |
export HAXE_STD_PATH="" | |
DIST="/path/to/dist" | |
rm -fR $DIST | |
SAMPLES=$(lime create openfl | sed -nr 's/ - (.+)/\1/p') | |
for sample in $SAMPLES | |
do | |
lime create openfl:$sample | |
done | |
## HTML5 | |
for sample in $SAMPLES | |
do | |
lime update $sample html5 | |
lime build $sample html5 | |
mkdir -p $DIST/$sample/html5 | |
cp -R $sample/Export/html5/bin/* $DIST/$sample/html5/ | |
done | |
## FLASH | |
for sample in $SAMPLES | |
do | |
lime update $sample flash | |
lime build $sample flash | |
mkdir -p $DIST/$sample/flash | |
cp -R $sample/Export/flash/bin/* $DIST/$sample/flash/ | |
done | |
## LINUX (NATIVE) | |
for sample in $SAMPLES | |
do | |
lime update $sample linux | |
lime build $sample linux | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment