前提
本来はTauriのタグをつけて質問したかったんですが、タグがでてきませんでした。。。
以下の技術でデスクトップアプリを作成しておりまして
・フレームワーク:Tauri
・フロントエンド:js(Vue.js)
・バックエンド:Rust
構成要素すべてにおいて素人ながらなんとかアプリをbuildしてexeにするところまではいけました。
発生している問題・エラーメッセージ
アプリはbuildできてexeが作れたんですが、exeを実行すると画像のように背面にコンソール画面が立ち上がってしまいます。
buildをし直さなくても対症療法的な感じでexeを実行するときになにかオプションをつければ表示を抑制できるような方法があれば最悪それでも大丈夫です。あるかはわからないんですが、、、
このcmdの自動起動を抑制したいです。
Tauri素人の私にお力添えいただいたきたいです。
よろしくお願いいたします。
該当のソースコード
原因はよくわからないんですが、tauri.conf.jsonに何かパラメータを追加すれば発生を抑制できるのではと推測してます。
tauri.conf.json
1{ 2 "$schema": "..\\node_modules/@tauri-apps/cli\\schema.json", 3 "build": { 4 "beforeBuildCommand": "", 5 "beforeDevCommand": "", 6 "devPath": "Set automatically by Vue CLI plugin", 7 "distDir": "Set automatically by Vue CLI plugin", 8 "withGlobalTauri": true 9 }, 10 "package": { 11 "productName": "work-time-recorder", 12 "version": "0.1.0" 13 }, 14 "tauri": { 15 "allowlist": { 16 "all": true 17 }, 18 "bundle": { 19 "active": true, 20 "category": "DeveloperTool", 21 "copyright": "", 22 "deb": { 23 "depends": [] 24 }, 25 "externalBin": [], 26 "icon": [ 27 "icons/32x32.png", 28 "icons/128x128.png", 29 "icons/128x128@2x.png", 30 "icons/icon.icns", 31 "icons/icon.ico" 32 ], 33 "identifier": "com.naoki.dev", 34 "longDescription": "", 35 "macOS": { 36 "entitlements": null, 37 "exceptionDomain": "", 38 "frameworks": [], 39 "providerShortName": null, 40 "signingIdentity": null 41 }, 42 "resources": [], 43 "shortDescription": "", 44 "targets": "all", 45 "windows": { 46 "certificateThumbprint": null, 47 "digestAlgorithm": "sha256", 48 "timestampUrl": "" 49 } 50 }, 51 "security": { 52 "csp": null 53 }, 54 "updater": { 55 "active": false 56 }, 57 "windows": [ 58 { 59 "fullscreen": false, 60 "height": 600, 61 "resizable": true, 62 "title": "WORK TIME RECORDER", 63 "width": 800 64 } 65 ] 66 } 67} 68
補足情報(FW/ツールのバージョンなど)
私がTauriどころかNPMなどのツールにもくわしくないのでどういった情報をだせば糸口が掴めそうかもわかっていない状態です。
御指摘いただければ資料を追加いたします。
よろしくお願いいたします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。