Skip to content

lite: add scripts for local bundling#13756

Open
slarse wants to merge 1 commit into
masterfrom
GB-1451/lite-local-bundle-scripts
Open

lite: add scripts for local bundling#13756
slarse wants to merge 1 commit into
masterfrom
GB-1451/lite-local-bundle-scripts

Conversation

@slarse
Copy link
Copy Markdown
Contributor

@slarse slarse commented May 12, 2026

🧢 Changes

Adds scripts to facilitate easy local bundling of the Lite app.

@slarse slarse force-pushed the GB-1451/lite-local-bundle-scripts branch from 20248b1 to ac0c4d1 Compare May 12, 2026 08:09
@slarse slarse force-pushed the GB-1451/lite-local-bundle-scripts branch from ac0c4d1 to edd6aaf Compare May 12, 2026 08:17
Comment on lines +9 to +10
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required to load the unsigned Electron runtime.

Comment thread knip.jsonc
"@gitbutler/design-core",
"@tanstack/eslint-plugin-query",
"electron",
"@types/semver",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I don't add this. dependency, linting gets angry when accessing updater.currentVersion.prerelease as its type is unknown. And then adding this, linting gets angry that there's an unused dependency and you gotta awkwardly use the type explicitly.

So I'll just ignore the dep and we get the type checking properly, without making the code awkward. Really rough edge of TypeScript.

@slarse slarse marked this pull request as ready for review May 12, 2026 08:32
@slarse slarse requested review from OliverJAsh, Copilot and samhh May 12, 2026 08:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Lite app tooling to support local Electron Builder bundling, plus small supporting changes for macOS signing and updater behavior.

Changes:

  • Add bundle-local / bundle-local-nightly scripts for locally packaging Lite (including building @gitbutler/but-sdk first).
  • Introduce a macOS “local” entitlements plist for ad-hoc signed builds.
  • Update updater logic to skip auto-update checks for -dev prerelease builds; add @types/semver and lockfile updates.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pnpm-lock.yaml Adds @types/semver and updates the resolved dependency graph accordingly.
knip.jsonc Suppresses Knip reporting for @types/semver in the Lite workspace.
apps/lite/resources/entitlements.mac.local.plist Adds a local-only entitlements profile for macOS bundling.
apps/lite/README.md Documents the new local bundling scripts and caveats (macOS signing, updater testing, optional but CLI bundling).
apps/lite/package.json Adds the new bundling scripts and changes default versioning to a -dev prerelease.
apps/lite/electron/src/updater.ts Skips update checks for dev prerelease builds and adds error handling around update checks.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread apps/lite/package.json
Comment thread apps/lite/electron/src/updater.ts Outdated
Comment thread apps/lite/electron/src/updater.ts Outdated
Comment thread apps/lite/resources/entitlements.mac.local.plist
Also sets some local-only settings, including:

* `-dev` suffix on the version to be able to disable the updater for dev builds
* Dev-only entitlements for macOS required to run the bundle
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