Initial MeshPort SDK and cross-platform client

This commit is contained in:
shenlei
2026-10-10 15:16:32 +09:00
commit e73e599165
664 changed files with 209894 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
scripts/cargo-local.sh build -p meshport-ffi -p meshport-vpn-helper --locked
root="$PWD"
cd apps/meshport_lab
build_number=$(TZ=Asia/Tokyo date +%Y%m%d%H%M%S)
flutter build macos --debug --build-number="$build_number"
app="$PWD/build/macos/Build/Products/Debug/MeshPort.app"
cp "$root/target/debug/libmeshport_ffi.dylib" "$app/Contents/Frameworks/"
cp "$root/target/debug/meshport-vpn-helper" "$app/Contents/MacOS/"
codesign --force --sign - "$app/Contents/MacOS/meshport-vpn-helper"
codesign --force --sign - "$app/Contents/Frameworks/libmeshport_ffi.dylib"
codesign --force --deep --sign - --entitlements macos/Runner/DebugProfile.entitlements "$app"
touch "$app"
printf '%s\n' "$app"