Skip to content

Commit e999a17

Browse files
authored
Add support to pass android-keystore-name in the config
1 parent 330f0f3 commit e999a17

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Set scripting define symbols. For example, `RELEASE_VERSION;ENG_VERSION`. Only f
3838

3939
List of additional [BuildOptions](https://docs.unity3d.com/ScriptReference/BuildOptions.html). For example, `SymlinkLibraries, CompressWithLz4HC`. Only for default build method.
4040

41+
### `android-keystore-name`
42+
43+
The keystore name will be generated and used in the build. Only for default build method.
44+
4145
### `android-keystore-base64`
4246

4347
The base64 contents of the android keystore file. Only for default build method.

src/build.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ async function run() {
1616
const buildNumber = core.getInput('build-number');
1717
const buildDefines = core.getInput('build-defines');
1818
const buildOptions = core.getInput('build-options');
19+
const androidKeystoreName = core.getInput('android-keystore-name');
1920
const androidKeystoreBase64 = core.getInput('android-keystore-base64');
2021
const androidKeystorePass = core.getInput('android-keystore-pass');
2122
const androidKeyaliasName = core.getInput('android-keyalias-name');
@@ -56,6 +57,9 @@ async function run() {
5657
if (buildOptions) {
5758
buildArgs += ` -buildOptions "${buildOptions}"`;
5859
}
60+
if (androidKeystoreName) {
61+
buildArgs += ` -androidKeystoreName "${androidKeystoreName}"`
62+
}
5963
if (androidKeystoreBase64) {
6064
buildArgs += ` -androidKeystoreBase64 "${androidKeystoreBase64}"`;
6165
}

0 commit comments

Comments
 (0)