Skip to content

Commit

Permalink
fix: download script
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 28, 2024
1 parent 2af1106 commit d1d7319
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions build/pack-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function fetch() {
API_URL="https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/releases/tags/$TAG"
DOWNLOAD_URL=$(curl -s -H "Authorization: token $GITHUB_TOKEN" $API_URL | jq -r ".assets[] | select(.name==\"$FILE_NAME\") | .browser_download_url")
curl -L -H "Authorization: token $GITHUB_TOKEN" \
-o $FILE_NAME $DOWNLOAD_URL
--output ${odir}/$FILE_NAME $DOWNLOAD_URL
else
curl -sL --output ${odir}/${out} ${url}
fi
Expand All @@ -37,13 +37,17 @@ cp -ra examples cjit-demo/

odir=dl

fetch dmon.h https://raw.githubusercontent.com/septag/dmon/master/dmon.h
[ -r ${odir}/dmon.h ] ||
curl -L --output ${odir}/dmon.h https://raw.githubusercontent.com/septag/dmon/master/dmon.h
cp dl/dmon.h cjit-demo/include/
fetch nuklear.h https://raw.githubusercontent.com/Immediate-Mode-UI/Nuklear/master/nuklear.h
[ -r ${odir}/nuklear.h ] ||
curl -L --output ${odir}/nuklear.h https://raw.githubusercontent.com/Immediate-Mode-UI/Nuklear/master/nuklear.h
cp dl/nuklear.h cjit-demo/include
fetch miniaudio.h https://raw.githubusercontent.com/mackron/miniaudio/master/miniaudio.h
[ -r ${odir}/miniaudio.h ] ||
curl -L --output ${odir}/miniaudio.h https://raw.githubusercontent.com/mackron/miniaudio/master/miniaudio.h
cp dl/miniaudio.h cjit-demo/include
fetch termbox2.h https://raw.githubusercontent.com/termbox/termbox2/refs/hea src/array.o src/xfs.o src/xstr.o src/xbuf.o src/sync.o \ds/master/termbox2.h
[ -r ${odir}/termbox2.h ] ||
curl -L --output ${odir}/termbox2.h https://raw.githubusercontent.com/termbox/termbox2/refs/heads/master/termbox2.h
cp dl/termbox2.h cjit-demo/include

mkdir -p cjit-demo/include/SDL2
Expand Down

0 comments on commit d1d7319

Please sign in to comment.