From 156765d93e7851160690d7532c954b66391b0827 Mon Sep 17 00:00:00 2001 From: RSS1102 Date: Wed, 22 Oct 2025 11:45:42 +0800 Subject: [PATCH 1/6] =?UTF-8?q?ci:=20=E7=A7=BB=E9=99=A4=20Dart=20=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=AD=A5=E9=AA=A4=EF=BC=8C=E7=AE=80=E5=8C=96=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-multi-platform.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/build-multi-platform.yml b/.github/workflows/build-multi-platform.yml index 5988fd1..9e04a67 100644 --- a/.github/workflows/build-multi-platform.yml +++ b/.github/workflows/build-multi-platform.yml @@ -18,8 +18,6 @@ jobs: flutter-version: '3.32.0' - name: Install dependencies run: flutter pub get - - name: Setup Dart - uses: dart-lang/setup-dart@v1 - name: Build macOS Intel run: dart compile exe bin/main.dart -o api_tool_macos_intel - name: Upload Artifact @@ -42,8 +40,6 @@ jobs: flutter-version: '3.32.0' - name: Install dependencies run: flutter pub get - - name: Setup Dart - uses: dart-lang/setup-dart@v1 - name: Build macOS ARM64 run: dart compile exe bin/main.dart -o api_tool_macos_arm64 --target-os=macos --target-arch=arm64 - name: Upload Artifact @@ -66,10 +62,8 @@ jobs: flutter-version: '3.32.0' - name: Install dependencies run: flutter pub get - - name: Setup Dart - uses: dart-lang/setup-dart@v1 - name: Build Linux x64 - run: dart compile exe bin/main.dart -o api_tool_linux + run: dart compile exe bin/main.dart -o api_tool_linux --target-arch=x64 - name: Upload Artifact id: upload uses: actions/upload-artifact@v4 @@ -90,8 +84,6 @@ jobs: flutter-version: '3.32.0' - name: Install dependencies run: flutter pub get - - name: Setup Dart - uses: dart-lang/setup-dart@v1 - name: Build Windows x64 run: dart compile exe bin/main.dart -o api_tool_windows - name: Upload Artifact From 14330370e3988fe90b91804985e925d0b9e1b475 Mon Sep 17 00:00:00 2001 From: RSS1102 Date: Wed, 22 Oct 2025 14:49:41 +0800 Subject: [PATCH 2/6] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=E4=B8=8E=20tdesign?= =?UTF-8?q?-flutter=20=E7=9A=84=E9=AA=8C=E8=AF=81=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=9E=84=E5=BB=BA=E7=9A=84=E4=BA=8C?= =?UTF-8?q?=E8=BF=9B=E5=88=B6=E6=96=87=E4=BB=B6=E6=AD=A3=E7=A1=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-multi-platform.yml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build-multi-platform.yml b/.github/workflows/build-multi-platform.yml index 9e04a67..6e92187 100644 --- a/.github/workflows/build-multi-platform.yml +++ b/.github/workflows/build-multi-platform.yml @@ -20,6 +20,12 @@ jobs: run: flutter pub get - name: Build macOS Intel run: dart compile exe bin/main.dart -o api_tool_macos_intel + - name: Verify with tdesign-flutter + run: | + cd $GITHUB_WORKSPACE + git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git + cd tdesign-flutter/tdesign-component/demo_tool + sh all_build.sh - name: Upload Artifact id: upload uses: actions/upload-artifact@v4 @@ -42,6 +48,12 @@ jobs: run: flutter pub get - name: Build macOS ARM64 run: dart compile exe bin/main.dart -o api_tool_macos_arm64 --target-os=macos --target-arch=arm64 + - name: Verify with tdesign-flutter + run: | + cd $GITHUB_WORKSPACE + git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git + cd tdesign-flutter/tdesign-component/demo_tool + sh all_build.sh - name: Upload Artifact id: upload uses: actions/upload-artifact@v4 @@ -64,6 +76,12 @@ jobs: run: flutter pub get - name: Build Linux x64 run: dart compile exe bin/main.dart -o api_tool_linux --target-arch=x64 + - name: Verify with tdesign-flutter + run: | + cd $GITHUB_WORKSPACE + git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git + cd tdesign-flutter/tdesign-component/demo_tool + sh all_build.sh - name: Upload Artifact id: upload uses: actions/upload-artifact@v4 @@ -86,6 +104,13 @@ jobs: run: flutter pub get - name: Build Windows x64 run: dart compile exe bin/main.dart -o api_tool_windows + - name: Verify with tdesign-flutter + shell: bash + run: | + cd $GITHUB_WORKSPACE + git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git + cd tdesign-flutter/tdesign-component/demo_tool + sh all_build.sh - name: Upload Artifact id: upload uses: actions/upload-artifact@v4 From 386ed75f0c1f47d98e2a0548fd5a659e2f26a5c6 Mon Sep 17 00:00:00 2001 From: RSS1102 Date: Wed, 22 Oct 2025 15:33:18 +0800 Subject: [PATCH 3/6] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=EF=BC=8C=E6=B7=BB=E5=8A=A0=20Linux=20?= =?UTF-8?q?=E5=8F=AF=E6=89=A7=E8=A1=8C=E6=96=87=E4=BB=B6=E7=9A=84=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E5=92=8C=E6=9D=83=E9=99=90=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-multi-platform.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build-multi-platform.yml b/.github/workflows/build-multi-platform.yml index 6e92187..acdd1e7 100644 --- a/.github/workflows/build-multi-platform.yml +++ b/.github/workflows/build-multi-platform.yml @@ -24,6 +24,9 @@ jobs: run: | cd $GITHUB_WORKSPACE git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git + mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin + cp api_tool_macos_intel tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux + chmod +x tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux cd tdesign-flutter/tdesign-component/demo_tool sh all_build.sh - name: Upload Artifact @@ -52,6 +55,9 @@ jobs: run: | cd $GITHUB_WORKSPACE git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git + mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin + cp api_tool_macos_arm64 tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux + chmod +x tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux cd tdesign-flutter/tdesign-component/demo_tool sh all_build.sh - name: Upload Artifact @@ -80,6 +86,9 @@ jobs: run: | cd $GITHUB_WORKSPACE git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git + mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin + cp api_tool_linux tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux + chmod +x tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux cd tdesign-flutter/tdesign-component/demo_tool sh all_build.sh - name: Upload Artifact @@ -109,6 +118,8 @@ jobs: run: | cd $GITHUB_WORKSPACE git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git + mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin + cp api_tool_windows.exe tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux.exe cd tdesign-flutter/tdesign-component/demo_tool sh all_build.sh - name: Upload Artifact From 6a4ae9efcf0c94b7730af16d10aca9d42ec894cf Mon Sep 17 00:00:00 2001 From: RSS1102 Date: Wed, 22 Oct 2025 15:44:22 +0800 Subject: [PATCH 4/6] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=9A=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=8D=E5=88=B6=E5=92=8C=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-multi-platform.yml | 13 +++++++------ temp_tdesign | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) create mode 160000 temp_tdesign diff --git a/.github/workflows/build-multi-platform.yml b/.github/workflows/build-multi-platform.yml index acdd1e7..6559714 100644 --- a/.github/workflows/build-multi-platform.yml +++ b/.github/workflows/build-multi-platform.yml @@ -25,9 +25,9 @@ jobs: cd $GITHUB_WORKSPACE git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin - cp api_tool_macos_intel tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux - chmod +x tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux + cp api_tool_macos_intel tdesign-flutter/tdesign-component/demo_tool/bin/ cd tdesign-flutter/tdesign-component/demo_tool + sed -i.bak 's|./bin/api_tool_linux|./bin/api_tool_macos_intel|g' all_build.sh sh all_build.sh - name: Upload Artifact id: upload @@ -56,9 +56,9 @@ jobs: cd $GITHUB_WORKSPACE git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin - cp api_tool_macos_arm64 tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux - chmod +x tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux + cp api_tool_macos_arm64 tdesign-flutter/tdesign-component/demo_tool/bin/ cd tdesign-flutter/tdesign-component/demo_tool + sed -i.bak 's|./bin/api_tool_linux|./bin/api_tool_macos_arm64|g' all_build.sh sh all_build.sh - name: Upload Artifact id: upload @@ -87,7 +87,7 @@ jobs: cd $GITHUB_WORKSPACE git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin - cp api_tool_linux tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux + cp api_tool_linux tdesign-flutter/tdesign-component/demo_tool/bin/ chmod +x tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux cd tdesign-flutter/tdesign-component/demo_tool sh all_build.sh @@ -119,8 +119,9 @@ jobs: cd $GITHUB_WORKSPACE git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin - cp api_tool_windows.exe tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_linux.exe + cp api_tool_windows tdesign-flutter/tdesign-component/demo_tool/bin/ cd tdesign-flutter/tdesign-component/demo_tool + sed -i.bak 's|./bin/api_tool_linux|./bin/api_tool_windows|g' all_build.sh sh all_build.sh - name: Upload Artifact id: upload diff --git a/temp_tdesign b/temp_tdesign new file mode 160000 index 0000000..b7e13fc --- /dev/null +++ b/temp_tdesign @@ -0,0 +1 @@ +Subproject commit b7e13fc4c3a3b01705325786b0d70954af884da8 From ff7886d41cfe7ebe04af3cc8f979f24d85be58c9 Mon Sep 17 00:00:00 2001 From: RSS1102 Date: Wed, 22 Oct 2025 16:53:07 +0800 Subject: [PATCH 5/6] =?UTF-8?q?ci:=20=E6=B7=BB=E5=8A=A0=E5=AF=B9=20macOS?= =?UTF-8?q?=20=E5=8F=AF=E6=89=A7=E8=A1=8C=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E6=9D=83=E9=99=90=E8=AE=BE=E7=BD=AE=EF=BC=8C=E7=A1=AE=E4=BF=9D?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E7=9A=84=E4=BA=8C=E8=BF=9B=E5=88=B6=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=8F=AF=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-multi-platform.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-multi-platform.yml b/.github/workflows/build-multi-platform.yml index 6559714..59f60fa 100644 --- a/.github/workflows/build-multi-platform.yml +++ b/.github/workflows/build-multi-platform.yml @@ -26,6 +26,7 @@ jobs: git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin cp api_tool_macos_intel tdesign-flutter/tdesign-component/demo_tool/bin/ + chmod +x tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_macos_intel cd tdesign-flutter/tdesign-component/demo_tool sed -i.bak 's|./bin/api_tool_linux|./bin/api_tool_macos_intel|g' all_build.sh sh all_build.sh @@ -57,6 +58,7 @@ jobs: git clone --depth 1 --branch develop https://github.com/Tencent/tdesign-flutter.git mkdir -p tdesign-flutter/tdesign-component/demo_tool/bin cp api_tool_macos_arm64 tdesign-flutter/tdesign-component/demo_tool/bin/ + chmod +x tdesign-flutter/tdesign-component/demo_tool/bin/api_tool_macos_arm64 cd tdesign-flutter/tdesign-component/demo_tool sed -i.bak 's|./bin/api_tool_linux|./bin/api_tool_macos_arm64|g' all_build.sh sh all_build.sh From 53b10aa686403bcf4fe7b8dc4985c22df6a23004 Mon Sep 17 00:00:00 2001 From: RSS1102 Date: Wed, 22 Oct 2025 17:48:09 +0800 Subject: [PATCH 6/6] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20README=20?= =?UTF-8?q?=E4=B8=AD=20TDesign=20Flutter=20=E7=BB=84=E4=BB=B6=E5=BA=93?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=8F=AF=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e9d3a71..1b2aa5d 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Flutter Version](https://img.shields.io/badge/Flutter-%3E%3D3.32.0%20%3C4.0.0-blue.svg?logo=flutter)](https://flutter.dev/) [![Dart Version](https://img.shields.io/badge/Dart-%3E%3D3.0.0%20%3C4.0.0-blue.svg?logo=dart)](https://dart.dev/) -TDesign Flutter 组件库文档生成工具 +[TDesign Flutter](https://github.com/Tencent/tdesign-flutter) 组件库文档生成工具 > 一个用于自动生成 TDesign Flutter 组件库示例代码和 API 文档的命令行工具,基于 smart_cli。