๐Ÿ“ฆ tauri-apps / cargo-mobile2

๐Ÿ“„ fast-install.ps1 ยท 26 lines
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# This script is only intended for use during development. It's faster than a
# regular `cargo install`, which makes iteration more pleasant.

$cargoHome = if ($env:CARGO_HOME) {
    $env:CARGO_HOME
} else {
    "$HOME/.cargo"
}
$cargoTargetDir = if ($env:CARGO_TARGET_DIR) {
    $env:CARGO_TARGET_DIR
} elseif ($env:CARGO_BUILD_TARGET_DIR) {
    $env:CARGO_BUILD_TARGET_DIR
} else {
    "target"
}

function copyy {
    cp "$cargoTargetDir\debug\cargo-$args.exe" "$cargoHome\bin\cargo-$args.exe"
}

cargo build -p cargo-mobile2
copyy "android"
copyy "apple"
copyy "mobile"