Repository navigation
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:
- JVM system property (
-Dpackupdater.<key>=) <gameDir>/config/packupdater.properties- Built-in default
| 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.server-side |
false |
Set on a dedicated server. Adds -g -s server so the installer installs server-side mods. |
packupdater.skip |
false |
Skip the updater entirely. |
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 |
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.tomlTwo details that catch people out:
-
The host is
raw.githubusercontent.com, notgithub.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.
mainandmasterare both common; whichever the repo actually uses must match, or the URL 404s.gh repo view <owner>/<repo> --json defaultBranchRef --jq .defaultBranchRef.nameprints 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.
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.tomlKeep the raw URL as the fallback if you would rather not run a second publishing step.
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=falseWith dev=false you get main. Flip to true and you get dev, with no other change.
| Key | Default | Purpose |
|---|---|---|
packupdater.installer-url |
PackUpdater's maintained installer | GitHub stable-release API URL. Missing or blank values use the default; they do not disable self-updates. |
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 uses its maintained companion installer:
packupdater.installer-url=https://api.github.com/repos/Jammersmurph/packwiz-installer/releases/latestThis provides the standard themed UI, pack branding, and optional-mod groups.
Replacing the installer is an advanced option: the URL must point at a release
whose assets include a file named installer-asset, and alternate installers
may not support these features.
Existing explicit installer URLs are not rewritten automatically. Pack authors migrating from the original installer should update the setting in their pack repository. See Installer and branding.
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.
| Key | Default | Purpose |
|---|---|---|
packupdater.gui |
true |
Show the installer's window, which is where optional mods are chosen. |
Optional mods are declared using an [option] block with optional = true in
their .pw.toml metadata. PackUpdater offers an Optional mods selector and
remembers saved choices between runs.
Place optional-groups.toml beside the hosted pack.toml to organize those mods
into expandable groups. This requires no new property or Packwiz tool changes.
See Optional-mod groups for the schema and examples.
Two consequences worth knowing:
- Startup blocks. Minecraft waits for the installer until the window closes, with the loading screen sitting behind it. Successful completion closes the main updater automatically; optional-mod reminders and confirmation dialogs may pause 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.
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. |
Set packupdater.server-side=true. It is the only difference: the installer is invoked with
-g -s server, so it installs server-side mods and never tries to open a window. Nothing else about
the update changes, and a client instance is unaffected.
Without it the installer defaults to client-side, which silently skips anything marked
side = "server".
# Pack
packupdater.url=
packupdater.dev-url=
packupdater.dev=false
packupdater.server-side=false
packupdater.skip=false
# Installer
packupdater.installer-url=https://api.github.com/repos/Jammersmurph/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=autoThe 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