From ac9d0eaa9b0ffaaf69b16fa1d115c2377dc82ad3 Mon Sep 17 00:00:00 2001 From: qaate47 Date: Sat, 3 Feb 2024 11:35:55 +0100 Subject: [PATCH] deploy shield version --- .github/workflows/compile.yml | 2 +- metadata.json | 19 +++++++++++++++++++ shell_scripts/deploy.ps1 | 17 +++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 metadata.json diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 2d214b1..d606df5 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -26,7 +26,7 @@ jobs: commit: ${{ github.sha }} token: ${{ secrets.GITHUB_TOKEN }} tag: "latest_build" - artifacts: "deploy/*.gscc" + artifacts: "deploy/*" artifactErrorsFailBuild: true makeLatest: false removeArtifacts: true diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..175a2d6 --- /dev/null +++ b/metadata.json @@ -0,0 +1,19 @@ +{ + "name": "Atian Menu", + "data": [ + { + "type": "hashes", + "path": "hashes.txt", + "format": "serious_compiler", + "ignore_error": true + }, + { + "type": "scriptparsetree", + "name": "scripts/core_common/atianmenu.gsc", + "path": "atianmenu_shield.gsic", + "hooks": [ + "scripts/core_common/load_shared.gsc" + ] + } + ] +} \ No newline at end of file diff --git a/shell_scripts/deploy.ps1 b/shell_scripts/deploy.ps1 index c92ca64..3b0c4b2 100644 --- a/shell_scripts/deploy.ps1 +++ b/shell_scripts/deploy.ps1 @@ -46,6 +46,23 @@ try { exit -1 } + Write-Host "Shield PC / BO4" + New-Item -ItemType Directory build/atianmenu -ErrorAction Ignore > $null + Copy-Item metadata.json build/atianmenu + .\build\compilercustom\DebugCompiler.exe --compile -DCI -Cplatform=PC ` + "-Cclient=false" "-Cdll=true" "-Cdll.lazylink=true" "-Cdll.builtins=true" "-Cdll.detours=true" ` + '-DSHIELD_GSC_DEPLOY' ` + '-Coutputname=build/atianmenu/atianmenu_shield' + if (!$?) { + Write-Error "Issue when compiling the project" + exit -1 + } + Copy-Item hashes.txt build/atianmenu + Set-Location build + Compress-Archive atianmenu -DestinationPath "../deploy/BlackOps4_shield_atianmenu.zip" -Force + Set-Location .. + + Write-Host "PS4 / BO4" .\build\compilercustom\DebugCompiler.exe --compile -DCI -D__PS4 -Cplatform=PS4 '-Coutputname=deploy/BlackOps4_atianmenu_ps4' -Cdll=false