Skip to content

Commit 4fb409b

Browse files
committed
Release v1.0.3
1 parent 41f33c3 commit 4fb409b

7 files changed

Lines changed: 19 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ jobs:
172172
"$version" \
173173
"$updater_asset" \
174174
"$updater_asset.sig" \
175-
"release-assets/${{ matrix.latest_name }}"
175+
"release-assets/${{ matrix.latest_name }}" \
176+
"主要解决移动端问题"
176177
177178
- name: Prepare Windows updater metadata
178179
if: runner.os == 'Windows'
@@ -186,7 +187,8 @@ jobs:
186187
"$version" \
187188
"$updater_asset" \
188189
"$updater_asset.sig" \
189-
"release-assets/${{ matrix.latest_name }}"
190+
"release-assets/${{ matrix.latest_name }}" \
191+
"主要解决移动端问题"
190192
191193
- name: Upload workflow artifact
192194
uses: actions/upload-artifact@v4
@@ -200,4 +202,6 @@ jobs:
200202
uses: softprops/action-gh-release@v2
201203
with:
202204
files: ${{ matrix.release_artifact_path || matrix.artifact_path }}
205+
body: |
206+
主要解决移动端问题
203207
prerelease: ${{ contains(github.ref_name, 'rc') }}

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fileshare",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"private": true,
55
"type": "module",
66
"scripts": {

scripts/create-updater-json.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
if [ "$#" -ne 5 ]; then
5-
echo "Usage: $0 <platform> <version> <update asset path> <signature path> <output json path>" >&2
4+
if [ "$#" -lt 5 ] || [ "$#" -gt 6 ]; then
5+
echo "Usage: $0 <platform> <version> <update asset path> <signature path> <output json path> [notes]" >&2
66
exit 1
77
fi
88

@@ -11,20 +11,21 @@ version="$2"
1111
asset_path="$3"
1212
signature_path="$4"
1313
output_path="$5"
14+
notes_text="${6:-}"
1415
asset_name="$(basename "$asset_path")"
1516
download_url="https://github.com/tri5m/file-share/releases/latest/download/$asset_name"
1617

17-
python3 - "$platform" "$version" "$download_url" "$signature_path" "$output_path" <<'PY'
18+
python3 - "$platform" "$version" "$download_url" "$signature_path" "$output_path" "$notes_text" <<'PY'
1819
import json
1920
import sys
2021
from datetime import datetime, timezone
2122
from pathlib import Path
2223
23-
platform, version, url, signature_path, output_path = sys.argv[1:]
24+
platform, version, url, signature_path, output_path = sys.argv[1:6]
25+
notes_text = sys.argv[6].strip() if len(sys.argv) > 6 else ""
2426
signature = Path(signature_path).read_text(encoding="utf-8").strip()
2527
26-
# 生成更详细的更新说明
27-
notes = f"""FileShare {version}
28+
notes = notes_text or f"""FileShare {version}
2829
2930
🔄 更新内容:
3031
请访问 GitHub 发布页面查看完整的更新日志和新功能说明。

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fileshare"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
description = "LAN file sharing desktop app"
55
authors = ["FileShare"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "FileShare",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"identifier": "com.fileshare.desktop",
66
"build": {
77
"beforeDevCommand": "",

0 commit comments

Comments
 (0)