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) }