mirror of
https://github.com/tribufu/tribufu-java
synced 2026-05-06 14:57:27 +00:00
Update Bootstrap Scripts
This commit is contained in:
parent
c38240d5cd
commit
373031534e
2 changed files with 46 additions and 1 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
19
Bootstrap.sh
19
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue