Skip to content

Fix broken Windows install command + add Mac/Linux download buttons - #14

Draft
Cookie774-GameDev wants to merge 4 commits into
mainfrom
cursor/fix-install-ps1-encoding-f3bd
Draft

Fix broken Windows install command + add Mac/Linux download buttons#14
Cookie774-GameDev wants to merge 4 commits into
mainfrom
cursor/fix-install-ps1-encoding-f3bd

Conversation

@Cookie774-GameDev

Copy link
Copy Markdown
Owner

Problem

Running the public Windows install command failed before the script could start:

irm https://raw.githubusercontent.com/Cookie774-GameDev/VibeSpace/main/install/install.ps1 | iex
iex : At line:89 char:38  Missing closing ')' in expression.
... The ampersand (&) character is not allowed ...

Root cause

install/install.ps1 was committed as UTF-16LE without a BOM. When fetched via irm ... | iex, GitHub serves the bytes as charset=utf-8, so PowerShell decoded the NUL-interleaved bytes incorrectly. The scrambled text broke tokenization — here-strings were no longer recognized and &/parenthesis errors cascaded at shifted character positions, so the installer never ran.

Reproduced the user's exact errors with the PowerShell parser, then confirmed 0 errors after re-encoding:

Stage ParseFile errors irm|iex (UTF-8 decode) errors
Before (UTF-16LE) 8 (L89:C38, L86:C48, L652:C32 … matching the report)
After (UTF-8) 0 0

A dry-run execution now prints the banner, resolves the latest version, and downloads the real 17.46 MB Windows installer from GitHub Releases.

Changes

  • install/install.ps1 — re-encoded UTF-16LE → ASCII/UTF-8 (no behavior change); replaced two mojibake glyphs (ΓÇö, ┬╖) with ASCII so the file is fully ASCII-safe.
  • landing/index.html + landing/assets/css/main.css — replaced the Windows-only download block with three copy-paste cards (Windows / macOS / Linux), each with the correct one-line installer and a direct GitHub Releases download link; hero CTA now reads "Download — Win / Mac / Linux".
  • Grid fix: min-width:0 on the cards so the no-wrap commands ellipsize instead of overflowing and clipping the Linux card.

No application code or in-app UI was changed.

Walkthrough

Three download cards: Windows, macOS, Linux
All three platforms now appear side by side with copy-paste install commands.

Install command copied toast
Clicking a command copies it ("Install command copied" toast).

vibespace_download_section_three_platforms.mp4

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 4 commits June 15, 2026 21:46
Co-authored-by: Cookie774-GameDev <Cookie774-GameDev@users.noreply.github.com>
Co-authored-by: Cookie774-GameDev <Cookie774-GameDev@users.noreply.github.com>
…arses

The PowerShell installer was saved as UTF-16LE without a BOM. When fetched
via 'irm ... | iex', GitHub serves it as UTF-8, so PowerShell decoded the
NUL-interleaved bytes incorrectly and the parser failed with cascading
'Missing closing )' / reserved-ampersand errors before the script could run.
Re-encode as ASCII/UTF-8 and replace two mojibake glyphs with ASCII.

Co-authored-by: Cookie774-GameDev <Cookie774-GameDev@users.noreply.github.com>
… not clipped

Grid items default to min-width:auto; the no-wrap install command gave each
column a large min-content width, overflowing the overflow:hidden .dl container
and clipping the Linux card. Add min-width:0 so columns shrink and commands ellipsize.

Co-authored-by: Cookie774-GameDev <Cookie774-GameDev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants