Skip to content

macOS app crashes when build.productName contains NFC characters #9264

@famibee

Description

@famibee

(build.productName に NFC 文字を含むと macOS アプリが起動せずクラッシュする)

  • electron-builder Version
    26.0.12

  • Operating System Version
    macOS 15.6.1 (24G90)

    • Only occurs with macOS build apps.
      macOS ビルド・アプリでのみ発生する。
  • What arch are you using?
    Intel Xeon W

  • Expected Behavior
    macOS app launches with or without NFC characters in build.productName.
     build.productName に NFC 文字を含んでいてもいなくても、macOS アプリが起動する

  • Actual Behavior
    Application crashes when starting.

    • In the past there was a bug where it would crash if it contained NFD, but now it doesn't crash, it just crashes if it contains NFC characters.
  • Test Project
    I will attach it.
    https://www.dropbox.com/scl/fi/uy7ybac98zvqf18jn2gw4/electron-title.zip?rlkey=wcmj22jhud64sfbbkwkkpzbug&dl=0

  • Steps to Reproduce(再現手順)

    • Unzip the test project and run "npm i".
      • テストプロジェクトを解凍し、「npm i」。
    • Run the "start" task and confirm that a window opens.
      • 「start」タスクを実行するとウインドウが開かれるのを確認。
    • Run the "PackMac" task and a dmg file will be built in the dist folder.
      You can open this and install it, or open the gi.app file generated in the dist/mac folder.
      • 「PackMac」タスクを実行すると dist フォルダ下に dmg ファイルがビルドされる。
        これを開いてインストールしてもよいし、dist/mac フォルダ下に ぎ.app が生成されるので、これを開く。
    • The app crashes.
      • アプリがクラッシュする。
    • Copy and paste the value of build.productName in the package.json file into the value of productName_NFD_OK and run the "PackMac" task to generate an app that doesn't crash.
      • package.json ファイルの build.productName の値を productName_NFD_OK の値にコピー&ペーストし、「PackMac」タスクを実行すると、クラッシュしない app が生成される。

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions