From a4ccc9c3b4eda4045d729675d09e1c8d5e0bebe1 Mon Sep 17 00:00:00 2001 From: Voson Date: Mon, 12 Jan 2026 17:44:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=B7=AF=E5=BE=84=E5=B9=B6=E6=B8=85=E7=90=86?= =?UTF-8?q?=E8=BF=87=E6=97=B6=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- command/release-android.md | 52 ------------------------- command/sync-oc-pull.md | 2 +- command/sync-oc-push.md | 4 +- skill/mqtts-developer/USAGE_EXAMPLES.md | 2 +- 4 files changed, 4 insertions(+), 56 deletions(-) delete mode 100644 command/release-android.md diff --git a/command/release-android.md b/command/release-android.md deleted file mode 100644 index 11158d1..0000000 --- a/command/release-android.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -description: Build and release Android APK to Gitea (generic for any Android project) ---- - -# Android Release Command - -Build Android APK and upload to Gitea Release for the current directory's Android project. - -## Prerequisites - -Before running this command: - -1. **Create and push the git tag first** (e.g., `myapp-1.0.0`, `android-1.0.0`, or `v1.0.0`) -2. Ensure `GITEA_API_TOKEN` environment variable is set -3. Ensure Android project exists in current directory - -Check the environment: - -```bash -# Check GITEA_API_TOKEN -echo "GITEA_API_TOKEN: ${GITEA_API_TOKEN:+SET}" - -# Check current directory for Android project -ls -la app/build.gradle.kts 2>/dev/null || ls -la android/app/build.gradle.kts 2>/dev/null || echo "No Android project found" - -# Check recent tags (script will use the latest tag) -git tag -l | tail -10 -``` - -## Build and Upload - -After creating and pushing the tag, run: - -```bash -node ~/.opencode/bin/release-android.mjs -``` - -The script will: -- Auto-detect Android project root (standalone or monorepo) -- Auto-detect project name from recent git tags or directory name -- Auto-detect Gitea config from git remote URL (HTTPS/SSH) -- Auto-detect Java from Android Studio -- Build release APK -- Upload to Gitea Release matching the tag pattern - -## Error Handling - -- If `GITEA_API_TOKEN` is not set: `export GITEA_API_TOKEN="your_token"` -- If build fails: check Java/Android SDK installation -- If tag not found: create and push the tag first - -$ARGUMENTS diff --git a/command/sync-oc-pull.md b/command/sync-oc-pull.md index f19cffb..acfd30c 100644 --- a/command/sync-oc-pull.md +++ b/command/sync-oc-pull.md @@ -16,7 +16,7 @@ When you updated OpenCode configuration on another device, or team members share ### 1. Switch to OpenCode Config Directory ```bash -cd ~/.opencode +cd ~/.config/opencode ``` ### 2. Check Local Status diff --git a/command/sync-oc-push.md b/command/sync-oc-push.md index 25bfbb0..dc741fb 100644 --- a/command/sync-oc-push.md +++ b/command/sync-oc-push.md @@ -9,14 +9,14 @@ Commit and push OpenCode configuration repository changes to remote repository. ## Use Cases -When you modified config files in `~/.opencode` directory (such as `command/`, `skill/`, `opencode.json`, etc.), use this command to sync changes to remote repository. +When you modified config files in `~/.config/opencode` directory (such as `command/`, `skill/`, `opencode.json`, etc.), use this command to sync changes to remote repository. ## Steps ### 1. Switch to OpenCode Config Directory ```bash -cd ~/.opencode +cd ~/.config/opencode ``` ### 2. Check Change Status diff --git a/skill/mqtts-developer/USAGE_EXAMPLES.md b/skill/mqtts-developer/USAGE_EXAMPLES.md index 6d64ac7..fe819d0 100644 --- a/skill/mqtts-developer/USAGE_EXAMPLES.md +++ b/skill/mqtts-developer/USAGE_EXAMPLES.md @@ -11,7 +11,7 @@ EMQX 容器名是 emqx,使用阿里云 DNS。请按照 setup-mqtts-acme skill ``` **AI 响应流程:** -1. 读取 `~/.opencode/skills/setup-mqtts-acme.md` +1. 读取 `~/.config/opencode/skill/setup-mqtts-acme.md` 2. 验证 DNS 解析 3. 申请证书 4. 安装证书并配置自动更新