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.84k stars 286 forks source link

build windows release failure #688

Open BigCatGit opened 1 year ago

BigCatGit commented 1 year ago

hover build windows --release

Hover doctor

hover: Downloading engine for platform windows-release at version 1837b5be5f0f1376a1ccf383950e83a80177fb4e... hover: Failed to download engine: failed to get Content-Length header: strconv.Atoi: parsing "": invalid syntax hover: Engine builds are a bit delayed after they are published in flutter. hover: You can either try again later or switch the flutter channel to beta, because these engines are more likely to be already built. hover: To dig into the already built engines look at https://github.com/go-flutter-desktop/engine-builds/releases and https://github.com/go-flutter-desktop/engine-builds/actions PS D:\Github\BigCatGit\GolangFlutterDesktopDemo\test_flutter> Hover doctor hover: Hover version v0.47.2 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 3.7.7 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2ad6cd72c0 (3 days ago) • 2023-03-08 09:41:59 -0800 Engine • revision 1837b5be5f Tools • Dart 2.19.4 • DevTools 2.20.1 hover: Flutter engine commit: https://github.com/flutter/engine/commit/1837b5be5f0f1376a1ccf383950e83a80177fb4e 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 gcc (Rev10, Built by MSYS2 project) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hover: Sharing the content of go.mod module test_flutter/go

go 1.20

require ( github.com/go-flutter-desktop/go-flutter v0.52.2 github.com/pkg/errors v0.9.1 )

require ( github.com/Xuanwo/go-locale v1.1.0 // indirect

    // 非真实存在的github仓库,在下方被改写
    github.com/bettersun/go-flutter-plugin/hello v0.0.0
    github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect
    github.com/go-gl/glfw/v3.3/glfw v0.0.0-20220712193148-63cf1f4ef61f // indirect
    golang.org/x/sys v0.0.0-20211023085530-d6a326fbbf70 // indirect
    golang.org/x/text v0.3.7 // indirect

)

// 使用本地目录改写上方的github仓库 replace github.com/bettersun/go-flutter-plugin/hello => ../go_plugin/hello hover: Sharing the content of hover.yaml application-name: "" executable-name: "" package-name: "" organization-name: com.testflutter 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

$ hover doctor
hover: Running on linux
hover: Docker installed: true
hover: Sharing flutter version
[...]

Error output

hover: Downloading engine for platform windows-release at version 1837b5be5f0f1376a1ccf383950e83a80177fb4e... hover: Failed to download engine: failed to get Content-Length header: strconv.Atoi: parsing "": invalid syntax hover: Engine builds are a bit delayed after they are published in flutter. hover: You can either try again later or switch the flutter channel to beta, because these engines are more likely to be already built. hover: To dig into the already built engines look at https://github.com/go-flutter-desktop/engine-builds/releases and https://github.com/go-flutter-desktop/engine-builds/actions

Using hover build windows --release to build my application, I get the following

system : win10 21h1

BigCatGit commented 1 year ago

When can I support the latest version of Flutter package release?

pchampio commented 1 year ago

Our github action that handle this (https://github.com/go-flutter-desktop/engine-builds/actions/runs/4468396715/jobs/7849088819) fails.

 failed to resolve flutter/dart-sdk/windows-arm64@git_revision:c4552a3e698c7ba8998d5e7897f78d7d23cbc4db (line 8): no such tag

I have no time to dig into it and find the fix. If someone else can look into it it would be great.

ofceab commented 1 year ago

Is there anything for this issue please ?