Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(packaging): keep portable extraction path stable

vastsa7baddd27a7e1
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index b0947f878..2d984e9db 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -229,7 +229,8 @@
},
"portable": {
"artifactName": "PI-Desktop-Portable-${version}.${ext}",
- "requestExecutionLevel": "user"
+ "requestExecutionLevel": "user",
+ "unpackDirName": "PI-Desktop-Portable"
},
"deb": {
"packageName": "pi-desktop",
diff --git a/apps/desktop/test/auto-update.test.mjs b/apps/desktop/test/auto-update.test.mjs
index 272082182..73da39bea 100644
--- a/apps/desktop/test/auto-update.test.mjs
+++ b/apps/desktop/test/auto-update.test.mjs
@@ -264,6 +264,11 @@ test("packaging publishes an electron-updater feed for GitHub Releases", () => {
"PI-Desktop-Portable-${version}.${ext}",
);
assert.equal(pkg.build.portable.requestExecutionLevel, "user");
+ assert.equal(
+ pkg.build.portable.unpackDirName,
+ "PI-Desktop-Portable",
+ "portable extraction path stays stable for Windows taskbar identity",
+ );
// The upload step must carry every updater feed, and the release publishes
// all platforms unfiltered (D126/D285).
assert.match(releaseWorkflowSource, /release\/\*\.zip/);