File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,20 @@ define-macro spell-install
30
30
!if $status
31
31
1000 ml-write &spr "Language files for %s already installed!" #l1
32
32
!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
35
47
!endif
36
48
!emacro
37
49
define-help "spell-install" "3"
You can’t perform that action at this time.
0 commit comments