mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 13:34:48 +02:00
Publish installer.sh
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# vim:fileencoding=utf-8
|
||||
# License: GPL v3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
|
||||
|
||||
@@ -14,6 +14,11 @@ subprocess.check_call(['make', 'html'], cwd=docs_dir)
|
||||
if os.path.exists(publish_dir):
|
||||
shutil.rmtree(publish_dir)
|
||||
shutil.copytree(os.path.join(docs_dir, '_build', 'html'), 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))
|
||||
subprocess.check_call(['git', 'add', 'kitty'])
|
||||
subprocess.check_call(['git', 'commit', '-m', 'kitty website updates'])
|
||||
|
||||
Reference in New Issue
Block a user