Skip to content

how run

lizhi edited this page Feb 8, 2018 · 17 revisions

windows

set FLEX_HOME=D:\sdk\apache-royale-0.9.1-bin-js\royale-asjs
set main=TestGraphics

set ARGS=-remove-circulars
start %FLEX_HOME%/js/bin/mxmlc %ARGS% -external-library-path="%FLEX_HOME%\js\libs\js.swc" -compiler.source-path=../src src/%main%.as -define=CONFIG::as_only,false -define=CONFIG::js_only,true

mac

  • run with mac run the bat,replace sdk path,and main var with your.
#set FLEX_HOME=D:/sdk/apache-royale-0.9.1-bin-js/royale-asjs
FLEX_HOME=/FlexSDK/FlexJSNightly 
MXMLC_PATH="$FLEX_HOME/js/bin/mxmlc" 
EXTERN_PATH="$FLEX_HOME/js/libs/js.swc" 
main=TestGraphics.as

ARGS='-remove-circulars' 
#ARGS='-debug=true -remove-circulars' 
#ARGS='-remove-circulars -js-compiler-option="--compilation_level WHITESPACE_ONLY"' 
$MXMLC_PATH $ARGS -external-library-path="$EXTERN_PATH" -compiler.source-path=../src src/$main.as -define=CONFIG::as_only,false -define=CONFIG::js_only,true
Clone this wiki locally