Function: ghostel--install-support-assets
ghostel--install-support-assets is a natively compiled function
defined in ghostel-module-install.el.
Signature
(ghostel--install-support-assets DIR &optional VERSION)
Documentation
Install Windows support release assets into DIR.
VERSION nil means the latest release. Warn but continue on failure, since Ghostel can use the system ConPTY.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-module-install.el
(defun ghostel--install-support-assets (dir &optional version)
"Install Windows support release assets into DIR.
VERSION nil means the latest release. Warn but continue on failure,
since Ghostel can use the system ConPTY."
(dolist (asset (ghostel--windows-support-assets))
(let* ((asset-name (car asset))
(url (ghostel--release-asset-url asset-name version))
(dest (expand-file-name (cdr asset) dir)))
(unless (string-prefix-p "https://" url)
(error "Refusing non-HTTPS download URL: %s" url))
(make-directory (file-name-directory dest) t)
(message "ghostel: downloading support asset from %s..." url)
(unless (ghostel--download-file url dest)
(message "ghostel: warning: failed to download support asset %s"
asset-name)))))