mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-24 09:03:44 +00:00
feat: initial GoldMapper support
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
@@ -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",
|
||||
|
||||
Executable
+39
@@ -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."
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user