Files
glass/ios/GlassRemote/deploy.sh
T
admin 2840e82685 Initial commit: Android GlassMouse + iOS GlassRemote 智能眼镜遥控项目
包含本次会话修复:
- iOS clickReady 警告 bug(默认 false 永远显示)
- BLE 'handle is invalid' 排查(stale handle auto-retry 实验 + 回退)

项目结构:
- glass-mouse/: 眼镜端原生 Kotlin App,前台服务 MouseService + 自定义 BLE GATT 桥接 ProxyBleServer + 无障碍 GestureDescription 注入
- ios/GlassRemote/: iPhone 端 SwiftUI + CoreBluetooth,通过 BLE 直连眼镜
- HTTP 投屏服务(:8000) 接 PPT/WPS 备注宏 POST 推送

技术栈: Android Kotlin (gradle 8.14.4, compileSdk 34), iOS Swift 5.10 (Xcode 26.5)
2026-08-26 10:34:23 +08:00

38 lines
1.2 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 真机部署脚本:编译 GlassRemote 并安装到吴小苏的iPhone(WiFi 配对通道)
# 用法: bash deploy.sh (Xcode 需已登录 Apple ID 且团队可用)
set -u
cd /Users/xs/Desktop/ruoyi/glass/ios/GlassRemote
TEAM=H2C3YSR973
UDID=D469A28E-D29F-54A0-8936-0EA41BA02DA2
DD=/tmp/dd_deploy
LOG=/tmp/deploy_now.log
: > "$LOG"
echo "=== [1/2] 编译并签名 ===" | tee -a "$LOG"
xcodebuild -project GlassRemote.xcodeproj -scheme GlassRemote \
-destination "platform=iOS,id=$UDID" \
-derivedDataPath "$DD" \
DEVELOPMENT_TEAM=$TEAM CODE_SIGN_STYLE=Automatic \
-allowProvisioningUpdates \
build 2>&1 | tee -a "$LOG"
BUILD_EXIT=${PIPESTATUS[0]}
echo "BUILD_EXIT=$BUILD_EXIT" | tee -a "$LOG"
if [ "$BUILD_EXIT" != "0" ]; then
echo "!!! 编译失败,停止" | tee -a "$LOG"
exit 1
fi
APP=$(find "$DD" -name "GlassRemote.app" -type d | head -1)
echo "APP=$APP" | tee -a "$LOG"
if [ -z "$APP" ]; then
echo "!!! 未找到 .app" | tee -a "$LOG"
exit 1
fi
echo "=== [2/2] 安装到 iPhone ===" | tee -a "$LOG"
xcrun devicectl device install app --device "$UDID" "$APP" 2>&1 | tee -a "$LOG"
echo "INSTALL_EXIT=${PIPESTATUS[0]}" | tee -a "$LOG"
echo "=== DONE ===" | tee -a "$LOG"