Merge branch 'go-version' of https://github.com/page-down/kitty
This commit is contained in:
@@ -46,7 +46,7 @@ Run-time dependencies:
|
||||
Build-time dependencies:
|
||||
|
||||
* ``gcc`` or ``clang``
|
||||
* ``go >= 1.20`` (see :file:`go.mod` for go packages used during building)
|
||||
* ``go`` >= _build_go_version (see :file:`go.mod` for go packages used during building)
|
||||
* ``pkg-config``
|
||||
* For building on Linux in addition to the above dependencies you might also
|
||||
need to install the following packages, if they are not already installed by
|
||||
|
||||
@@ -40,7 +40,7 @@ Detailed list of changes
|
||||
|
||||
- Text rendering: Use sRGB correct linear gamma blending for nicer font rendering and better color accuracy with transparent windows. See the option :opt:`text_composition_strategy` for details. The obsolete :opt:`macos_thicken_font` will make the font too thick and needs to be removed manually if it is configured. (:pull:`5969`)
|
||||
|
||||
- Fix a regression in 0.27.0 that broke kitty @ set-font-size 0 (:iss:`5992`)
|
||||
- Fix a regression in 0.27.0 that broke ``kitty @ set-font-size 0`` (:iss:`5992`)
|
||||
|
||||
- launch: When using ``--cwd=current`` for a remote system support running non shell commands as well (:disc:`5987`)
|
||||
|
||||
|
||||
@@ -106,8 +106,17 @@ rst_prolog = '''
|
||||
'''.replace('VERSION', str_version)
|
||||
smartquotes_action = 'qe' # educate quotes and ellipses but not dashes
|
||||
|
||||
def go_version(go_mod_path: str) -> str: # {{{
|
||||
with open(go_mod_path) as f:
|
||||
for line in f:
|
||||
if line.startswith('go '):
|
||||
return line.strip().split()[1]
|
||||
raise SystemExit(f'No Go version in {go_mod_path}')
|
||||
# }}}
|
||||
|
||||
string_replacements = {
|
||||
'_kitty_install_cmd': 'curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin',
|
||||
'_build_go_version': go_version('../go.mod'),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user