Skip to content

Commit f4e8dba

Browse files
committed
Add support for experimental Firefox releases (#891)
* Add support for experimental Firefox releases Closes #217, #889
1 parent 43f29a3 commit f4e8dba

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/qz/installer/certificate/firefox/locator/AppAlias.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
public enum AppAlias {
66
// Tor Browser intentionally excluded; Tor's proxy blocks localhost connections
77
FIREFOX(
8-
new Alias("Mozilla", "Mozilla Firefox", "org.mozilla.firefox", true), // Windows
8+
new Alias("Mozilla", "Mozilla Firefox", "org.mozilla.firefox", true),
9+
new Alias("Mozilla", "Firefox Developer Edition", "org.mozilla.firefoxdeveloperedition", true),
10+
new Alias("Mozilla", "Firefox Nightly", "org.mozilla.nightly", true),
911
new Alias("Mozilla", "SeaMonkey", "org.mozilla.seamonkey", false),
1012
new Alias("Waterfox", "Waterfox", "net.waterfox.waterfoxcurrent", true),
1113
new Alias("Waterfox", "Waterfox Classic", "org.waterfoxproject.waterfox classic", false),

src/qz/installer/certificate/firefox/locator/AppInfo.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ private static Version parseVersion(String version) {
7373
version = version + ".0";
7474
}
7575
return Version.valueOf(version);
76-
} catch(Exception ignore) {}
76+
} catch(Exception ignore1) {
77+
// Catch poor formatting (e.g. "97.0a1"), try to use major version only
78+
if(version.split("\\.").length > 0) {
79+
try {
80+
String[] tryFix = version.split("\\.");
81+
return Version.valueOf(tryFix[0] + ".0.0-unknown");
82+
} catch(Exception ignore2) {}
83+
}
84+
}
7785
return null;
7886
}
7987

0 commit comments

Comments
 (0)