Git Product home page Git Product logo

Comments (7)

boyan01 avatar boyan01 commented on September 23, 2024

以 macos 为例:

  1. 需要切换 flutter 分支到 dev/master,添加环境变量 ENABLE_FLUTTER_DESKTOP=true
export ENABLE_FLUTTER_DESKTOP=true

执行完这一步之后,使用 flutter devices 命令,可以看到已连接的设备中包含macOS

image

  1. 运行
flutter run -d macOS
  1. 如果上一步有错的话,将 https://github.com/google/flutter-desktop-embedding 仓库 example 中对应的平台构建文件夹复制到本项目并覆盖原有文件。
    即拷贝 flutter-desktop-embedding/example/macos 到 flutter-tetris/macos
    若此步骤无用,可以尝试直接运行/编译flutter-desktop-embedding/example,如果失败,提交 issue 给 google 即可

  2. 编译成品。如果失败,也尝试一下第3步。

flutter build macos

from flutter-tetris.

GanZhiXiong avatar GanZhiXiong commented on September 23, 2024

那怎么编译windows App呢?
使用flutter build windows 吗?

image
我再macOS系统使用flutter build windows有问题啊?

from flutter-tetris.

boyan01 avatar boyan01 commented on September 23, 2024

只能在 windows 平台上编译 windows app

from flutter-tetris.

GanZhiXiong avatar GanZhiXiong commented on September 23, 2024

编译linux可执行文件也是一样必须要在linux上吗?
那还得每个平台安装flutter环境进行build,这样太麻烦了哈!

from flutter-tetris.

boyan01 avatar boyan01 commented on September 23, 2024

没办法,平台限制。可以用虚拟机,或者用持续集成工具进行编译。

from flutter-tetris.

GanZhiXiong avatar GanZhiXiong commented on September 23, 2024

大佬,是用虚拟机,还是持续集成工具编译的呢?😀

from flutter-tetris.

boyan01 avatar boyan01 commented on September 23, 2024

都行,觉得哪个方便就用哪个呗。

from flutter-tetris.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.