Merge pull request #1344 from o0HalfLife0o/master

更改上传到tg的包名以完全显示
pull/1352/head
kunfei 3 years ago committed by GitHub
commit 3a4a8b6d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/scripts/tg_bot.py
  2. 9
      .github/workflows/test.yml

@ -7,7 +7,7 @@ def upload_file(tb, chat_id, file_dir):
# 上传文件夹内的文件
def upload_folder(tb, chat_id, folder_dir):
file_list = os.listdir(folder_dir)
file_list = sorted(os.listdir(folder_dir))
for file in file_list:
path = os.path.join(folder_dir, file)
if os.path.isfile(path):

@ -66,7 +66,6 @@ jobs:
sed '$a\RELEASE_STORE_PASSWORD=gedoor_legado' $GITHUB_WORKSPACE/gradle.properties -i
sed '$a\RELEASE_KEY_PASSWORD=gedoor_legado' $GITHUB_WORKSPACE/gradle.properties -i
- name: Build With Gradle
continue-on-error: true
run: |
if [ ${{ env.type }} == 'release' ]; then
typeName="原包名"
@ -79,7 +78,7 @@ jobs:
sed "/def version/c def version = \"${{ env.VERSION }}\"" $GITHUB_WORKSPACE/app/build.gradle -i
echo "开始${{ env.product }}$typeName构建"
chmod +x gradlew
./gradlew assemble${{ env.product }}release --build-cache --parallel
./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
echo "修改文件名"
mkdir -p ${{ github.workspace }}/apk/
for file in `ls ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk`; do
@ -150,7 +149,11 @@ jobs:
with:
path: apk/
- working-directory: apk/
run: mv */*.apk . ;rm -rf */
run: |
for file in `ls */*.apk`; do
mv "$file" "$(echo "$file"|sed -e 's#.*\/##g' -e "s/_/ /g" -e 's/legado/阅读/')"
done
rm -rf */
- name: Post to channel
run: |
pip install pyTelegramBotAPI

Loading…
Cancel
Save