public static void GetPerm()
        {
            if (!NetworkUtils.IsConnected.Value)
            {
                return;
            }

            Logger.Log.Info("Checking permission for checking alpha SacredUtils updates ...");

            if (ApplicationSettingsManager.Settings.EnableCheckAlphaUpdates)
            {
                if (GetActualApplicationVersion.Get("alpha", ApplicationInfo.AlphaVersion,
                                                    "https://drive.google.com/uc?export=download&id=1Fc0QIxzUn7-ellW5e4_W1Wv05-V1hsJ8"))
                {
                    DownloadApplicationNewUpdate.Download(
                        "https://drive.google.com/uc?export=download&id=1xZzaj0v41S7nkSXkn4GWoDTkBtzeRc2Y",
                        "alpha");
                }
                else
                {
                    CheckAvailabilityReleaseUpdates.GetPerm();
                }
            }
            else
            {
                CheckAvailabilityReleaseUpdates.GetPerm();
            }
        }
Ejemplo n.º 2
0
        public static void GetPerm()
        {
            if (!NetworkUtils.IsConnected.Value)
            {
                return;
            }

            Logger.Log.Info("Checking premission for checking release SacredUtils updates ...");

            if (Settings.EnableCheckReleaseUpdates)
            {
                if (GetActualApplicationVersion.Get("release", ApplicationInfo.Version,
                                                    "https://drive.google.com/uc?export=download&id=13N9ZfalxDfTAIdYxFuGBr8QPMW9OODc_"))
                {
                    DownloadApplicationNewUpdate.Download(
                        "https://drive.google.com/uc?export=download&id=1sDiiIYW0_JXMqh6IAHMOyf3IKPySCr4Q",
                        "release");
                }
            }
            else
            {
                Logger.Log.Warn("SacredUtils is running with disabled checking updates!");
            }
        }