-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
72 lines (61 loc) · 1.86 KB
/
justfile
File metadata and controls
72 lines (61 loc) · 1.86 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[group("Repo")]
[doc("Default command; list all available commands.")]
@list:
just --list --unsorted
[group("Repo")]
[doc("Open repo on GitHub in your default browser.")]
repo:
open https://github.com/thunderbiscuit/bdk-rn
[group("Repo")]
[doc("Remove all build files.")]
clean:
rm -rf ./cpp/
rm -rf ./src/generated/
rm -rf ./lib/
rm -rf ./bdk-ffi/bdk-ffi/target/
[group("Submodule")]
[doc("Initialize bdk-ffi submodule to committed hash.")]
submodule-init:
git submodule update --init
[group("Submodule")]
[doc("Hard reset the bdk-ffi submodule to committed hash.")]
submodule-reset:
git submodule update --force
[group("Submodule")]
[doc("Checkout the bdk-ffi submodule to the latest commit on master.")]
submodule-to-master:
cd ./bdk-ffi/ \
&& git fetch origin \
&& git checkout master \
&& git pull origin master
[group("Submodule")]
[doc("Regenerate the async-sync patch from the current submodule working tree.")]
submodule-regen-patch:
cd ./bdk-ffi/ \
&& git diff HEAD -- bdk-ffi/Cargo.toml bdk-ffi/src/lib.rs bdk-ffi/src/esplora.rs bdk-ffi/src/electrum.rs > ../patches/bdk-ffi-async-sync.patch
[group("Submodule")]
[doc("Apply the async-sync patch to the bdk-ffi submodule.")]
submodule-apply-patch:
cd ./bdk-ffi/ \
&& git reset --hard HEAD \
&& git apply -C1 ../patches/bdk-ffi-async-sync.patch
[group("Build")]
[doc("Build the tarball for Android only.")]
build-tarball-android:
yarn ubrn:android --config ubrn.config.yaml
npm pack
[group("Build")]
[doc("Build the tarball for iOS only.")]
build-tarball-ios:
yarn ubrn:ios --config ubrn.config.yaml
npm pack
[group("Build")]
[doc("Build the release tarball with ready for both iOS and Android.")]
build-tarball:
yarn ubrn:android --config ubrn.config.yaml
yarn ubrn:ios --config ubrn.config.yaml
npm pack
[group("Docs")]
[doc("Serve the docs locally.")]
docs:
uv run zensical serve