a
554325746@qq.com
2020-01-19 01e8bcfab0e1a1033d8aa86f84f437d954253f8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
 
DIR=app/build/outputs/apk
pushd $DIR
FILE=$(ls */*.apk)
APKNAME=$(basename $FILE)
SHA256=$(sha256sum $FILE | head -c 64)
popd
echo "theme: jekyll-theme-cayman" > $DIR/_config.yml
cat > $DIR/README.md <<EOF
# 贝思科最新測試版
**文件名:** $APKNAME [點擊下載]($FILE)  
**SHA256:** $SHA256  
**Trime版本:** [$(git describe --tags)-$(date +%Y%m%d)](https://github.com/osfans/trime/commits/$(git rev-parse HEAD))  
**RIME版本:** [$(git --git-dir=app/src/main/jni/librime/.git describe --tags)](https://github.com/rime/librime/commits/$(git --git-dir=app/src/main/jni/librime/.git rev-parse HEAD))  
**OpenCC版本:** [$(git --git-dir=app/src/main/jni/OpenCC/.git describe --tags)](https://github.com/BYVoid/OpenCC/commits/$(git --git-dir=app/src/main/jni/OpenCC/.git rev-parse HEAD))  
**類型:** 測試版  
**更新於:** $(date +%Y年%m月%d日)  
 
## 更新日志
$(git log --no-merges $(git describe --tags HEAD^ --abbrev=0).. --format="* %s [%h](https://github.com/osfans/trime/commit/%H)")
EOF