Skip to content

Commit ca821a4

Browse files
committed
v1.0.1 (#7)
* 修复导出Markdown * 修复导出Markdown+删除确认弹窗 * 添加自动更新功能 * 更新版本号 修复导出markdown 修复workflow 修复workflow 优化发布 修复发布 修复发布
1 parent 7da0956 commit ca821a4

File tree

22 files changed

+726
-38
lines changed

22 files changed

+726
-38
lines changed

.github/workflows/tauri-release.yml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tauri Draft Release
1+
name: Tauri Release
22

33
on:
44
push:
@@ -10,9 +10,10 @@ permissions:
1010
contents: write
1111

1212
jobs:
13-
publish-tauri:
13+
build-tauri:
1414
strategy:
1515
fail-fast: false
16+
max-parallel: 1
1617
matrix:
1718
include:
1819
- platform: "ubuntu-latest"
@@ -66,10 +67,44 @@ jobs:
6667
uses: tauri-apps/tauri-action@v0
6768
env:
6869
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
71+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
6972
with:
7073
tagName: v__VERSION__
7174
releaseName: "DeepLab v__VERSION__"
72-
releaseBody: "Draft release build for DeepLab v__VERSION__."
75+
releaseBody: "Automated release build for DeepLab v__VERSION__."
7376
releaseDraft: true
7477
prerelease: false
78+
uploadUpdaterJson: true
7579
args: ${{ matrix.args }}
80+
81+
verify-updater-json:
82+
needs: build-tauri
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: Fetch release latest.json
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
run: |
89+
set -euo pipefail
90+
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
91+
api="https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${GITHUB_REF_NAME}"
92+
else
93+
api="https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/latest"
94+
fi
95+
json_url="$(curl -fsSL \
96+
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
97+
-H "Accept: application/vnd.github+json" \
98+
"$api" | jq -r '.assets[] | select(.name=="latest.json") | .browser_download_url')"
99+
test -n "$json_url"
100+
curl -fsSL --retry 5 --retry-delay 2 "$json_url" -o latest.json
101+
cat latest.json
102+
103+
- name: Validate latest.json platforms
104+
run: |
105+
set -euo pipefail
106+
jq -e '.platforms["windows-x86_64"]' latest.json >/dev/null
107+
jq -e '.platforms["darwin-aarch64"]' latest.json >/dev/null
108+
jq -e '.platforms["darwin-x86_64"]' latest.json >/dev/null
109+
jq -e '.platforms["linux-x86_64"]' latest.json >/dev/null
110+
echo "latest.json contains all required platform entries"

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./dist/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "DeepLab",
33
"private": true,
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"type": "module",
66
"packageManager": "pnpm@10.30.1",
77
"scripts": {
@@ -25,6 +25,7 @@
2525
"@tauri-apps/plugin-fs": "^2.4.5",
2626
"@tauri-apps/plugin-opener": "^2.5.3",
2727
"@tauri-apps/plugin-sql": "^2.3.2",
28+
"@tauri-apps/plugin-updater": "^2.9.0",
2829
"@tiptap/core": "^3.20.1",
2930
"@tiptap/extension-code-block": "^3.20.1",
3031
"@tiptap/extension-link": "^3.20.1",

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/.gitignore

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Generated by Cargo
22
# will have compiled files and executables
3-
/target/
4-
5-
# Generated by Tauri
6-
# will have schema files for capabilities auto-completion
7-
/gen/schemas
3+
/target/
4+
5+
# Generated by Tauri
6+
# will have schema files for capabilities auto-completion
7+
/gen/schemas
8+
9+
# local updater signing keys
10+
/.keys

0 commit comments

Comments
 (0)