mirror of
https://github.com/r0adkll/sign-android-release
synced 2026-10-06 03:21:34 +00:00
update default build-tools version to 33.0.0
This commit is contained in:
1 parent
349ebdef58
commit
6b21a12240
3 files changed
+5
-5
No files matched your search
@@ -33,7 +33,7 @@ Then copy the contents of the `.txt` file to your GH secrets
|
|||||||
|
|
||||||
## ENV: `BUILD_TOOLS_VERSION`
|
## ENV: `BUILD_TOOLS_VERSION`
|
||||||
|
|
||||||
**Optional:** You can manually specify a version of build-tools to use. We use `29.0.3` by default.
|
**Optional:** You can manually specify a version of build-tools to use. We use `34.0.0` by default.
|
||||||
|
|
||||||
## Outputs
|
## Outputs
|
||||||
|
|
||||||
@@ -68,8 +68,8 @@ steps:
|
|||||||
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
||||||
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
||||||
env:
|
env:
|
||||||
# override default build-tools version (29.0.3) -- optional
|
# override default build-tools version (33.0.0) -- optional
|
||||||
BUILD_TOOLS_VERSION: "30.0.2"
|
BUILD_TOOLS_VERSION: "34.0.0"
|
||||||
|
|
||||||
# Example use of `signedReleaseFile` output -- not needed
|
# Example use of `signedReleaseFile` output -- not needed
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@ function signApkFile(apkFile, signingKeyFile, alias, keyStorePassword, keyPasswo
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
core.debug("Zipaligning APK file");
|
core.debug("Zipaligning APK file");
|
||||||
// Find zipalign executable
|
// Find zipalign executable
|
||||||
const buildToolsVersion = process.env.BUILD_TOOLS_VERSION || '29.0.3';
|
const buildToolsVersion = process.env.BUILD_TOOLS_VERSION || '33.0.0';
|
||||||
const androidHome = process.env.ANDROID_HOME;
|
const androidHome = process.env.ANDROID_HOME;
|
||||||
const buildTools = path.join(androidHome, `build-tools/${buildToolsVersion}`);
|
const buildTools = path.join(androidHome, `build-tools/${buildToolsVersion}`);
|
||||||
if (!fs.existsSync(buildTools)) {
|
if (!fs.existsSync(buildTools)) {
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ export async function signApkFile(
|
|||||||
core.debug("Zipaligning APK file");
|
core.debug("Zipaligning APK file");
|
||||||
|
|
||||||
// Find zipalign executable
|
// Find zipalign executable
|
||||||
const buildToolsVersion = process.env.BUILD_TOOLS_VERSION || '29.0.3';
|
const buildToolsVersion = process.env.BUILD_TOOLS_VERSION || '33.0.0';
|
||||||
const androidHome = process.env.ANDROID_HOME;
|
const androidHome = process.env.ANDROID_HOME;
|
||||||
const buildTools = path.join(androidHome!, `build-tools/${buildToolsVersion}`);
|
const buildTools = path.join(androidHome!, `build-tools/${buildToolsVersion}`);
|
||||||
if (!fs.existsSync(buildTools)) {
|
if (!fs.existsSync(buildTools)) {
|
||||||
|
|||||||
Reference in new issue
Block a user