From dda553e28136fe0634448c93e6be5ddace8dc634 Mon Sep 17 00:00:00 2001 From: Juan Camilo Date: Wed, 1 Apr 2026 15:35:10 +0200 Subject: [PATCH] fix: define MACRO.PACKAGE_URL and MACRO.NATIVE_PACKAGE_URL in build These macros are used in ~10 files (autoUpdater, localInstaller, nativeInstaller, update CLI) but were not defined in the build script's `define` block. At runtime, they resolve to `undefined`, causing commands like `npm install undefined` and `npm view undefined` to fail silently during auto-update checks. Sets MACRO.PACKAGE_URL to the published npm package name and MACRO.NATIVE_PACKAGE_URL to undefined (no native binary distribution). Relates to #29 Co-Authored-By: Juan Camilo --- scripts/build.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.ts b/scripts/build.ts index 014fc402..0a00f2c9 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -60,6 +60,8 @@ const result = await Bun.build({ 'MACRO.BUILD_TIME': JSON.stringify(new Date().toISOString()), 'MACRO.ISSUES_EXPLAINER': JSON.stringify('report the issue at https://github.com/anthropics/claude-code/issues'), + 'MACRO.PACKAGE_URL': JSON.stringify('@gitlawb/openclaude'), + 'MACRO.NATIVE_PACKAGE_URL': 'undefined', }, plugins: [ {