--- modules/damieng/graphical_editor/loncapa_daxe/build.sh 2015/05/07 15:38:52 1.2 +++ modules/damieng/graphical_editor/loncapa_daxe/build.sh 2015/09/14 15:58:57 1.4 @@ -10,6 +10,11 @@ rm -rf dist mkdir dist +# get Daxe latest version from github + +pub upgrade daxe + + # compile LON-CAPA Daxe # NOTE: dart2js is in dart-sdk/bin, which should be on the PATH @@ -17,17 +22,22 @@ dart2js --minify --out=dist/loncapa_daxe rm dist/*.js.map dist/*.deps -# copy Daxe files +# copy Daxe resource files mkdir -p dist/packages/daxe # note the / at the end of the paths, it copies only the contents -rsync -a ../daxe/lib/ dist/packages/daxe/ --exclude CVS --exclude '*.dart' --exclude packages --exclude src +rsync -a packages/daxe/ dist/packages/daxe/ --exclude CVS --exclude '*.dart' --exclude packages --exclude src # copy LON-CAPA Daxe files cp daxe.html dist/ -rsync -a web/ dist/ --exclude CVS --exclude '*.dart' --exclude packages --exclude tests --exclude nodes --exclude '*.html' --exclude 'XHTML_config.xml' --exclude 'xhtml1-strict.xsd' +rsync -a web/ dist/ --exclude CVS --exclude '*.dart' --exclude packages --exclude tests --exclude nodes --exclude '*.html' --exclude 'XHTML_config.xml' --exclude 'xhtml1-strict.xsd' --exclude 'jsme' + +# extract JSME +unzip -d dist 'JSME_2015-03-03_xsiframe.zip' +mv 'dist/JSME_2015-03-03_xsiframe/jsme' dist/ +rm -r 'dist/JSME_2015-03-03_xsiframe'