mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-24 15:01:37 +02:00
14 lines
514 B
Python
14 lines
514 B
Python
#!/usr/bin/env python3
|
|
"""Use the same reproducible headset bundle as the iPhone app."""
|
|
import pathlib
|
|
import subprocess
|
|
import sys
|
|
|
|
root = pathlib.Path(__file__).resolve().parents[2]
|
|
out = pathlib.Path(sys.argv[1]).resolve()
|
|
out.mkdir(parents=True, exist_ok=True)
|
|
version = subprocess.check_output(
|
|
[sys.executable, str(root / 'ios/scripts/make_frame_bundle.py'),
|
|
str(out / 'frame-bundle.tar.gz')], cwd=root, text=True).strip().splitlines()[-1]
|
|
(out / 'frame-bundle.version').write_text(version + '\n')
|