Move data to resources

This commit is contained in:
Xpl0itU 2023-07-20 14:29:26 +02:00
parent 8c87f26614
commit 6443f8af34
2 changed files with 3 additions and 3 deletions

View file

@ -25,8 +25,8 @@ jobs:
- name: Package - name: Package
run: | run: |
python3 data/create_bundle.py python3 data/create_bundle.py
mkdir -p 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/MacOS/lib/share/glib-2.0/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 sudo codesign --force --sign - out/WiiUDownloader.app
create-dmg \ create-dmg \
--volname "WiiUDownloader" \ --volname "WiiUDownloader" \

View file

@ -19,7 +19,7 @@ func main() {
} }
bundlePath := filepath.Join(filepath.Dir(filepath.Dir(execPath))) 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) { if _, err := os.Stat(filePath); os.IsExist(err) {
os.Setenv("GSETTINGS_SCHEMA_DIR", filePath) os.Setenv("GSETTINGS_SCHEMA_DIR", filePath)
} }