Browse Source

fix: 🐛 fix CI

tags/0.1.0
shangfengh 2 years ago
parent
commit
c6be42b8b3
4 changed files with 22 additions and 7 deletions
  1. +3
    -0
      .github/workflows/upload_COS.yml
  2. +0
    -7
      dependency/py/HashFiles.py
  3. +17
    -0
      dependency/shell/Unix2doc.sh
  4. +2
    -0
      docs/GameRules.md

+ 3
- 0
.github/workflows/upload_COS.yml View File

@@ -53,6 +53,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Unix to docs
run: sh ./dependency/shell/Unix2dox.sh

- name: Hash THUAI6
run: |
python ./dependency/py/HashFiles.py -t ../THUAI6


+ 0
- 7
dependency/py/HashFiles.py View File

@@ -14,13 +14,6 @@ def generateHashFile():
for root, dirs, files in os.walk(file):
for file in files:
path = os.path.join(root, file)
if mimetypes.guess_type(file)[0] == 'text/plain':
with open(path, 'r', errors='ignore') as f:
data = f.read()
if data.find('\r\n') == -1 :
data.replace('\n','\r\n')
with open(path, 'w') as f:
f.write(data)
with open(path, 'rb') as f:
data = f.read()
hashlist[path.replace('\\','/')]=hashlib.md5(data).hexdigest()


+ 17
- 0
dependency/shell/Unix2doc.sh View File

@@ -0,0 +1,17 @@
#! /bin/bash
function lsdir()
{
for i in `ls`;
do
if [ -d $i ]
then
pushd ./$i
lsdir
popd
else
unix2dos $i
fi
done
}
cd ../../
lsdir

+ 2
- 0
docs/GameRules.md View File

@@ -108,6 +108,8 @@ $$
- 除了翻窗,交互目标与交互者在一个**九宫格**方可交互
- 交互进度每毫秒增加对应交互速度的值
- 作业,门,箱子完成/开启进度达到10000000为完成
- 校门开启进度达到18000为完成


#### 学习与毕业
- 共有10间教室,学生需要完成**7间**教室的作业,才可以开启校门。


Loading…
Cancel
Save