Files
mtfyun 7d2e8fed8e 小鲸娘 v1.0:悬浮宠物完整工程
- 106 动画 + 2366 表情包 + 语义标签
- 三层记忆 / 心情系统 / 9 可配置插件 / 10 技能
- DeepSeek 对话直连 + MCP/HTTP 接入 + 接入文档
- 动画随机链 + 物理引擎 + 贴边碰撞校准
- 大资源(动画webp/表情图)由 scripts/ 再生成,不入库
2026-11-08 08:07:09 +00:00

30 lines
841 B
Bash
Executable File
Raw Permalink 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
# 构建悬浮宠物 APK,并同步到手机共享目录(内部存储/DSHBox),可直接在手机上安装。
# 用法:
# ./build.sh # 原画质 640×360(默认)
# ./build.sh small # 小体积 320×180(仅用于 pilot 直装调试)
set -e
cd "$(dirname "$0")"
export JAVA_HOME=/opt/jdk17
export ANDROID_HOME=/opt/android-sdk
export ANDROID_SDK_ROOT=/opt/android-sdk
GRADLE=/opt/gradle/gradle-8.5/bin/gradle
VARIANT="${1:-hq}"
if [ "$VARIANT" = "small" ]; then
"$GRADLE" assembleDebug
OUT=petfloat-small.apk
else
"$GRADLE" assembleDebug -Phq
OUT=petfloat-hq.apk
fi
APK=app/build/outputs/apk/debug/app-debug.apk
cp "$APK" "./$OUT"
SHARE=/root/share/DSHBox
if [ -d "$SHARE" ]; then
cp "$APK" "$SHARE/$OUT"
echo "已同步到手机共享目录:内部存储/DSHBox/$OUT"
fi
ls -lh "./$OUT"