001_settings.ps1 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #**************************************************************************#
  2. #** QUADARAX DEPLOYMENT SCRIPTS **#
  3. #** File: 001_settings.ps1 **#
  4. #** Description: Defines project related constants and settings. This **#
  5. #** script is loaded inside 000 script **#
  6. #** Version: 1.0. **#
  7. #** Updated: 24.7.2019 **#
  8. #**************************************************************************#
  9. if ($settingsWasLoaded -eq $true)
  10. {
  11. Break
  12. }
  13. # Check if bootstrap run first section
  14. try {
  15. if (!($global:SpaceScriptLoaded -eq $true)){
  16. Write-Host "Must be run 000_bootstrap.ps1 first!" -ForegroundColor Red
  17. Break
  18. }
  19. }
  20. catch {
  21. Write-Host "Must be run 000_bootstrap.ps1 first!" -ForegroundColor Red
  22. }
  23. # Project related settings
  24. $solutionName = "QConsole.sln"
  25. $projectDir = Get-Location
  26. $projectDir = Split-Path -parent $projectDir
  27. $projectOutputDir = $projectDir + "\@Release"
  28. # Tools & system paths
  29. $pathMsBuild = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe"
  30. $path7zip = "$projectDir\..\Assets\7z.exe"
  31. # Builds
  32. $buildCfgDebug = "Debug"
  33. $buildCfgRelease = "Release"
  34. $buildCfgAll = "All"
  35. $buildTrgClean = "Clean"
  36. $buildTrgRebuild = "Rebuild"
  37. $buildTrgPublish = "Publish"
  38. # Zip
  39. $zipNamePrefix = "ProjectZip"
  40. # Aliases
  41. Set-Alias msbuild $pathMsBuild
  42. Set-Alias 7zip $path7zip
  43. Write-Host "Settings was loaded succesfully." -ForegroundColor DarkGray
  44. $settingsWasLoaded = $true