Skip to content

Spot it. Save it. Free, local-first Chrome extension for images, videos and prompts. Explore 2,000+ curated cases and connect your library to AI Agents via MCP. 提示词导演

Exercise Windows local upgrades from an accessible installation directory

MigenAI99c07ada399c
diff --git a/test/local_upgrade_native_e2e.py b/test/local_upgrade_native_e2e.py
index 0eef786..2f80371 100644
--- a/test/local_upgrade_native_e2e.py
+++ b/test/local_upgrade_native_e2e.py
@@ -52,7 +52,9 @@ def main():
package = args.current_archive.read_bytes()
with zipfile.ZipFile(args.current_archive) as archive:
target = json.loads(archive.read("manifest.json"))
- with tempfile.TemporaryDirectory(prefix="pd-native-release-") as temp, sync_playwright() as playwright:
+ # Windows OS temp lives under AppData, which Chrome blocks for directory
+ # access. Install beside the built package, in an ordinary user workspace.
+ with tempfile.TemporaryDirectory(prefix="pd-native-release-", dir=args.current_archive.resolve().parent) as temp, sync_playwright() as playwright:
root = Path(temp)
installed = root / "installation"
shutil.copytree(args.previous_directory, installed)