some more fixes

This commit is contained in:
pj committed 2026-10-03 23:24:34 +05:30
1 parent 2b86a407ba
commit 50daad62b9
3 files changed
+66 -6

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
set shell := ["bash", "-euo", "pipefail", "-c"]
app := "Margin"
bundle := "src-tauri/target/release/bundle/macos/" + app + ".app"
default:
@just --list
dev:
pnpm tauri dev
build:
pnpm install --frozen-lockfile
APPLE_SIGNING_IDENTITY=- pnpm tauri build --bundles app
codesign --verify --deep --strict "{{bundle}}"
install: build
#!/usr/bin/env bash
set -euo pipefail
if [ -w /Applications ]; then
dir=/Applications
else
dir="$HOME/Applications"
mkdir -p "$dir"
fi
dest="$dir/{{app}}.app"
if pgrep -x margin-app > /dev/null; then
osascript -e 'tell application id "studio.margin.app" to quit'
for _ in {1..40}; do
pgrep -x margin-app > /dev/null || break
sleep 0.25
done
if pgrep -x margin-app > /dev/null; then
echo "Margin is still running. Quit it and run just install again." >&2
exit 1
fi
fi
rm -rf "$dest"
ditto "{{bundle}}" "$dest"
codesign --verify --deep --strict "$dest"
echo "Installed {{app}} to $dest"
open "$dest"