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. 提示词导演

让 Windows 构建保持运行时字节一致并完成原目录复用验收

MigenAI8195578b87ca
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..45072f8
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,8 @@
+# Runtime hashes and update packages must be identical on every checkout platform.
+* text=auto eol=lf
+*.zip binary
+*.png binary
+*.webp binary
+*.jpg binary
+*.mp4 binary
+*.pdf binary
diff --git a/.github/workflows/release-safety.yml b/.github/workflows/release-safety.yml
index 93e5d4a..7c18870 100644
--- a/.github/workflows/release-safety.yml
+++ b/.github/workflows/release-safety.yml
@@ -74,6 +74,8 @@ jobs:
name: Windows packaged data and project interactions
needs: source-contracts
runs-on: windows-latest
+ env:
+ PYTHONUTF8: "1"
defaults:
run:
shell: bash
diff --git a/test/local_upgrade_native_e2e.py b/test/local_upgrade_native_e2e.py
index 2838d18..4ff65b9 100644
--- a/test/local_upgrade_native_e2e.py
+++ b/test/local_upgrade_native_e2e.py
@@ -15,6 +15,7 @@ from e2e_support import base_entry, seed_extension_storage
def grant_directory_by_drop(page, context, installed):
+ page.bring_to_front()
page.evaluate("""() => {
window.addEventListener('dragover', event => {event.preventDefault();event.stopImmediatePropagation();}, {capture:true,once:true});
window.addEventListener('drop', async event => {
@@ -130,6 +131,7 @@ def main():
}""")
assert retained['saved'] and retained['same'] and retained['name']==installed.name, retained
# Supply renewed consent by a real directory drop; no replacement chooser.
+ check.goto(f"chrome-extension://{extension_id}/library.html", wait_until="networkidle")
grant_directory_by_drop(check, context, installed)
directory_proof = check.evaluate("""async () => {
const upgrade=await import('./local-extension-upgrade.js');