Skip to content

Commit

Permalink
Merge pull request #151 from snyk/fix/arch-selection
Browse files Browse the repository at this point in the history
fix: select correct architecture
  • Loading branch information
cmars committed Feb 24, 2022
2 parents ab528f8 + d21cf9f commit 0575ae7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packaging/npm/passthrough.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var path = require('path');

// os and arch restrictions are handled by the package.json
var os = process.platform;
var arch = 'amd64';
var arch = process.arch;

// Select the right binary for this platform, then exec it with the original
// arguments. This is a true exec(3), which will take over the pid, env, and
Expand Down
4 changes: 2 additions & 2 deletions scripts/dist.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ mkdir -p ./dist/bin
go generate ./cmd/...

for GOOS in linux darwin; do
GOOS=$GOOS GOARCH=amd64 go build -a -o ./dist/bin/vervet-$GOOS-amd64 ./cmd/vervet
GOOS=$GOOS GOARCH=amd64 go build -a -o ./dist/bin/vervet-$GOOS-x64 ./cmd/vervet
GOOS=$GOOS GOARCH=arm64 go build -a -o ./dist/bin/vervet-$GOOS-arm64 ./cmd/vervet
done
GOOS=darwin GOARCH=arm64 go build -a -o ./dist/bin/vervet-darwin-arm64 ./cmd/vervet
GOOS=windows GOARCH=amd64 go build -a -o ./dist/bin/vervet.exe ./cmd/vervet

cp packaging/npm/passthrough.js dist/bin/vervet
Expand Down

0 comments on commit 0575ae7

Please sign in to comment.