flash: Add support for Standalone Flash Player

This commit is contained in:
Daniel
2021-05-16 16:19:22 +03:00
parent f4c3bc5671
commit d164c91895
9 changed files with 428 additions and 155 deletions
+5
View File
@@ -34,6 +34,7 @@ namespace CleanFlashCommon {
public class UpdateChecker {
private static readonly string FLASH_VERSION = "34.0.0.155";
private static readonly string VERSION = "v34.0.0.155";
private static readonly string FLASH_PLAYER_EXECUTABLE = "flashplayer_sa.exe";
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/90.0.4430.85 Safari/537.36";
@@ -50,6 +51,10 @@ namespace CleanFlashCommon {
return VERSION;
}
public static string GetFlashPlayerExecutable() {
return FLASH_PLAYER_EXECUTABLE;
}
private static Version GetLatestVersionUnsafe() {
using (WebClient client = new WebClient()) {
client.Headers.Add("user-agent", USER_AGENT);