Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from 10bits:master #1

Open
wants to merge 161 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
7346c77
legado-3.22.012619 release
invalid-email-address Jan 26, 2022
08d29e8
legado-3.22.012821 release
invalid-email-address Jan 28, 2022
557c90f
legado-3.22.020311 release
invalid-email-address Feb 3, 2022
72227bd
legado-3.22.020919 release
invalid-email-address Feb 9, 2022
b3a73d1
legado-3.22.021109 release
invalid-email-address Feb 11, 2022
24fffe5
legado-3.22.021118 release
invalid-email-address Feb 11, 2022
7217ed9
legado-3.22.021120 release
invalid-email-address Feb 11, 2022
081738c
legado-3.22.021714 release
invalid-email-address Feb 17, 2022
40019fe
legado-3.22.022219 release
invalid-email-address Feb 22, 2022
d5e25cf
legado-3.22.022509 release
invalid-email-address Feb 25, 2022
196a9ff
legado-3.22.022623 release
invalid-email-address Feb 26, 2022
1505363
legado-3.22.022719 release
invalid-email-address Feb 27, 2022
4ae48c0
legado-3.22.022814 release
invalid-email-address Feb 28, 2022
e72fdbe
legado-3.22.022822 release
invalid-email-address Feb 28, 2022
ecfc8fd
legado-3.22.030322 release
invalid-email-address Mar 3, 2022
c5c7a9c
legado-3.22.030410 release
invalid-email-address Mar 4, 2022
f7d955e
legado-3.22.030711 release
invalid-email-address Mar 7, 2022
4adb8ae
legado-3.22.030919 release
invalid-email-address Mar 9, 2022
118e514
legado-3.22.031209 release
invalid-email-address Mar 12, 2022
1f7ba9a
update
10bits Mar 13, 2022
60d3a8b
legado-3.22.031519 release
invalid-email-address Mar 15, 2022
bc83d7e
legado-3.22.031722 release
invalid-email-address Mar 17, 2022
da2ed88
legado-3.22.032320 release
invalid-email-address Mar 23, 2022
d187ef7
legado-3.22.032521 release
invalid-email-address Mar 25, 2022
4a0923f
legado-3.22.033020 release
invalid-email-address Mar 30, 2022
0ce2cf6
legado-3.22.040517 release
invalid-email-address Apr 5, 2022
34ec0b1
legado-3.22.040716 release
invalid-email-address Apr 7, 2022
5b6230d
legado-3.22.041209 release
invalid-email-address Apr 12, 2022
6291d3e
legado-3.22.041418 release
invalid-email-address Apr 14, 2022
834b082
legado-3.22.041421 release
invalid-email-address Apr 14, 2022
fbb0006
legado-3.22.041820 release
invalid-email-address Apr 18, 2022
aa45968
legado-3.22.042218 release
invalid-email-address Apr 22, 2022
4fbe484
legado-3.22.042309 release
invalid-email-address Apr 23, 2022
272f281
legado-3.22.042323 release
invalid-email-address Apr 23, 2022
a80e140
legado-3.22.050122 release
invalid-email-address May 1, 2022
68c2561
legado-3.22.050215 release
invalid-email-address May 2, 2022
066acd3
legado-3.22.051021 release
invalid-email-address May 10, 2022
1c9fb07
legado-3.22.051215 release
invalid-email-address May 12, 2022
0b1cf22
legado-3.22.051612 release
invalid-email-address May 16, 2022
001d7a8
legado-3.22.051719 release
invalid-email-address May 17, 2022
677c845
legado-3.22.052113 release
invalid-email-address May 21, 2022
7dcddc7
legado-3.22.052621 release
invalid-email-address May 26, 2022
7729a8b
legado-3.22.052708 release
invalid-email-address May 27, 2022
8c22c15
legado-3.22.052723 release
invalid-email-address May 27, 2022
a1c6acc
legado-3.22.060120 release
invalid-email-address Jun 1, 2022
1b8075e
legado-3.22.061022 release
invalid-email-address Jun 10, 2022
a2f9130
legado-3.22.061722 release
invalid-email-address Jun 17, 2022
ffdb678
legado-3.22.062320 release
invalid-email-address Jun 23, 2022
2cb66b6
legado-3.22.070722 release
invalid-email-address Jul 7, 2022
e576d31
legado-3.22.070921 release
invalid-email-address Jul 9, 2022
c294070
legado-3.22.071010 release
invalid-email-address Jul 10, 2022
6751076
legado-3.22.071618 release
invalid-email-address Jul 16, 2022
50c086d
legado-3.22.072122 release
invalid-email-address Jul 21, 2022
7e20193
legado-3.22.080322 release
invalid-email-address Aug 3, 2022
718eef4
legado-3.22.081920 release
invalid-email-address Aug 19, 2022
9eae058
legado-3.22.082409 release
invalid-email-address Aug 24, 2022
0ea3f7a
legado-3.22.083120 release
invalid-email-address Aug 31, 2022
b33ebf6
legado-3.22.091520 release
invalid-email-address Sep 15, 2022
d49f0ef
legado-3.22.091613 release
invalid-email-address Sep 16, 2022
76bf8f7
legado-3.22.091712 release
invalid-email-address Sep 17, 2022
680d6f6
legado-3.22.091719 release
invalid-email-address Sep 17, 2022
f35a7ef
legado-3.22.091920 release
invalid-email-address Sep 19, 2022
5f9d566
legado-3.22.092020 release
invalid-email-address Sep 20, 2022
75c59e5
legado-3.22.092220 release
invalid-email-address Sep 22, 2022
9aae2ee
legado-3.22.092400 release
invalid-email-address Sep 23, 2022
049ddaf
legado-3.22.092618 release
invalid-email-address Sep 26, 2022
728e948
legado-3.22.100120 release
invalid-email-address Oct 1, 2022
ab4622a
legado-3.22.100210 release
invalid-email-address Oct 2, 2022
1b0625d
legado-3.22.100521 release
invalid-email-address Oct 5, 2022
b9ae00e
legado-3.22.100921 release
invalid-email-address Oct 9, 2022
6ed1494
legado-3.22.101421 release
invalid-email-address Oct 14, 2022
caa2c4a
legado-3.22.101619 release
invalid-email-address Oct 16, 2022
eaa5e59
legado-3.22.101709 release
invalid-email-address Oct 17, 2022
44dfde2
legado-3.22.101712 release
invalid-email-address Oct 17, 2022
91427e1
legado-3.22.102020 release
invalid-email-address Oct 20, 2022
54a38ed
legado-3.22.102223 release
invalid-email-address Oct 22, 2022
247d889
legado-3.22.102918 release
invalid-email-address Oct 29, 2022
afedebe
legado-3.22.110823 release
invalid-email-address Nov 8, 2022
52453fb
legado-3.22.111423 release
invalid-email-address Nov 14, 2022
cdb006b
legado-3.22.112222 release
invalid-email-address Nov 22, 2022
36942ac
legado-3.22.120121 release
invalid-email-address Dec 1, 2022
57d0ef1
legado-3.22.121018 release
invalid-email-address Dec 10, 2022
539fff4
legado-3.22.121521 release
invalid-email-address Dec 15, 2022
a15c057
legado-3.22.122419 release
invalid-email-address Dec 24, 2022
2bd7565
legado-3.23.010719 release
invalid-email-address Jan 7, 2023
2951129
legado-3.23.011022 release
invalid-email-address Jan 10, 2023
024a49c
legado-3.23.011918 release
invalid-email-address Jan 19, 2023
0f3498a
legado-3.23.012018 release
invalid-email-address Jan 20, 2023
cdf8f67
legado-3.23.012922 release
invalid-email-address Jan 29, 2023
343ab05
legado-3.23.013123 release
invalid-email-address Jan 31, 2023
8d8d86d
legado-3.23.020921 release
invalid-email-address Feb 9, 2023
aad6098
legado-3.23.021621 release
invalid-email-address Feb 16, 2023
3676795
legado-3.23.022219 release
invalid-email-address Feb 22, 2023
6bb854b
legado-3.23.022621 release
invalid-email-address Feb 26, 2023
f9d8b95
legado-3.23.022715 release
invalid-email-address Feb 27, 2023
fa351f1
legado-3.23.030400 release
invalid-email-address Mar 3, 2023
0298bd4
legado-3.23.031210 release
invalid-email-address Mar 12, 2023
3ff827e
legado-3.23.031314 release
invalid-email-address Mar 13, 2023
c7c8002
legado-3.23.031420 release
invalid-email-address Mar 14, 2023
9a7211d
legado-3.23.031520 release
invalid-email-address Mar 15, 2023
e7ac0cb
legado-3.23.032021 release
invalid-email-address Mar 20, 2023
1d6590d
legado-3.23.032112 release
invalid-email-address Mar 21, 2023
49a99d6
legado-3.23.032123 release
invalid-email-address Mar 21, 2023
897976c
legado-3.23.032820 release
invalid-email-address Mar 28, 2023
2ee7392
legado-3.23.032923 release
invalid-email-address Mar 29, 2023
83b0980
legado-3.23.040118 release
invalid-email-address Apr 1, 2023
7f6dbe8
update
10bits Apr 3, 2023
c6ba265
update
10bits Apr 3, 2023
766fba3
update
10bits Apr 3, 2023
571c0a6
update
10bits Apr 3, 2023
1709f41
legado-3.23.040420 release
invalid-email-address Apr 4, 2023
85514c6
update
10bits May 7, 2023
b3d4088
update
10bits May 7, 2023
2feab8e
update
10bits May 8, 2023
fa3d498
update
10bits May 8, 2023
6be60ec
update
10bits May 8, 2023
2bc20cf
update
10bits May 8, 2023
32eb601
update
10bits May 8, 2023
9e4aeea
update
10bits May 8, 2023
ca3392d
update
10bits May 8, 2023
3a76848
update
10bits May 8, 2023
6ebef98
update
10bits May 8, 2023
b215c4f
Update legado.yml
10bits May 8, 2023
a61ff2a
Update legado.sign
10bits May 8, 2023
2e46781
update
10bits May 8, 2023
233682b
update
10bits May 8, 2023
e64f846
legado-3.23.050309 release
invalid-email-address May 8, 2023
63b4fb4
update
10bits May 9, 2023
dd7622b
update
10bits May 9, 2023
cdf59aa
update
10bits May 9, 2023
77dc32d
update
10bits May 12, 2023
747cb16
legado-3.23.051323 release
invalid-email-address May 16, 2023
9211046
legado-3.23.051822 release
invalid-email-address May 19, 2023
309cff2
legado-3.23.051919 release
invalid-email-address May 20, 2023
e04dacb
update
10bits Jun 4, 2023
5b61d5a
update
10bits Jun 4, 2023
1b52f8b
update
10bits Jun 4, 2023
3462d7a
update
10bits Jun 4, 2023
45e6730
update
10bits Jun 4, 2023
b7143f2
update
10bits Jun 4, 2023
6fd1d5e
update
10bits Jun 4, 2023
df76c92
update
10bits Jun 4, 2023
27e227d
update
10bits Jun 6, 2023
cabe864
update
10bits Jun 6, 2023
0018f92
update
10bits Jun 6, 2023
e234efe
update
10bits Jun 6, 2023
ab4613f
update
10bits Jun 6, 2023
5bd1966
update
10bits Jun 7, 2023
ef1b156
update
10bits Jun 7, 2023
b4f20e5
update
10bits Jun 7, 2023
ea7f2fb
legado-3.23.103114 release
invalid-email-address Oct 31, 2023
f212a7f
legado-3.23.110115 release
invalid-email-address Nov 1, 2023
add4753
legado-3.23.110211 release
invalid-email-address Nov 2, 2023
4a41d20
update
10bits Nov 11, 2023
680ee04
update
10bits Nov 11, 2023
50a4810
update
10bits Nov 17, 2024
d2905da
update
10bits Nov 17, 2024
a164ea4
Update legado_custom.yml
10bits Nov 17, 2024
00efcb6
update
10bits Nov 17, 2024
03555ff
Update legado_custom.yml
10bits Nov 17, 2024
eeb40c5
Update diy_test.sh
10bits Nov 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/legado/legado.sign
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ RELEASE_STORE_FILE=./legado.jks
RELEASE_KEY_ALIAS=legado
RELEASE_STORE_PASSWORD=gedoor_legado
RELEASE_KEY_PASSWORD=gedoor_legado
#org.gradle.daemon=true
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
org.gradle.configureondemand=true
10 changes: 10 additions & 0 deletions .github/legado/rss_yck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"customOrder": 5,
"enableJs": true,
"enabled": true,
"singleUrl": true,
"sourceGroup": "legado",
"sourceIcon": "https://www.yckceo.com/favicon.ico",
"sourceName": "源仓库",
"sourceUrl": "https://www.yckceo.com"
}
107 changes: 17 additions & 90 deletions .github/workflows/legado.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: Android CI

