Update: Add support for su3-signed development builds (ticket #1381)

Full version is used as the su3 version.
Uses same su3 certs as release updates. Users may add additional certs
to ~/.i2p/certificates/router/ as necessary.
Copy echelon's reseed key for use as a router signer.
Unsigned update remains a separate option for now.
Various update subsystem cleanups.
This commit is contained in:
zzz
2015-05-07 13:04:43 +00:00
parent b12f988390
commit 2f5e64e532
18 changed files with 509 additions and 51 deletions

View File

@ -95,6 +95,14 @@ public class ConfigUpdateHelper extends HelperBase {
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" >";
}
/** @since 0.9.20 */
public String getUpdateDevSU3() {
if (_context.getBooleanProperty(ConfigUpdateHandler.PROP_UPDATE_DEV_SU3))
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateDevSU3\" checked=\"checked\" >";
else
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateDevSU3\" >";
}
private static final long PERIODS[] = new long[] { 12*60*60*1000l, 24*60*60*1000l,
36*60*60*1000l, 48*60*60*1000l,
3*24*60*60*1000l, 7*24*60*60*1000l,
@ -168,6 +176,11 @@ public class ConfigUpdateHelper extends HelperBase {
return _context.getProperty(ConfigUpdateHandler.PROP_ZIP_URL, "");
}
/** @since 0.9.20 */
public String getDevSU3URL() {
return _context.getProperty(ConfigUpdateHandler.PROP_DEV_SU3_URL, "");
}
public String getNewsStatus() {
return NewsHelper.status(_context);
}