update:删除多余内容
This commit is contained in:
@@ -24,16 +24,15 @@ public static class ProjectAutoSetting
|
||||
|
||||
static void OnAndroid()
|
||||
{
|
||||
string path = "./KeyStore/android.json"; //自己的路径
|
||||
string jsonContent = File.ReadAllText(path); // 读取 JSON 文件内容
|
||||
if (!string.IsNullOrEmpty(jsonContent))
|
||||
{
|
||||
AndroidJson dynamicObject = JsonUtility.FromJson<AndroidJson>(jsonContent);
|
||||
PlayerSettings.Android.useCustomKeystore = false;
|
||||
}
|
||||
|
||||
// string path = "./KeyStore/android.json"; //自己的路径
|
||||
// string jsonContent = File.ReadAllText(path); // 读取 JSON 文件内容
|
||||
// if (!string.IsNullOrEmpty(jsonContent))
|
||||
// {
|
||||
// AndroidJson dynamicObject = JsonUtility.FromJson<AndroidJson>(jsonContent);
|
||||
// PlayerSettings.Android.useCustomKeystore = false;
|
||||
// }
|
||||
PlayerSettings.Android.useCustomKeystore = false;
|
||||
string outPath = "./" + PlayerSettings.productName + "_" + System.DateTime.Now.ToString("yyyyMMddHHmm");
|
||||
|
||||
EditorUserBuildSettings.SetBuildLocation(BuildTarget.Android, outPath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user