Add Tauri app backend setup with dependencies and basic build script
- Introduced `build.rs` for Tauri build process initialization. - Added `Cargo.toml` with dependencies for Tauri plugins, serialization, cryptography, and database handling. - Generated `Cargo.lock` to lock package versions for consistency.
This commit is contained in:
52
src-tauri/tauri.conf.json
Normal file
52
src-tauri/tauri.conf.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-config-schema/schema.json",
|
||||
"productName": "ERitors Scribe",
|
||||
"version": "0.5.0",
|
||||
"identifier": "com.eritors.scribe.desktop",
|
||||
"build": {
|
||||
"frontendDist": "../out",
|
||||
"devUrl": "http://localhost:4000",
|
||||
"beforeDevCommand": "npm run dev",
|
||||
"beforeBuildCommand": "npm run build"
|
||||
},
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"label": "main",
|
||||
"title": "ERitors Scribe",
|
||||
"width": 1200,
|
||||
"height": 800,
|
||||
"resizable": true,
|
||||
"fullscreen": false,
|
||||
"minWidth": 900,
|
||||
"minHeight": 600
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
"csp": "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://scribe.eritors.com; connect-src 'self' ipc: http://ipc.localhost https://api.eritors.com https://scribe.eritors.com; font-src 'self' data:"
|
||||
}
|
||||
},
|
||||
"plugins": {
|
||||
"updater": {
|
||||
"endpoints": ["https://api.eritors.com/download/app/desktop/update/{{target}}/{{current_version}}"],
|
||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDI5OTQwMjI3Qjg3REZDNjgKUldSby9IMjRKd0tVS2NDQTVZNnphYUtPMElXTHBqYXpsSDFFVnNXQm01U1BZWjB2MVNicHRKN0EK"
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"createUpdaterArtifacts": true,
|
||||
"targets": "all",
|
||||
"icon": [
|
||||
"icons/32x32.png",
|
||||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
],
|
||||
"macOS": {
|
||||
"signingIdentity": null,
|
||||
"hardenedRuntime": true,
|
||||
"entitlements": "entitlements.mac.plist"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user