release new "os" value >>os "cpu" value >>cpu select-tuple ;
: requirements ( builder -- xml )
- [
- os>> {
- { "windows" "Windows XP, Windows Vista or Windows 7" }
- { "macosx" "Mac OS X 10.5 Leopard" }
- { "linux" "Ubuntu Linux 9.04 (other distributions may also work)" }
- } at
- ] [
- dup cpu>> "x86.32" = [
- os>> "macosx" =
- f "Intel Pentium 4, Core Duo, or other x86 chip with SSE2 support. Note that 32-bit Athlon XP processors do not support SSE2."
- ?
- ] [ drop f ] if
- ] bi
- 2array sift [ [XML <li><-></li> XML] ] map [XML <ul><-></ul> XML] ;
+ os>> {
+ { "windows" "Windows 10, Windows 11, or newer" }
+ { "macosx" "macOS 11 (Big Sur) or newer" }
+ { "linux" "Ubuntu Linux 20.04 or newer (other distributions may also work)" }
+ } at [XML <ul><li><-></li></ul> XML] ;
: download-url ( string -- string' )
"https://downloads.factorcode.org/" prepend ;