fix(xbox): repair the patch hunk for the pretty-printed manifest test

This commit is contained in:
Kurt Himebauch committed 2026-11-24 19:01:09 -05:00
1 parent 56b0559a85
commit a6984e495a
1 file changed
+7 -7
+7 -7
View File
@@ -154,7 +154,7 @@ new file mode 100755
index 0000000..d43c5fc
--- /dev/null
+++ b/crates/xodus-cli/src/commands/legacy_install.rs
@@ -0,0 +1,1400 @@
@@ -0,0 +1,1406 @@
+//! Installs a legacy Store title: resolve, license, download, extract.
+//!
+//! `streaming` only understands MSIXVC, where the container *is* the game and
@@ -1405,11 +1405,11 @@ index 0000000..d43c5fc
+ let app = root.join("Game.x64");
+ std::fs::create_dir_all(&app).unwrap();
+ std::fs::write(app.join(LEGACY_MANIFEST), "<Package>
<Applications>
<Application
Id=\"App\"
Executable=\"Game.exe\"/>
</Applications></Package>").unwrap();
+<Applications>
+<Application
+ Id=\"App\"
+ Executable=\"Game.exe\"/>
+</Applications></Package>").unwrap();
+ std::fs::write(app.join("Game.exe"), b"MZ").unwrap();
+ let resource = root.join("Game.language-de");
+ std::fs::create_dir_all(&resource).unwrap();
@@ -1421,7 +1421,7 @@ index 0000000..d43c5fc
+ assert!(opens_element("<application id=\"a\"", "<application") && !opens_element("<applications>", "<application"));
+ std::fs::remove_dir_all(&root).ok();
+ }
+
+ #[test]
+ fn hoist_prefers_the_x64_package_when_several_declare_an_application() {
+ let root = scratch("two-applications");