mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-10-17 00:14:33 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
fa9fe18215 | ||
|
01dcc09a78 |
@@ -135,6 +135,12 @@ class Main(args: Array<String>) {
|
|||||||
options.addOption("g", "no-gui", false, "Don't display a GUI to show update progress")
|
options.addOption("g", "no-gui", false, "Don't display a GUI to show update progress")
|
||||||
options.addOption("h", "help", false, "Display this message") // Implemented in packwiz-installer-bootstrap!
|
options.addOption("h", "help", false, "Display this message") // Implemented in packwiz-installer-bootstrap!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
Log.info("packwiz-installer was started without packwiz-installer-bootstrap. Use the bootstrapper for automatic updates! (Disregard this message if you have your own update mechanism)")
|
||||||
|
Main(args)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actual main() is in RequiresBootstrap!
|
// Actual main() is in RequiresBootstrap!
|
||||||
|
@@ -97,6 +97,16 @@ fun resolveCfMetadata(mods: List<IndexFile.File>, packFolder: PackwizFilePath, c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Some file types don't show up in the API at all! (e.g. shaderpacks)
|
||||||
|
// Add unresolved files to manualDownloadMods
|
||||||
|
for ((fileId, file) in fileIdMap) {
|
||||||
|
if (file.linkedFile != null) {
|
||||||
|
if (file.linkedFile!!.resolvedUpdateData["curseforge"] == null) {
|
||||||
|
manualDownloadMods[(file.linkedFile!!.update["curseforge"] as CurseForgeUpdateData).projectId] = Pair(file, fileId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (manualDownloadMods.isNotEmpty()) {
|
if (manualDownloadMods.isNotEmpty()) {
|
||||||
val reqModsData = GetModsRequest(manualDownloadMods.keys.toList())
|
val reqModsData = GetModsRequest(manualDownloadMods.keys.toList())
|
||||||
val reqMods = Request.Builder()
|
val reqMods = Request.Builder()
|
||||||
|
Reference in New Issue
Block a user