Browse Source

ci: compile python

tags/v0.1.0
DragonAura 2 years ago
parent
commit
ac16567a3a
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      dependency/shell/compile.sh

+ 7
- 2
dependency/shell/compile.sh View File

@@ -13,8 +13,13 @@ do
flag=0
fi
mv ./compile_log$i.txt $bind/compile_log$i.txt
elif [ ! -f "${bind}/player${i}.py" ]; then
flag=0
elif [ -f "${bind}/player${i}.py" ]; then
cp -f $bind/player$i.py ../python/PyAPI/AI.py
python3 -m compileall ../python/PyAPI
mv ../python/PyAPI/__pycache__/AI.cpython-39.pyc $bind/__pycache__/AI$i.cpython-39.pyc
if [ $? -ne 0 ]; then
flag=0
fi
fi
let "i++"
done


Loading…
Cancel
Save