Skip to content

Commit

Permalink
fix: Fix the problem not being able to run the binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
xvzc committed Aug 4, 2022
1 parent 0d51b7d commit ea90ea8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM golang:1.16-alpine
FROM golang:1.17-alpine

WORKDIR /app
4 changes: 2 additions & 2 deletions build
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions make-releases.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ea90ea8

Please sign in to comment.