add cursseforge api key

This commit is contained in:
Tungstend 2022-10-22 14:21:12 +08:00
parent 3b6ddb56e2
commit 78effa6543
1 changed files with 1 additions and 6 deletions

View File

@ -25,12 +25,7 @@ public final class CurseForgeRemoteModRepository implements RemoteModRepository
private static final String PREFIX = "https://api.curseforge.com"; private static final String PREFIX = "https://api.curseforge.com";
private static String apiKey; private static final String apiKey = "$2a$10$qqJ3zZFG5CDsVHk8eV5ft.2ywg2edBtHwS3gzFnw7CDe3X2cKpWZG";
static {
apiKey = System.getProperty("hmcl.curseforge.apikey",
JarUtils.thisJar().flatMap(JarUtils::getManifest).map(manifest -> manifest.getMainAttributes().getValue("CurseForge-Api-Key")).orElse(""));
}
private final Type type; private final Type type;
private final int section; private final int section;