-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
36 lines (28 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
serve:
go build -v
./streammyaudio --debug --server
build-all: build-linux build-windows build-mac build-mac-arm
build-linux:
go build -v -o streammyaudio
zip streammyaudio_linux_amd64.zip streammyaudio LICENSE
build-windows: win32-x64
cp win32-x64 src/ffmpeg/ffmpeg.exe
GOOS=windows GOARCH=amd64 go build -v -o streammyaudio.exe
zip streammyaudio_windows_amd64.zip streammyaudio.exe LICENSE
rm -f src/ffmpeg/ffmpeg.exe
build-mac: darwin-x64
cp darwin-x64 src/ffmpeg/ffmpegmac
GOOS=darwin GOARCH=amd64 go build -v -o streammyaudio
zip streammyaudio_macos_amd64.zip streammyaudio LICENSE
rm -f src/ffmpeg/ffmpegmac
build-mac-arm: darwin-arm64
cp darwin-arm64 src/ffmpeg/ffmpegmac
GOOS=darwin GOARCH=arm64 go build -v -o streammyaudio
zip streammyaudio_macos_m1.zip streammyaudio LICENSE
rm -f src/ffmpeg/ffmpegmac
darwin-arm64:
wget https://github.com/eugeneware/ffmpeg-static/releases/download/b5.0/darwin-arm64
darwin-x64:
wget https://github.com/eugeneware/ffmpeg-static/releases/download/b5.0/darwin-x64
win32-x64:
wget https://github.com/eugeneware/ffmpeg-static/releases/download/b5.0/win32-x64