feat: initial GoldMapper support

This commit is contained in:
neoapps-dev
2026-08-20 22:20:44 +03:00
parent 17a258dcae
commit e9f012ee6f
8 changed files with 59 additions and 2 deletions
+6
View File
@@ -24,6 +24,12 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build GoldMapper
shell: bash
run: pnpm goldmapper
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
+6
View File
@@ -37,6 +37,12 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: build GoldMapper
shell: bash
run: pnpm goldmapper
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
+4
View File
@@ -37,6 +37,10 @@ Thumbs.db
/emerald-repo
/ignore/*
# GoldMapper binaries (generated by pnpm goldmapper)
/src-tauri/resources/GoldMapperLib.dll
/src-tauri/resources/GoldMapperLauncher.exe
# Android bundled runtime assets (too large for GitHub; must be present in the working tree)
/src-tauri/gen/android/app/src/main/assets/imagefs.tar.zst
/src-tauri/gen/android/app/src/main/assets/proton-*.tar.zst
Submodule
+1
Submodule GoldMapper added at b0157f9d31
+2 -1
View File
@@ -11,7 +11,8 @@
"tauri:build": "tauri build && pnpm run post-build:macos",
"post-build:macos": "bash src-tauri/scripts/post-build-macos.sh",
"android:assets": "node scripts/download-android-assets.mjs",
"flatpak": "flatpak-builder --user --install-deps-from=flathub --repo=emerald-repo --force-clean build-flatpak flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml && flatpak build-bundle emerald-repo emerald.flatpak io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher"
"flatpak": "flatpak-builder --user --install-deps-from=flathub --repo=emerald-repo --force-clean build-flatpak flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml && flatpak build-bundle emerald-repo emerald.flatpak io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher",
"goldmapper": "bash scripts/build-goldmapper.sh"
},
"dependencies": {
"@tauri-apps/api": "^2",
+39
View File
@@ -0,0 +1,39 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
GOLDMAPPER_DIR="$ROOT_DIR/GoldMapper"
BUILD_DIR="$GOLDMAPPER_DIR/build"
RESOURCES_DIR="$ROOT_DIR/src-tauri/resources"
if ! command -v xwin &> /dev/null; then
echo "Installing xwin..."
cargo install xwin
fi
if [ ! -d "$HOME/.cache/xwin/splat" ]; then
echo "Downloading Windows SDK and CRT..."
xwin --accept-license 16299.309000601.3633040603 splat --output "$HOME/.cache/xwin/splat"
fi
if [ ! -f "$GOLDMAPPER_DIR/third_party/minhook/include/MinHook.h" ]; then
echo "Initializing minhook submodule..."
git -C "$GOLDMAPPER_DIR" submodule update --init --recursive
fi
echo "Configuring GoldMapper..."
cmake -B "$BUILD_DIR" \
-DCMAKE_TOOLCHAIN_FILE="$GOLDMAPPER_DIR/toolchain-xwin.cmake" \
-DCMAKE_BUILD_TYPE=Release \
"$GOLDMAPPER_DIR"
echo "Building GoldMapper..."
cmake --build "$BUILD_DIR" --config Release
echo "Copying binaries to resources..."
mkdir -p "$RESOURCES_DIR"
cp "$BUILD_DIR/GoldMapperLib.dll" "$RESOURCES_DIR/"
cp "$BUILD_DIR/GoldMapperLauncher.exe" "$RESOURCES_DIR/"
echo "GoldMapper build complete."
+1 -1
View File
@@ -58,7 +58,7 @@
"bundleMediaFramework": true
}
},
"resources": ["resources/DLC"],
"resources": ["resources/DLC", "resources/GoldMapperLib.dll", "resources/GoldMapperLauncher.exe"],
"icon": [
"icons/32x32.png",
"icons/64x64.png",