Git Product home page Git Product logo

gedoor-build's Introduction

legado阅读3.0自动构建Android CI

默认从最新发布的tag构建,每次构建会自动清空18PlusList.txt

最新构建下载:legado-3.23.110211.apk 上次构建时间:2023-11-02 20:10:38

2023/11/01

  • 修复一些bug

使用app过程中遇到问题,请到这里解决gedoor/legado

gedoor-build's People

Contributors

10bits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gedoor-build's Issues

怎么不会自动构建?

Uploading 微信图片_20240111193548.png…
2024-01-11T11:31:30.9767955Z Requested labels: ubuntu-latest
2024-01-11T11:31:30.9768297Z Job defined at: vallind/gedoor-Build/.github/workflows/legado.yml@refs/heads/master
2024-01-11T11:31:30.9768411Z Waiting for a runner to pick up this job...
2024-01-11T11:31:31.6597564Z Job is waiting for a hosted runner to come online.
2024-01-11T11:31:35.2357529Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted)
2024-01-11T11:31:37.7949090Z Current runner version: '2.311.0'
2024-01-11T11:31:37.7970605Z ##[group]Operating System
2024-01-11T11:31:37.7971348Z Ubuntu
2024-01-11T11:31:37.7971692Z 22.04.3
2024-01-11T11:31:37.7972000Z LTS
2024-01-11T11:31:37.7972410Z ##[endgroup]
2024-01-11T11:31:37.7972806Z ##[group]Runner Image
2024-01-11T11:31:37.7973212Z Image: ubuntu-22.04
2024-01-11T11:31:37.7973671Z Version: 20240107.1.0
2024-01-11T11:31:37.7974671Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240107.1/images/ubuntu/Ubuntu2204-Readme.md
2024-01-11T11:31:37.7976081Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240107.1
2024-01-11T11:31:37.7977039Z ##[endgroup]
2024-01-11T11:31:37.7977450Z ##[group]Runner Image Provisioner
2024-01-11T11:31:37.7977893Z 2.0.321.1
2024-01-11T11:31:37.7978513Z ##[endgroup]
2024-01-11T11:31:37.7980670Z ##[group]GITHUB_TOKEN Permissions
2024-01-11T11:31:37.7982360Z Actions: write
2024-01-11T11:31:37.7982806Z Checks: write
2024-01-11T11:31:37.7983303Z Contents: write
2024-01-11T11:31:37.7983874Z Deployments: write
2024-01-11T11:31:37.7984287Z Discussions: write
2024-01-11T11:31:37.7984777Z Issues: write
2024-01-11T11:31:37.7985137Z Metadata: read
2024-01-11T11:31:37.7985473Z Packages: write
2024-01-11T11:31:37.7985925Z Pages: write
2024-01-11T11:31:37.7986293Z PullRequests: write
2024-01-11T11:31:37.7986678Z RepositoryProjects: write
2024-01-11T11:31:37.7987215Z SecurityEvents: write
2024-01-11T11:31:37.7987622Z Statuses: write
2024-01-11T11:31:37.7987961Z ##[endgroup]
2024-01-11T11:31:37.7990891Z Secret source: Actions
2024-01-11T11:31:37.7991481Z Prepare workflow directory
2024-01-11T11:31:37.8600551Z Prepare all required actions
2024-01-11T11:31:37.8755025Z Getting action download info
2024-01-11T11:31:38.2273782Z Download action repository 'actions/checkout@v2' (SHA:ee0669bd1cc54295c223e0bb666b733df41de1c5)
2024-01-11T11:31:38.3381112Z Download action repository 'actions/setup-java@v3' (SHA:0ab4596768b603586c0de567f2430c30f5b0d2b0)
2024-01-11T11:31:38.9463682Z Download action repository 'gradle/[email protected]' (SHA:749f47bda3e44aa060e82d7b3ef7e40d953bd629)
2024-01-11T11:31:39.6215860Z Download action repository 'actions/create-release@v1' (SHA:0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e)
2024-01-11T11:31:40.0756741Z Download action repository 'actions/upload-release-asset@v1' (SHA:e8f9f06c4b078e705bd2ea027f0926603fc9b4d5)
2024-01-11T11:31:40.6542216Z Complete job name: check_release
2024-01-11T11:31:40.7361783Z ##[group]Run actions/checkout@v2
2024-01-11T11:31:40.7362142Z with:
2024-01-11T11:31:40.7362391Z repository: vallind/gedoor-Build
2024-01-11T11:31:40.7362856Z token: ***
2024-01-11T11:31:40.7363105Z ssh-strict: true
2024-01-11T11:31:40.7363364Z persist-credentials: true
2024-01-11T11:31:40.7363634Z clean: true
2024-01-11T11:31:40.7363841Z fetch-depth: 1
2024-01-11T11:31:40.7364064Z lfs: false
2024-01-11T11:31:40.7364280Z submodules: false
2024-01-11T11:31:40.7364514Z set-safe-directory: true
2024-01-11T11:31:40.7364772Z ##[endgroup]
2024-01-11T11:31:40.9171837Z Syncing repository: vallind/gedoor-Build
2024-01-11T11:31:40.9173352Z ##[group]Getting Git version info
2024-01-11T11:31:40.9173936Z Working directory is '/home/runner/work/gedoor-Build/gedoor-Build'
2024-01-11T11:31:40.9174628Z [command]/usr/bin/git version
2024-01-11T11:31:40.9208539Z git version 2.43.0
2024-01-11T11:31:40.9231298Z ##[endgroup]
2024-01-11T11:31:40.9246991Z Temporarily overriding HOME='/home/runner/work/_temp/879d1c6d-2fb6-4fb9-979d-8bfbc00a6410' before making global git config changes
2024-01-11T11:31:40.9247983Z Adding repository directory to the temporary git global config as a safe directory
2024-01-11T11:31:40.9251674Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/gedoor-Build/gedoor-Build
2024-01-11T11:31:40.9298601Z Deleting the contents of '/home/runner/work/gedoor-Build/gedoor-Build'
2024-01-11T11:31:40.9303680Z ##[group]Initializing the repository
2024-01-11T11:31:40.9306987Z [command]/usr/bin/git init /home/runner/work/gedoor-Build/gedoor-Build
2024-01-11T11:31:40.9388067Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-01-11T11:31:40.9389256Z hint: is subject to change. To configure the initial branch name to use in all
2024-01-11T11:31:40.9390378Z hint: of your new repositories, which will suppress this warning, call:
2024-01-11T11:31:40.9391203Z hint:
2024-01-11T11:31:40.9394881Z hint: git config --global init.defaultBranch
2024-01-11T11:31:40.9395540Z hint:
2024-01-11T11:31:40.9396240Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-01-11T11:31:40.9397399Z hint: 'development'. The just-created branch can be renamed via this command:
2024-01-11T11:31:40.9398112Z hint:
2024-01-11T11:31:40.9398355Z hint: git branch -m
2024-01-11T11:31:40.9401214Z Initialized empty Git repository in /home/runner/work/gedoor-Build/gedoor-Build/.git/
2024-01-11T11:31:40.9408975Z [command]/usr/bin/git remote add origin https://github.com/vallind/gedoor-Build
2024-01-11T11:31:40.9451635Z ##[endgroup]
2024-01-11T11:31:40.9452351Z ##[group]Disabling automatic garbage collection
2024-01-11T11:31:40.9456515Z [command]/usr/bin/git config --local gc.auto 0
2024-01-11T11:31:40.9495469Z ##[endgroup]
2024-01-11T11:31:40.9496281Z ##[group]Setting up auth
2024-01-11T11:31:40.9503716Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2024-01-11T11:31:40.9543300Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-01-11T11:31:40.9839833Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2024-01-11T11:31:40.9881217Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-01-11T11:31:41.0123176Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-01-11T11:31:41.0167541Z ##[endgroup]
2024-01-11T11:31:41.0168144Z ##[group]Fetching the repository
2024-01-11T11:31:41.0175814Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +680ee04dac20faa2401ea03575da60c0bea7de2e:refs/remotes/origin/master
2024-01-11T11:31:41.3939536Z remote: Enumerating objects: 25, done.
2024-01-11T11:31:41.3940646Z remote: Counting objects: 4% (1/25)
2024-01-11T11:31:41.3941434Z remote: Counting objects: 8% (2/25)
2024-01-11T11:31:41.3942048Z remote: Counting objects: 12% (3/25)
2024-01-11T11:31:41.3942656Z remote: Counting objects: 16% (4/25)
2024-01-11T11:31:41.3979465Z remote: Counting objects: 20% (5/25)
2024-01-11T11:31:41.3980355Z remote: Counting objects: 24% (6/25)
2024-01-11T11:31:41.3981146Z remote: Counting objects: 28% (7/25)
2024-01-11T11:31:41.3981785Z remote: Counting objects: 32% (8/25)
2024-01-11T11:31:41.3982368Z remote: Counting objects: 36% (9/25)
2024-01-11T11:31:41.3982742Z remote: Counting objects: 40% (10/25)
2024-01-11T11:31:41.3983110Z remote: Counting objects: 44% (11/25)
2024-01-11T11:31:41.3983486Z remote: Counting objects: 48% (12/25)
2024-01-11T11:31:41.3983866Z remote: Counting objects: 52% (13/25)
2024-01-11T11:31:41.3984229Z remote: Counting objects: 56% (14/25)
2024-01-11T11:31:41.3984586Z remote: Counting objects: 60% (15/25)
2024-01-11T11:31:41.3984945Z remote: Counting objects: 64% (16/25)
2024-01-11T11:31:41.3985305Z remote: Counting objects: 68% (17/25)
2024-01-11T11:31:41.3985650Z remote: Counting objects: 72% (18/25)
2024-01-11T11:31:41.3986005Z remote: Counting objects: 76% (19/25)
2024-01-11T11:31:41.3986491Z remote: Counting objects: 80% (20/25)
2024-01-11T11:31:41.3987292Z remote: Counting objects: 84% (21/25)
2024-01-11T11:31:41.3987709Z remote: Counting objects: 88% (22/25)
2024-01-11T11:31:41.3988069Z remote: Counting objects: 92% (23/25)
2024-01-11T11:31:41.3988426Z remote: Counting objects: 96% (24/25)
2024-01-11T11:31:41.3988795Z remote: Counting objects: 100% (25/25)
2024-01-11T11:31:41.3989190Z remote: Counting objects: 100% (25/25), done.
2024-01-11T11:31:41.3989600Z remote: Compressing objects: 4% (1/23)
2024-01-11T11:31:41.3989992Z remote: Compressing objects: 8% (2/23)
2024-01-11T11:31:41.3990374Z remote: Compressing objects: 13% (3/23)
2024-01-11T11:31:41.3990742Z remote: Compressing objects: 17% (4/23)
2024-01-11T11:31:41.3991120Z remote: Compressing objects: 21% (5/23)
2024-01-11T11:31:41.3991499Z remote: Compressing objects: 26% (6/23)
2024-01-11T11:31:41.3991872Z remote: Compressing objects: 30% (7/23)
2024-01-11T11:31:41.3992254Z remote: Compressing objects: 34% (8/23)
2024-01-11T11:31:41.3992640Z remote: Compressing objects: 39% (9/23)
2024-01-11T11:31:41.3993157Z remote: Compressing objects: 43% (10/23)
2024-01-11T11:31:41.3993562Z remote: Compressing objects: 47% (11/23)
2024-01-11T11:31:41.3993954Z remote: Compressing objects: 52% (12/23)
2024-01-11T11:31:41.3994333Z remote: Compressing objects: 56% (13/23)
2024-01-11T11:31:41.3994707Z remote: Compressing objects: 60% (14/23)
2024-01-11T11:31:41.3995094Z remote: Compressing objects: 65% (15/23)
2024-01-11T11:31:41.3995493Z remote: Compressing objects: 69% (16/23)
2024-01-11T11:31:41.3995935Z remote: Compressing objects: 73% (17/23)
2024-01-11T11:31:41.3996316Z remote: Compressing objects: 78% (18/23)
2024-01-11T11:31:41.3996697Z remote: Compressing objects: 82% (19/23)
2024-01-11T11:31:41.3997061Z remote: Compressing objects: 86% (20/23)
2024-01-11T11:31:41.3997441Z remote: Compressing objects: 91% (21/23)
2024-01-11T11:31:41.3997818Z remote: Compressing objects: 95% (22/23)
2024-01-11T11:31:41.3998182Z remote: Compressing objects: 100% (23/23)
2024-01-11T11:31:41.3998597Z remote: Compressing objects: 100% (23/23), done.
2024-01-11T11:31:41.4163486Z remote: Total 25 (delta 0), reused 7 (delta 0), pack-reused 0
2024-01-11T11:31:41.4231616Z From https://github.com/vallind/gedoor-Build
2024-01-11T11:31:41.4232687Z * [new ref] 680ee04 -> origin/master
2024-01-11T11:31:41.4257206Z ##[endgroup]
2024-01-11T11:31:41.4258372Z ##[group]Determining the checkout info
2024-01-11T11:31:41.4259758Z ##[endgroup]
2024-01-11T11:31:41.4260583Z ##[group]Checking out the ref
2024-01-11T11:31:41.4264190Z [command]/usr/bin/git checkout --progress --force -B master refs/remotes/origin/master
2024-01-11T11:31:41.4330484Z Reset branch 'master'
2024-01-11T11:31:41.4332383Z branch 'master' set up to track 'origin/master'.
2024-01-11T11:31:41.4336563Z ##[endgroup]
2024-01-11T11:31:41.4401259Z [command]/usr/bin/git log -1 --format='%H'
2024-01-11T11:31:41.4438073Z '680ee04dac20faa2401ea03575da60c0bea7de2e'
2024-01-11T11:31:41.4782687Z ##[group]Run source $GITHUB_WORKSPACE/action_schedule.sh
2024-01-11T11:31:41.4783329Z �[36;1msource $GITHUB_WORKSPACE/action_schedule.sh�[0m
2024-01-11T11:31:41.4847700Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-01-11T11:31:41.4848139Z env:
2024-01-11T11:31:41.4848344Z SECRETS_MINIFY:
2024-01-11T11:31:41.4848584Z SECRETS_RENAME:
2024-01-11T11:31:41.4848815Z ##[endgroup]
2024-01-11T11:31:41.8301700Z ##[group]Run function version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; }
2024-01-11T11:31:41.8302608Z �[36;1mfunction version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; }�[0m
2024-01-11T11:31:41.8303402Z �[36;1mif version_gt $APP_LATEST_TAG $APP_LAST_TAG; then�[0m
2024-01-11T11:31:41.8303918Z �[36;1m git clone $APP_GIT_URL $APP_WORKSPACE�[0m
2024-01-11T11:31:41.8304571Z �[36;1m cd $APP_WORKSPACE�[0m
2024-01-11T11:31:41.8305048Z �[36;1m git checkout $LATEST_TAG �[0m
2024-01-11T11:31:41.8305467Z �[36;1m echo "if_release=true" >>$GITHUB_OUTPUT�[0m
2024-01-11T11:31:41.8305897Z �[36;1mfi�[0m
2024-01-11T11:31:41.8355001Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-01-11T11:31:41.8355592Z env:
2024-01-11T11:31:41.8355901Z APP_NAME: legado
2024-01-11T11:31:41.8356270Z APP_GIT_URL: https://github.com/gedoor/legado.git
2024-01-11T11:31:41.8356970Z APP_LAUNCH_NAME: 阅读.A
2024-01-11T11:31:41.8357460Z APP_WORKSPACE: /opt/legado
2024-01-11T11:31:41.8357867Z APP_SUFFIX: A
2024-01-11T11:31:41.8358298Z APP_UPLOAD: /opt/legado/app/build/outputs/apk/app/release
2024-01-11T11:31:41.8358774Z SECRETS_MINIFY:
2024-01-11T11:31:41.8359116Z SECRETS_RENAME:
2024-01-11T11:31:41.8359457Z LATEST_TAG: 3.23.110211
2024-01-11T11:31:41.8359802Z APP_LATEST_TAG: 3.23.110211
2024-01-11T11:31:41.8360197Z APP_LATEST_BODY: /opt/latest.md
2024-01-11T11:31:41.8360617Z APP_LATEST_CHECK: 2024-01-11 19:31:41
2024-01-11T11:31:41.8361028Z APP_UPLOAD_NAME: legado-3.23.110211
2024-01-11T11:31:41.8361461Z APP_LAST_TAG: 3.23.110211
2024-01-11T11:31:41.8361828Z ##[endgroup]
2024-01-11T11:31:41.8602992Z Post job cleanup.
2024-01-11T11:31:41.9583964Z [command]/usr/bin/git version
2024-01-11T11:31:41.9632526Z git version 2.43.0
2024-01-11T11:31:41.9672868Z Temporarily overriding HOME='/home/runner/work/_temp/c99ef64e-7fa8-4c57-a0bb-dbac4892c1a7' before making global git config changes
2024-01-11T11:31:41.9674400Z Adding repository directory to the temporary git global config as a safe directory
2024-01-11T11:31:41.9678105Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/gedoor-Build/gedoor-Build
2024-01-11T11:31:41.9721131Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2024-01-11T11:31:41.9762321Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-01-11T11:31:42.0006883Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2024-01-11T11:31:42.0038901Z http.https://github.com/.extraheader
2024-01-11T11:31:42.0048365Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-01-11T11:31:42.0092053Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-01-11T11:31:42.0638151Z Cleaning up orphan processes

非master分支该如何构建?

例如从master分支出function1,然后修改了一些代码并提交到分支function1。
应该如何自动构建function1这个分支呢?

【BUG】软件重命名失效

经过多个小时的测试和排查,在我和 @olixina 不懈努力下,找到了无法重命名的原因。


问题分析:

gedoor-Build/action_app_custom.sh 文件下,第十六行的判断出现了问题

if [[ "$APP_NAME" == "legado" ]] && [[ "$SECRETS_RENAME" == "true" ]]; then

执行判断时,前半句是对的,后半句因为 $SECRETS_RENAME 变量未定义初始值,导致判断结果永远非true非false


解决方案:

$SECRETS_RENAME 变量赋予true初始值,可以看 @olixina 的修改记录

https://github.com/olixina/gedoor-Build/commit/8447fdf8b2bd89048b12ed95be7dc3e6cb894b01

大佬,怎么修改完整的包名?

大佬,能不能修改完整的包名。自己试着用你的脚本改了,只能改最后一位,不然编译失败!
口袋阅读上面改包名就可以直接从桌面上启动的
感谢你的脚本,非常好用666~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.