Skip to content

Commit

Permalink
do not log content of ProjectSettings/ProjectSettings.asset in every …
Browse files Browse the repository at this point in the history
…build
  • Loading branch information
achimmihca committed May 11, 2022
1 parent 2f4fcdd commit 027d8bb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ private static string GetPlayerSettingsFileBundleVersion()
// Return the value from the file because the C# API (PlayerSettings.bundleVersion) returns an older value
// during the GitHub Actions build for whatever reason.
string[] projectSettingsAssetLines = File.ReadAllLines("ProjectSettings/ProjectSettings.asset");
Debug.Log($"ProjectSettings.asset content:\n{projectSettingsAssetLines.JoinWith("\n")}");
string bundleVersionLine = projectSettingsAssetLines.FirstOrDefault(line => line.Contains("bundleVersion:"));
Debug.Log($"bundleVersionLine: {bundleVersionLine}");
string bundleVersion = bundleVersionLine.Replace("bundleVersion:", "").Trim();
Debug.Log($"bundleVersion: {bundleVersion}");
Debug.Log($"bundleVersion from ProjectSettings/ProjectSettings.asset: {bundleVersion}");
return bundleVersion;
}
}

0 comments on commit 027d8bb

Please sign in to comment.