Skip to content

Commit be1faa5

Browse files
authored
Merge pull request #4 from atikenny/patch-1
added support for binary url overwrite
2 parents 84bc017 + fbf3545 commit be1faa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/install.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ if (process.env["NATIVE_IMAGE_DIFF_SKIP_BINARY_DOWNLOAD_FOR_CI"]) { return; }
99
// Get the version of the library;
1010
const pkg = require(path.resolve(__dirname, "..", "package.json"));
1111
const packageVersion = pkg.version;
12-
const url = `https://github.com/Prior99/native-image-diff/releases/download/${packageVersion}/${fileName.baseName}`;
12+
const baseUrl = process.env.NATIVE_IMAGE_DIFF_BINARY_URL || "https://github.com/Prior99/native-image-diff/releases/download";
13+
const url = `${baseUrl}/${packageVersion}/${fileName.baseName}`;
1314

1415
console.info(`Downloading native-image-diff prebuilt binary from "${url}".`);
1516

0 commit comments

Comments
 (0)