mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
f64346c955
* feat: support tauri desktop * chore: support call flowy sdk command * chore: switch to svelte * chore: gen js protobuf * chore: import js protobuf * chore: call flowy sdk handler * chore: update scipts * chore: create index.ts * chore: track files * chore: gen ts event * chore: replace application icon * chore: migrate to react * chore: fix wanrings Co-authored-by: nathan <nathan@appflowy.io>
64 lines
1.3 KiB
TOML
64 lines
1.3 KiB
TOML
[tasks.tauri_build]
|
|
script = [
|
|
"""
|
|
cd appflowy_tauri/src-tauri
|
|
npm run tauri build
|
|
""",
|
|
]
|
|
script_runner = "@shell"
|
|
|
|
[tasks.tauri_pb]
|
|
script = [
|
|
"""
|
|
cd appflowy_tauri/src-tauri
|
|
cargo build
|
|
""",
|
|
]
|
|
script_runner = "@shell"
|
|
|
|
[tasks.tauri_dev]
|
|
script = [
|
|
"""
|
|
cd appflowy_tauri
|
|
npm run tauri dev
|
|
""",
|
|
]
|
|
script_runner = "@shell"
|
|
|
|
[tasks.tauri_clean]
|
|
run_task = { name = [
|
|
"rust_lib_clean",
|
|
"rm_macro_build_cache",
|
|
"rm_rust_generated_files",
|
|
"rm_tauri_generated_protobuf_files",
|
|
"rm_tauri_generated_event_files",
|
|
] }
|
|
|
|
[tasks.rm_tauri_generated_protobuf_files]
|
|
private = true
|
|
script = ["""
|
|
protobuf_file_paths = glob_array ${TAURI_PROTOBUF_PATH}/classes
|
|
if not array_is_empty ${protobuf_file_paths}
|
|
echo Remove generated protobuf files:
|
|
for path in ${protobuf_file_paths}
|
|
echo remove ${path}
|
|
rm -rf ${path}
|
|
end
|
|
end
|
|
"""]
|
|
script_runner = "@duckscript"
|
|
|
|
[tasks.rm_tauri_generated_event_files]
|
|
private = true
|
|
script = ["""
|
|
protobuf_file_paths = glob_array ${TAURI_PROTOBUF_PATH}/events
|
|
if not array_is_empty ${protobuf_file_paths}
|
|
echo Remove generated protobuf files:
|
|
for path in ${protobuf_file_paths}
|
|
echo remove ${path}
|
|
rm -rf ${path}
|
|
end
|
|
end
|
|
"""]
|
|
script_runner = "@duckscript"
|