[tauri] TauriPlatforms: The shell around the built game, the Android privacy patch, the shell build of the game, and the device check

This commit is contained in:
2026-11-17 18:45:37 +01:00
parent 3f95a1b37d
commit a93ef09956
33 changed files with 5902 additions and 86 deletions
File diff suppressed because it is too large Load Diff
+27
View File
@@ -0,0 +1,27 @@
[package]
name = "rosea-shell"
version = "0.1.0"
description = "The Tauri 2 shell of Rosea Domi: a window around the built game, and nothing else."
edition = "2024"
publish = false
[lib]
# The `_lib` suffix avoids a clash between the lib and the bin on Windows (cargo#8519).
name = "rosea_shell_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.7.5", features = [] }
# No Tauri plugin and no other crate: the shell opens a window on the built game and does
# nothing else. Each plugin that arrives later (notifications, Phase 6) is reviewed for
# network access first (.agents/features/tauri-platforms.md D5).
[dependencies]
tauri = { version = "2.12.6", features = [] }
[profile.release]
codegen-units = 1
lto = true
opt-level = "s"
panic = "abort"
strip = true
+3
View File
@@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}
+13
View File
@@ -0,0 +1,13 @@
//! The Tauri 2 shell of Rosea Domi (CLAUDE.md §2, *Four versions*).
//!
//! A window on the built game (`apps/rosea/dist-tauri/`) and nothing else: no command, no
//! plugin, no file of its own. The game keeps everything in the webview's IndexedDB, exactly
//! as in the PWA. `capabilities/` is absent on purpose, so the page is granted no IPC at all.
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.run(tauri::generate_context!())
// Nothing to recover from here: without a window there is no garden to show.
.expect("Rosea Domi could not open its window");
}
+6
View File
@@ -0,0 +1,6 @@
// No console window behind the garden in a release build on Windows.
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
rosea_shell_lib::run()
}
@@ -0,0 +1,6 @@
{
"$schema": "https://schema.tauri.app/config/2",
"build": {
"beforeBuildCommand": "pnpm --filter @rosea/tauri android:privacy && pnpm --filter @rosea/app build:shell"
}
}
@@ -0,0 +1,36 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Rosea Domi",
"version": "../../rosea/package.json",
"identifier": "cz.mareknovak.domi.rosea",
"build": {
"beforeDevCommand": "pnpm --filter @rosea/app dev:shell",
"devUrl": "http://127.0.0.1:5173",
"beforeBuildCommand": "pnpm --filter @rosea/app build:shell",
"frontendDist": "../../rosea/dist-tauri"
},
"app": {
"windows": [
{
"label": "main",
"title": "Rosea Domi",
"width": 480,
"height": 800,
"minWidth": 320,
"minHeight": 480,
"useHttpsScheme": true,
"additionalBrowserArgs": "--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection,DnsOverHttpsUpgrade,DohProviderGoogle,DohProviderGoogleDns,DohProviderCloudflare,msExperimentationAndConfigurationService,OptimizationHints,AutofillServerCommunication,MediaRouter,Translate --disable-background-networking --disable-component-update --disable-domain-reliability --disable-sync --no-pings --disable-client-side-phishing-detection --dns-prefetch-disable"
}
],
"security": {
"csp": "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'self'; manifest-src 'self'; worker-src 'self'; object-src 'none'; base-uri 'self'; form-action 'none'"
}
},
"bundle": {
"active": true,
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
"category": "Game",
"shortDescription": "A rose to tend, a fox to befriend, and the time we give to people.",
"windows": { "nsis": { "installMode": "currentUser" } }
}
}
@@ -0,0 +1 @@
{ "$schema": "https://schema.tauri.app/config/2", "bundle": { "targets": ["deb", "appimage"] } }
@@ -0,0 +1 @@
{ "$schema": "https://schema.tauri.app/config/2", "bundle": { "targets": ["app", "dmg"] } }
@@ -0,0 +1 @@
{ "$schema": "https://schema.tauri.app/config/2", "bundle": { "targets": ["nsis"] } }