AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
ci: publish Android APK with desktop releases
tianma-ifb6f223764044
diff --git a/.github/workflows/mobile-build.yml b/.github/workflows/mobile-build.ymlindex 8709813d..fe6bd9b1 100644--- a/.github/workflows/mobile-build.yml+++ b/.github/workflows/mobile-build.yml@@ -2,6 +2,13 @@ name: Build EdgeEver Mobileon:workflow_dispatch:+ inputs:+ release_tag:+ description: "Upload the signed arm64 APK to this existing GitHub Release (optional)"+ required: false+ type: string+ release:+ types: [published]push:branches:- main@@ -15,7 +22,7 @@ on:- ".github/workflows/mobile-build.yml"permissions:- contents: read+ contents: writeconcurrency:group: edgeever-mobile-android-${{ github.ref }}-${{ github.event_name }}@@ -23,7 +30,7 @@ concurrency:jobs:android:- if: github.repository == 'tianma-if/edgeever' && (github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main')+ if: github.repository == 'tianma-if/edgeever' && (github.event_name == 'workflow_dispatch' || github.event_name == 'release' || github.ref == 'refs/heads/main')name: Build Android packagesruns-on: [self-hosted, macOS, ARM64, edgeever-mobile]timeout-minutes: 45@@ -54,7 +61,7 @@ jobs:run: bun run build:android:fast- name: Restore Android upload keystore- if: github.event_name == 'workflow_dispatch'+ if: github.event_name == 'workflow_dispatch' || github.event_name == 'release'env:ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}run: |@@ -71,12 +78,28 @@ jobs:ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}run: bun run build:android:play+ - name: Build signed release APK for GitHub Release+ if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.release_tag != '')+ env:+ ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}+ ANDROID_KEYSTORE_FILE: ${{ runner.temp }}/edgeever-upload.p12+ ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}+ ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}+ EDGE_EVER_ANDROID_APK_ARCHS: arm64-v8a+ run: bun run build:android:apk+- name: Verify release AAB signatureif: github.event_name == 'workflow_dispatch'run: |"$JAVA_HOME/bin/jarsigner" -verify app/build/outputs/bundle/release/*.aabworking-directory: apps/mobile/android+ - name: Verify release APK signature+ if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.release_tag != '')+ run: |+ "$ANDROID_SDK_ROOT/build-tools/36.0.0/apksigner" verify --verbose app/build/outputs/apk/release/app-release.apk+ working-directory: apps/mobile/android+- name: Verify R8 deobfuscation mappingif: github.event_name == 'workflow_dispatch'run: test -s app/build/outputs/mapping/release/mapping.txt@@ -100,6 +123,16 @@ jobs:if-no-files-found: errorcompression-level: 0+ - name: Upload release APK to GitHub Release+ if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.release_tag != '')+ env:+ GH_TOKEN: ${{ github.token }}+ RELEASE_TAG: ${{ inputs.release_tag || github.ref_name }}+ run: |+ release_asset="$RUNNER_TEMP/edgeever-android-${RELEASE_TAG}-arm64-v8a.apk"+ cp apps/mobile/android/app/build/outputs/apk/release/app-release.apk "$release_asset"+ gh release upload "$RELEASE_TAG" "$release_asset" --repo "$GITHUB_REPOSITORY" --clobber+- name: Upload R8 deobfuscation mappingif: github.event_name == 'workflow_dispatch'uses: actions/upload-artifact@v7@@ -109,5 +142,5 @@ jobs:if-no-files-found: error- name: Remove temporary upload keystore- if: always() && github.event_name == 'workflow_dispatch'+ if: always() && (github.event_name == 'workflow_dispatch' || github.event_name == 'release')run: rm -f "$RUNNER_TEMP/edgeever-upload.p12"diff --git a/AGENTS.md b/AGENTS.mdindex 5b2eccea..78180404 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -11,9 +11,10 @@## GitHub Release 约束与流程1. **版本号与基线**:使用 `vX.Y.Z` 格式(非 Draft/Prerelease)。递增根目录 `package.json`;若含移动端修改,同步更新 `apps/mobile/app.json` 的 `expo.version` 并递增 `android.versionCode`。上一个实际 Release 为审计基线。-2. **验证命令**:必须通过 `bun run typecheck`、`bun run typecheck:mobile` 和 `bun run build:web`。-3. **APK 构建与签名**:仅当变更影响移动端运行时代码、共享依赖、原生配置或构建工具时,执行 `bun run build:android:apk:local` 构建生产签名 APK,命名为 `edgeever-android-vX.Y.Z-arm64-v8a.apk`(签名配置必须位于仓库外 `~/.config/edgeever/android/signing.env`)。无移动端变更时复用最近兼容 APK。-4. **Release 说明结构**:使用中英文双语格式(正文禁止包含字面量 `\n`)。功能/修复关联对应 Issue 并标记 Label,发布后回链并关闭 Issue。正文结构:+2. **跨平台 Release 资产**:每个正式 Release 页面必须同时包含当前版本的 macOS arm64 DMG 和 Android arm64 APK;APK 命名为 `edgeever-android-vX.Y.Z-arm64-v8a.apk`。+3. **验证命令**:必须通过 `bun run typecheck`、`bun run typecheck:mobile` 和 `bun run build:web`。+4. **APK 构建与签名**:仅当变更影响移动端运行时代码、共享依赖、原生配置或构建工具时,执行 `bun run build:android:apk:local` 构建生产签名 APK,命名为 `edgeever-android-vX.Y.Z-arm64-v8a.apk`(签名配置必须位于仓库外 `~/.config/edgeever/android/signing.env`)。无移动端变更时复用最近兼容 APK。+5. **Release 说明结构**:使用中英文双语格式(正文禁止包含字面量 `\n`)。功能/修复关联对应 Issue 并标记 Label,发布后回链并关闭 Issue。正文结构:```md## Key Changesdiff --git a/apps/mobile/app.json b/apps/mobile/app.jsonindex 2255424f..ca0fd487 100644--- a/apps/mobile/app.json+++ b/apps/mobile/app.json@@ -3,7 +3,7 @@"name": "EdgeEver","slug": "edgeever","scheme": "edgeever",- "version": "1.6.25",+ "version": "1.6.26","runtimeVersion": {"policy": "appVersion"},@@ -28,7 +28,7 @@},"android": {"package": "org.edgeever.mobile",- "versionCode": 45,+ "versionCode": 46,"adaptiveIcon": {"backgroundColor": "#d1fae5","backgroundImage": "./assets/icon.png",