on:
watch:
types: [started]
schedule:
- cron: '0 */6 * * *'
- cron: '0 */12 * * *'
workflow_dispatch:

jobs:
check_release:
if: github.repository_owner == github.actor
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- name: check latest tag
shell: bash
env:
Expand All @@ -28,9 +27,20 @@ jobs:
git clone $APP_GIT_URL $APP_WORKSPACE
cd $APP_WORKSPACE
git checkout $LATEST_TAG
echo ::set-output name=if_release::true
echo "if_release=true" >>$GITHUB_OUTPUT
fi


- name: setup JDK 17
if: steps.check_release.outputs.if_release == 'true'
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

- name: setup Gradle
if: steps.check_release.outputs.if_release == 'true'
uses: gradle/gradle-build-action@v2.4.2

- name: build apk
id: build_apk
if: steps.check_release.outputs.if_release == 'true'
Expand All @@ -47,7 +57,7 @@ jobs:
run: |
function set_env() { echo "$1=$2" >> $GITHUB_ENV; }
if [ -f $APP_BUILD_APK ]; then
echo ::set-output name=if_publish::true
echo "if_publish=true" >>$GITHUB_OUTPUT
set_env APP_RELEASE_NAME $APP_UPLOAD_NAME.apk
set_env APP_RELEASE $APP_BUILD_APK
fi
Expand Down Expand Up @@ -86,86 +96,3 @@ jobs:
source $GITHUB_WORKSPACE/action_util.sh
update_info

