mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-23 03:27:12 -04:00
Move data to resources
This commit is contained in:
parent
8c87f26614
commit
6443f8af34
2 changed files with 3 additions and 3 deletions
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
|
@ -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" \
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue