Skip to content

Commit

Permalink
chore: pre-built binary not working
Browse files Browse the repository at this point in the history
Ref #2353
  • Loading branch information
robertsLando committed Apr 6, 2022
1 parent 4885367 commit 1c79607
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 77 deletions.
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -32,7 +32,9 @@
"views/**/*",
"static/**/*",
"dist/**/*",
"node_modules/@serialport/bindings/**",
"node_modules/@serialport/**",
"node_modules/@zwave-js/serial/node_modules/@serialport/**",
"node_modules/zwave-js/node_modules/@serialport/**",
"node_modules/leveldown/**",
"node_modules/@zwave-js/config/config/devices/**"
],
Expand Down Expand Up @@ -111,7 +113,7 @@
"mocha": "^9.1.2",
"node-notifier": "^10.0.0",
"npm-run-all": "^4.1.5",
"pkg": "5.3.2",
"pkg": "^5.6.0",
"portfinder": "^1.0.28",
"proxyquire": "^2.1.3",
"release-it": "^14.11.6",
Expand Down
9 changes: 0 additions & 9 deletions package.sh
Expand Up @@ -52,9 +52,6 @@ if [ ! -z "$1" ]; then
echo ''
yarn run build

# Workaround for pkg bug (part 1a):
mv node_modules/@jamescoyle/vue-icon/lib/svg-icon.vue svg-icon.vue.bak

echo "Executing command: pkg package.json -t node$NODE_MAJOR-linux-x64 --out-path $PKG_FOLDER"
pkg package.json -t node$NODE_MAJOR-linux-x64 --out-path $PKG_FOLDER
else
Expand All @@ -64,9 +61,6 @@ else
yarn run build
fi

# Workaround for pkg bug (part 1b):
mv node_modules/@jamescoyle/vue-icon/lib/svg-icon.vue svg-icon.vue.bak

echo '###################################################'
echo '## Choose architecture to build'
echo '###################################################'
Expand Down Expand Up @@ -123,9 +117,6 @@ else
done
fi

# Workaround for pkg bug (part 2):
mv svg-icon.vue.bak node_modules/@jamescoyle/vue-icon/lib/svg-icon.vue

echo "## Create folders needed"
cd $PKG_FOLDER
mkdir store -p
Expand Down
109 changes: 43 additions & 66 deletions yarn.lock
Expand Up @@ -351,7 +351,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-validator-identifier@npm:^7.12.11, @babel/helper-validator-identifier@npm:^7.16.7":
"@babel/helper-validator-identifier@npm:^7.15.7, @babel/helper-validator-identifier@npm:^7.16.7":
version: 7.16.7
resolution: "@babel/helper-validator-identifier@npm:7.16.7"
checksum: dbb3db9d184343152520a209b5684f5e0ed416109cde82b428ca9c759c29b10c7450657785a8b5c5256aa74acc6da491c1f0cf6b784939f7931ef82982051b69
Expand Down Expand Up @@ -417,12 +417,12 @@ __metadata:
languageName: node
linkType: hard

"@babel/parser@npm:7.13.13":
version: 7.13.13
resolution: "@babel/parser@npm:7.13.13"
"@babel/parser@npm:7.16.2":
version: 7.16.2
resolution: "@babel/parser@npm:7.16.2"
bin:
parser: ./bin/babel-parser.js
checksum: 30deada9f98add95e6dc5c15b6792fda208d4169d967015fe23423ee93a94baf4e0c67b2b6069de15b5054b61e60410db218daa84939c57bd787469906dff927
checksum: e8ceef8214adf55beaae80fff1647ae6535e17af592749a6f3fd3ed1081bbb1474fd88bf4d3470ec8bc0082843a6d23445e9e08b03e91831458acc6fd37d7bc9
languageName: node
linkType: hard

Expand Down Expand Up @@ -1452,14 +1452,13 @@ __metadata:
languageName: node
linkType: hard

"@babel/types@npm:7.13.12":
version: 7.13.12
resolution: "@babel/types@npm:7.13.12"
"@babel/types@npm:7.16.0":
version: 7.16.0
resolution: "@babel/types@npm:7.16.0"
dependencies:
"@babel/helper-validator-identifier": ^7.12.11
lodash: ^4.17.19
"@babel/helper-validator-identifier": ^7.15.7
to-fast-properties: ^2.0.0
checksum: 4ffe8178e262ba6fdc179075bcaab642a41efc4e0cfcbc48dc26bcf1a8bd46470b1a135467c637c60a5a3ff7c36a402b765b5c33ea5286ea07de79b81329f799
checksum: 5b483da5c6e6f2394fba7ee1da8787a0c9cddd33491271c4da702e49e6faf95ce41d7c8bf9a4ee47f2ef06bdb35096f4d0f6ae4b5bea35ebefe16309d22344b7
languageName: node
linkType: hard

