AndroidStation(原中控改造为纯设备端) - 只做三件事:UDP 48899 被桌面端发现、TCP 8087 推送 USB 扫码结果、离线语音播报 - 扫码不再经过 UI:去掉逐键重绘,50ms 自动提交,同一码重复扫码也一律上报 - 离线语音种子(数字/字母/“开始打包”/欢迎语)随包安装,MediaPlayer 播放,启动把音量拉满 - 启动播报「欢迎使用溯源系统,初始化已经完成,扫码即可开始打包」 - 移除 Device Owner / 设备管理员 / lock task / 网络与 IP 设置等非普通应用能力(仅保留开机自启) - 正式签名 keystore + release 签名配置,versionName/versionCode 可由打包脚本覆盖 发布脚手架 - backend/android_client:Android 正式包构建(build.ps1 + package.config.json) - backend/scripts/deploy/publish-android.cjs + npm run android:build / android:publish - 桌面端安装包改为 download/desktop,Android 为 download/android_client; version.json 仍走 /download/version.json(老客户端写死),新增 /download/android_client/version.json - 谷歌插件随桌面端 MSI 安装到 <安装目录>\extension,工具菜单新增「复制谷歌插件地址」 - git-safety-check 增加仓库级禁区(keystore.properties / *.jks / local.properties) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
137 lines
2.5 KiB
JSON
137 lines
2.5 KiB
JSON
{
|
||
"version": "2.0.0",
|
||
"tasks": [
|
||
{
|
||
"label": "Android: build",
|
||
"detail": "构建 debug APK(tools/android.ps1 build)",
|
||
"type": "shell",
|
||
"command": "powershell",
|
||
"args": [
|
||
"-NoProfile",
|
||
"-ExecutionPolicy",
|
||
"Bypass",
|
||
"-File",
|
||
"tools\\android.ps1",
|
||
"build"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}"
|
||
},
|
||
"problemMatcher": [],
|
||
"group": {
|
||
"kind": "build",
|
||
"isDefault": true
|
||
}
|
||
},
|
||
{
|
||
"label": "Android: install",
|
||
"detail": "构建 + 安装到设备",
|
||
"type": "shell",
|
||
"command": "powershell",
|
||
"args": [
|
||
"-NoProfile",
|
||
"-ExecutionPolicy",
|
||
"Bypass",
|
||
"-File",
|
||
"tools\\android.ps1",
|
||
"install"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}"
|
||
},
|
||
"problemMatcher": []
|
||
},
|
||
{
|
||
"label": "Android: run",
|
||
"detail": "构建 + 安装 + 启动",
|
||
"type": "shell",
|
||
"command": "powershell",
|
||
"args": [
|
||
"-NoProfile",
|
||
"-ExecutionPolicy",
|
||
"Bypass",
|
||
"-File",
|
||
"tools\\android.ps1",
|
||
"run"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}"
|
||
},
|
||
"problemMatcher": []
|
||
},
|
||
{
|
||
"label": "Android: dev",
|
||
"detail": "构建 + 安装 + 启动 + 跟随日志(日常开发用)",
|
||
"type": "shell",
|
||
"command": "powershell",
|
||
"args": [
|
||
"-NoProfile",
|
||
"-ExecutionPolicy",
|
||
"Bypass",
|
||
"-File",
|
||
"tools\\android.ps1",
|
||
"dev"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}"
|
||
},
|
||
"problemMatcher": [],
|
||
"isBackground": true
|
||
},
|
||
{
|
||
"label": "Android: logcat",
|
||
"detail": "只跟随日志,不构建",
|
||
"type": "shell",
|
||
"command": "powershell",
|
||
"args": [
|
||
"-NoProfile",
|
||
"-ExecutionPolicy",
|
||
"Bypass",
|
||
"-File",
|
||
"tools\\android.ps1",
|
||
"logs"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}"
|
||
},
|
||
"problemMatcher": [],
|
||
"isBackground": true
|
||
},
|
||
{
|
||
"label": "Android: devices",
|
||
"detail": "列出已连接设备",
|
||
"type": "shell",
|
||
"command": "powershell",
|
||
"args": [
|
||
"-NoProfile",
|
||
"-ExecutionPolicy",
|
||
"Bypass",
|
||
"-File",
|
||
"tools\\android.ps1",
|
||
"devices"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}"
|
||
},
|
||
"problemMatcher": []
|
||
},
|
||
{
|
||
"label": "Android: clean",
|
||
"detail": "清理构建产物",
|
||
"type": "shell",
|
||
"command": "powershell",
|
||
"args": [
|
||
"-NoProfile",
|
||
"-ExecutionPolicy",
|
||
"Bypass",
|
||
"-File",
|
||
"tools\\android.ps1",
|
||
"clean"
|
||
],
|
||
"options": {
|
||
"cwd": "${workspaceFolder}"
|
||
},
|
||
"problemMatcher": []
|
||
}
|
||
]
|
||
} |