* M1 macOS: `arch -x86_64 ./build.sh update`
or download the correct boot image for your system from
-http://downloads.factorcode.org/images/master/, put it in the `factor`
+https://downloads.factorcode.org/images/master/, put it in the `factor`
directory and run:
* Unix: `make` and then `./factor -i=boot.unix-x86.64.image`
http.client io.files kernel math.parser splitting urls ;
IN: bootstrap.image.download
-CONSTANT: url URL" http://downloads.factorcode.org/images/master/"
+CONSTANT: download-url URL" https://downloads.factorcode.org/images/master/"
: download-checksums ( -- alist )
- url "checksums.txt" >url derive-url http-get nip
+ download-url "checksums.txt" >url derive-url http-get nip
split-lines [ " " split1 ] { } map>assoc ;
: file-checksum ( image -- checksum )
need-new-image? [ "Boot image corrupt" throw ] when ;
: download-image ( image -- )
- [ url swap >url derive-url download ]
+ [ download-url swap >url derive-url download ]
[ verify-image ]
bi ;
if errorlevel 1 goto fail
)
-set _bootimage_url=http://downloads.factorcode.org/images/%GIT_BRANCH%/%_bootimage%
+set _bootimage_url=https://downloads.factorcode.org/images/%GIT_BRANCH%/%_bootimage%
if "%_bootimage_type%"=="download" (
echo Fetching %GIT_BRANCH% boot image...
echo URL: %_bootimage_url%
packages-url dup link ;
: clean-image-url ( builder -- url )
- platform "http://downloads.factorcode.org/images/clean/" prepend ;
+ platform "https://downloads.factorcode.org/images/clean/" prepend ;
: clean-image-link ( builder -- link )
clean-image-url dup link ;
IN: zealot.factor
: download-boot-checksums ( path branch -- )
- '[ _ "http://downloads.factorcode.org/images/%s/checksums.txt" sprintf download ] with-directory ;
+ '[ _ "https://downloads.factorcode.org/images/%s/checksums.txt" sprintf download ] with-directory ;
: download-boot-image ( path branch image-name -- )
- '[ _ _ "http://downloads.factorcode.org/images/%s/%s" sprintf download ] with-directory ;
+ '[ _ _ "https://downloads.factorcode.org/images/%s/%s" sprintf download ] with-directory ;
: download-my-boot-image ( path branch -- )
my-boot-image-name download-boot-image ;
changed-factor-vocabs-from-master
] [
changed-factor-vocabs-from-clean
- ] if reject-unloadable-vocabs ;
\ No newline at end of file
+ ] if reject-unloadable-vocabs ;