Skip to content

Commit

Permalink
Reverted changes to workflows and added Mac Resource directory to sea…
Browse files Browse the repository at this point in the history
…rch path for palettes
  • Loading branch information
haythamnikolaidis committed Apr 29, 2024
1 parent 4953c83 commit 5e2fc3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/dev-desktop-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ jobs:
run: |
chown runner ./Godot.app/Contents/MacOS/Godot
chmod +x ./Godot.app/Contents/MacOS/Godot
rm ./pixelorama_data/.gdignore
./Godot.app/Contents/MacOS/Godot --headless -v --export-release "macOS" ./build/mac/Pixelorama.zip
- name: Make application executable 🔧
run: |
Expand All @@ -128,6 +127,10 @@ jobs:
rm ./build/mac/Pixelorama.zip
- name: Fix application icon 🖼
run: sips -s format icns ./build/mac/Pixelorama.app/Contents/Resources/icon.icns --out ./build/mac/Pixelorama.app/Contents/Resources/icon.icns
- name: Copy pixelorama_data folder 📁
run: |
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/Resources
rm ./build/mac/Pixelorama.app/Contents/Resources/pixelorama_data/.gdignore
- name: Ad-hoc signing ✍️
run: codesign -s - --force --deep ./build/mac/Pixelorama.app
- name: Create DMG archive 🔧
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ jobs:
run: |
chown runner ./Godot.app/Contents/MacOS/Godot
chmod +x ./Godot.app/Contents/MacOS/Godot
rm ./pixelorama_data/.gdignore
./Godot.app/Contents/MacOS/Godot --headless -v --export-release "macOS" ./build/mac/Pixelorama.zip
- name: Make application executable 🔧
run: |
Expand All @@ -152,6 +151,10 @@ jobs:
rm ./build/mac/Pixelorama.zip
- name: Fix application icon 🖼
run: sips -s format icns ./build/mac/Pixelorama.app/Contents/Resources/icon.icns --out ./build/mac/Pixelorama.app/Contents/Resources/icon.icns
- name: Copy pixelorama_data folder 📁
run: |
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/Resources
rm ./build/mac/Pixelorama.app/Contents/Resources/pixelorama_data/.gdignore
- name: Ad-hoc signing ✍️
run: codesign -s - --force --deep ./build/mac/Pixelorama.app
- name: Create DMG archive 🔧
Expand Down
2 changes: 1 addition & 1 deletion src/Autoload/Global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ func _init() -> void:
if OS.has_feature("template"):
root_directory = OS.get_executable_path().get_base_dir()
if OS.get_name() == "macOS":
root_directory = "res://"
data_directories.append(root_directory.path_join("../Resources").path_join(CONFIG_SUBDIR_NAME))
data_directories.append(root_directory.path_join(CONFIG_SUBDIR_NAME))
if OS.get_name() in ["Linux", "FreeBSD", "NetBSD", "OpenBSD", "BSD"]:
# Checks the list of files var, and processes them.
Expand Down

0 comments on commit 5e2fc3a

Please sign in to comment.