public static string GetReleaseUrl() { return(Path.Combine( ProductInfoUtility.GetDeveloperLinkURL() .Replace("https://github.com/", "https://raw.githubusercontent.com/"), JsonReleaseInfo.ReleaseBranchName, JsonReleaseInfo.VitDeckRootPath, JsonReleaseInfo.JsonReleaseInfoPath )); }
private static void SaveReleaseInfo() { File.WriteAllText(Path.Combine( Path.GetDirectoryName(Application.dataPath), JsonReleaseInfo.VitDeckRootPath, JsonReleaseInfo.JsonReleaseInfoPath ), JsonUtility.ToJson(new JsonReleaseInfo.ReleaseInfo() { version = ProductInfoUtility.GetVersion(), package_name = ProductInfoUtility.GetDeveloperLinkTitle(), download_url = $"{ProductInfoUtility.GetDeveloperLinkURL()}/releases/download/v{ProductInfoUtility.GetVersion()}/{ToolExporter.GetPackageName()}", }, true)); AssetDatabase.Refresh(); }
private void Init() { versionLabel = "Version : " + ProductInfoUtility.GetVersion(); developerLinkTitle = ProductInfoUtility.GetDeveloperLinkTitle(); developerLinkURL = ProductInfoUtility.GetDeveloperLinkURL(); if (UpdateCheck.Enabled) { var version = UpdateCheck.GetLatestVersion(); if (version == null) { latestVersion = "None"; } else { latestVersion = version; } latestVersionLabel = "Latest Version : " + latestVersion; } }
public void TestGetDeveloperLinkURL() { var url = ProductInfoUtility.GetDeveloperLinkURL(); Assert.That(url, Is.EqualTo("https://github.com/vitdeck/VitDeck")); }