Skip to content

Commit 65409d1

Browse files
committed
fix(desktop): restore missing Start Menu shortcut
1 parent f845895 commit 65409d1

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
!macro customInstall
2+
!ifndef DO_NOT_CREATE_START_MENU_SHORTCUT
3+
${IfNot} ${FileExists} "$newStartMenuLink"
4+
!insertmacro createMenuDirectory
5+
CreateShortCut "$newStartMenuLink" "$appExe" "" "$appExe" 0 "" "" "${APP_DESCRIPTION}"
6+
ClearErrors
7+
WinShell::SetLnkAUMI "$newStartMenuLink" "${APP_ID}"
8+
${EndIf}
9+
!endif
10+
!macroend

‎scripts/build-desktop-artifact.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,10 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
670670
...DESKTOP_EXTRA_RESOURCES,
671671
...WINDOWS_SERVER_EXTRA_RESOURCES,
672672
]);
673-
assert.deepStrictEqual(win.nsis, { differentialPackage: true });
673+
assert.deepStrictEqual(win.nsis, {
674+
differentialPackage: true,
675+
include: "apps/desktop/resources/installer.nsh",
676+
});
674677
// The Claude SDK platform packages and .bin shims never ship.
675678
assert.deepStrictEqual(WINDOWS_SERVER_ASAR_IGNORE_GLOBS, [
676679
"**/node_modules/@cursor/sdk-*",

‎scripts/build-desktop-artifact.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2943,7 +2943,10 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
29432943
// Keep blockmap-based differential downloads enabled while changing the
29442944
// installed file topology. The optimization is in the payload shape, not
29452945
// in trading update bandwidth for install speed.
2946-
buildConfig.nsis = { differentialPackage: true };
2946+
buildConfig.nsis = {
2947+
differentialPackage: true,
2948+
include: "apps/desktop/resources/installer.nsh",
2949+
};
29472950
const winConfig: Record<string, unknown> = {
29482951
target: [target],
29492952
icon: "icon.ico",

0 commit comments

Comments
 (0)