Skip to content

Commit ff5d97e

Browse files
committed
build: attach linux bins to release assets
1 parent c031bd9 commit ff5d97e

File tree

4 files changed

+43
-826
lines changed

4 files changed

+43
-826
lines changed

packages/bin/.releaserc.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"buildCmd": "yarn build",
44
"ghAssets": [
55
{ "name": "buildstamp-darwin-amd64.tar.gz", "source": "target/bin/darwin-amd64", "zip": true},
6-
{ "name": "buildstamp-darwin-arm64.tar.gz", "source": "target/bin/darwin-arm64", "zip": true}
6+
{ "name": "buildstamp-darwin-arm64.tar.gz", "source": "target/bin/darwin-arm64", "zip": true},
7+
{ "name": "buildstamp-linux-amd64.tar.gz", "source": "target/bin/linux-amd64", "zip": true},
8+
{ "name": "buildstamp-linux-arm64.tar.gz", "source": "target/bin/linux-arm64", "zip": true}
79
]
810
}

packages/bin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test:unit": "mkdir -p target/coverage && GOPATH=\"$(pwd)/src/test/go\" go test -coverprofile=./target/coverage/coverage.out -coverpkg='../../...' './src/test/go/...' && yarn cov",
1111
"cov": "go tool cover -html=./target/coverage/coverage.out -o ./target/coverage/coverage.html",
1212
"build": "concurrently -m 2 --kill-others-on-fail 'npm:build:*(!default)' ",
13-
"build:default": "GOPATH=\"$(pwd)/src/main/go\" go build -ldflags \"-w\" -o target/bin/${GOOS}-${GOARCH}/buildstamp ./src/main/go",
13+
"build:default": "mkdir -p target/bin && GOPATH=\"$(pwd)/src/main/go\" go build -ldflags \"-w\" -o target/bin/${GOOS}-${GOARCH}/buildstamp ./src/main/go",
1414
"build:linux-arm64": "GOOS=linux GOARCH=arm64 yarn build:default",
1515
"build:linux-amd64": "GOOS=linux GOARCH=amd64 yarn build:default",
1616
"build:darwin-arm64": "GOOS=darwin GOARCH=arm64 yarn build:default",

packages/core/package.json

-4
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@
5555
],
5656
"author": "Anton Golub <[email protected]>",
5757
"license": "MIT",
58-
5958
"engines": {
6059
"node": ">=16"
61-
},
62-
"pkg": {
63-
"scripts": "../core/target/es5/**/*.js"
6460
}
6561
}

0 commit comments

Comments
 (0)