diff --git a/CHANGELOG.md b/CHANGELOG.md index 54cc96f..97e589c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ 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.7] - 2026-06-03 + +### 修复 +- 修复 Windows 构建 `PathExistsException`(errno 183):复制 client/ 到 C:\jiu-build 后,先清除 cp 复制成真实目录的插件软链(windows/flutter/ephemeral)及 .dart_tool/build,再交给 flutter 干净重建 + ## [1.0.6] - 2026-06-03 ### 改进 diff --git a/scripts/ci/compile-windows.sh b/scripts/ci/compile-windows.sh index 66e2078..bf8afca 100755 --- a/scripts/ci/compile-windows.sh +++ b/scripts/ci/compile-windows.sh @@ -27,6 +27,14 @@ rm -rf "$BUILD_ROOT" mkdir -p "$BUILD_ROOT" cp -r client "$BUILD_CLIENT" +# `cp -r` turns Flutter's plugin symlinks (windows/flutter/ephemeral/.plugin_symlinks/*) +# into real directories. flutter's createPluginSymlinks only cleans up *symlinks*, so it +# then fails to create a symlink over the copied real dir (errno 183 / PathExists). +# Drop all regenerable artifacts so the build below recreates them cleanly. +rm -rf "${BUILD_CLIENT}/windows/flutter/ephemeral" \ + "${BUILD_CLIENT}/.dart_tool" \ + "${BUILD_CLIENT}/build" + # Build (run from the clean path; pushd/popd avoids needing $() to save cwd) pushd "$BUILD_CLIENT" > /dev/null flutter create --platforms=windows . --project-name jiu_client