@@ -7,21 +7,37 @@ function compile() {
77 local os=$3
88
99 cargo build -p powersync_loadable -Z build-std=panic_abort,core,alloc --features nightly --release --target $triple
10- cargo build -p powersync_static -Z build-std=panic_abort,core,alloc --features nightly --release --target $triple
1110
1211 mv " target/$triple /release/libpowersync.dylib" " libpowersync_$suffix .$os .dylib"
1312 mv " target/$triple /release/libpowersync.a" " libpowersync_$suffix .$os .a"
1413}
1514
15+ function compile_static() {
16+ local triple=$1
17+ local suffix=$2
18+ local os=$3
19+
20+ cargo build -p powersync_static -Z build-std=panic_abort,core,alloc --features nightly --release --target $triple
21+
22+ mv " target/$triple /release/libpowersync.a" " libpowersync_$suffix .$os .a"
23+ }
24+
1625case " $1 " in
1726 x64)
1827 compile x86_64-apple-darwin x64 macos
1928 compile x86_64-apple-ios x64 ios-sim
29+ compile x86_64-apple-tvos x64 tvos-sim
30+ compile_static x86_64-apple-watchos-sim x64 watchos-sim
2031 ;;
2132 aarch64)
2233 compile aarch64-apple-darwin aarch64 macos
2334 compile aarch64-apple-ios-sim aarch64 ios-sim
2435 compile aarch64-apple-ios aarch64 ios
36+ compile aarch64-apple-tvos aarch64 tvos
37+ compile aarch64-apple-tvos-sim aarch64 tvos-sim
38+ compile_static aarch64-apple-watchos aarch64 watchos
39+ compile_static aarch64-apple-watchos aarch64 watchos-sim
40+ compile_static arm64_32-apple-watchos arm64_32 watchos
2541 ;;
2642 * )
2743 echo " Unknown architecture"
0 commit comments