N
Nuxt2y ago
PandaDEV

distDir in Tauri with Nuxt3

I'm trying to create a tauri desktop app with nuxt that worked but if you want to build it you have to specify the "distDir" folder and my question is what should I put there
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "http://localhost:3000",
"distDir": "../pages"
},
"package": {
"productName": "music-player",
"version": "0.1.0"
},
"tauri": {
"allowlist": {
"all": false
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "tk.pandadev",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"csp": null
},
"updater": {
"active": false
},
"windows": [
{
"fullscreen": false,
"maximized": true,
"height": 720,
"resizable": true,
"title": "Music Player",
"width": 1280,
"minWidth": 1000,
"minHeight": 600,
"decorations": false,
"transparent": true
}
],
"macOSPrivateApi": true
}
}
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "http://localhost:3000",
"distDir": "../pages"
},
"package": {
"productName": "music-player",
"version": "0.1.0"
},
"tauri": {
"allowlist": {
"all": false
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "tk.pandadev",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"csp": null
},
"updater": {
"active": false
},
"windows": [
{
"fullscreen": false,
"maximized": true,
"height": 720,
"resizable": true,
"title": "Music Player",
"width": 1280,
"minWidth": 1000,
"minHeight": 600,
"decorations": false,
"transparent": true
}
],
"macOSPrivateApi": true
}
}
No description
2 Replies
PandaDEV
PandaDEVOP2y ago
i've put pages there for now but when i run the built version its just a blank screen
PandaDEV
PandaDEVOP2y ago
the dev build works perfectly fine but the final build not
No description
No description
Want results from more Discord servers?
Add your server