mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 13:00:56 +01:00
f8431bbfee
Summary: Provide a reasonable JS API for the Aphlict client. Provide an example behavior to invoke it. Test Plan: Ran "aphlict_server.js" with: $ sudo node aphlict_server.js Loaded /aphlict/. Opened console. Got "hello" from the server every second. Got reasonable errors with the server not present ("Security exception", but this is because it can't connect to port 843 to access the policy server). Reviewers: ddfisher, keebuhm, allenjohnashton, btrahan Reviewed By: btrahan CC: aran, epriestley Maniphest Tasks: T944 Differential Revision: https://secure.phabricator.com/D1800
28 lines
605 B
Bash
Executable file
28 lines
605 B
Bash
Executable file
#!/bin/sh
|
|
|
|
BASEDIR=`dirname $0`
|
|
ROOT=`cd $BASEDIR/../../../ && pwd`;
|
|
|
|
if [ -z "$MXMLC" ]; then
|
|
echo "ERROR: Define environmental variable MXMLC to point to 'mxmlc' binary.";
|
|
exit 1;
|
|
fi;
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# cp -R $ROOT/externals/vegas/src $BASEDIR/src/vegas
|
|
|
|
(cd $BASEDIR && $MXMLC \
|
|
-output aphlict.swf \
|
|
-default-background-color=0x444444 \
|
|
-default-size=500,500 \
|
|
-warnings=true \
|
|
-debug=true \
|
|
-source-path=$ROOT/externals/vegas/src \
|
|
-static-link-runtime-shared-libraries=true \
|
|
src/Aphlict.as)
|
|
|
|
mv $BASEDIR/aphlict.swf $ROOT/webroot/rsrc/swf/aphlict.swf
|
|
|
|
# -target-player=10.2.0 \
|