Skip to content

Commit 338ade0

Browse files
committed
Fixup dogfooding on mac.
1 parent 6ba459f commit 338ade0

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

docs/specs/deploy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Human-driven steps, in order:
1818
1. **Update dependencies page** — run `node website/scripts/generate-deps.js` and review the diff in `website/src/data/dependencies.json`. Commit if changed.
1919
2. **Finalize changelog** — promote the `[Unreleased]` section in `CHANGELOG.md` to `[X.Y.Z]` with today's date. Write release notes covering both standalone and VSCode changes.
2020
3. **Bump versions** — update `version` in all three places:
21+
- [standalone/src-tauri/Cargo.toml](../../standalone/src-tauri/Cargo.toml)
2122
- [standalone/src-tauri/tauri.conf.json](../../standalone/src-tauri/tauri.conf.json)
2223
- [vscode-ext/package.json](../../vscode-ext/package.json)
2324
- [lib/package.json](../../lib/package.json)

standalone/scripts/dogfood.sh

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#
1313
# Install mode (--install):
1414
# Copies the built files over the system-installed copy, bypassing the slow
15-
# bundling/installer step. Requires a one-time install via the NSIS installer
16-
# so that registry entries, shortcuts, etc. are in place. Currently Windows only.
15+
# installer step. Requires a one-time install first (NSIS installer on Windows,
16+
# DMG on macOS) so that the install location exists.
1717
#
1818
set -euo pipefail
1919

@@ -23,9 +23,14 @@ set -euo pipefail
2323
RELEASE_DIR="standalone/src-tauri/target/release"
2424

2525
if [[ "${1:-}" == "--install" ]]; then
26-
# Full build with bundling, but disable updater artifact signing
26+
# Full build with bundling, but disable updater artifact signing.
27+
# On macOS, build only the .app bundle (skip DMG creation).
28+
BUNDLE_ARGS=()
29+
case "$(uname -s)" in
30+
Darwin) BUNDLE_ARGS=(--bundles app) ;;
31+
esac
2732
pnpm --filter mouseterm-standalone tauri build \
28-
-c '{"bundle":{"createUpdaterArtifacts":false}}'
33+
-c '{"bundle":{"createUpdaterArtifacts":false}}' "${BUNDLE_ARGS[@]}"
2934
else
3035
# Fast build: skip bundling entirely since we just need the exe
3136
pnpm --filter mouseterm-standalone tauri build --no-bundle
@@ -56,6 +61,20 @@ if [[ "${1:-}" == "--install" ]]; then
5661
cp -r "$RELEASE_DIR/_up_/" "$INSTALL_DIR/_up_/"
5762
echo "✦ Installed to $INSTALL_DIR"
5863
;;
64+
Darwin)
65+
INSTALL_DIR="/Applications/MouseTerm.app"
66+
if [[ ! -d "$INSTALL_DIR" ]]; then
67+
echo "MouseTerm is not installed yet."
68+
echo "Install via the DMG first:"
69+
echo " open $RELEASE_DIR/bundle/dmg/MouseTerm_*.dmg"
70+
echo ""
71+
echo "After that, 'dogfood:standalone --install' will work from then on."
72+
exit 1
73+
fi
74+
rm -rf "$INSTALL_DIR"
75+
cp -r "$RELEASE_DIR/bundle/macos/MouseTerm.app" "$INSTALL_DIR"
76+
echo "✦ Installed to $INSTALL_DIR"
77+
;;
5978
*)
6079
echo "--install is not yet implemented for this platform."
6180
exit 1

0 commit comments

Comments
 (0)