-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev
More file actions
executable file
·25 lines (24 loc) · 573 Bytes
/
dev
File metadata and controls
executable file
·25 lines (24 loc) · 573 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
#!/bin/bash
case $1 in
csr)
trunk serve --features csr
;;
ssr)
LEPTOS_SITE_ADDR="0.0.0.0:3000" cargo leptos watch
;;
native)
# Hacks for nvidia on wayland
# https://github.com/tauri-apps/tauri/issues/10702#issuecomment-2935208923
if [ "$(lsmod | grep nvidia)" != "" ]; then
__NV_DISABLE_EXPLICIT_SYNC=1 cargo tauri dev
else
cargo tauri dev
fi
;;
android)
cargo tauri android dev
;;
*)
echo "Invalid command"
;;
esac