Skip to content

Commit

Permalink
#46: Add debug scripts, add auto deployer build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-petko authored and Github Enterprise committed Mar 21, 2022
1 parent ac946f5 commit e395929
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions Scripts/BuildDebugConfigIntegration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.\Build.ps1 -solutionName MFDLabs.Grid -buildKind MFDLabs.Grid.Bot -restoreSolution $true -cleanObjAndBinFolders $false -buildConfig "DebugDeploy" -buildConcurrently $true -root "..\"
1 change: 1 addition & 0 deletions Scripts/BuildDebugGridIntegration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.\Build.ps1 -solutionName MFDLabs.Grid -buildKind MFDLabs.Grid.Bot -restoreSolution $true -cleanObjAndBinFolders $false -buildConfig "DebugGridDeploy" -buildConcurrently $true -root "..\"
1 change: 1 addition & 0 deletions Scripts/BuildDeployerConfigIntegration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.\Build.ps1 -solutionName Services -buildKind MFDLabs.Grid.AutoDeployer -restoreSolution $true -cleanObjAndBinFolders $false -buildConfig "ReleaseDeploy" -buildConcurrently $true -root "..\"
1 change: 1 addition & 0 deletions Scripts/BuildDeployerDebugConfigIntegration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.\Build.ps1 -solutionName Services -buildKind MFDLabs.Grid.AutoDeployer -restoreSolution $true -cleanObjAndBinFolders $false -buildConfig "DebugDeploy" -buildConcurrently $true -root "..\"
1 change: 1 addition & 0 deletions Scripts/BuildDeployerDebugGridIntegration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.\Build.ps1 -solutionName Services -buildKind MFDLabs.Grid.AutoDeployer -restoreSolution $true -cleanObjAndBinFolders $false -buildConfig "DebugGridDeploy" -buildConcurrently $true -root "..\"
1 change: 1 addition & 0 deletions Scripts/BuildDeployerGridIntegration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.\Build.ps1 -solutionName Services -buildKind MFDLabs.Grid.AutoDeployer -restoreSolution $true -cleanObjAndBinFolders $false -buildConfig "ReleaseGridDeploy" -buildConcurrently $true -root "..\"
15 changes: 9 additions & 6 deletions Scripts/OnPostBuildInvoked.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ param (
[string] $SolutionDir,
[string] $ProjectName,
[string] $TargetFramework,
[bool] $DeleteDebugSymbols = $true
[string] $DeployScriptOverride,
[bool] $DeleteDebugSymbols = $true
)

$isDebug = $ConfigurationName.StartsWith("Debug");
Expand Down Expand Up @@ -47,8 +48,9 @@ IF (Test-Path $runtimeScriptsDir) {
}

# Copy the runtime-scripts
Copy-Item -Path "$($ProjectDir)RuntimeScripts" -Destination $runtimeScriptsDir -Recurse -Force

IF (Test-Path "$($ProjectDir)RuntimeScripts") {
Copy-Item -Path "$($ProjectDir)RuntimeScripts" -Destination $runtimeScriptsDir -Recurse -Force
}

# Delete the old Lua scripts and copy the new Lua scripts
$luaScriptsDir = "$($ProjectDir)$($OutDir)Lua";
Expand All @@ -58,8 +60,9 @@ IF (Test-Path $luaScriptsDir) {
}

# Copy the Lua scripts
Copy-Item -Path "$($ProjectDir)Lua" -Destination $luaScriptsDir -Recurse -Force

IF (Test-Path "$($ProjectDir)Lua") {
Copy-Item -Path "$($ProjectDir)Lua" -Destination $luaScriptsDir -Recurse -Force
}

# Delete all translation scripts at the output
$translationScriptsDirectories = @(
Expand Down Expand Up @@ -103,7 +106,7 @@ IF ($isDeployment) {

# Call the deploy script
Write-Host "Deploying..." -ForegroundColor Green;
$scriptName = "$($SolutionDir)Scripts\Deploy.ps1";
$scriptName = IF ($DeployScriptOverride) { $DeployScriptOverride } ELSE { "$($SolutionDir)Scripts\Deploy.ps1" };
if (!(Get-Item -Path $scriptName)) {
Write-Host "Deploy script $scriptName does not exist" -ForegroundColor Red;
Exit 1;
Expand Down
3 changes: 3 additions & 0 deletions Scripts/build-debug-config-integration.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo OFF

powershell -ExecutionPolicy Unrestricted ".\BuildDebugConfigIntegration.ps1"
3 changes: 3 additions & 0 deletions Scripts/build-debug-grid-integration.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo OFF

powershell -ExecutionPolicy Unrestricted ".\BuildDebugGridIntegration.ps1"
3 changes: 3 additions & 0 deletions Scripts/build-deployer-config-integration.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo OFF

powershell -ExecutionPolicy Unrestricted ".\BuildDeployerConfigIntegration.ps1"
3 changes: 3 additions & 0 deletions Scripts/build-deployer-debug-config-integration.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo OFF

powershell -ExecutionPolicy Unrestricted ".\BuildDeployerDebugConfigIntegration.ps1"
3 changes: 3 additions & 0 deletions Scripts/build-deployer-debug-grid-integration.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo OFF

powershell -ExecutionPolicy Unrestricted ".\BuildDeployerDebugGridIntegration.ps1"
3 changes: 3 additions & 0 deletions Scripts/build-deployer-grid-integration.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo OFF

powershell -ExecutionPolicy Unrestricted ".\BuildDeployerGridIntegration.ps1"

0 comments on commit e395929

Please sign in to comment.