-
-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathdev
More file actions
executable file
·36 lines (31 loc) · 861 Bytes
/
Copy pathdev
File metadata and controls
executable file
·36 lines (31 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
binary="$root/target/debug/omamail"
build_backend() {
cargo build --locked \
--manifest-path "$root/Cargo.toml" \
--target-dir "$root/target" \
--bin omamail
}
case "${1-}" in
backend)
build_backend
printf 'Built %s\n' "$binary"
;;
run)
build_backend
cat <<EOF
Built $binary
Development run prepared; the installed private runtime was not changed.
OMAMAIL_BIN=$binary
The already-running shell cannot receive OMAMAIL_BIN from a summon command.
Export that value in the environment used to start omarchy-shell, then restart the existing Omarchy shell through your normal session method. After restart, open the plugin with:
omarchy shell shell toggle omamail '{}'
EOF
;;
*)
printf 'Usage: ./dev backend | run\n' >&2
exit 2
;;
esac