Skip to content

Commit

Permalink
fix: add raylib to cjit-demo package
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Jan 16, 2025
1 parent dc22d12 commit fd5e0f5
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion build/pack-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,31 @@ fetch ${file}.zip ${url}/${file}.zip ${org} ${proj} release-${ver}
rm -rf /tmp/${file}
}

org=nigels-com
# raylib
proj=raylib
ver=5.5
org=raysan5
file=${proj}-${ver}_win64_msvc16
url=https://github.com/raysan5/raylib/releases/download/${ver}
fetch ${file}.zip ${url}/${file}.zip ${org} ${proj} release-${ver}
[ -r cjit-demo/raylib.dll ] || {
unzip -q -d /tmp ${odir}/${file} ${file}/lib/raylib.dll
mv /tmp/${file}/lib/raylib.dll cjit-demo/raylib.dll
rm -rf /tmp/${file}
}
[ -r cjit-demo/include/raylib.h ] || {
unzip -q -d /tmp ${odir}/${file} ${file}/include/*
mv /tmp/${file}/include/* cjit-demo/include/
rm -rf /tmp/${file}
}
[ -r cjit-demo/libraylib.so ] || {
file=${proj}-${ver}_linux_amd64
fetch ${file}.tar.gz ${url}/${file}.tar.gz ${org} ${proj} release-${ver}
tar -C /tmp -xvf ${file}.tar.gz
mv /tmp/${file}/lib/libraylib.so.${ver}.0 cjit-demo/libraylib.so
rm -rf /tmp/${file}
}

proj=glew
ver=2.2.0
url="https://github.com/nigels-com/glew/releases/download/glew-${ver}"
Expand Down

0 comments on commit fd5e0f5

Please sign in to comment.