v0.2.6-pre.018-fix.001

This commit is contained in:
2026-08-22 12:52:03 +02:00
parent ba8f42f9b1
commit fca9abb11a
10 changed files with 140 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "ksp-app-config-desk",
"private": true,
"version": "0.2.6-pre.18",
"version": "0.2.6-pre.18.fix.1",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "KSP Config Desk",
"version": "0.2.6-pre.18",
"version": "0.2.6-pre.18.fix.1",
"identifier": "com.sasedev.ksp-app-config-desk",
"build": {
"beforeDevCommand": {

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-config-desk/tests/desktop_contract.rs
// version: 5
// version: 6
//! Desktop build/shell contract audits for Config Desk.
@@ -103,8 +103,11 @@ fn pre_014_template_uses_sidebar_navigation_and_kbot_style_splash_contract() {
#[test]
fn pre_018_packaged_runtime_bundles_config_resources_and_activates_shared_writable_root() {
let root = app_root();
let expected_version = env!("CARGO_PKG_VERSION");
let tauri = read_json(root.join("tauri.conf.json").as_path());
assert_eq!(tauri.pointer("/version").and_then(serde_json::Value::as_str), std::option::Option::Some("0.2.6-pre.18"));
assert_eq!(tauri.pointer("/version").and_then(serde_json::Value::as_str), std::option::Option::Some(expected_version));
let package = read_json(root.join("package.json").as_path());
assert_eq!(package.pointer("/version").and_then(serde_json::Value::as_str), std::option::Option::Some(expected_version));
let resources = tauri.pointer("/bundle/resources").and_then(serde_json::Value::as_object);
assert!(resources.is_some(), "packaged Config resources map must exist");
if let std::option::Option::Some(resources) = resources {