From 373031534eca915af24e7f0662a8e5cc79533104 Mon Sep 17 00:00:00 2001 From: GuilhermeWerner <26710260+GuilhermeWerner@users.noreply.github.com> Date: Wed, 5 May 2021 10:28:44 -0300 Subject: [PATCH] Update Bootstrap Scripts --- Bootstrap.ps1 | 28 +++++++++++++++++++++++++++- Bootstrap.sh | 19 +++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Bootstrap.ps1 b/Bootstrap.ps1 index e3a48d7..01beeb3 100755 --- a/Bootstrap.ps1 +++ b/Bootstrap.ps1 @@ -1,10 +1,36 @@ #!/usr/bin/env pwsh +# Windows + if ($IsWindows) { + echo "Generating Visual Studio project..." + + & "./Vendor/Premake/Windows/premake5.exe" "vs2019" } -else + +# Mac + +elseif ($IsMacOS) { sudo chmod +x ./gradlew sudo chmod +x ./Scripts/Package.ps1 + + echo "Generating XCode project..." + + sudo chmod +x ./Vendor/Premake/Mac/premake5 + & "./Vendor/Premake/Mac/premake5" "xcode4" +} + +# Linux + +elseif ($IsLinux) +{ + sudo chmod +x ./gradlew + sudo chmod +x ./Scripts/Package.ps1 + + echo "Generating GMake project..." + + sudo chmod +x ./Vendor/Premake/Linux/premake5 + & "./Vendor/Premake/Linux/premake5" "gmake2" } diff --git a/Bootstrap.sh b/Bootstrap.sh index 6540190..b54172e 100755 --- a/Bootstrap.sh +++ b/Bootstrap.sh @@ -2,3 +2,22 @@ sudo chmod +x ./gradlew sudo chmod +x ./Scripts/Package.ps1 + +# Linux + +if [ "$(expr substr $(uname -s) 1 5)" = "Linux" ] +then + echo "Generating GMake project..." + + sudo chmod +x ./Vendor/Premake/Linux/premake5 + ./Vendor/Premake/Linux/premake5 gmake2 + +# Mac + +elif [ "$(uname)" = "Darwin" ] +then + echo "Generating XCode project..." + + sudo chmod +x ./Vendor/Premake/Mac/premake5 + ./Vendor/Premake/Mac/premake5 xcode4 +fi