Skip to content

Commit 4322ef6

Browse files
author
Detlef Groth
committed
24 beta released
1 parent c9e1bb8 commit 4322ef6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

jasspa/macros/spellins.emf

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,20 @@ define-macro spell-install
3030
!if $status
3131
1000 ml-write &spr "Language files for %s already installed!" #l1
3232
!else
33-
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*"
34-
ipipe-shell-command &spr "unzip %s/ls_%s.zip -d %s" $user-path #l1 $user-path
33+
!if &lfind "|win32|win32s|cygwin|cygwinc|" %platform
34+
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*"
35+
; TODO
36+
!if &lfind "|win32|win32s|" %platform
37+
; tar for zip on Windows
38+
ipipe-shell-command &spr "unzip ls_%s.zip -d %s" #l1 $user-path
39+
!else
40+
ipipe-shell-command &spr "unzip ls_%s.zip -d %s" #l1 $user-path
41+
42+
!endif
43+
!else
44+
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*"
45+
ipipe-shell-command &spr "unzip %s/ls_%s.zip -d %s" $user-path #l1 $user-path
46+
!endif
3547
!endif
3648
!emacro
3749
define-help "spell-install" "3"

0 commit comments

Comments
 (0)