worflow: fixes to os case switch in shader build script

This commit is contained in:
2024-10-19 13:54:59 -04:00
parent 99d64f55a1
commit 9a673f68ef
3 changed files with 7 additions and 4 deletions

View File

@@ -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"
@@ -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"