mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-06 06:52:44 -07:00
worflow: fixes to os case switch in shader build script
This commit is contained in:
@@ -19,9 +19,7 @@ if [ -f "$path_system_details" ]; then
|
|||||||
CoreCount_Physical=$(grep "PhysicalCores" "$path_system_details" | cut -d'=' -f2)
|
CoreCount_Physical=$(grep "PhysicalCores" "$path_system_details" | cut -d'=' -f2)
|
||||||
CoreCount_Logical=$(grep "LogicalCores" "$path_system_details" | cut -d'=' -f2)
|
CoreCount_Logical=$(grep "LogicalCores" "$path_system_details" | cut -d'=' -f2)
|
||||||
else
|
else
|
||||||
# Detect the operating system
|
|
||||||
OS=$(uname -s)
|
OS=$(uname -s)
|
||||||
|
|
||||||
case "$OS" in
|
case "$OS" in
|
||||||
Darwin*)
|
Darwin*)
|
||||||
# macOS-specific commands
|
# macOS-specific commands
|
||||||
|
@@ -36,9 +36,7 @@ fi
|
|||||||
|
|
||||||
pushd "$path_sokol"
|
pushd "$path_sokol"
|
||||||
|
|
||||||
# Detect the operating system
|
|
||||||
OS=$(uname -s)
|
OS=$(uname -s)
|
||||||
|
|
||||||
case "$OS" in
|
case "$OS" in
|
||||||
Linux*)
|
Linux*)
|
||||||
echo "Detected Linux operating system"
|
echo "Detected Linux operating system"
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
OS=$(uname -s)
|
||||||
|
|
||||||
path_root="$(git rev-parse --show-toplevel)"
|
path_root="$(git rev-parse --show-toplevel)"
|
||||||
path_backend="$path_root/backend"
|
path_backend="$path_root/backend"
|
||||||
path_scripts="$path_root/scripts"
|
path_scripts="$path_root/scripts"
|
||||||
@@ -13,6 +15,11 @@ case "$OS" in
|
|||||||
Linux*)
|
Linux*)
|
||||||
sokol_shdc="$path_sokol_tools/bin/linux/sokol-shdc"
|
sokol_shdc="$path_sokol_tools/bin/linux/sokol-shdc"
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unsupported operating system: $OS"
|
||||||
|
CoreCount_Physical=1
|
||||||
|
CoreCount_Logical=1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
echo "Using sokol-shdc: $sokol_shdc"
|
echo "Using sokol-shdc: $sokol_shdc"
|
||||||
chmod +x "$sokol_shdc"
|
chmod +x "$sokol_shdc"
|
||||||
|
Reference in New Issue
Block a user