TerraMap is an interactive Terraria v1.4.5 world map viewer that loads quickly and lets you pan, zoom, find blocks, ores, items in chests, dungeons, NPCs, etc.
This is the source code repository. If you're looking for the web app, you can find it here: https://terramap.github.io
If you're looking for the cross-platform native app, you can find it here: https://terramap.github.io/native.html
If you're looking for the deprecated, no longer supported Windows-only app, you can find it here: https://terramap.github.io/windows.html
Automated tests can't cover how browsers and operating systems treat real files: browser permission prompts, protected folders, and files that change on disk. Before a release that touches opening, loading or reloading worlds, check these by hand.
Use worlds in Terraria's default save folders, not copies elsewhere: Chrome blocks some of these folders for certain file APIs.
| OS | Local worlds | Steam Cloud worlds |
|---|---|---|
| macOS | ~/Library/Application Support/Terraria/Worlds |
~/Library/Application Support/Steam/userdata/<id>/105600/remote/worlds |
| Windows | Documents\My Games\Terraria\Worlds |
C:\Program Files (x86)\Steam\userdata\<id>\105600\remote\worlds |
| Linux | ~/.local/share/Terraria/Worlds |
~/.local/share/Steam/userdata/<id>/105600/remote/worlds |
Where to test:
- Web app in Chrome (or Edge)
- Web app in Safari on macOS
- Web app in Firefox
- Native app on macOS and Windows
In each, check:
- Open World opens a local world and a Steam Cloud world.
- Folder opens the Worlds folder, and the player map loads with the world.
- Drag and drop opens a world file.
- Reload after saving the world in Terraria loads the new save. If the browser can't read the file again, a prompt asks you to open it again, and opening it from there works.
- Opening the same file again after Terraria saves it loads the new save.
The native (Tauri-based) desktop app is built and released by .github/workflows/native-release.yml.
package.json(version) — source of truth for the web app. vite.config.ts imports it and bakes it into__APP_VERSION__at build time. Bump this manually before release.native/tauri.conf.json(version) — native app version. For tagged/manual-tag releases this is overwritten automatically from thenative-vX.Y.Ztag (see below), so it doesn't strictly need bumping first — but keep it in sync so local native dev builds (npm run native) show the right version.
- Tagged release: push a tag matching
native-v*, e.g.:This builds, signs, and publishes a GitHub Release namedgit tag native-v0.1.12 git push origin native-v0.1.12TerraMap Native App 0.2.0. - Manual dry run: run the workflow via
workflow_dispatchin the Actions tab and leave thetaginput blank. This builds all platform artifacts without setting a version or publishing a release, useful for verifying the build still works. - Manual release: run
workflow_dispatchwithtagset to anative-vX.Y.Zvalue to produce a full signed release the same as pushing a tag.
- test — runs
npm ciandnpm test(lint, typecheck, vitest) on Ubuntu; the build only proceeds if this passes. - build — runs in a matrix across
mac-arm64,mac-x64,linux-x64, andwin-x64:- Sets the version in
native/tauri.conf.jsonfrom the tag (tagged/manual releases only). - Imports the Apple signing certificate and builds/notarizes the macOS app (
npx tauri build). - On Linux, additionally builds a Flatpak bundle via
flatpak-builder. - Renames bundle outputs to
TerraMap-{version}-{label}.{ext}(.dmg,.app.tar.gz,.AppImage,.deb,.rpm,.msi,-setup.exe,.flatpak) and uploads them as build artifacts. Windows artifacts are uploaded unsigned at this stage.
- Sets the version in
- sign-windows — submits the unsigned Windows build to SignPath for code signing and uploads the signed result.
- release — (tagged/manual-tag runs only) downloads all platform artifacts and publishes a GitHub Release with the install instructions and every bundle attached.
The following repository secrets/variables must be configured for macOS notarization and Windows signing to succeed:
APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_SIGNING_IDENTITY, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, SIGNPATH_API_TOKEN, and the SignPath organization-id/project-slug/signing-policy-slug/artifact-configuration-slug variables.
npm run native— run the native app in dev mode (tauri dev).npm run native:build— produce a local unsigned native build for your current platform (tauri build).
|
Free code signing on Windows provided by SignPath.io, certificate by SignPath Foundation. |
