From ad8a51eb2acbdba5653c18388f7626a77e8f2e1d Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Sat, 1 Jan 2022 15:54:22 -0800 Subject: [PATCH] Update download-native-deps.ps1 to include JSON files. --- download-native-deps.ps1 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/download-native-deps.ps1 b/download-native-deps.ps1 index 3adadb2..59c03cd 100644 --- a/download-native-deps.ps1 +++ b/download-native-deps.ps1 @@ -63,3 +63,27 @@ if( -not $? ) } Write-Host - cimgui.dylib + +$client.DownloadFile( + "https://github.com/mellinoe/imgui.net-nativebuild/releases/download/$tag/definitions.json", + "$PSScriptRoot/src/CodeGenerator/definitions/cimgui/definitions.json") +if( -not $? ) +{ + $msg = $Error[0].Exception.Message + Write-Error "Couldn't download definitions.json." + exit +} + +Write-Host - definitions.json + +$client.DownloadFile( + "https://github.com/mellinoe/imgui.net-nativebuild/releases/download/$tag/structs_and_enums.json", + "$PSScriptRoot/src/CodeGenerator/definitions/cimgui/structs_and_enums.json") +if( -not $? ) +{ + $msg = $Error[0].Exception.Message + Write-Error "Couldn't download structs_and_enums.json." + exit +} + +Write-Host - structs_and_enums.json \ No newline at end of file