feat(project): add preset
This commit is contained in:
+7
-2
@@ -11,7 +11,11 @@ export class RufflePlayer extends FlashPlayer {
|
||||
static ID = "ruffle";
|
||||
|
||||
static VERSION_2026_05_15 = "nightly-2026_05_15";
|
||||
static VERSION = RufflePlayer.VERSION_2026_05_15;
|
||||
static VERSION_2026_10_13 = "nightly-2026_10_13";
|
||||
static VERSION_0_5_0 = "0.5.0";
|
||||
static VERSION_0_6_0 = "0.6.0";
|
||||
static VERSION_0_7_1 = "0.7.1";
|
||||
static VERSION = RufflePlayer.VERSION_2026_10_13;
|
||||
|
||||
BASE_URL = "https://github.com/ruffle-rs/ruffle/releases/download";
|
||||
|
||||
@@ -21,7 +25,8 @@ export class RufflePlayer extends FlashPlayer {
|
||||
}
|
||||
|
||||
get link(): string {
|
||||
const baseUrl = `${this.baseUrl}/${this.version.replaceAll("_", "-")}`;
|
||||
const nightly = this.version.includes("nightly");
|
||||
const baseUrl = `${this.baseUrl}/${nightly ? "" : "v"}${this.version.replaceAll("_", "-")}`;
|
||||
if (System.isWindows) {
|
||||
return baseUrl + `/ruffle-${this.version}-windows-x86_64.zip`;
|
||||
} else if (System.isLinux) {
|
||||
|
||||
Reference in New Issue
Block a user