-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathbuildLib.sh
More file actions
executable file
·24 lines (22 loc) · 860 Bytes
/
buildLib.sh
File metadata and controls
executable file
·24 lines (22 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
rm -rf haxelib
mkdir haxelib
mkdir haxelib/firmament
cp -r lib/* haxelib/firmament
cd tools
haxe -main Cli -neko run.n -cp ../lib -lib tjson -lib openfl
cd ..
cp tools/run.n haxelib/firmament
cp -r tools/templates haxelib/firmament
#use xmlstarlet to filter the xml document file to only show firmament items
#./xml ed -d "//class[contains(@path,'firmament')=false]" -d "//typedef[contains(@path,'firmament')=false]" -d "//enum[contains(@path,'firmament')=false]" haxelib/firmament/haxedoc.xml.tmp > haxelib/firmament/haxedoc.xml
#rm haxelib/firmament/haxedoc.xml.tmp
#build the editor and package in haxelib
cd editor
openfl build FirmamentEditor.xml neko
cp bin/mac64/neko/obj/ApplicationMain.n ../haxelib/firmament/FirmamentEditor.n
cp -r assets ../haxelib/firmament/
cd ..
cd haxelib
zip -rq firmament.zip firmament
haxelib install firmament.zip
cd ..