Giter Site home page Giter Site logo

gedoor-build's Introduction

legado阅读3.0自动构建

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

当前最新tag:3.20.080221 上次检查时间:2020-08-04 11:07:44

  1. fork到你自己的仓库
  2. 去你自己的仓库,点一下右上角star就会自动开始构建,已经star的点unstar,再点一下star就会进行新的构建,你的Actions列表会有显示的
  3. 每次构建完,apk会自动打包为legado.apk.zip ,去你自己的Actions列表里找
  4. 每次构建大概十几分钟,请耐心等待
  5. 为什么要去自己的仓库构建,因为很多人一起构建,Actions列表会显的乱七八糟

如果你安装apk遇到以下问题

  1. 安装失败(-102)问题,给release apk增加了签名,已解决
  2. 与已安装应用签名不同问题,请卸载重新安装,已解决
  3. 与已安装程序共存问题,通过修改applicationIdSuffix='.releaseA',已解决,不用卸载重装了

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

如何定制你自己的APP(举例)

请在action_app_custom.sh脚本里进行定制

现在只有仓库的拥有者才能运行此脚本

#!/bin/sh
#设置搜索界面浮动按钮颜色
sed '/id\/fb_stop/a\        android:backgroundTint="#389099"' /opt/legado/app/src/main/res/layout/activity_book_search.xml -i
#缩小apk体积
sed '/minifyEnabled/i\            shrinkResources true' /opt/legado/app/build.gradle -i
sed 's/minifyEnabled false/minifyEnabled true/'         /opt/legado/app/build.gradle -i

构建任务过程中用到的脚本

环境变量$workspace是clone项目工作目录,$name是你app的名字,$tag是clone项目最新tag

  • action_clone.sh脚本用来clone远端仓库到$workspace
  • action_check_tag.sh脚本用来获取远端仓库最新tag
  • action_app_sign.sh脚本用来给app进行签名
  • action_app_custom.sh脚本用来个性化定制app
  • action_app_together.sh脚本用来解决安装程序共存
  • action_schedule.sh脚本用来定时更新本页面里当前最新tag的显示

免责声明

  • 使用github actions自动构建,不会对原仓库代码程序进行任何修改
  • 如果你使用了自动打包的apk对你的设备产生伤害,与本人无关,一切都是自动构建的

gedoor-build's People

Contributors

10bits avatar

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.