-
Notifications
You must be signed in to change notification settings - Fork 294
/
justfile
27 lines (23 loc) · 901 Bytes
/
justfile
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
default:
@echo 'Please use ./frb_internal (or ./frb_internal.bat) instead.'
# Please put most scripts in `frb_internal`.
# here are only some ad-hoc scripts, seldomly executed ones,
# or lightweight scripts that is much easier to implement with justfile
# Execute the in-tree version of `flutter_rust_bridge_codegen`
codegen *args:
cd {{invocation_directory()}} && \
cargo run \
--manifest-path {{justfile_directory()}}/frb_codegen/Cargo.toml \
-- {{args}}
# rsync code from my host to VM
_rsync_ubuntu:
#!/usr/bin/env bash
set -euxo pipefail
function run_rsync() {
rsync -rtDvPL --filter=':- .gitignore' --exclude='.git' \
--no-p --no-g --chmod=ugo=rwX \
./ ubuntu:~/flutter_rust_bridge
}
run_rsync; fswatch -o ./ | while read f; do run_rsync; done
_port_forward_ubuntu:
ssh -L 8181:localhost:8181 ubuntu -N