mirror of
https://github.com/frida/frida-tools.git
synced 2026-11-07 09:35:59 -10:00
Publishing will be done from CI using trusted publishing, so the twine issue that made us revert to setuptools no longer applies. Also install tracer_ui.zip where the tracer expects it, and make the wrapper scripts optional so they don't end up in wheels, which get theirs from the entry points.
35 lines
663 B
Python
Executable File
35 lines
663 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import argparse
|
|
import os
|
|
import shlex
|
|
import subprocess
|
|
|
|
|
|
def main() -> None:
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("version", type=str)
|
|
args = parser.parse_args()
|
|
set_dist_version(args.version)
|
|
|
|
|
|
def set_dist_version(version: str) -> None:
|
|
subprocess.run(
|
|
[
|
|
*shlex.split(os.environ["MESONREWRITE"]),
|
|
"--sourcedir",
|
|
os.environ["MESON_PROJECT_DIST_ROOT"],
|
|
"kwargs",
|
|
"set",
|
|
"project",
|
|
"/",
|
|
"version",
|
|
version,
|
|
],
|
|
check=True,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|