Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Feb 3, 2024
1 parent 648e950 commit 97b02ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions shell_scripts/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ try {

Write-Host "Downloading Custom Serious' compiler"

if (Test-Path .\build\compiler.zip) {
if (Test-Path .\build\compilercustom.zip) {
Write-Host "Already there."
}
else {
$Token | gh auth login --with-token
gh release download --repo ate47/t7-compiler-custom latest -p deploy.zip --clobber -O build/compiler.zip
gh release download --repo ate47/t7-compiler-custom latest -p deploy.zip --clobber -O build/compilercustom.zip
}

Write-Host "Extracting"

if (Test-Path .\build\compiler) {
if (Test-Path .\build\compilercustom) {
Write-Host "Already there."
}
else {
Expand-Archive .\build\compiler.zip .\build\compiler
Expand-Archive .\build\compilercustom.zip .\build\compilercustom
}

if (!(Test-Path .\build\compiler)) {
if (!(Test-Path .\build\compilercustom)) {
Write-Error "Can't find compiler"
exit(-1);
}
Expand All @@ -39,15 +39,15 @@ try {


Write-Host "PC / BO4"
.\build\compiler\DebugCompiler.exe --compile -DCI -Cplatform=PC '-Coutputname=deploy/BlackOps4_atianmenu_pc'
.\build\compilercustom\DebugCompiler.exe --compile -DCI -Cplatform=PC '-Coutputname=deploy/BlackOps4_atianmenu_pc'

if (!$?) {
Write-Error "Issue when compiling the project"
exit -1
}

Write-Host "PS4 / BO4"
.\build\compiler\DebugCompiler.exe --compile -DCI -D__PS4 -Cplatform=PS4 '-Coutputname=deploy/BlackOps4_atianmenu_ps4' -Cdll=false
.\build\compilercustom\DebugCompiler.exe --compile -DCI -D__PS4 -Cplatform=PS4 '-Coutputname=deploy/BlackOps4_atianmenu_ps4' -Cdll=false

if (!$?) {
Write-Error "Issue when compiling the project"
Expand All @@ -56,7 +56,7 @@ try {

Write-Host "PC / CW"
Set-Location coldwar
..\build\compiler\DebugCompiler.exe --compile -DCI -Cplatform=PC '-Coutputname=../deploy/BlackOpsColdWar_atianmenu_pc'
..\build\compilercustom\DebugCompiler.exe --compile -DCI -Cplatform=PC '-Coutputname=../deploy/BlackOpsColdWar_atianmenu_pc'
Set-Location ..
if (!$?) {
Write-Error "Issue when compiling the project"
Expand Down

0 comments on commit 97b02ce

Please sign in to comment.