diff --git a/README.md b/README.md index ab320b6..8924b1e 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,10 @@ Set scripting define symbols. For example, `RELEASE_VERSION;ENG_VERSION`. Only f List of additional [BuildOptions](https://docs.unity3d.com/ScriptReference/BuildOptions.html). For example, `SymlinkLibraries, CompressWithLz4HC`. Only for default build method. +### `android-keystore-name` + +The keystore name will be used in the build. Only for default build method. + ### `android-keystore-base64` The base64 contents of the android keystore file. Only for default build method. diff --git a/action.yml b/action.yml index 8ffef97..d1badc4 100644 --- a/action.yml +++ b/action.yml @@ -23,6 +23,9 @@ inputs: build-defines: description: Set scripting define symbols. For example, RELEASE_VERSION;ENG_VERSION. Only for default build method required: false + android-keystore-name: + description: The keystore name will be used in the build. Only for default build method. + required: false android-keystore-base64: description: The base64 contents of the android keystore file. Only for default build method required: false diff --git a/src/build.js b/src/build.js index 31fc62b..72dee21 100644 --- a/src/build.js +++ b/src/build.js @@ -16,6 +16,7 @@ async function run() { const buildNumber = core.getInput('build-number'); const buildDefines = core.getInput('build-defines'); const buildOptions = core.getInput('build-options'); + const androidKeystoreName = core.getInput('android-keystore-name'); const androidKeystoreBase64 = core.getInput('android-keystore-base64'); const androidKeystorePass = core.getInput('android-keystore-pass'); const androidKeyaliasName = core.getInput('android-keyalias-name'); @@ -56,6 +57,9 @@ async function run() { if (buildOptions) { buildArgs += ` -buildOptions "${buildOptions}"`; } + if (androidKeystoreName) { + buildArgs += ` -androidKeystoreName "${androidKeystoreName}"` + } if (androidKeystoreBase64) { buildArgs += ` -androidKeystoreBase64 "${androidKeystoreBase64}"`; }