Skip to content

Commit

Permalink
Documented the COM_MOJANG and COM_MOJANG_PREVIEW environment varialbe…
Browse files Browse the repository at this point in the history
…s, used on non-Windows systems to simulate the Minecraft paths.
  • Loading branch information
Nusiq committed Nov 11, 2023
1 parent 37f3112 commit 86b64a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docs/guide/export-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ Some configuration properties may be used with all export targets.

`readOnly` changes the permissions of exported files to read-only. The default value is `false`. This property can be used to protect against accidental editing of files that should only be edited by Regolith!

## Additional Configuration for Non-Windows Users

Some of the export targets listed below wouldn't make sense on systems other than Windows with Minecraft installed. They often rely on finding the `com.mojang` path first, and then placing the files in a path relative to that. This problem can be solved by setting environment variables that Regolith will use instead of the `com.mojang` path.

- `COM_MOJANG_PREVIEW` - A fake path to the `com.mojang` folder in Minecraft preview releases. This is used by the `preview` export target.
- `COM_MOJANG` - A fake path to the `com.mojang` folder in regular Minecraft releases.

# Export Targets

These are the export targets that Regolith offers.
Expand Down

0 comments on commit 86b64a2

Please sign in to comment.