From bd5d24b3f146b487a89638da8c922fc03cfceb97 Mon Sep 17 00:00:00 2001 From: Steve Dignam Date: Tue, 17 Jun 2025 21:32:48 -0400 Subject: [PATCH] install: add cdn env var --- js/install.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/install.js b/js/install.js index 560acb25..389fca32 100644 --- a/js/install.js +++ b/js/install.js @@ -44,7 +44,9 @@ const crypto = require("crypto") const { binaryPath } = require("./helpers") // e.g.: https://github.com/sbdchd/squawk/releases/download/v0.1.3/squawk-darwin-x86_64 -const RELEASES_BASE_URL = "https://github.com/sbdchd/squawk/releases/download" +const RELEASES_BASE_URL = + process.env.SQUAWK_LOCAL_CDNURL || + "https://github.com/sbdchd/squawk/releases/download" const SUPPORTED_PLATFORMS = new Set([ "darwin-x64",