build_apk:
if: github.event_name != 'schedule' && github.repository_owner == github.actor
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set env
shell: bash
env:
SECRETS_APP_NAME: ${{ secrets.APP_NAME }}
SECRETS_GIT_URL: ${{ secrets.GIT_URL }}
SECRETS_SUFFIX: ${{ secrets.SUFFIX }}
SECRETS_ENABLE: ${{ secrets.ENABLE }}
SECRETS_MINIFY: ${{ secrets.MINIFY }}
SECRETS_RENAME: ${{ secrets.RENAME }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_ACTOR: ${{ github.actor }}
SECRETS_TAG: ${{ secrets.TAG }}
SECRETS_LAUNCH_NAME: ${{ secrets.LAUNCH_NAME }}
run: source $GITHUB_WORKSPACE/action_setenv.sh

- name: clone code
shell: bash
run: source $GITHUB_WORKSPACE/action_clone.sh

- name: custom your app
shell: bash
run: |
source $GITHUB_WORKSPACE/action_app_custom.sh

- name: hash files
if: success()
id: hash_files
shell: bash
run: |
find $APP_WORKSPACE -type f -regex '.*/\(.*\.gradle\|gradle-wrapper\.properties\)' -exec \
cat '{}' \; >$APP_WORKSPACE/bindfile
echo ::set-output name=hash::$(sha1sum $APP_WORKSPACE/bindfile | awk '{print $1}')

- uses: actions/cache@v2
if: env.APP_NAME == 'legado' && steps.hash_files.outputs.hash != null
with:
path: |
~/.gradle/caches
!~/.gradle/caches/build-cache-1
~/.gradle/wrapper
key: legado-gradle-${{ hashFiles('**/.lastcheck') }}-${{ steps.hash_files.outputs.hash }}
restore-keys: |
legado-gradle-${{ hashFiles('**/.lastcheck') }}-

- uses: actions/cache@v2
if: env.APP_NAME == 'legado'
with:
path: |
~/.gradle/caches/build-cache-1
key: legado-cache-${{ hashFiles('**/.lastcheck') }}-${{ github.run_id }}
restore-keys: |
legado-cache-${{ hashFiles('**/.lastcheck') }}-

- name: build your app
if: success()
shell: bash
run: |
source $GITHUB_WORKSPACE/action_app_build.sh
app_build

- name: upload artifact
uses: actions/upload-artifact@v2
if: success()
with:
name: ${{ env.APP_UPLOAD_NAME }}
path: ${{ env.APP_UPLOAD }}

- name: upload to webdav
if: success()
shell: bash
env:
WEBDAV_URL: ${{ secrets.WEBDAV_URL }}
WEBDAV_AUTH: ${{ secrets.WEBDAV_AUTH }}
WEBDAV_UPLOAD: ${{ secrets.WEBDAV_UPLOAD }}
run: |
source $GITHUB_WORKSPACE/action_util.sh
webdav_upload $APP_UPLOAD/*.apk

114 changes: 114 additions & 0 deletions .github/workflows/legado_custom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: LegadoCustom

on:
workflow_dispatch:
inputs:
git_url:
description: 'Your legado git url'
required: true
default: 'https://github.com/gedoor/legado.git'
git_tag:
description: 'Your legado git tag'
required: true
default: '3.23.110211'
app_channel:
description: 'Your legado build channel(App)'
required: true
default: 'App'
app_custom:
description: 'Your legado custom script'
required: true
default: 'diy_test.sh'
app_name:
description: 'Legado app name'
required: true
default: '阅读'
app_suffix:
description: 'Legado app suffix'
required: true
default: 'A'
app_launch_name:
description: 'Legado app launch name'
required: true
default: '阅读.A'
webdav_upload:
description: 'Webdav upload when build apk finish'
required: true
default: 'false'
webdav_url:
description: 'Webdav upload url'
required: true
default: 'https://dav.jianguoyun.com/dav/'
webdav_auth:
description: 'Webdav auth user and password'
required: true
default: 'test@test.com:test_12345'

jobs:
build_apk:
if: github.repository_owner == github.actor
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: setup JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

- name: setup Gradle
uses: gradle/gradle-build-action@v2.4.2

- name: set env
shell: bash
env:
SECRETS_APP_NAME: ${{ github.event.inputs.app_name }}
SECRETS_GIT_URL: ${{ github.event.inputs.git_url }}
SECRETS_CHANNEL: ${{ github.event.inputs.app_channel }}
SECRETS_SUFFIX: ${{ github.event.inputs.app_suffix }}
SECRETS_ENABLE: ${{ secrets.ENABLE }}
SECRETS_MINIFY: ${{ secrets.MINIFY }}
SECRETS_RENAME: ${{ secrets.RENAME }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_ACTOR: ${{ github.actor }}
SECRETS_TAG: ${{ github.event.inputs.git_tag }}
SECRETS_LAUNCH_NAME: ${{ github.event.inputs.app_launch_name }}
run: source $GITHUB_WORKSPACE/action_setenv.sh

- name: clone code
shell: bash
run: source $GITHUB_WORKSPACE/action_clone.sh

- name: custom your app
shell: bash
env:
custom: ${{ github.event.inputs.app_custom }}
run: |
source $GITHUB_WORKSPACE/diy/$custom

- name: build your app
if: success()
shell: bash
run: |
source $GITHUB_WORKSPACE/action_app_build.sh
app_build

- name: upload artifact
uses: actions/upload-artifact@v4
if: success()
with:
name: ${{ env.APP_UPLOAD_NAME }}
path: ${{ env.APP_UPLOAD }}

- name: upload to webdav
if: success()
shell: bash
env:
WEBDAV_URL: ${{ github.event.inputs.webdav_url }}
WEBDAV_AUTH: ${{ github.event.inputs.webdav_auth }}
WEBDAV_UPLOAD: ${{ github.event.inputs.webdav_upload }}
run: |
source $GITHUB_WORKSPACE/action_util.sh
webdav_upload $APP_UPLOAD/*.apk

113 changes: 113 additions & 0 deletions .lastcheck
Original file line number Diff line number Diff line change
@@ -1,3 +1,116 @@
3.23.110211
3.23.110115
3.23.103114
3.23.051919
3.23.051822
3.23.051323
3.23.050309
3.23.040420
3.23.040118
3.23.032923
3.23.032820
3.23.032123
3.23.032112
3.23.032021
3.23.031520
3.23.031420
3.23.031314
3.23.031210
3.23.030400
3.23.022715
3.23.022621
3.23.022219
3.23.021621
3.23.020921
3.23.013123
3.23.012922
3.23.012018
3.23.011918
3.23.011022
3.23.010719
3.22.122419
3.22.121521
3.22.121018
3.22.120121
3.22.112222
3.22.111423
3.22.110823
3.22.102918
3.22.102223
3.22.102020
3.22.101712
3.22.101709
3.22.101619
3.22.101421
3.22.100921
3.22.100521
3.22.100210
3.22.100120
3.22.092618
3.22.092400
3.22.092220
3.22.092020
3.22.091920
3.22.091719
3.22.091712
3.22.091613
3.22.091520
3.22.083120
3.22.082409
3.22.081920
3.22.080322
3.22.072122
3.22.071618
3.22.071010
3.22.070921
3.22.070722
3.22.062320
3.22.061722
3.22.061022
3.22.060120
3.22.052723
3.22.052708
3.22.052621
3.22.052113
3.22.051719
3.22.051612
3.22.051215
3.22.051021
3.22.050215
3.22.050122
3.22.042323
3.22.042309
3.22.042218
3.22.041820
3.22.041421
3.22.041418
3.22.041209
3.22.040716
3.22.040517
3.22.033020
3.22.032521
3.22.032320
3.22.031722
3.22.031519
3.22.031209
3.22.030919
3.22.030711
3.22.030410
3.22.030322
3.22.022822
3.22.022814
3.22.022719
3.22.022623
3.22.022509
3.22.022219
3.22.021714
3.22.021120
3.22.021118
3.22.021109
3.22.020919
3.22.020311
3.22.012821
3.22.012619
3.22.012019
3.22.011116
3.22.011108
Expand Down
Loading