From 74777fc6b2a58e9843535d1b7d8774732b6bc097 Mon Sep 17 00:00:00 2001 From: Zaafar Ahmed Date: Mon, 3 Jan 2022 11:03:34 -0600 Subject: [PATCH] added bash version of download-native-deps --- download-native-deps.ps1 | 0 download-native-deps.sh | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) mode change 100644 => 100755 download-native-deps.ps1 create mode 100755 download-native-deps.sh diff --git a/download-native-deps.ps1 b/download-native-deps.ps1 old mode 100644 new mode 100755 diff --git a/download-native-deps.sh b/download-native-deps.sh new file mode 100755 index 0000000..0757b30 --- /dev/null +++ b/download-native-deps.sh @@ -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 "" \ No newline at end of file