Repository navigation
Phase 5: packaging + app identity (0.6.0) - #15
Merged
Merged
Conversation
- Icon: build/icon.png generated from join3r's iOS app icon
(scripts/make-icon.mjs); electron-builder derives .ico/.icns. Window icon
on Windows/Linux, Dock icon in macOS dev runs.
- Name: app.setName('DevTool') with userData pinned so dev and prod Chromium
storage stay apart; dev Electron.app plist gets CFBundleName/DisplayName
(postinstall + predev); Windows AppUserModelId com.devtool.app (.dev in dev).
- Windows exe: signAndEditExecutable on with no certificate, so rcedit stamps
icon + version resources while the exe stays unsigned.
- NSIS: npm run build:win:setup -> per-user Setup.exe (no admin, Start Menu
shortcut) + portable zip. Portable build:win unchanged.
- Signing: scripts/sign-win.cjs runs DEVTOOL_SIGN_CMD when set, no-op otherwise.
- Releases: npm run release:win uploads a draft GitHub Release from the
Windows box; latest.yml only with --signed.
- Updates (stem's model): packaged builds check GitHub Releases at launch and
every 6 h; unsigned builds only announce + open the release page, signed
NSIS installs self-update via electron-updater. Settings -> Updates tab,
Check for Updates... menu item, opt-out toggle.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows, signAndEditExecutable makes electron-builder fetch rcedit from
the winCodeSign archive, and 7-Zip cannot unpack its macOS symlinks
without Developer Mode or admin ("A required privilege is not held by the
client"), so npm run build:win failed on the build machine.
Turn signAndEditExecutable off and stamp icon + version resources with the
rcedit npm package in scripts/win-rcedit.cjs (build.afterPack). It also
overwrites Electron's leftover CompanyName / InternalName /
OriginalFilename, and runs scripts/sign-win.cjs on the exe, since
electron-builder no longer signs it (still a no-op without
DEVTOOL_SIGN_CMD; keeps release:win --signed's verify step working).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Windows test saw the first update check time out after 30 s while later
ones took ~100 ms. Node's fetch also ignores the system proxy / PAC, which
company networks need. Probe the releases/latest redirect with Electron's
net.request (Chromium networking) instead; net.fetch cannot stop at a manual
redirect ("Redirect was cancelled").
Also note NoDefaultCurrentDirectoryInExePath breaking node-pty's gyp step
in agent shells on Windows (CLAUDE.md).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows and macOS verification recorded in ROADMAP.md; the one-off PHASE5-WINDOWS-TEST.md plan and its results live in git history (a7e24a2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Flaked on ubuntu CI: the editor's addCommand can run after the file content is visible, so press() found no command for Ctrl+L. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 5 from ROADMAP.md: the app looks and identifies as DevTool, Windows gets a per-user Setup.exe next to the portable folder, and update checks land. Signing and self-update are wired but dormant until a certificate exists.
build/icon.pnggenerated from join3r's iOS icon (npm run make-icon). electron-builder derives.ico/.icns.app.setName('DevTool')with userData pinned, so dev and prod browser storage stay apart. The devElectron.appplist is patched. On Windows, the AppUserModelId iscom.devtool.app(.devfor dev runs).afterPackhook (scripts/win-rcedit.cjs,rceditpackage) stamps the icon and version resources. electron-builder's built-in exe editing (signAndEditExecutable) stays off because its winCodeSign download fails without symlink rights.npm run build:win:setupbuilds a per-user NSISDevTool-Setup-<v>.exe(no admin, Start Menu shortcut) plus a portable zip.npm run build:winis unchanged.npm run release:winuploads a draft GitHub Release from the Windows box.--signedaddslatest.yml, which is what lets signed installs self-update.scripts/sign-win.cjsrunsDEVTOOL_SIGN_CMDwhen set and does nothing otherwise.Verification
npm run typecheck,npm run lint(0 errors) andnpm testpass on macOS.tests/updates.test.tsis new.~/.devtool. Dev runs stay separate.tests/ipc-path-allowlist.test.tsfails with symlinkEPERMbecause the account cannot create symlinks; that suite is not touched by this PR.13c7792(0.6.0):build:win:setupbuildsDevTool-Setup-0.6.0.exe, the exe is stamped with FileVersion 0.6.0, and a fresh per-user install launches. Check now right after launch reports up to date within a second or two, so the Electron network-stack probe fixes the earlier 30 s timeout.editor-tab.test.tsx(Phase 4.5 code) flaked once on ubuntu.92b4047makes the test wait for the editor's commands to register.🤖 Generated with Claude Code