mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-15 22:32:13 +00:00
script to launch 2D + tauri on desktop
This commit is contained in:
1 parent
2d635f3f8e
commit
0cb594a1eb
4 files changed
+35
-22
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Tauri doesn't let you configure the frontend project directory statically, though they do provide an
|
||||
# environment variable to pass it to the CLI. Without doing this, the tauri cli randomly walks the
|
||||
# filesystem and finds the wrong frontend code.
|
||||
|
||||
# TODO(bt,2025-02-13): This is not the correct way to get the root dir
|
||||
root_dir=$(pwd)
|
||||
frontend_path="${root_dir}/frontend/editor2d"
|
||||
|
||||
pushd "${frontend_path}"
|
||||
npm install
|
||||
popd
|
||||
|
||||
export TAURI_FRONTEND_PATH="${frontend_path}"
|
||||
export TAURI_APP_PATH="${root_dir}/crates/desktop/tauri-4o"
|
||||
|
||||
cargo tauri dev --no-watch
|
||||
Reference in new issue
Block a user