Commit ed68f2f0 authored by Gabriel Le Breton's avatar Gabriel Le Breton

Merge branch 'master' into 'master'

Added platform dependent compilation for PlayerSettings.useCustomKeystore

See merge request !29
parents a7d61ed8 c4f9d42d
Pipeline #97964937 passed with stages
in 17 minutes and 15 seconds
......@@ -157,7 +157,9 @@ static class BuildCommand
private static void HandleAndroidKeystore()
{
#if UNITY_2019_1_OR_NEWER
PlayerSettings.Android.useCustomKeystore = false;
#endif
if (!File.Exists(KEYSTORE)) {
Console.WriteLine($":: {KEYSTORE} not found, skipping setup, using Unity's default keystore");
......@@ -185,8 +187,9 @@ static class BuildCommand
Console.WriteLine($":: ${KEY_ALIAS_PASS} env var not set, skipping setup, using Unity's default keystore");
return;
}
#if UNITY_2019_1_OR_NEWER
PlayerSettings.Android.useCustomKeystore = true;
#endif
PlayerSettings.Android.keystorePass = keystorePass;
PlayerSettings.Android.keyaliasPass = keystoreAliasPass;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment