mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Installer: allow installing specific versions
This commit is contained in:
parent
7c4977146f
commit
b3b2f56890
2 changed files with 7 additions and 2 deletions
|
|
@ -99,12 +99,12 @@ Customizing the installation
|
|||
_kitty_install_cmd \
|
||||
installer=nightly dest=/some/other/location
|
||||
|
||||
* You can specify a different install location, with ``dest``:
|
||||
* You can specify a specific version to install, with:
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
_kitty_install_cmd \
|
||||
dest=/some/other/location
|
||||
installer=version-0.35.2
|
||||
|
||||
* You can tell the installer not to launch |kitty| after installing it with
|
||||
``launch=n``:
|
||||
|
|
|
|||
|
|
@ -98,6 +98,9 @@ get_release_url() {
|
|||
get_file_url "v$release_version" "$release_version"
|
||||
}
|
||||
|
||||
get_version_url() {
|
||||
get_file_url "v$1" "$1"
|
||||
}
|
||||
|
||||
get_nightly_url() {
|
||||
get_file_url "nightly" "nightly"
|
||||
|
|
@ -105,9 +108,11 @@ get_nightly_url() {
|
|||
|
||||
get_download_url() {
|
||||
installer_is_file="n"
|
||||
echo "$installer"
|
||||
case "$installer" in
|
||||
"nightly") get_nightly_url ;;
|
||||
"") get_release_url ;;
|
||||
version-*) get_version_url "${installer#*-}";;
|
||||
*) installer_is_file="y" ;;
|
||||
esac
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue