public static string GetReleaseUrl()
 {
     return(Path.Combine(
                ProductInfoUtility.GetDeveloperLinkURL()
                .Replace("https://github.com/", "https://raw.githubusercontent.com/"),
                JsonReleaseInfo.ReleaseBranchName,
                JsonReleaseInfo.VitDeckRootPath,
                JsonReleaseInfo.JsonReleaseInfoPath
                ));
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 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;
     }
 }
Beispiel #4
0
        public void TestGetDeveloperLinkURL()
        {
            var url = ProductInfoUtility.GetDeveloperLinkURL();

            Assert.That(url, Is.EqualTo("https://github.com/vitdeck/VitDeck"));
        }