version: Update to 34.0.0.184, merge Debug and Release versions into one installer, use aggressive compression, install Legacy ActiveX on old systems

This commit is contained in:
Daniel
2021-08-22 19:18:13 +03:00
parent 5b374708c5
commit ede6826dc4
15 changed files with 390 additions and 272 deletions
+6
View File
@@ -83,6 +83,12 @@ namespace CleanFlashCommon {
return versionPath;
}
public static bool IsLegacyWindows() {
System.Version version = Environment.OSVersion.Version;
return version.Major <= 6 && (version.Major != 6 || version.Minor < 2);
}
public static Dictionary<string, string> GetReplacementStrings() {
return replacementStrings;
}
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CleanFlashCommon {
"flashplayerapp", "flashplayer_sa", "flashplayer_sa_debug",
// Browsers that might be using Flash Player right now
"opera", "iexplore", "chrome", "chromium", "brave", "vivaldi", "basilisk", "msedge",
"seamonkey", "palemoon", "k-meleon", "plugin-container"
"seamonkey", "palemoon", "k-meleon", "plugin-container", "waterfox"
};
static Uninstaller() {
+3 -14
View File
@@ -32,13 +32,11 @@ namespace CleanFlashCommon {
}
public class UpdateChecker {
private static readonly bool DEBUG = true;
private static readonly string FLASH_VERSION = "34.0.0.175";
private static readonly string VERSION = "v34.0.0.175";
private static readonly string FLASH_PLAYER_EXECUTABLE = DEBUG ? "flashplayer_sa_debug.exe" : "flashplayer_sa.exe";
private static readonly string FLASH_VERSION = "34.0.0.184";
private static readonly string VERSION = "v34.0.0.184";
private static readonly string AUTHOR = "cleanflash";
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/92.0.4515.159 Safari/537.36";
public static string GetAPILink() {
return "https://api.github.com/repos/" + AUTHOR + "/" + REPO + "/releases/latest";
@@ -52,15 +50,6 @@ namespace CleanFlashCommon {
return VERSION;
}
public static string GetFlashPlayerExecutable() {
return FLASH_PLAYER_EXECUTABLE;
}
public static bool IsDebug()
{
return DEBUG;
}
private static Version GetLatestVersionUnsafe() {
using (WebClient client = new WebClient()) {
client.Headers.Add("user-agent", USER_AGENT);