mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
16 lines
328 B
Bash
Executable File
16 lines
328 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CGO_ENABLED=0
|
|
|
|
if [ "${1}" == "windows" ]
|
|
then
|
|
go build -v -ldflags "-s -w" -o builds/webp-server-${1}-${2}.exe
|
|
elif [ "${1}" == "osx" ]
|
|
then
|
|
go build -v -ldflags "-s -w" -o builds/webp-server-darwin-${2}
|
|
else
|
|
go build -v -ldflags "-s -w" -o builds/webp-server-${1}-${2}
|
|
fi
|
|
|
|
echo "build done!"
|
|
ls builds |