mirror of
https://gitlab.com/cleanflash/installer.git
synced 2026-08-13 02:41:38 +08:00
debug: Add debug labels
This commit is contained in:
@@ -32,13 +32,13 @@ namespace CleanFlashCommon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class UpdateChecker {
|
public class UpdateChecker {
|
||||||
|
private static readonly bool DEBUG = true;
|
||||||
private static readonly string FLASH_VERSION = "34.0.0.175";
|
private static readonly string FLASH_VERSION = "34.0.0.175";
|
||||||
private static readonly string VERSION = "v34.0.0.175";
|
private static readonly string VERSION = "v34.0.0.175";
|
||||||
private static readonly string FLASH_PLAYER_EXECUTABLE = "flashplayer_sa.exe";
|
private static readonly string FLASH_PLAYER_EXECUTABLE = DEBUG ? "flashplayer_sa_debug.exe" : "flashplayer_sa.exe";
|
||||||
private static readonly string AUTHOR = "cleanflash";
|
private static readonly string AUTHOR = "cleanflash";
|
||||||
private static readonly string REPO = "installer";
|
private static readonly string REPO = "installer";
|
||||||
private static readonly string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36";
|
private static readonly string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36";
|
||||||
private static readonly bool DEBUG = false;
|
|
||||||
|
|
||||||
public static string GetAPILink() {
|
public static string GetAPILink() {
|
||||||
return "https://api.github.com/repos/" + AUTHOR + "/" + REPO + "/releases/latest";
|
return "https://api.github.com/repos/" + AUTHOR + "/" + REPO + "/releases/latest";
|
||||||
|
|||||||
@@ -89,6 +89,11 @@ namespace CleanFlashInstaller {
|
|||||||
string description = "Standalone Flash Player " + UpdateChecker.GetFlashVersion();
|
string description = "Standalone Flash Player " + UpdateChecker.GetFlashVersion();
|
||||||
string executable = Path.Combine(flashProgram32Path, UpdateChecker.GetFlashPlayerExecutable());
|
string executable = Path.Combine(flashProgram32Path, UpdateChecker.GetFlashPlayerExecutable());
|
||||||
|
|
||||||
|
if (UpdateChecker.IsDebug()) {
|
||||||
|
name += " (Debug)";
|
||||||
|
description += " (Debug)";
|
||||||
|
}
|
||||||
|
|
||||||
if (flags.IsSet(InstallFlags.PLAYER_START_MENU)) {
|
if (flags.IsSet(InstallFlags.PLAYER_START_MENU)) {
|
||||||
CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), executable, name, description);
|
CreateShortcut(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), executable, name, description);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user