Expand Down Expand Up @@ -8038,7 +8037,7 @@ __metadata:
languageName: node
linkType: hard

"globby@npm:^11.0.1, globby@npm:^11.0.3":
"globby@npm:^11.0.1, globby@npm:^11.0.3, globby@npm:^11.0.4":
version: 11.1.0
resolution: "globby@npm:11.1.0"
dependencies:
Expand Down Expand Up @@ -10004,7 +10003,7 @@ __metadata:
languageName: node
linkType: hard

"lodash@npm:4.17.21, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.19, lodash@npm:^4.17.20, lodash@npm:^4.17.21":
"lodash@npm:4.17.21, lodash@npm:^4.17.14, lodash@npm:^4.17.15, lodash@npm:^4.17.20, lodash@npm:^4.17.21":
version: 4.17.21
resolution: "lodash@npm:4.17.21"
checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7
Expand Down Expand Up @@ -10946,7 +10945,7 @@ __metadata:
languageName: node
linkType: hard

"node-abi@npm:^2.7.0":
"node-abi@npm:^2.21.0":
version: 2.30.1
resolution: "node-abi@npm:2.30.1"
dependencies:
Expand Down Expand Up @@ -10974,7 +10973,7 @@ __metadata:
languageName: node
linkType: hard

"node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.6, node-fetch@npm:^2.6.7":
"node-fetch@npm:^2.6.6, node-fetch@npm:^2.6.7":
version: 2.6.7
resolution: "node-fetch@npm:2.6.7"
dependencies:
Expand Down Expand Up @@ -11058,13 +11057,6 @@ __metadata:
languageName: node
linkType: hard

"noop-logger@npm:^0.1.1":
version: 0.1.1
resolution: "noop-logger@npm:0.1.1"
checksum: 9f99da270d074a2f268de2eae3ebcb44f12cc2f7241417c7be9f1e206f614afa632a27b91febab86163f88bb54466d638e49c9f62d899105f18d5ed5bcd51ed1
languageName: node
linkType: hard

"nopt@npm:^5.0.0":
version: 5.0.0
resolution: "nopt@npm:5.0.0"
Expand Down Expand Up @@ -11887,50 +11879,51 @@ __metadata:
languageName: node
linkType: hard

"pkg-fetch@npm:3.2.3":
version: 3.2.3
resolution: "pkg-fetch@npm:3.2.3"
"pkg-fetch@npm:3.3.0":
version: 3.3.0
resolution: "pkg-fetch@npm:3.3.0"
dependencies:
chalk: ^4.1.0
chalk: ^4.1.2
fs-extra: ^9.1.0
https-proxy-agent: ^5.0.0
node-fetch: ^2.6.1
node-fetch: ^2.6.6
progress: ^2.0.3
semver: ^7.3.5
tar-fs: ^2.1.1
yargs: ^16.2.0
bin:
pkg-fetch: lib-es5/bin.js
checksum: a266b99634527c087e996adde0d18e7a99d32cbc9f042e9cc8e48d0454b3883bb5fbc1de3ea48c3c98a667003b3dcccff53557a3594537b9eadd9dec78e35109
checksum: d242f0fe2f8d95773f1110b6b1444d22c165e241f004da8d7c323b4d64639e9087158c033e89e5c3fc7523a3f9f1608f029e8c5092c361aa4921b01fb86895e6
languageName: node
linkType: hard

"pkg@npm:5.3.2":
version: 5.3.2
resolution: "pkg@npm:5.3.2"
"pkg@npm:^5.6.0":
version: 5.6.0
resolution: "pkg@npm:5.6.0"
dependencies:
"@babel/parser": 7.13.13
"@babel/types": 7.13.12
chalk: ^4.1.0
"@babel/parser": 7.16.2
"@babel/types": 7.16.0
chalk: ^4.1.2
escodegen: ^2.0.0
fs-extra: ^9.1.0
globby: ^11.0.3
globby: ^11.0.4
into-stream: ^6.0.0
minimist: ^1.2.5
multistream: ^4.1.0
pkg-fetch: 3.2.3
prebuild-install: 6.0.1
pkg-fetch: 3.3.0
prebuild-install: 6.1.4
progress: ^2.0.3
resolve: ^1.20.0
stream-meter: ^1.0.4
tslib: 2.1.0
tslib: 2.3.1
peerDependencies:
node-notifier: ">=9.0.1"
peerDependenciesMeta:
node-notifier:
optional: true
bin:
pkg: lib-es5/bin.js
checksum: 773e74494e5b8a5b2a029807b7425a169ec2edb7dacb14cc32346a5597890bef175ca7fbb119413c62b85086a26b18f1d14d5bee855ac75032f49ae9c1bb9538
checksum: 4591e48656f6e71e4ef4b0037bda747df8742b3c08bc3b34263dbaa32d7e999773cd2858367f91938890e395b9f10d3af01a74d427966495657bfa5a8d7fdb54
languageName: node
linkType: hard

