- Add flate2 dependency for zlib compression support in Rust backend - Implement compressed scene file format with magic number (PURGIFZ1) for format detection - Add backward compatibility for loading uncompressed legacy scene files - Convert scene JSON to compact format (no indentation) to reduce file size - Add image compression utilities with configurable quality and dimensions - Implement image size detection and compression necessity checking - Add helper functions for base64 image size calculation and MIME type detection - Disable global Tauri object in web context for security - Reduce memory footprint for large scene files and high-resolution images through compression
44 lines
938 B
JSON
44 lines
938 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "RefVroid",
|
|
"version": "0.1.1",
|
|
"identifier": "com.refvroid.app",
|
|
"build": {
|
|
"beforeDevCommand": "pnpm dev",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeBuildCommand": "pnpm build",
|
|
"frontendDist": "../dist"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "RefVroid",
|
|
"width": 1280,
|
|
"height": 720,
|
|
"resizable": true,
|
|
"decorations": false,
|
|
"transparent": false,
|
|
"alwaysOnTop": false,
|
|
"dragDropEnabled": true,
|
|
"backgroundColor": [25, 25, 25, 255]
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null
|
|
},
|
|
"withGlobalTauri": false
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": ["msi"],
|
|
"icon": [
|
|
"icons/icon.png",
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
]
|
|
}
|
|
}
|