forked from noisetorch/NoiseTorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (25 loc) · 787 Bytes
/
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
dev: rnnoise
mkdir -p bin/
go generate
go build -o bin/noisetorch
release: rnnoise
mkdir -p bin/
mkdir -p tmp/
mkdir -p tmp/.local/share/icons/hicolor/256x256/apps/
cp assets/icon/noisetorch.png tmp/.local/share/icons/hicolor/256x256/apps/
mkdir -p tmp/.local/share/applications/
cp assets/noisetorch.desktop tmp/.local/share/applications/
mkdir -p tmp/.local/bin/
go generate
CGO_ENABLED=0 GOOS=linux go build -tags release -a -ldflags '-s -w -extldflags "-static"' .
upx noisetorch
mv noisetorch tmp/.local/bin/
cd tmp/; \
tar cvzf ../bin/NoiseTorch_x64.tgz .
rm -rf tmp/
go run scripts/signer.go -s
git describe --tags > bin/version.txt
rnnoise:
cd librnnoise_ladspa/; \
cmake . -DBUILD_VST_PLUGIN=OFF -DBUILD_LV2_PLUGIN=OFF -DBUILD_LADSPA_PLUGIN=ON; \
make