Skip to content

Instantly share code, notes, and snippets.

@drkibitz
Created January 23, 2014 05:39
Show Gist options
  • Save drkibitz/8573488 to your computer and use it in GitHub Desktop.
Save drkibitz/8573488 to your computer and use it in GitHub Desktop.
Bash script to build all openfl-samples
## 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