Skip to content

Commit 35ecaf9

Browse files
authored
Merge pull request #25 from REVrobotics/update-CANBridge-to-2.4.0
2 parents 0b8c26f + 9d3d347 commit 35ecaf9

File tree

3 files changed

+11
-42
lines changed

3 files changed

+11
-42
lines changed

package-lock.json

Lines changed: 7 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"adm-zip": "^0.5.10",
2121
"axios": "^1.3.6",
2222
"node-gyp": "^10.2.0",
23-
"prebuildify": "^5.0.1",
23+
"prebuildify": "^6.0.1",
2424
"typescript": "^5.0.2"
2525
},
2626
"scripts": {

scripts/download-CanBridge.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from "path";
33
import axios from 'axios';
44
import AdmZip from 'adm-zip';
55

6-
const canBridgeTag = "v2.3.0";
6+
const canBridgeTag = "v2.4.0";
77
const canBridgeReleaseAssetUrlPrefix = `https://github.com/REVrobotics/CANBridge/releases/download/${canBridgeTag}`;
88

99
const externalCompileTimeDepsPath = 'externalCompileTimeDeps';
@@ -26,7 +26,8 @@ try {
2626

2727
const headersZip = new AdmZip(path.join(tempDir, "headers.zip"));
2828

29-
await headersZip.extractAllTo(path.join(externalCompileTimeDepsPath, 'include'));
29+
await headersZip.extractAllTo(path.join(externalCompileTimeDepsPath, 'include'), true);
30+
console.log(`Successfully downloaded CANBridge`);
3031
} catch (e) {
3132
if (axios.isAxiosError(e) && e.request) {
3233
console.error(`Failed to download CANBridge file ${e.request.protocol}//${e.request.host}/${e.request.path}`);

0 commit comments

Comments
 (0)