Remove the code to generate installer.sh from installer.py

This commit is contained in:
Kovid Goyal 2022-04-11 21:35:59 +05:30
parent 1d8d669a43
commit 49efbf0c6e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -144,10 +144,6 @@ def run_website(args: Any) -> None:
with open(os.path.join(publish_dir, 'current-version.txt'), 'w') as f: with open(os.path.join(publish_dir, 'current-version.txt'), 'w') as f:
f.write(version) f.write(version)
shutil.copy2(os.path.join(docs_dir, 'installer.sh'), publish_dir) shutil.copy2(os.path.join(docs_dir, 'installer.sh'), publish_dir)
installer = os.path.join(docs_dir, 'installer.py')
subprocess.check_call([
'python3', '-c', f"import runpy; runpy.run_path('{installer}', run_name='update_wrapper')",
os.path.join(publish_dir, 'installer.sh')])
os.chdir(os.path.dirname(publish_dir)) os.chdir(os.path.dirname(publish_dir))
subprocess.check_call(['git', 'add', 'kitty']) subprocess.check_call(['git', 'add', 'kitty'])
subprocess.check_call(['git', 'commit', '-m', 'kitty website updates']) subprocess.check_call(['git', 'commit', '-m', 'kitty website updates'])