release 0.0.0
This commit is contained in:
parent
24256b767d
commit
778f7fbd7c
8 changed files with 513 additions and 57 deletions
25
scripts/generate_install_script.py
Executable file
25
scripts/generate_install_script.py
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env -S uv run --quiet --script
|
||||
# /// script
|
||||
# requires-python = ">=3.10"
|
||||
# ///
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def generate_install_script(version):
|
||||
with open("scripts/install.sh.template", "r") as f:
|
||||
template = f.read()
|
||||
|
||||
script = template.replace("{{VERSION}}", version)
|
||||
|
||||
with open("dist/install.sh", "w") as f:
|
||||
f.write(script)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) != 2:
|
||||
print("Usage: generate_install_script.py VERSION", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
version = sys.argv[1]
|
||||
generate_install_script(version)
|
||||
Loading…
Add table
Add a link
Reference in a new issue