summarum/src-tauri/tauri.conf.json
Horizontal42 d0d13ec1c0 historical rates: point at frankfurter.dev, fetch on cold start too
api.frankfurter.app 301-redirects to frankfurter.dev now, and the old
host is flaky over reqwest/rustls-tls — talk to the new one directly
(Rust backend, the vite-dev web fallback, and the CSP allowlist).

Separately, a sheet reopened on boot with "on 2024-01-01" in it never
fetched historical rates at all: the fetch only ran from switchDoc()
and the editor's onChange, and the editor's initial text is seeded
directly, bypassing both.
2026-07-03 11:46:47 +03:00

63 lines
1.8 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Summarum",
"version": "1.1.0",
"identifier": "app.summarum.calc",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "Summarum",
"width": 480,
"height": 620,
"minWidth": 320,
"minHeight": 240,
"center": true,
"visible": false,
"decorations": false
}
],
"security": {
"csp": "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; connect-src ipc: http://ipc.localhost https://open.er-api.com https://api.coingecko.com https://query1.finance.yahoo.com https://query2.finance.yahoo.com https://api.frankfurter.dev"
}
},
"bundle": {
"active": true,
"targets": ["nsis"],
"createUpdaterArtifacts": true,
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.png",
"icons/icon.ico"
],
"fileAssociations": [
{
"ext": ["numi", "sum"],
"name": "Summarum Sheet",
"description": "Summarum calculation sheet",
"role": "Editor"
}
],
"windows": {
"nsis": {
"installMode": "currentUser",
"languages": ["English", "Russian"]
}
}
},
"plugins": {
"updater": {
"endpoints": [
"https://github.com/Horizontal42/summarum/releases/latest/download/latest.json"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDlERDUwODMzRTk4Qzc2NDkKUldSSmRvenBNd2pWbmZmd1JxVEZ4ZllKYmp5bnJHVFlJWmVsRWxBQ3pNaWx2bFZicFE3Rm1NeWYK"
}
}
}