add option to run locally

This commit is contained in:
Leandro Moreira
2024-02-11 23:47:08 -03:00
parent 3aeb4fa250
commit dfedeee4e0
5 changed files with 33 additions and 17 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
if ! brew list srt &>/dev/null; then
echo "ERROR you must install srt"
echo "brew install srt"
exit 1
fi
if ! brew list ffmpeg &>/dev/null; then
echo "ERROR you must install ffmpeg"
echo "brew install ffmpeg"
exit 1
fi
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
source ./scripts/mac_check_deps.sh
export CGO_LDFLAGS="-L$(brew --prefix srt)/lib -lsrt"
export CGO_CFLAGS="-I$(brew --prefix srt)/include/"
go run main.go
+2 -11
View File
@@ -1,14 +1,5 @@
if ! brew list srt &>/dev/null; then
echo "ERROR you must install srt"
echo "brew install srt"
exit 1
fi
if ! brew list ffmpeg &>/dev/null; then
echo "ERROR you must install ffmpeg"
echo "brew install ffmpeg"
exit 1
fi
#!/bin/bash
source ./scripts/mac_check_deps.sh
export CGO_LDFLAGS="-L$(brew --prefix srt)/lib -lsrt"
export CGO_CFLAGS="-I$(brew --prefix srt)/include/"