: pcre2-versions ( -- seq )
"PCRE2Project" "pcre2" "pcre2-" list-repository-tags-matching
- tag-refs
- [ "-" split length 2 = ] filter
- human-sort ;
+ tag-refs human-sort ;
+
+: pcre2-release-versions ( -- seq )
+ pcre2-versions
+ [ "-" split length 2 = ] filter ;
: lz4-versions ( -- seq )
"lz4" "lz4" "v" list-repository-tags-matching
: postgres-versions ( -- seq )
"postgres" "postgres" "REL_" list-repository-tags-matching
- tag-refs
- ! [ "_" split1-last nip [ digit? ] all? ] filter ! no RC1 or BETA1
- human-sort ;
+ tag-refs human-sort ;
+
+: postgres-release-versions ( -- seq )
+ postgres-versions
+ ! no RC1 or BETA1
+ [ "_" split1-last nip [ digit? ] all? ] filter ;
: raylib-versions ( -- seq )
"raysan5" "raylib" "" list-repository-tags-matching
tag-refs human-sort ;
+: raylib-release-versions ( -- seq )
+ raylib-versions [ "-" swap subseq? ] reject ;
+
: raygui-versions ( -- seq )
"raysan5" "raygui" "" list-repository-tags-matching
tag-refs human-sort ;
+: raygui-release-versions ( -- seq )
+ raygui-versions [ "-" swap subseq? ] reject ;
+
: ripgrep-versions ( -- seq )
"BurntSushi" "ripgrep" "" list-repository-tags-matching
tag-refs
] with-tar-gz ;
: build-pcre2-dll ( -- )
- "PCRE2Project" "pcre2" pcre2-versions last [
+ "PCRE2Project" "pcre2" pcre2-release-versions last [
[
32-bit? [
qw{ cmake -A Win32 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DPCRE2_SUPPORT_UNICODE=ON -DPCRE2_SUPPORT_LIBZ=OFF -DPCRE2_SUPPORT_LIBBZ2=OFF -DPCRE2_SUPPORT_LIBEDIT=OFF -DPCRE2_SUPPORT_LIBREADLINE=OFF .. } try-process
! choco install -y meson winflexbison3
: build-postgres-dll ( -- )
- "postgres" "postgres" postgres-versions last [
+ "postgres" "postgres" postgres-release-versions last [
"src/tools/msvc/clean.bat" prepend-current-path try-process
qw{ meson setup build } try-process
"build" prepend-current-path
! choco install -y glfw3
: build-raylib-dll ( -- )
- "raysan5" "raylib" raylib-versions last [
+ "raysan5" "raylib" raylib-release-versions last [
[
32-bit? [
qw{ cmake -A Win32 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DUSE_EXTERNAL_GLFW=OFF .. } try-process
] with-github-worktree-tag ;
:: build-raygui-dll ( -- )
- "raysan5" "raygui" raygui-versions last [
+ "raysan5" "raygui" raygui-release-versions last [
"raysan5" "raylib" raylib-versions last github-tag-disk-checkout-path :> $raylib-dir
$raylib-dir "src" append-path :> $raylib-src
$raylib-dir "build/raylib/Release/raylib.lib" append-path :> $raylib-lib