This repository was archived by the owner on May 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,15 @@ function docker-build() {
42
42
43
43
docker-exec " cd /src && ./node_modules/.bin/mocha"
44
44
45
+ node_version=$( docker-exec " NBIN_BYPASS=true /src/lib/node/node --version | sed 's/^v//'" )
46
+
45
47
docker kill " $containerId "
46
48
}
47
49
48
50
function local-build() {
49
51
yarn build:node
50
52
yarn test
53
+ node_version=$( NBIN_BYPASS=true ./lib/node/node --version | sed ' s/^v//' )
51
54
}
52
55
53
56
function main() {
@@ -59,6 +62,7 @@ function main() {
59
62
yarn build:nbin
60
63
yarn build:bundle
61
64
65
+ local node_version=" unknown"
62
66
local platform=" ${PLATFORM:- linux} "
63
67
local arch=" ${ARCH:- x86_64} "
64
68
echo " Building $platform -$arch "
@@ -68,18 +72,12 @@ function main() {
68
72
* ) local-build ;;
69
73
esac
70
74
71
- pwd && ls -l ./lib/node
72
-
73
- local node_version
74
- node_version=$( NBIN_BYPASS=true ./lib/node/node --version | sed ' s/^v//' )
75
75
local binary_name=" node-$node_version -$platform -$arch "
76
76
77
77
mkdir -p " ./build/$version "
78
78
cp ./lib/node/node " ./build/$version /$binary_name "
79
79
80
80
echo " Copied binary to ./build/$version /$binary_name "
81
-
82
- pwd && tree ./build || ls -l ./build
83
81
}
84
82
85
83
main " $@ "
You can’t perform that action at this time.
0 commit comments