flutter-setting-up-on-windows by flutter/skills
npx skills add https://github.com/flutter/skills --skill flutter-setting-up-on-windows配置 Windows 环境以同时支持 Flutter 框架运行和原生 C/C++ 编译。请严格区分 Visual Studio(Windows 桌面 C++ 编译所需)和 VS Code(推荐的 Dart/Flutter 代码编辑器)。
按照此顺序工作流程在 Windows 计算机上初始化 Flutter SDK。
C:\src\flutter)。请勿安装到受保护的目录,如 C:\Program Files\。bin 目录的绝对路径。bin 目录路径追加到系统或用户的 PATH 变量中。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
PATHflutter doctor -v。根据您要针对开发的特定平台应用条件逻辑。
如果目标是 Windows 桌面:
flutter config --no-enable-<platform>(例如 flutter config --no-enable-windows-desktop)。如果目标是 Windows 上的 Android:
flutter devices 来验证设备连接。要分发 Windows 桌面应用程序,请将编译后的可执行文件及其所需的依赖项组装到一个可分发存档中。
flutter build windows 以编译发布版本。build\windows\runner\Release\。Release 目录复制以下资源到暂存目录:
.exe)。.dll 文件。data 目录。msvcp140.dllvcruntime140.dllvcruntime140_1.dll.zip 文件以供分发。如果您需要用于 MSIX 打包或本地测试的自签名证书,请使用 OpenSSL。
bin 目录添加到您的 PATH 环境变量中。openssl genrsa -out mykeyname.key 2048openssl req -new -key mykeyname.key -out mycsrname.csropenssl x509 -in mycsrname.csr -out mycrtname.crt -req -signkey mykeyname.key -days 10000.pfx 文件:openssl pkcs12 -export -out CERTIFICATE.pfx -inkey mykeyname.key -in mycrtname.crt.pfx 证书。在安装应用程序之前,将其放置在证书存储中的 受信任的根证书颁发机构 下。在为分发组装 Windows 构建时,请确保在压缩前目录结构严格匹配以下布局:
Release_Archive/
│ my_flutter_app.exe
│ flutter_windows.dll
│ msvcp140.dll
│ vcruntime140.dll
│ vcruntime140_1.dll
│
└───data/
│ app.so
│ icudtl.dat
│ ...
每周安装量
1.6K
仓库
GitHub 星标
792
首次出现
12 天前
安全审计
已安装于
codex1.5K
opencode1.5K
github-copilot1.5K
gemini-cli1.5K
kimi-cli1.5K
cursor1.5K
Configure the Windows environment to support both Flutter framework execution and native C/C++ compilation. Differentiate strictly between Visual Studio (required for Windows desktop C++ compilation) and VS Code (the recommended Dart/Flutter code editor).
Follow this sequential workflow to initialize the Flutter SDK on a Windows machine.
C:\src\flutter). Do not install in protected directories like C:\Program Files\.bin directory.bin directory path to the system or user PATH variable.PATH changes.flutter doctor -v.Apply conditional logic based on the specific platform you are targeting for development.
If targeting Windows Desktop:
flutter config --no-enable-<platform> (e.g., flutter config --no-enable-windows-desktop).If targeting Android on Windows:
flutter devices.To distribute a Windows desktop application, assemble the compiled executable and its required dependencies into a single distributable archive.
flutter build windows to compile the release build.build\windows\runner\Release\.Release directory into the staging directory:
.exe)..dll files.data directory.msvcp140.dllvcruntime140.dllIf you require a self-signed certificate for MSIX packaging or local testing, use OpenSSL.
bin directory to your PATH environment variable.openssl genrsa -out mykeyname.key 2048openssl req -new -key mykeyname.key -out mycsrname.csropenssl x509 -in mycsrname.csr -out mycrtname.crt -req -signkey mykeyname.key -days 10000.pfx file: openssl pkcs12 -export -out CERTIFICATE.pfx -inkey mykeyname.key -in mycrtname.crt.pfx certificate on the local Windows machine. Place it in the Certificate Store under Trusted Root Certification Authorities prior to installing the application.When assembling your Windows build for distribution, ensure the directory structure strictly matches the following layout before zipping:
Release_Archive/
│ my_flutter_app.exe
│ flutter_windows.dll
│ msvcp140.dll
│ vcruntime140.dll
│ vcruntime140_1.dll
│
└───data/
│ app.so
│ icudtl.dat
│ ...
Weekly Installs
1.6K
Repository
GitHub Stars
792
First Seen
12 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex1.5K
opencode1.5K
github-copilot1.5K
gemini-cli1.5K
kimi-cli1.5K
cursor1.5K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装
SVG Logo Designer - AI 驱动的专业矢量标识设计工具,生成可缩放品牌标识
1,200 周安装
vcruntime140_1.dll.zip file for distribution.