leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
812 stars 114 forks source link

打包exe安装包配置 display_name 不生效 #71

Closed yh4922 closed 2 years ago

yh4922 commented 2 years ago

打包之后安装包名称sdc_plus_plus-1.1.1+1.1.1-windows-setup.exe,安装完成后立即执行提示 image

桌面的快捷方式还是sdc_plus_plus,运行提示找不到文件 image

make_config.yaml

app_id: xxxxxx
publisher_name: Yohann
display_name: SDC++
executable_name: SDC++.exe
create_desktop_icon: true
install_dir_name: SDC++
locales:
  - zh

pubspec.yaml

name: sdc_plus_plus
version: 1.1.1

flutter_distributor --version

$ flutter_distributor --version                               
0.2.2

flutter doctor

$ flutter doctor
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.1, on Microsoft Windows [Version 10.0.19044.1526], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio 生成工具 2019 16.11.9)       
[√] Android Studio (version 4.2)
[√] VS Code (version 1.66.2)
[!] Proxy Configuration
    ! NO_PROXY is not set
[√] Connected device (3 available)
    ! Device 192.168.18.66:5555 is offline.
[√] HTTP Host Availability

! Doctor found issues in 1 category.
lijy91 commented 2 years ago

executable_name 指的是创建的快捷方式所指向的 exe 文件,但实际上你的项目编译后输出的 exe 文件名为 sdc_plus_plus.exe 如果你需要修改可执行文件的名称,请修改 Runner.rc 文件