mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-10-20 01:04:32 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
92b44352b3 | ||
|
1d5a787b02 | ||
|
b5983800e8 |
@@ -1,2 +1,2 @@
|
|||||||
# packwiz-installer
|
# packwiz-installer
|
||||||
An installer for launching packwiz modpacks with MultiMC.
|
An installer for launching packwiz modpacks with MultiMC. You'll need [the bootstrapper](https://github.com/comp500/packwiz-installer-bootstrap/releases) to actually use this.
|
||||||
|
@@ -86,6 +86,7 @@ class Main(args: Array<String>) {
|
|||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
// Called by packwiz-installer-bootstrap to set up the help command
|
// Called by packwiz-installer-bootstrap to set up the help command
|
||||||
|
@JvmStatic
|
||||||
fun addNonBootstrapOptions(options: Options) {
|
fun addNonBootstrapOptions(options: Options) {
|
||||||
options.addOption("s", "side", true, "Side to install mods from (client/server, defaults to client)")
|
options.addOption("s", "side", true, "Side to install mods from (client/server, defaults to client)")
|
||||||
options.addOption(null, "title", true, "Title of the installer window")
|
options.addOption(null, "title", true, "Title of the installer window")
|
||||||
@@ -94,6 +95,7 @@ class Main(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: link these somehow so they're only defined once?
|
// TODO: link these somehow so they're only defined once?
|
||||||
|
@JvmStatic
|
||||||
private fun addBootstrapOptions(options: Options) {
|
private fun addBootstrapOptions(options: Options) {
|
||||||
options.addOption(null, "bootstrap-update-url", true, "Github API URL for checking for updates")
|
options.addOption(null, "bootstrap-update-url", true, "Github API URL for checking for updates")
|
||||||
options.addOption(null, "bootstrap-update-token", true, "Github API Access Token, for private repositories")
|
options.addOption(null, "bootstrap-update-token", true, "Github API Access Token, for private repositories")
|
||||||
|
@@ -65,7 +65,7 @@ class RequestHandlerGithub : RequestHandlerZip(true) {
|
|||||||
if (!("http" == scheme || "https" == scheme)) {
|
if (!("http" == scheme || "https" == scheme)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return "github.com" == loc.host
|
// TODO: more match testing?
|
||||||
// TODO: sanity checks, support for more github urls
|
return "github.com" == loc.host && branchMatcherPattern.matcher(loc.path).matches()
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user