Skip to content

Commit 6ad4204

Browse files
author
Markus Perl
committed
MacOS System detection
1 parent 3014b61 commit 6ad4204

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
build-macos:
3939
name: build in native macOS
40-
runs-on: macos-latest
40+
runs-on: macos-15
4141
steps:
4242
- name: Checkout code
4343
uses: actions/checkout@v4

build-ffmpeg

+9-8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ LATEST=false
2121
MANPAGES=1
2222
CURRENT_PACKAGE_VERSION=0
2323

24+
25+
command_exists() {
26+
if ! [[ -x $(command -v "$1") ]]; then
27+
return 1
28+
fi
29+
30+
return 0
31+
}
32+
2433
# Check for Apple Silicon
2534
if [[ ("$(uname -m)" == "arm64") && ("$OSTYPE" == "darwin"*) ]]; then
2635
# If arm64 AND darwin (macOS)
@@ -179,14 +188,6 @@ build() {
179188
return 0
180189
}
181190

182-
command_exists() {
183-
if ! [[ -x $(command -v "$1") ]]; then
184-
return 1
185-
fi
186-
187-
return 0
188-
}
189-
190191
library_exists() {
191192
if ! [[ -x $(pkg-config --exists --print-errors "$1" 2>&1 >/dev/null) ]]; then
192193
return 1

0 commit comments

Comments
 (0)