parent
e1c05de6ee
commit
74777fc6b2
2 changed files with 37 additions and 0 deletions
@ -0,0 +1,37 @@ |
|||||||
|
#!/usr/bin/env bash |
||||||
|
|
||||||
|
if [ $# -eq 0 ]; then |
||||||
|
echo "Missing first argument. Please provide the tag to download." |
||||||
|
exit 1 |
||||||
|
fi |
||||||
|
|
||||||
|
TAG=$1 |
||||||
|
|
||||||
|
SCRIPT_ROOT=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) |
||||||
|
|
||||||
|
echo "Script is located in: $SCRIPT_ROOT" |
||||||
|
echo "Using Tag: $TAG" |
||||||
|
|
||||||
|
echo -n "Downloading windows x86 cimgui: " |
||||||
|
curl -sfLo "$SCRIPT_ROOT/deps/cimgui/win-x86/cimgui.dll" "https://github.com/mellinoe/imgui.net-nativebuild/releases/download/$TAG/cimgui.win-x86.dll" |
||||||
|
echo "" |
||||||
|
|
||||||
|
echo -n "Downloading windows x64 cimgui: " |
||||||
|
curl -sfLo "$SCRIPT_ROOT/deps/cimgui/win-x64/cimgui.dll" "https://github.com/mellinoe/imgui.net-nativebuild/releases/download/$TAG/cimgui.win-x64.dll" |
||||||
|
echo "" |
||||||
|
|
||||||
|
echo -n "Downloading linux x64 cimgui: " |
||||||
|
curl -sfLo "$SCRIPT_ROOT/deps/cimgui/linux-x64/cimgui.so" "https://github.com/mellinoe/imgui.net-nativebuild/releases/download/$TAG/cimgui.so" |
||||||
|
echo "" |
||||||
|
|
||||||
|
echo -n "Downloading osx x64 cimgui: " |
||||||
|
curl -sfLo "$SCRIPT_ROOT/deps/cimgui/osx-x64/cimgui.dylib" "https://github.com/mellinoe/imgui.net-nativebuild/releases/download/$TAG/cimgui.dylib" |
||||||
|
echo "" |
||||||
|
|
||||||
|
echo -n "Downloading definitions json file: " |
||||||
|
curl -sfLo "$SCRIPT_ROOT/src/CodeGenerator/definitions/cimgui/definitions.json" "https://github.com/mellinoe/imgui.net-nativebuild/releases/download/$TAG/definitions.json" |
||||||
|
echo "" |
||||||
|
|
||||||
|
echo -n "Downloading structs and enums json file: " |
||||||
|
curl -sfLo "$SCRIPT_ROOT/src/CodeGenerator/definitions/cimgui/structs_and_enums.json" "https://github.com/mellinoe/imgui.net-nativebuild/releases/download/$TAG/structs_and_enums.json" |
||||||
|
echo "" |
Loading…
Reference in new issue