Created
January 11, 2026 04:29
-
-
Save wbmins/48bdfbcac8dbac3f63e3237901533070 to your computer and use it in GitHub Desktop.
https://github.com/keiyoushi/extensions-source build scritp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://adoptium.net/zh-CN/temurin/releases?version=17 配置jdk | |
| echo 'export JAVA_HOME=/opt/jdk' | sudo tee -a /etc/profile | |
| echo 'export PATH=$JAVA_HOME/bin:$PATH' | sudo tee -a /etc/profile | |
| source /etc/profile | |
| # 下载gradle缓存解压到~/.gradle | |
| # 下载 command-line tools | |
| wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip | |
| unzip commandlinetools-linux-*.zip -d cmdline-tools | |
| mv cmdline-tools/cmdline-tools cmdline-tools/latest | |
| # 接受许可并安装 SDK 平台 | |
| yes | cmdline-tools/latest/bin/sdkmanager --sdk_root=/root/Android/Sdk "platforms;android-34" "build-tools;34.0.0" | |
| # 生成密钥 | |
| keytool -genkeypair -v -keystore signingkey.jks -keyalg RSA -keysize 2048 -validity 10000 -alias mins | |
| # 设置环境变量 | |
| export SIGNING_KEY=signingkey.jks | |
| export ALIAS="mins" | |
| export KEY_STORE_PASSWORD="wubo5413.." | |
| export KEY_PASSWORD="wubo5413.." | |
| # 构建 | |
| ./gradlew src:all:ehentai:assembleRelease |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment