go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.85k stars 283 forks source link

Failed to copy downloaded flutter_engine.dll #602

Closed liudonghua123 closed 3 years ago

liudonghua123 commented 3 years ago

Hover doctor

D:\code\flutter\office_tools>hover doctor
hover: Hover version v0.46.3 running on windows
hover: Sharing packaging tools
hover: darwin-bundle is supported
hover: Packaging darwin-dmg is not supported on windows
hover: To still package darwin-dmg on windows you need to run hover with the `--docker` flag.
hover: Packaging darwin-pkg is not supported on windows
hover: To still package darwin-pkg on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-appimage is not supported on windows
hover: To still package linux-appimage on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-deb is not supported on windows
hover: To still package linux-deb on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-pkg is not supported on windows
hover: To still package linux-pkg on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-rpm is not supported on windows
hover: To still package linux-rpm on windows you need to run hover with the `--docker` flag.
hover: Packaging linux-snap is not supported on windows
hover: To still package linux-snap on windows you need to run hover with the `--docker` flag.
hover: To package windows-msi these tools are required: candle
hover: Install the WiX Toolset from https://wixtoolset.org/releases/
hover: To still package windows-msi without the required tools installed you need to run hover with the `--docker` flag.
hover:
hover: Sharing flutter version
Flutter 2.2.2 • channel stable • https://mirrors.tuna.tsinghua.edu.cn/git/flutter-sdk.git
Framework • revision d79295af24 (2 weeks ago) • 2021-06-11 08:56:01 -0700
Engine • revision 91c9fc8fe0
Tools • Dart 2.13.3
hover: Flutter engine commit: https://github.com/flutter/engine/commit/91c9fc8fe011352879e3bb6660966eafc0847233
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel: `flutter channel beta`
hover: Finding out the C compiler version
hover: Sharing the content of go.mod
module office_tools/go

go 1.16

require (
        github.com/go-flutter-desktop/go-flutter v0.43.0
        github.com/pkg/errors v0.9.1
)
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
organization-name: com.officetools
license: ""
target: lib/main_desktop.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
hover: Sharing the content of go/cmd
go\cmd\main.go  go\cmd\options.go

D:\code\flutter\office_tools>

Error output

D:\code\flutter\office_tools>hover run
hover: Downloading engine for platform windows-debug_unopt at version 91c9fc8fe011352879e3bb6660966eafc0847233...
Download completed in 1.09s
hover: zip: not a valid zip file
Download completed in 0.78s
hover: zip: not a valid zip file
hover: Failed to copy downloaded flutter_engine.dll: CreateFile C:\Users\LIUD~1.H\AppData\Local\Temp\hover-engine-download548538291\engine\flutter_engine.dll: The system cannot find the path specified.

D:\code\flutter\office_tools>

I want to try file_picker plugin in a flutter project, so I followed the instructions on https://github.com/go-flutter-desktop/hover#getting-started-with-an-existing-flutter-project and https://github.com/miguelpruivo/flutter_file_picker/wiki/Setup#--desktop-go-flutter.

However when I tried to execute hover run, I got the above errors.

provokateurin commented 3 years ago

Fixed in latest hover version