diff --git a/.github/workflows/legado.yml b/.github/workflows/legado.yml
index 3702e0f5c..b0f3b982e 100644
--- a/.github/workflows/legado.yml
+++ b/.github/workflows/legado.yml
@@ -50,31 +50,38 @@ jobs:
echo "设置apk共存"
sed "s/'.release'/'.releaseA'/" $GITHUB_WORKSPACE/app/build.gradle -i
sed 's/.release/.releaseA/' $GITHUB_WORKSPACE/app/google-services.json -i
+ echo "统一版本号"
+ version=$(date -d "8 hour" -u +3.%y.%m%d%H%M)
+ sed "/def version/c def version = \"$version\"" $GITHUB_WORKSPACE/app/build.gradle -i
- name: Build With Gradle
run: |
echo "开始进行release构建"
chmod +x gradlew
./gradlew assembleAppRelease --build-cache --parallel
+ echo "开始进行cronet构建"
+ ./gradlew assembleCronetRelease --build-cache --parallel
+ - name: Organize the files
+ run: |
+ mkdir -p ${{ github.workspace }}/apk/
+ cp -rf ${{ github.workspace }}/app/build/outputs/apk/*/*/*.apk ${{ github.workspace }}/apk/
- name: Upload App To Artifact
if: ${{ env.UPLOAD_ARTIFACT != 'false' }}
uses: actions/upload-artifact@v2
with:
name: legado apk
- path: ${{ github.workspace }}/app/build/outputs/apk/app/release/*.apk
+ path: ${{ github.workspace }}/apk/*.apk
- name: Upload App To Lanzou
if: ${{ env.ylogin }}
run: |
- path="$GITHUB_WORKSPACE/app/build/outputs/apk/app/release"
+ path="$GITHUB_WORKSPACE/apk"
files=$(ls $path)
for f in $files
do
if [[ $f == *"apk" ]]; then
file=$f
echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 文件:$file"
- break
+ python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path/$file" "$LANZOU_FOLDER_ID"
fi
done
-
- python3 $GITHUB_WORKSPACE/.github/scripts/lzy_web.py "$path/$file" "$LANZOU_FOLDER_ID"
echo "[$(date -u -d '+8 hour' '+%Y.%m.%d %H:%M:%S')] 分享链接: https://kunfei.lanzoux.com/b0f810h4b"
diff --git a/app/build.gradle b/app/build.gradle
index 902af3cd7..58ce975d7 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -198,7 +198,7 @@ dependencies {
implementation('org.nanohttpd:nanohttpd-apache-fileupload:2.3.1')
//二维码
- implementation('com.github.jenly1314:zxing-lite:2.1.0')
+ implementation('com.github.jenly1314:zxing-lite:2.1.1')
//颜色选择
implementation('com.jaredrummler:colorpicker:1.1.0')
diff --git a/app/src/main/assets/epub/chapter.html b/app/src/main/assets/epub/chapter.html
index 6067f6649..39b505fad 100644
--- a/app/src/main/assets/epub/chapter.html
+++ b/app/src/main/assets/epub/chapter.html
@@ -10,6 +10,8 @@
+
+