Skip to content

Commit

Permalink
fix: require bootstrap and bootstrap sig urls to be passed into RL la…
Browse files Browse the repository at this point in the history
…uncher
  • Loading branch information
Z-Kris committed Feb 15, 2025
1 parent 18459cc commit 766f790
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/main/java/net/runelite/launcher/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ public static void main(String[] args)
parser.accepts("port", "Patched port").withRequiredArg();
parser.accepts("socket_id", "Unix socket id").withRequiredArg();
parser.accepts("jav_config", "JAV config url").withRequiredArg();
parser.accepts("bootstrap_url", "Bootstrap URL");
parser.accepts("bootstrap_sig_url", "Bootstrap signature URL");
parser.accepts("bootstrap_url", "Bootstrap URL").withRequiredArg();
parser.accepts("bootstrap_sig_url", "Bootstrap signature URL").withRequiredArg();
parser.accepts("developer-mode");

if (OS.getOs() == OS.OSType.MacOS)
Expand Down Expand Up @@ -335,15 +335,9 @@ public static void main(String[] args)
Bootstrap bootstrap;
try
{
final String bootstrapUrl = options.has("bootstrap_url")
? String.valueOf(options.valueOf("bootstrap_url"))
: LauncherProperties.getBootstrap();
final String bootstrapSignatureUrl = options.has("bootstrap_sig_url")
? String.valueOf(options.valueOf("bootstrap_sig_url"))
: LauncherProperties.getBootstrapSig();
bootstrap = getBootstrap(
bootstrapUrl,
bootstrapSignatureUrl
String.valueOf(options.valueOf("bootstrap_url")),
String.valueOf(options.valueOf("bootstrap_sig_url"))
);
}
catch (IOException | VerificationException | CertificateException | SignatureException | InvalidKeyException | NoSuchAlgorithmException ex)
Expand Down

0 comments on commit 766f790

Please sign in to comment.