File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11( ( ) => {
22 {
3- if ( ! window . env ) {
3+ if ( location . href . includes ( 'cloudconsole' ) && ! window . _cloudConsoleFixed ) {
44 // fix: 云开发 -> 记录列表 -> 右键菜单项目缺少
55 let env = undefined
6+ window . _cloudConsoleFixed = true
67 Object . defineProperty ( window , 'env' , {
78 set ( v ) {
89 v . platform = 'linux'
Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ PY_VERSION=`python -V 2>&1|awk '{print $2}'|awk -F '.' '{print $1}'`
2727# TODO: 兼容python2.7的命令
2828if [ $PY_VERSION != 2 ]; then
2929 hash python2.7 2> /dev/null || hash python2 2> /dev/null || { fail " I require python2 but it's not installed. Aborting." ; exit 1; }
30+ mkdir -p " $root_dir /tmp/bin"
3031 if hash python2.7 2> /dev/null; then
31- ln -s " $( which python2.7 ) " " $root_dir /node /bin/python"
32+ ln -s " $( which python2.7 ) " " $root_dir /tmp /bin/python"
3233 else
33- ln -s " $( which python2 ) " " $root_dir /node /bin/python"
34+ ln -s " $( which python2 ) " " $root_dir /tmp /bin/python"
3435 fi
3536fi
3637
You can’t perform that action at this time.
0 commit comments