Skip to content

Configuration

Jammersmurph edited this page Oct 6, 2026 · 5 revisions

Configuration

Settings are read from <gameDir>/config/packupdater.properties, which PackUpdater creates with documented defaults on the first launch. The same file is attached to every release as packupdater.properties, so a pack author can download it rather than writing it by hand. The two are byte-identical by construction: the mod reads the file it is shipped with rather than keeping a second copy, and a test asserts that.

Any key can be overridden with a JVM argument, which takes precedence over the file:

-Dpackupdater.url=https://raw.githubusercontent.com/you/pack/main/pack.toml

JVM arguments are convenient for a single instance. The config file is better for sharing a setup across a team, and is what you should ship in a pack.

Resolution order, first hit wins:

  1. JVM system property (-Dpackupdater.<key>=)
  2. <gameDir>/config/packupdater.properties
  3. Built-in default

Pack

Key Default Purpose
packupdater.url (empty) URL of the pack.toml to sync against. Required.
packupdater.dev-url (empty) Pack URL used while dev is true. Takes precedence over url.
packupdater.dev false Sync dev-url instead of url.
packupdater.skip false Skip the updater entirely.

The URL must be raw

packupdater.url must point at the raw file, not a web page. A github.com blob or tree link returns HTML, and the install fails with a 404 that looks like a missing pack rather than a malformed URL.

Use Not
https://raw.githubusercontent.com/you/pack/main/pack.toml https://github.com/you/pack/blob/main/pack.toml
https://cdn.example.com/pack/pack.toml https://github.com/you/pack
https://github.com/you/pack/raw/main/pack.toml https://github.com/you/pack/tree/main

Hosting the pack on GitHub

If your PackWiz repository lives on GitHub, every URL has to go through raw.githubusercontent.com. The pattern is:

https://raw.githubusercontent.com/<owner>/<repo>/<branch>/<path>

A working example:

packupdater.url=https://raw.githubusercontent.com/Jammersmurph/CreateVC/main/pack.toml

Two details that catch people out:

  • The host is raw.githubusercontent.com, not github.com. Adding /blob/ or /tree/ — or copying the browser URL from the file's "Raw" button without reading it carefully — produces a page rather than a file.
  • The branch name is part of the path. main and master are both common; whichever the repo actually uses must match, or the URL 404s. gh repo view <owner>/<repo> --json defaultBranchRef --jq .defaultBranchRef.name prints it.

This applies to more than packupdater.url. Every URL inside the pack itself has the same rule: the [index] file reference in pack.toml is resolved relative to the pack URL, so it works unchanged, but any absolute URL you write into index.toml or into a .pw.toml download block must also be a raw URL.

Serving from GitHub Pages instead

raw.githubusercontent.com is rate limited and intended for source browsing, not for serving a pack to every player. For a public pack, publishing the same directory through GitHub Pages and pointing at that avoids the limit entirely:

packupdater.url=https://<owner>.github.io/<repo>/pack.toml

Keep the raw URL as the fallback if you would rather not run a second publishing step.

Testing a branch

With packupdater.dev=true, dev-url wins over url. So a pack that ships a production URL can still test a branch by flipping one flag:

packupdater.url=https://raw.githubusercontent.com/you/pack/main/pack.toml
packupdater.dev-url=https://raw.githubusercontent.com/you/pack/dev/pack.toml
packupdater.dev=false

With dev=false you get main. Flip to true and you get dev, with no other change.

Installer

Key Default Purpose
packupdater.installer-url upstream PackWiz GitHub "latest release" API URL for the PackWiz installer. Blank disables the self-update.
packupdater.installer-asset packwiz-installer.jar Release asset to download.
packupdater.installer-token (empty) GitHub token; only needed for private repositories.

Out of the box PackUpdater bootstraps packwiz/packwiz-installer, so no configuration is needed. You only need to change installer-url if you maintain your own build of the installer, and it must point at a release whose assets include a file named installer-asset.

installer-token is passed to the child process on the command line, so it is visible to anything that can read the process list. Treat it as a low-privilege token.

Window and optional mods

Key Default Purpose
packupdater.gui true Show the installer's window, which is where optional mods are chosen.

Optional mods come from the [optional-mods] section of your pack's index.toml. When present, the PackWiz installer offers an "Optional mods..." button and remembers the selection between runs.

Two consequences worth knowing:

  • Startup blocks. Minecraft waits for the installer until the window closes, with the loading screen sitting behind it.
  • Two progress indicators. The installer's own window, plus the loading screen PackUpdater drives from the installer's output.

Set packupdater.gui=false for a fully unattended update.

Restricted platforms

These only matter on platforms that cannot show a window or cannot start a second JVM. See Restricted platforms for the full explanation.

Key Default Values Purpose
packupdater.compat auto auto, off off disables detection and fallback for exactly the previous behaviour.
packupdater.fallback auto auto, never, always When to use the silent filtered install. always forces it, which is how you exercise the path on a desktop.
packupdater.engine auto auto, fork, direct auto forks a separate JVM and installs in-process when it cannot. fork always forks, direct never does.

All keys at a glance

# Pack
packupdater.url=
packupdater.dev-url=
packupdater.dev=false
packupdater.skip=false

# Installer
packupdater.installer-url=https://api.github.com/repos/packwiz/packwiz-installer/releases/latest
packupdater.installer-asset=packwiz-installer.jar
packupdater.installer-token=

# Interface
packupdater.gui=true

# Restricted platforms
packupdater.compat=auto
packupdater.fallback=auto
packupdater.engine=auto

If something looks wrong

The log is the place to start: logs/latest.log under the game directory. Every decision PackUpdater makes is logged with a [PackUpdater] prefix, including the reason for any fallback.

To restore the original behaviour entirely without replacing the jar:

packupdater.compat=off

Clone this wiki locally