From be7d9ee2f2d4a6e86ebc6c5870b7627d949555ff Mon Sep 17 00:00:00 2001 From: Soleil <781078959@qq.com> Date: Thu, 26 Dec 2024 13:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20initialization?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 20 ++++++++++++++++++++ CHANGELOG.md | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bca28e7..43c6de2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -113,6 +113,12 @@ jobs: with: version: latest + # 安装 Snapcraft + - name: Install Snapcraft + uses: samuelmeuli/action-snapcraft@v2 + with: + snapcraft_token: ${{ secrets.SNAPCRAFT_TOKEN }} + # 更新 Linux 依赖安装 - name: Install Linux Dependencies run: | @@ -146,7 +152,21 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DEBUG: electron-builder + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} + # 新增:上传到 Snap Store + - name: Publish to Snap Store + if: startsWith(github.ref, 'refs/tags/') + run: | + for snap in dist/*.snap; do + if [ -f "$snap" ]; then + snapcraft upload "$snap" --release stable + fi + done + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} + continue-on-error: true + - name: List Build Output run: | ls -la dist diff --git a/CHANGELOG.md b/CHANGELOG.md index 02ed6d1..bbb9c4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.0-alpha1] - 2024-12-26 +## [1.0.1] - 2024-12-26 ### Added - 支持修改 Cursor 的相关机器码