Skip to content

Commit

Permalink
deploy shield version
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Feb 3, 2024
1 parent 72b3cc8 commit ac9d0ea
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
]
}
17 changes: 17 additions & 0 deletions shell_scripts/deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ac9d0ea

Please sign in to comment.