From 6443f8af347963bee9faf549e65ddf11e7dadd4c Mon Sep 17 00:00:00 2001 From: Xpl0itU <24777100+Xpl0itU@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:29:26 +0200 Subject: [PATCH] Move data to resources --- .github/workflows/macos.yml | 4 ++-- cmd/WiiUDownloader/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 5d893d1..bd33ab2 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -25,8 +25,8 @@ jobs: - name: Package run: | python3 data/create_bundle.py - mkdir -p out/WiiUDownloader.app/Contents/MacOS/lib/share/glib-2.0/schemas - cp $(brew --prefix)/share/glib-2.0/schemas/* out/WiiUDownloader.app/Contents/MacOS/lib/share/glib-2.0/schemas + mkdir -p out/WiiUDownloader.app/Contents/Resources/lib/share/glib-schemas + cp $(brew --prefix)/share/glib-2.0/schemas/* out/WiiUDownloader.app/Contents/Resources/lib/share/glib-schemas sudo codesign --force --sign - out/WiiUDownloader.app create-dmg \ --volname "WiiUDownloader" \ diff --git a/cmd/WiiUDownloader/main.go b/cmd/WiiUDownloader/main.go index 66196ac..f2b0831 100644 --- a/cmd/WiiUDownloader/main.go +++ b/cmd/WiiUDownloader/main.go @@ -19,7 +19,7 @@ func main() { } bundlePath := filepath.Join(filepath.Dir(filepath.Dir(execPath))) - filePath := filepath.Join(bundlePath, "MacOS/lib/share/glib-2.0/schemas") + filePath := filepath.Join(bundlePath, "Resources/lib/share/glib-schemas") if _, err := os.Stat(filePath); os.IsExist(err) { os.Setenv("GSETTINGS_SCHEMA_DIR", filePath) }