Skip to content

Commit

Permalink
Merge pull request #25 from REVrobotics/update-CANBridge-to-2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahAndrews authored Sep 13, 2024
2 parents 0b8c26f + 9d3d347 commit 35ecaf9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 42 deletions.
46 changes: 7 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"adm-zip": "^0.5.10",
"axios": "^1.3.6",
"node-gyp": "^10.2.0",
"prebuildify": "^5.0.1",
"prebuildify": "^6.0.1",
"typescript": "^5.0.2"
},
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions scripts/download-CanBridge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as path from "path";
import axios from 'axios';
import AdmZip from 'adm-zip';

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

const externalCompileTimeDepsPath = 'externalCompileTimeDeps';
Expand All @@ -26,7 +26,8 @@ try {

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

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

0 comments on commit 35ecaf9

Please sign in to comment.