Skip to content

Commit

Permalink
worflow: fixes to os case switch in shader build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed94 committed Oct 19, 2024
1 parent 99d64f5 commit 9a673f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions scripts/build_sokol_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ if [ -f "$path_system_details" ]; then
CoreCount_Physical=$(grep "PhysicalCores" "$path_system_details" | cut -d'=' -f2)
CoreCount_Logical=$(grep "LogicalCores" "$path_system_details" | cut -d'=' -f2)
else
# Detect the operating system
OS=$(uname -s)

case "$OS" in
Darwin*)
# macOS-specific commands
Expand Down
2 changes: 0 additions & 2 deletions scripts/build_sokol_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ fi

pushd "$path_sokol"

# Detect the operating system
OS=$(uname -s)

case "$OS" in
Linux*)
echo "Detected Linux operating system"
Expand Down
7 changes: 7 additions & 0 deletions scripts/compile_sokol_shaders.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

OS=$(uname -s)

path_root="$(git rev-parse --show-toplevel)"
path_backend="$path_root/backend"
path_scripts="$path_root/scripts"
Expand All @@ -13,6 +15,11 @@ case "$OS" in
Linux*)
sokol_shdc="$path_sokol_tools/bin/linux/sokol-shdc"
;;
*)
echo "Unsupported operating system: $OS"
CoreCount_Physical=1
CoreCount_Logical=1
;;
esac
echo "Using sokol-shdc: $sokol_shdc"
chmod +x "$sokol_shdc"
Expand Down

0 comments on commit 9a673f6

Please sign in to comment.