Expand Down Expand Up @@ -12068,28 +12061,26 @@ __metadata:
languageName: node
linkType: hard

"prebuild-install@npm:6.0.1":
version: 6.0.1
resolution: "prebuild-install@npm:6.0.1"
"prebuild-install@npm:6.1.4":
version: 6.1.4
resolution: "prebuild-install@npm:6.1.4"
dependencies:
detect-libc: ^1.0.3
expand-template: ^2.0.3
github-from-package: 0.0.0
minimist: ^1.2.3
mkdirp-classic: ^0.5.3
napi-build-utils: ^1.0.1
node-abi: ^2.7.0
noop-logger: ^0.1.1
node-abi: ^2.21.0
npmlog: ^4.0.1
pump: ^3.0.0
rc: ^1.2.7
simple-get: ^3.0.3
tar-fs: ^2.0.0
tunnel-agent: ^0.6.0
which-pm-runs: ^1.0.0
bin:
prebuild-install: bin.js
checksum: d5877ea37612b08b85e1878fae138c7c41015f580cbdee7c70c85cf4ba1d9419cb23b53320edad5525702b09d78e22f744c1df72343976de8ae4df77e195f66f
checksum: de4313eda821305912af922700a2db04bb8e77fe8aa9c2788550f1000c026cbefc82da468ec0c0a37764c5417bd8169dbd540928535fb38d00bb9bbd673dd217
languageName: node
linkType: hard

Expand Down Expand Up @@ -14057,7 +14048,7 @@ __metadata:
languageName: node
linkType: hard

"tar-fs@npm:^2.0.0":
"tar-fs@npm:^2.0.0, tar-fs@npm:^2.1.1":
version: 2.1.1
resolution: "tar-fs@npm:2.1.1"
dependencies:
Expand Down Expand Up @@ -14447,10 +14438,10 @@ __metadata:
languageName: node
linkType: hard

"tslib@npm:2.1.0":
version: 2.1.0
resolution: "tslib@npm:2.1.0"
checksum: aa189c8179de0427b0906da30926fd53c59d96ec239dff87d6e6bc831f608df0cbd6f77c61dabc074408bd0aa0b9ae4ec35cb2c15f729e32f37274db5730cb78
"tslib@npm:2.3.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.1":
version: 2.3.1
resolution: "tslib@npm:2.3.1"
checksum: de17a98d4614481f7fcb5cd53ffc1aaf8654313be0291e1bfaee4b4bb31a20494b7d218ff2e15017883e8ea9626599b3b0e0229c18383ba9dce89da2adf15cb9
languageName: node
linkType: hard

Expand All @@ -14461,13 +14452,6 @@ __metadata:
languageName: node
linkType: hard

"tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.1":
version: 2.3.1
resolution: "tslib@npm:2.3.1"
checksum: de17a98d4614481f7fcb5cd53ffc1aaf8654313be0291e1bfaee4b4bb31a20494b7d218ff2e15017883e8ea9626599b3b0e0229c18383ba9dce89da2adf15cb9
languageName: node
linkType: hard

"tsscmp@npm:1.0.6":
version: 1.0.6
resolution: "tsscmp@npm:1.0.6"
Expand Down Expand Up @@ -15330,13 +15314,6 @@ __metadata:
languageName: node
linkType: hard

"which-pm-runs@npm:^1.0.0":
version: 1.1.0
resolution: "which-pm-runs@npm:1.1.0"
checksum: 39a56ee50886fb33ec710e3b36dc9fe3d0096cac44850d9ca0c6186c4cb824d6c8125f013e0562e7c94744e1e8e4a6ab695592cdb12555777c7a4368143d822c
languageName: node
linkType: hard

"which@npm:2.0.2, which@npm:^2.0.1, which@npm:^2.0.2":
version: 2.0.2
resolution: "which@npm:2.0.2"
Expand Down Expand Up @@ -15889,7 +15866,7 @@ __metadata:
npm-run-all: ^4.1.5
ora: 5.4.1
pem: ^1.14.4
pkg: 5.3.2
pkg: ^5.6.0
portfinder: ^1.0.28
postcss: ^8.3.9
postcss-import: ^14.0.2
Expand Down

0 comments on commit 1c79607

Please sign in to comment.