File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -692,15 +692,16 @@ download-extension: function[
692
692
;; currently the used urls are like: https://github.com/Oldes/Rebol-MiniAudio/releases/download/1.0.0/
693
693
;; and the file is made according Rebol version, which needs the extension
694
694
] [
695
- if dir? url [
695
+ so: system/options
696
+ file: as file! ajoin either dir? url [
696
697
url: as url! ajoin [url name #"-" system/platform #"-" system/build/arch %.rebx ]
697
698
if system/platform <> 'Windows [append url %.gz ]
698
- ]
699
- so: system/options
699
+ ;; save the file into the modules directory (using just name+arch)
700
+ [so/modules name #"-" system/build/arch %.rebx ]
701
+ ][ [so/modules lowercase second split-path url ]]
702
+
700
703
opt: so/log
701
704
try /with [
702
- ;; save the file into the modules directory (using just name+arch)
703
- file: as file! ajoin [so/modules name #"-" system/build/arch %.rebx ]
704
705
if exists? file [
705
706
; we don't want to overwrite any existing files!
706
707
log/info 'REBOL ["File already exists:^[ [m" file]
You can’t perform that action at this time.
0 commit comments