feat(desktop): add custom AppX manifest generation for Microsoft Store

- Create AppX manifest generation script using template file
- Add support for multiple languages (EN, ZH-CN, ZH-TW, JA)
- Include protocol handlers for folo and follow schemes
- Add OPML file type association
- Update Electron Forge config to use custom manifest
- Add build:electron-forge:ms script for Microsoft Store builds
- Update GitHub Actions workflow to use custom build for store distribution

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DIYgod
2025-07-16 12:13:59 +08:00
co-authored by Claude
parent 694798c9d9
commit 943ef31085
6 changed files with 166 additions and 8 deletions
+8 -7
View File
@@ -32,6 +32,7 @@ env:
VITE_OPENPANEL_CLIENT_ID: ${{ vars.VITE_OPENPANEL_CLIENT_ID }}
VITE_OPENPANEL_API_URL: ${{ vars.VITE_OPENPANEL_API_URL }}
VITE_FIREBASE_CONFIG: ${{ vars.VITE_FIREBASE_CONFIG }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
NODE_OPTIONS: --max-old-space-size=8192
jobs:
@@ -137,14 +138,11 @@ jobs:
- name: Build - Vite
working-directory: apps/desktop
run: pnpm build:electron-vite ${{ env.PROD == 'false' && '--mode staging' || '' }}
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Build - Windows and Linux
if: runner.os != 'macOS'
if: runner.os == 'Linux' || (runner.os == 'Windows' && github.event.inputs.store != 'true')
working-directory: apps/desktop
run: pnpm build:electron-forge ${{ env.PROD == 'false' && '--mode=staging' || '' }}
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Build - macOS
if: runner.os == 'macOS' && github.event.inputs.store != 'true'
@@ -174,12 +172,15 @@ jobs:
working-directory: apps/desktop
run: pnpm build:electron-forge:mas
- name: Build - Microsoft Store
if: runner.os == 'Windows' && github.event.inputs.store == 'true'
working-directory: apps/desktop
run: pnpm build:electron-forge:ms
- name: Build - Renderer
if: runner.os == 'Linux'
working-directory: apps/desktop
run: pnpm build:render
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Upload file (macos-arm64-dmg)
uses: actions/upload-artifact@v4