-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild_win32.sh
27 lines (23 loc) · 1009 Bytes
/
build_win32.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
AWTK_WEB=${PWD}
if [ "$#" -ne 2 ]; then
echo "Usage: $0 app.json action(all|debug|release|assets|awtk_web_js|awtk_js|js)"
echo "============================================================="
echo " debug: build debug version."
echo " release: build release version."
echo " assets: build assets only."
echo " awtk_js: build awtk_js only."
echo " awtk_web_js: build awtk_web_js only."
echo " js: build awtk_js and awtk_web_js only."
echo " all: same as debug. build debug version."
echo "============================================================="
else
#use abs path of python, to avoid use python in emsdk
#PYTHON=`where 'python'` #'/d/Program Files (x86)/Microsoft Visual Studio/Shared/Python37_64/python.exe'
PYTHON='python'
echo "python path : $PYTHON"
source /d/work/tools/emsdk/emsdk_env.sh
${PYTHON} -m pip install --upgrade pip
${PYTHON} -m pip install Pillow
${PYTHON} create_project.py $*
fi
cd ${AWTK_WEB}