fix: Fix the problem not being able to run the binaries

This commit is contained in:
xvzc 2022-08-05 01:29:25 +09:00
parent 0d51b7dcd6
commit ea90ea8eb1
3 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
FROM golang:1.16-alpine
FROM golang:1.17-alpine
WORKDIR /app

4
build
View File

@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh
docker build ./ --file ./Dockerfile.build --tag spoof-dpi:latest && \
docker run --rm \
-v $(pwd)/:/app spoof-dpi:latest \
-v $(pwd):/app spoof-dpi:latest \
sh make-releases.sh

View File

@ -1,5 +1,5 @@
#!/bin/bash
GOOS=darwin GOARCH=amd64 go build -o . github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-osx.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi
GOOS=darwin GOARCH=amd64 go build -ldflags='-w -s' github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-osx.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi
GOOS=linux GOARCH=amd64 go build -o . github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi
GOOS=linux GOARCH=amd64 go build -ldflags='-w -s' github.com/xvzc/SpoofDPI/cmd/spoof-dpi && tar -zcvf spoof-dpi-linux.tar.gz ./spoof-dpi && rm -rf ./spoof-dpi