From cf6660a1b8f6cc3aa49297b5b46f8ccb18676c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Thu, 19 Mar 2026 16:08:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=AD=A3db=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/database.d.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/types/database.d.ts b/src/types/database.d.ts index e15f1c0..ddd1ec9 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,4 +1,4 @@ -// @db-hash d3a4624b2923d297b29ac84195c244aa +// @db-hash ad26ece2cf8002d48518ba2b8cd908f8 //该文件由脚本自动生成,请勿手动修改 export interface memories { @@ -29,8 +29,8 @@ export interface o_artStyle { } export interface o_assets { 'describe'?: string | null; - 'filePath'?: string | null; 'id'?: number; + 'imageId'?: number | null; 'name'?: string | null; 'projectId'?: number | null; 'prompt'?: string | null; @@ -68,16 +68,6 @@ export interface o_image { 'type'?: string | null; 'videoId'?: number | null; } -export interface o_knowledge { - 'agentType': string; - 'content': string; - 'createdTime': number; - 'embedding': string; - 'id'?: string; - 'projectId': number; - 'source'?: string | null; - 'title': string; -} export interface o_model { 'apiKey'?: string | null; 'baseUrl'?: string | null; @@ -234,7 +224,6 @@ export interface DB { "o_event": o_event; "o_eventChapter": o_eventChapter; "o_image": o_image; - "o_knowledge": o_knowledge; "o_model": o_model; "o_myTasks": o_myTasks; "o_novel": o_novel; From 96dbdf5726a642a04b105dad06e5dee4dbc9d274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Thu, 19 Mar 2026 16:10:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A1=A5=E5=85=A8=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 155 ++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b45e4b6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,155 @@ +name: Build and Release + +on: + push: + tags: + - "v*" + workflow_dispatch: + inputs: + version: + description: "Version number (e.g., 1.0.0)" + required: false + type: string + +jobs: + build-windows: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "24" + cache: "yarn" + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build application + run: yarn build + + - name: Build Windows installer + run: yarn dist:win + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: windows-builds + path: | + dist/*.exe + dist/*.zip + retention-days: 30 + + build-macos: + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "24" + cache: "yarn" + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build application + run: yarn build + + - name: Build macOS installer + run: yarn dist:mac + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: macos-builds + path: | + dist/*.dmg + dist/*.zip + retention-days: 30 + + build-linux: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "24" + cache: "yarn" + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build application + run: yarn build + + - name: Build Linux installer + run: yarn dist:linux + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: linux-builds + path: | + dist/*.AppImage + dist/*.deb + retention-days: 30 + + release: + needs: [build-windows, build-macos, build-linux] + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + + permissions: + contents: write + + steps: + - name: Download Windows artifacts + uses: actions/download-artifact@v4 + with: + name: windows-builds + path: dist + + - name: Download macOS artifacts + uses: actions/download-artifact@v4 + with: + name: macos-builds + path: dist + + - name: Download Linux artifacts + uses: actions/download-artifact@v4 + with: + name: linux-builds + path: dist + + - name: Create Release + uses: softprops/action-gh-release@v2 + with: + name: ToonFlow ${{ github.ref_name }} + draft: false + prerelease: ${{ contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }} + generate_release_notes: true + files: | + dist/*.exe + dist/*.zip + dist/*.dmg + dist/*.AppImage + dist/*.deb + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}