Comments (7)
以 macos 为例:
- 需要切换 flutter 分支到 dev/master,添加环境变量 ENABLE_FLUTTER_DESKTOP=true
export ENABLE_FLUTTER_DESKTOP=true
执行完这一步之后,使用 flutter devices 命令,可以看到已连接的设备中包含macOS
- 运行
flutter run -d macOS
-
如果上一步有错的话,将 https://github.com/google/flutter-desktop-embedding 仓库 example 中对应的平台构建文件夹复制到本项目并覆盖原有文件。
即拷贝 flutter-desktop-embedding/example/macos 到 flutter-tetris/macos
若此步骤无用,可以尝试直接运行/编译flutter-desktop-embedding/example,如果失败,提交 issue 给 google 即可 -
编译成品。如果失败,也尝试一下第3步。
flutter build macos
from flutter-tetris.
那怎么编译windows App呢?
使用flutter build windows 吗?
我再macOS系统使用flutter build windows有问题啊?
from flutter-tetris.
只能在 windows 平台上编译 windows app
from flutter-tetris.
编译linux可执行文件也是一样必须要在linux上吗?
那还得每个平台安装flutter环境进行build,这样太麻烦了哈!
from flutter-tetris.
没办法,平台限制。可以用虚拟机,或者用持续集成工具进行编译。
from flutter-tetris.
大佬,是用虚拟机,还是持续集成工具编译的呢?😀
from flutter-tetris.
都行,觉得哪个方便就用哪个呗。
from flutter-tetris.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-tetris.