Skip to content

Packaging + app identity: icon, DevTool name, NSIS installer, update checks - #8

Merged
join3r merged 1 commit into
join3r:masterfrom
TeleporterGuy:phase5-packaging-upstream
Oct 1, 2026
Merged

join3r merged 1 commit into
join3r:masterfrom
TeleporterGuy:phase5-packaging-upstream

Conversation

@TeleporterGuy

Copy link
Copy Markdown
Collaborator

Phase 5 from the TeleporterGuy/DevTool fork (released there as v0.6.0), rebased onto master here and repointed at join3r/claude-project. The app looks and identifies as DevTool instead of stock Electron, Windows gets a per-user installer, and packaged builds check GitHub Releases for updates.

App identity

  • Icon: build/icon.png is generated from your iOS app icon by npm run make-icon (scripts/make-icon.mjs, using pngjs). It applies the macOS icon grid: rounded corners and transparent padding. electron-builder derives .icns / .ico from it. The window icon is set on Windows/Linux, and the Dock icon in macOS dev runs.
  • Name:
    • app.setName('DevTool'), with userData pinned to its old path. Without the pin, dev runs (<appData>/devtool) would land on the packaged <appData>/DevTool profile, which is the same folder on case-insensitive disks.
    • scripts/patch-dev-electron-plist.mjs also sets CFBundleName / CFBundleDisplayName, so the macOS menu bar says DevTool in npm run dev. It runs in postinstall and predev.
    • Windows AppUserModelId is com.devtool.app (.dev for dev runs).
  • Windows exe: an afterPack hook (scripts/win-rcedit.cjs, rcedit package) stamps the icon and version resources. electron-builder's own signAndEditExecutable stays off because its winCodeSign download needs symlink rights.

Windows distribution

  • Installer: npm run build:win:setup builds a per-user NSIS DevTool-Setup-<v>.exe (no admin, Start Menu shortcut, never touches ~/.devtool) plus a portable zip. build:win is unchanged.
  • Releases: npm run release:win uploads a draft GitHub Release. --signed adds latest.yml.
  • Signing: scripts/sign-win.cjs runs DEVTOOL_SIGN_CMD when set and does nothing otherwise.

Updates

  • Packaged builds check github.com/join3r/claude-project/releases/latest at launch and every 6 h. The request goes through Electron's net, so system proxy/PAC settings apply.
  • With no releases published yet, the check reads as "up to date".
  • Unsigned builds only announce a new version and open its page. Signed NSIS installs self-update via electron-updater.
  • There is a Settings → Updates tab, a Check for Updates… menu item and an opt-out toggle (autoCheckUpdates).

Other

  • tests/editor-tab.test.tsx: the Ctrl+L test now waits for the editor's commands to register. It flaked once on ubuntu CI.
  • Version: package.json is 0.6.0, matching the fork. Change it if you version differently.
  • New dependencies: electron-updater (runtime) and pngjs + rcedit (dev). None of them have install scripts.

Verification

  • npm run typecheck, npm run lint (0 errors) and npm test pass on this branch. tests/updates.test.ts is new.
  • macOS: dev and packaged build:mac show DevTool in the menu bar and Dock with the icon, and dev userData stays devtool.
  • Windows 11, on the fork: the exe shows the DevTool icon and version resources. The Setup.exe installs without UAC, taskbar pinning groups correctly, uninstall keeps ~/.devtool, and the update check answers in about a second.

🤖 Generated with Claude Code

…checks

From TeleporterGuy/DevTool Phase 5 (0.6.0), repointed at join3r/claude-project.

- Icon: build/icon.png generated from the iOS app icon (npm run make-icon);
  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; the dev Electron.app plist gets CFBundleName /
  CFBundleDisplayName (postinstall + predev), so the macOS menu bar says
  DevTool, not Electron. Windows AppUserModelId com.devtool.app (.dev in dev).
- Windows exe: an afterPack hook (scripts/win-rcedit.cjs, rcedit package)
  stamps icon + version resources; signAndEditExecutable stays off because
  its winCodeSign download fails without symlink rights.
- NSIS: npm run build:win:setup -> per-user Setup.exe + portable zip;
  npm run release:win uploads a draft GitHub Release.
- Signing: scripts/sign-win.cjs runs DEVTOOL_SIGN_CMD when set, no-op otherwise.
- Updates: packaged builds check GitHub Releases (Electron net, so system
  proxy/PAC apply) at launch and every 6 h. Unsigned builds announce + open
  the release page; signed NSIS installs self-update via electron-updater.
  Settings -> Updates tab, Check for Updates... menu item, opt-out toggle.
- Flaky editor-tab Ctrl+L test now waits for the editor's commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@join3r
join3r merged commit a381e89 into join3r:master Oct 1, 2026
4 checks passed
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