Repository navigation
Packaging + app identity: icon, DevTool name, NSIS installer, update checks - #8
Merged
Merged
Conversation
…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>
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 the TeleporterGuy/DevTool fork (released there as v0.6.0), rebased onto
masterhere and repointed atjoin3r/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
build/icon.pngis generated from your iOS app icon bynpm run make-icon(scripts/make-icon.mjs, usingpngjs). It applies the macOS icon grid: rounded corners and transparent padding. electron-builder derives.icns/.icofrom it. The window icon is set on Windows/Linux, and the Dock icon in macOS dev runs.app.setName('DevTool'), with userData pinned to its old path. Without the pin, dev runs (<appData>/devtool) would land on the packaged<appData>/DevToolprofile, which is the same folder on case-insensitive disks.scripts/patch-dev-electron-plist.mjsalso setsCFBundleName/CFBundleDisplayName, so the macOS menu bar says DevTool innpm run dev. It runs inpostinstallandpredev.AppUserModelIdiscom.devtool.app(.devfor dev runs).afterPackhook (scripts/win-rcedit.cjs,rceditpackage) stamps the icon and version resources. electron-builder's ownsignAndEditExecutablestays off because its winCodeSign download needs symlink rights.Windows distribution
npm run build:win:setupbuilds a per-user NSISDevTool-Setup-<v>.exe(no admin, Start Menu shortcut, never touches~/.devtool) plus a portable zip.build:winis unchanged.npm run release:winuploads a draft GitHub Release.--signedaddslatest.yml.scripts/sign-win.cjsrunsDEVTOOL_SIGN_CMDwhen set and does nothing otherwise.Updates
github.com/join3r/claude-project/releases/latestat launch and every 6 h. The request goes through Electron'snet, so system proxy/PAC settings apply.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.package.jsonis 0.6.0, matching the fork. Change it if you version differently.electron-updater(runtime) andpngjs+rcedit(dev). None of them have install scripts.Verification
npm run typecheck,npm run lint(0 errors) andnpm testpass on this branch.tests/updates.test.tsis new.build:macshow DevTool in the menu bar and Dock with the icon, and dev userData staysdevtool.~/.devtool, and the update check answers in about a second.🤖 Generated with Claude Code