Tauri ビルド時にエラー「Error You must change the bundle identifier in tauri.conf.json > tauri > bundle > identifi. The default value com.tauri.de is not allowed as it must be unique across applications.」が発生した場合の対処法

Tauri ビルド時にエラー「Error You must change the bundle identifier in tauri.conf.json > tauri > bundle > identifi. The default value com.tauri.de is not allowed as it must be unique across applications.」が発生した場合の対処法

Tauriでビルド時にエラー「Error You must change the bundle identifier in tauri.conf.json > tauri > bundle > identifi. The default value com.tauri.de is not allowed as it must be unique across applications.」が発生した場合の対処法を記述してます。

環境

  • OS CentOS Stream release 9
  • rustc 1.62.1
  • Tauri 1.1

エラー全文

「npm」環境で「build」時に発生。

$ npm run tauri build

> tauri-sample@0.0.0 tauri
> tauri build

       Error You must change the bundle identifier in `tauri.conf.json > tauri > bundle > identifier`. The default value `com.tauri.dev` is not allowed as it must be unique across applications.

原因

エラーメッセージの通り「src-tauri」に配下にある「tauri.conf.json」の「identifier」の値を変更する必要があるため

対処法

任意の値に変更する。

「tauri.conf.json」にある

「identifier」の値を変更します。