* Add Unsloth desktop deep links * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Address deep-link review feedback --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
93 lines
2.8 KiB
JSON
93 lines
2.8 KiB
JSON
{
|
|
"productName": "Unsloth Studio (Desktop)",
|
|
"identifier": "ai.unsloth.studio",
|
|
"build": {
|
|
"beforeDevCommand": {
|
|
"cwd": "../frontend",
|
|
"script": "npm run dev -- --port 5173 --strictPort"
|
|
},
|
|
"beforeBuildCommand": {
|
|
"cwd": "../frontend",
|
|
"script": "npm run build"
|
|
},
|
|
"frontendDist": "../frontend/dist",
|
|
"devUrl": "http://localhost:5173"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"security": {
|
|
"csp": "default-src 'self'; connect-src 'self' http://localhost:* ws://localhost:* ws://127.0.0.1:* http://127.0.0.1:* https://huggingface.co https://*.huggingface.co https://datasets-server.huggingface.co; img-src 'self' data: blob: https:; media-src 'self' data: blob: https:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; frame-src 'self' http://localhost:* http://127.0.0.1:*"
|
|
},
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "Unsloth Studio (Desktop)",
|
|
"width": 760,
|
|
"height": 560,
|
|
"center": true,
|
|
"visible": false,
|
|
"resizable": false,
|
|
"decorations": true,
|
|
"titleBarStyle": "Overlay",
|
|
"trafficLightPosition": { "x": 14, "y": 24 },
|
|
"hiddenTitle": true
|
|
}
|
|
]
|
|
},
|
|
"plugins": {
|
|
"deep-link": {
|
|
"desktop": {
|
|
"schemes": ["unsloth"]
|
|
}
|
|
},
|
|
"updater": {
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDFBQzA4RjczODM0RjE1QjcKUldTM0ZVK0RjNC9BR2t4R0RVaFR5cTkyUlRVQ1FwaGV0Nk04eWNwWXBhZnlzalJydllmZm1QTS8K",
|
|
"endpoints": [
|
|
"https://github.com/unslothai/unsloth/releases/download/desktop-latest/latest.json"
|
|
],
|
|
"windows": {
|
|
"installMode": "passive"
|
|
}
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"createUpdaterArtifacts": true,
|
|
"publisher": "Unsloth AI",
|
|
"homepage": "https://unsloth.ai/",
|
|
"copyright": "© 2026 Unsloth AI. All rights reserved.",
|
|
"license": "AGPL-3.0-only",
|
|
"targets": ["app", "appimage", "deb", "dmg", "nsis"],
|
|
"resources": {
|
|
"../../install.sh": "install.sh",
|
|
"../../install.ps1": "install.ps1"
|
|
},
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/icon.ico",
|
|
"icons/icon.icns"
|
|
],
|
|
"windows": {
|
|
"nsis": {
|
|
"installerHooks": "./windows/hooks.nsh",
|
|
"template": "./windows/installer.nsi",
|
|
"installerIcon": "./icons/icon.ico",
|
|
"headerImage": "./windows/branding/nsis-header.bmp",
|
|
"sidebarImage": "./windows/branding/nsis-sidebar.bmp",
|
|
"installMode": "currentUser",
|
|
"languages": ["English"],
|
|
"displayLanguageSelector": false
|
|
}
|
|
},
|
|
"linux": {
|
|
"appimage": {
|
|
"bundleMediaFramework": false
|
|
},
|
|
"deb": {
|
|
"desktopTemplate": "./linux/unsloth.desktop",
|
|
"postRemoveScript": "./linux/postremove.sh"
|
|
}
|
|
}
|
|
}
|
|
}
|