flet build macos: default the .app name to the product name, not the project name
I maintainer di solito rispondono entro 2 giorni
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Problem
On macOS the .app bundle's file name is what users see almost everywhere: Finder, the Applications folder, Launchpad, Spotlight and the Dock all show it (without .app), and the template sets CFBundleName to $(PRODUCT_NAME) = the artifact name, so the bold app menu, "About …" and "Quit …" use it too. CFBundleDisplayName (the product name) is only used by Finder when the app declares a localized display name, which the template doesn't.
When no artifact name is set, flet build macos falls back to the project name, so an app with
[project]
name = "acme_notes"
[tool.flet]
product = "Acme Notes"
ships as acme_notes.app and its menu bar reads "acme_notes", while only window titles and the About panel say "Acme Notes".
The workaround ([tool.flet.macos] artifact = "Acme Notes") works — names with spaces are already handled by the Xcode project — but few people know it's needed.
Proposal
For the macos target, when the artifact name isn't set (--artifact, [tool.flet.macos].artifact, [tool.flet].artifact), default it to the product name (with / and : replaced, which macOS file names can't contain). Other platforms keep the project name: a Windows .exe / Linux binary name stays file-like.
This renames the .app of existing macOS apps that set product but no artifact; [tool.flet.macos] artifact = "<project name>" keeps the old name.
Also: the "Artifact name" docs' resolution order omits [tool.flet].artifact.
- Lingua principale
- Python
- Stelle
- 17.4k
- Fork
- 728
- Merge medio
- 1g 11h
- PR unite (30g)
- 56
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di flet-dev/flet
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
flet build: common [tool.flet.deep_linking] is ignored on Android and iOSForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug packaging platform: mobile
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug controls
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
I maintainer di solito rispondono entro 2 giorni
-
bug: find_by_key() does not find Tab or PopupMenuItem controls by keyForse già presa @RezaShamsipour l’ha presa 3 giorni fa. Apertabug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 65/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di flet-dev/flet
Issue simili
-
tunneld on Windows: Wi-Fi devices are not discovered because uvicorn runs on a ProactorEventLoopAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
doronz88/pymobiledevice3#2051 ·
I maintainer di solito rispondono entro 1 giorno
-
Remove DatacircleAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
collabnix/awesome-mcp-lists#230 ·
I maintainer di solito rispondono entro 9 giorni
-
Groc schedules with out of range values pass config validation and fail later when the scheduler is builtForse già presa @auraseb l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
autowarefoundation/autoware_carla_scenario#342 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ianktoo/project-monitor#14 ·