Skip to content

fix: windows max path installer issue resolved. - #2275

Open
neoandmatrix wants to merge 6 commits into
asyncapi:masterfrom
neoandmatrix:win-path-fix
Open

fix: windows max path installer issue resolved.#2275
neoandmatrix wants to merge 6 commits into
asyncapi:masterfrom
neoandmatrix:win-path-fix

Conversation

@neoandmatrix

Copy link
Copy Markdown
Contributor

Description

This PR resolves the Windows installer failure caused by @asyncapi/studio. The package ships a Next.js output: 'standalone' build (build/standalone) containing a deeply-nested .pnpm/next@... dependency tree. These paths exceed Windows' 260-character MAX_PATH limit, so NSIS extraction fails during installation with "Error opening file for writing".

The CLI launches Studio and Preview through the programmatic Next.js server (distDir: 'build', see src/domains/models/Studio.ts:37-47). That server reads from build/ as declared in required-server-files.json and never uses build/standalone. The standalone output is therefore dead weight that only serves to breach the path-length limit.

A pretarball hook removes build/standalone from the pack workspace before the installer is built. Because the hook runs for every pack:* target, it also reduces the size of the macOS and Linux artifacts, with no impact on runtime behavior.

The script was tested on PR #2268 and the resulting artifact was tested on windows 10 system. The installation was successful. Below are screenshots of same.

WhatsApp Image 2026-08-07 at 11 14 26 PM WhatsApp Image 2026-08-07 at 11 14 26 PM (1) WhatsApp Image 2026-08-07 at 11 14 27 PM WhatsApp Image 2026-08-07 at 11 14 27 PM (1)

Resolves #2248 #2239 #1787

@changeset-bot

changeset-bot Bot commented Aug 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 20b00f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@asyncapi/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@neoandmatrix neoandmatrix changed the title Windows max path installer issue resolved. wndows max path installer issue resolved. Aug 8, 2026
@neoandmatrix neoandmatrix changed the title wndows max path installer issue resolved. windows max path installer issue resolved. Aug 8, 2026
@neoandmatrix neoandmatrix changed the title windows max path installer issue resolved. fix: Windows max path installer issue resolved. Aug 8, 2026
@neoandmatrix neoandmatrix changed the title fix: Windows max path installer issue resolved. fix: windows max path installer issue resolved. Aug 8, 2026
Comment thread scripts/pretarball.js Outdated
neoandmatrix and others added 3 commits August 15, 2026 20:54
Signed-off-by: Tushar Anand <tusharannand@gmail.com>
Signed-off-by: Tushar Anand <tusharannand@gmail.com>
@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] Windows Installer (.exe) Fails due to MAX_PATH limitations

2 participants