From 4322ef63552b27fc82bd29f514186585814f6c88 Mon Sep 17 00:00:00 2001 From: Detlef Groth Date: Sat, 9 Nov 2024 07:38:14 +0100 Subject: [PATCH] 24 beta released --- jasspa/macros/spellins.emf | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/jasspa/macros/spellins.emf b/jasspa/macros/spellins.emf index b5c1789..6898546 100644 --- a/jasspa/macros/spellins.emf +++ b/jasspa/macros/spellins.emf @@ -30,8 +30,20 @@ define-macro spell-install !if $status 1000 ml-write &spr "Language files for %s already installed!" #l1 !else - ipipe-shell-command &spr "curl --location https://github.com/mittelmark/microemacs/releases/download/v0.9.0/ls_%s.zip --output %s/ls_%s.zip" #l1 $user-path #l1 "*curl*" - ipipe-shell-command &spr "unzip %s/ls_%s.zip -d %s" $user-path #l1 $user-path + !if &lfind "|win32|win32s|cygwin|cygwinc|" %platform + ipipe-shell-command &spr "curl -fsSL https://github.com/mittelmark/microemacs/releases/download/v0.9.0/ls_%s.zip -o ls_%s.zip" #l1 #l1 "*curl*" + ; TODO + !if &lfind "|win32|win32s|" %platform + ; tar for zip on Windows + ipipe-shell-command &spr "unzip ls_%s.zip -d %s" #l1 $user-path + !else + ipipe-shell-command &spr "unzip ls_%s.zip -d %s" #l1 $user-path + + !endif + !else + ipipe-shell-command &spr "curl --location https://github.com/mittelmark/microemacs/releases/download/v0.9.0/ls_%s.zip --output %s/ls_%s.zip" #l1 $user-path #l1 "*curl*" + ipipe-shell-command &spr "unzip %s/ls_%s.zip -d %s" $user-path #l1 $user-path + !endif !endif !emacro define-help "spell-install" "3"