* fix(app-frontend): do not emit exceptions when no loaders are available * refactor(app): simplify Microsoft login code without functional changes * feat(app): external browser auth flow for Modrinth account login * chore: address Clippy lint * chore(app/oauth_utils): simplify `handle_reply` error handling according to review * chore(app-lib): simplify `Url` usage out of MC auth module
101 lines
2.9 KiB
JSON
101 lines
2.9 KiB
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"build": {
|
|
"beforeDevCommand": "pnpm turbo run dev --filter=@modrinth/app-frontend",
|
|
"beforeBuildCommand": "pnpm turbo run build --filter=@modrinth/app-frontend",
|
|
"frontendDist": "../app-frontend/dist",
|
|
"devUrl": "http://localhost:1420"
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"category": "Game",
|
|
"copyright": "",
|
|
"targets": "all",
|
|
"externalBin": [],
|
|
"icon": ["icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
|
|
"windows": {
|
|
"nsis": {
|
|
"installMode": "perMachine",
|
|
"installerHooks": "./nsis/hooks.nsi"
|
|
}
|
|
},
|
|
"longDescription": "",
|
|
"macOS": {
|
|
"entitlements": "App.entitlements",
|
|
"exceptionDomain": "",
|
|
"frameworks": [],
|
|
"providerShortName": null,
|
|
"signingIdentity": null
|
|
},
|
|
"shortDescription": "",
|
|
"linux": {
|
|
"deb": {
|
|
"depends": []
|
|
}
|
|
},
|
|
"fileAssociations": [
|
|
{
|
|
"ext": ["mrpack"],
|
|
"mimeType": "application/x-modrinth-modpack+zip"
|
|
}
|
|
]
|
|
},
|
|
"productName": "Modrinth App",
|
|
"version": "../app-frontend/package.json",
|
|
"mainBinaryName": "Modrinth App",
|
|
"identifier": "ModrinthApp",
|
|
"plugins": {
|
|
"deep-link": {
|
|
"desktop": {
|
|
"schemes": ["modrinth"]
|
|
},
|
|
"mobile": []
|
|
}
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": false,
|
|
"macOSPrivateApi": true,
|
|
"windows": [
|
|
{
|
|
"titleBarStyle": "Overlay",
|
|
"hiddenTitle": true,
|
|
"fullscreen": false,
|
|
"height": 800,
|
|
"resizable": true,
|
|
"title": "Modrinth App",
|
|
"label": "main",
|
|
"width": 1280,
|
|
"minHeight": 700,
|
|
"minWidth": 1100,
|
|
"visible": true,
|
|
"zoomHotkeysEnabled": false,
|
|
"decorations": false
|
|
}
|
|
],
|
|
"security": {
|
|
"assetProtocol": {
|
|
"scope": [
|
|
"$APPDATA/caches/icons/*",
|
|
"$APPCONFIG/caches/icons/*",
|
|
"$CONFIG/caches/icons/*",
|
|
"$APPDATA/profiles/*/saves/*/icon.png",
|
|
"$APPCONFIG/profiles/*/saves/*/icon.png",
|
|
"$CONFIG/profiles/*/saves/*/icon.png"
|
|
],
|
|
"enable": true
|
|
},
|
|
"capabilities": ["ads", "core", "plugins"],
|
|
"csp": {
|
|
"default-src": "'self' customprotocol: asset:",
|
|
"connect-src": "ipc: http://ipc.localhost https://modrinth.com https://*.modrinth.com https://*.posthog.com https://*.sentry.io https://api.mclo.gs 'self' data: blob:",
|
|
"font-src": ["https://cdn-raw.modrinth.com/fonts/"],
|
|
"img-src": "https: 'unsafe-inline' 'self' asset: http://asset.localhost http://textures.minecraft.net blob: data:",
|
|
"style-src": "'unsafe-inline' 'self'",
|
|
"script-src": "https://*.posthog.com 'self'",
|
|
"frame-src": "https://www.youtube.com https://www.youtube-nocookie.com https://discord.com 'self'",
|
|
"media-src": "https://*.githubusercontent.com"
|
|
}
|
|
}
|
|
}
|
|
}
|