如何解决使用snapcraft为Linux快照程序包构建flutter应用程序时发生错误
我有一个使用Flutter桌面的应用程序。在运行flutter run -d linux或flutter build Linux时,它可以完美地工作。我可以将其设置为snapcraft.yaml中的源,并将其设置为GitHub存储库,但是,一旦我尝试从本地源中将其捕获,就会出现以下错误:
[ +543 ms] CMake Error: The current CMakeCache.txt directory /root/parts/lizard/build/build/linux/release/CMakeCache.txt is different than the
directory /home/username/development/flutter_dev/lizard/build/linux/release where CMakeCache.txt was created. This may result in binaries being
created in the wrong place. If you are not sure,reedit the CMakeCache.txt
[ +2 ms] CMake Error: The source "/root/parts/lizard/build/linux/CMakeLists.txt" does not match the source
"/home/username/development/flutter_dev/lizard/linux/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
这是我的snapcraft.yaml文件:
name: lizard-game
title: Lizard
base: core18
version: '0.7'
summary: summary
description: description
grade: stable
confinement: strict
parts:
lizard:
plugin: flutter
source: .
source-type: local
flutter-target: lib/main.dart
apps:
lizard:
command: lizard
extensions: [flutter-dev]
icon: ./assets/icon/icon.png
我还运行了flutter create ..
来尝试重新创建Linux文件夹。
您对我该有什么建议?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。