dev: add version to zip distribution
Massimo Melina committed
Jun 25, 2024 at 20:21 UTC
625299e78dfa49819e6f5edabf65a99ba98848f9
1 file changed
+5
-5
package.json
+5
-5
@@ -27,15 +27,15 @@
27
"dist-bin": "npm run dist-modules && npm run dist-bin-win && npm run dist-bin-linux && npm run dist-bin-mac && npm run dist-bin-mac-arm",
28
"dist-modules": "cp package*.json central.json dist && cd dist && npm ci --omit=dev && cd .. && node prune_modules",
29
"dist-pre": "cd dist && rm -rf node_modules/@node-rs/crc32-*",
30
- "dist-bin-win": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-win32-x64-msvc && pkg . --public -C gzip -t node18-win-x64 && zip hfs-windows.zip hfs.exe -r plugins && cd ..",
31
- "dist-bin-mac-arm": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-darwin-arm64 && pkg . --public -C gzip -t node18-macos-arm64 && zip hfs-mac-arm.zip hfs -r plugins && cd ..",
32
- "dist-bin-mac": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-darwin-x64 && pkg . --public -C gzip -t node18-macos-x64 && zip hfs-mac.zip hfs -r plugins && cd ..",
33
- "dist-bin-linux": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-linux-x64-gnu && pkg . --public -C gzip -t node18-linux-x64 && zip hfs-linux.zip hfs -r plugins && cd ..",
30
+ "dist-bin-win": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-win32-x64-msvc && pkg . --public -C gzip -t node18-win-x64 && zip hfs-windows-$(jq -r .version ../package.json).zip hfs.exe -r plugins && cd ..",
31
+ "dist-bin-mac-arm": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-darwin-arm64 && pkg . --public -C gzip -t node18-macos-arm64 && zip hfs-mac-arm-$(jq -r .version ../package.json).zip hfs -r plugins && cd ..",
32
+ "dist-bin-mac": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-darwin-x64 && pkg . --public -C gzip -t node18-macos-x64 && zip hfs-mac-$(jq -r .version ../package.json).zip hfs -r plugins && cd ..",
33
+ "dist-bin-linux": "npm run dist-pre && cd dist && npm i -f --no-save --omit=dev @node-rs/crc32-linux-x64-gnu && pkg . --public -C gzip -t node18-linux-x64 && zip hfs-linux-$(jq -r .version ../package.json).zip hfs -r plugins && cd ..",
34
"dist-win": "npm run dist-modules && npm run dist-bin-win",
35
"dist-mac-arm": "npm run dist-modules && npm run dist-bin-mac-arm",
36
"dist-mac": "npm run dist-modules && npm run dist-bin-mac",
37
"dist-linux": "npm run dist-modules && npm run dist-bin-linux",
38
- "dist-node": "npm run dist-modules && cd dist && zip hfs-node.zip -r * -x *.zip *.exe hfs-* *.log logs"
38
+ "dist-node": "npm run dist-modules && cd dist && zip hfs-node-$(jq -r .version ../package.json).zip -r * -x *.zip *.exe hfs-* *.log logs"
39
},
40
"engines": {
41
"node": ">=18.12.0"