Files
Meldwork/desktop/scripts/repoint-dmg-background.py
Ryder Sun 2acabc56cd fix(desktop): replace DMG artwork with generated installer scene
Use the Qwen-generated bitmap with rasterized English install guidance, keep Finder root resources hidden by repointing the background into the signed app bundle, and update packaging coverage. Verified with the full desktop suite, focused packaging tests, codesign, and hdiutil.
2026-09-10 14:34:51 +08:00

18 lines
415 B
Python

#!/usr/bin/env python3
import sys
from ds_store import DSStore
from mac_alias import Alias
def main():
ds_store_path, background_path = sys.argv[1:3]
with DSStore.open(ds_store_path, "r+") as store:
icon_view = store["."]["icvp"]
icon_view["backgroundImageAlias"] = Alias.for_file(background_path).to_bytes()
store["."]["icvp"] = icon_view
if __name__ == "__main__":
main()