Skip to content

Commit

Permalink
Download metahook
Browse files Browse the repository at this point in the history
  • Loading branch information
LAGonauta committed Nov 19, 2023
1 parent 595b33e commit b830dba
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 20 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,18 @@ jobs:
copy "install-to-BlueShift.bat" "Output" /y
shell: cmd

- name: Zipping All
uses: vimtor/[email protected]
with:
files: Output/
dest: MetaAudio-windows-x86.zip
- name: Download MetaHook
run: |
Invoke-WebRequest -Uri https://github.com/hzqst/MetaHookSv/releases/download/v20231119b/MetaHookSv-windows-x86.zip -OutFile MetaHook.zip
if (!(Get-FileHash ./MetaHook.zip).Hash.Equals("BEC1D222274B43B2A2F1E2BFA619BE59A3361F8C0AB1FEA08A375ECC6FBB4ED4")) {
Exit -1
}
Expand-Archive ./MetaHook.zip -DestinationPath MetaHook/
New-Item -Type dir ./Output/Release
Copy-Item ./MetaHook/Build/svencoop.exe ./Output/Release/metahook.exe
shell: pwsh

- uses: actions/upload-artifact@v3
with:
name: MetaAudio
path: MetaAudio-windows-x86.zip
path: Output/
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ jobs:
copy "install-to-BlueShift.bat" "Output" /y
shell: cmd

- name: Download MetaHook
run: |
Invoke-WebRequest -Uri https://github.com/hzqst/MetaHookSv/releases/download/v20231119b/MetaHookSv-windows-x86.zip -OutFile MetaHook.zip
if (!(Get-FileHash ./MetaHook.zip).Hash.Equals("BEC1D222274B43B2A2F1E2BFA619BE59A3361F8C0AB1FEA08A375ECC6FBB4ED4")) {
Exit -1
}
Expand-Archive ./MetaHook.zip -DestinationPath MetaHook/
New-Item -Type dir ./Output/Release
Copy-Item ./MetaHook/Build/svencoop.exe ./Output/Release/metahook.exe
shell: pwsh

- name: Zipping All
uses: vimtor/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions install-to-BlueShift.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo off

if not exist "%~dp0build\externals\metahook\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\MetaAudio.dll" goto fail_nobuild

set LauncherExe=metahook.exe
Expand All @@ -14,7 +14,7 @@ echo -----------------------------------------------------

echo Copying files...

if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\externals\metahook\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
copy "%~dp0externals\libsndfile\bin\sndfile.dll" "%GameDir%\" /y
md "%GameDir%\%LauncherMod%\metahook\plugins"
copy "%~dp0build\Release\MetaAudio.dll" "%GameDir%\%LauncherMod%\metahook\plugins" /y
Expand Down
4 changes: 2 additions & 2 deletions install-to-CSCZDeletedScenes.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo off

if not exist "%~dp0build\externals\metahook\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\MetaAudio.dll" goto fail_nobuild

set LauncherExe=metahook.exe
Expand All @@ -14,7 +14,7 @@ echo -----------------------------------------------------

echo Copying files...

if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\externals\metahook\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
copy "%~dp0externals\libsndfile\bin\sndfile.dll" "%GameDir%\" /y
md "%GameDir%\%LauncherMod%\metahook\plugins"
copy "%~dp0build\Release\MetaAudio.dll" "%GameDir%\%LauncherMod%\metahook\plugins" /y
Expand Down
4 changes: 2 additions & 2 deletions install-to-ConditionZero.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo off

if not exist "%~dp0build\externals\metahook\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\MetaAudio.dll" goto fail_nobuild

set LauncherExe=metahook.exe
Expand All @@ -14,7 +14,7 @@ echo -----------------------------------------------------

echo Copying files...

if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\externals\metahook\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
copy "%~dp0externals\libsndfile\bin\sndfile.dll" "%GameDir%\" /y
md "%GameDir%\%LauncherMod%\metahook\plugins"
copy "%~dp0build\Release\MetaAudio.dll" "%GameDir%\%LauncherMod%\metahook\plugins" /y
Expand Down
4 changes: 2 additions & 2 deletions install-to-CounterStrike.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo off

if not exist "%~dp0build\externals\metahook\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\MetaAudio.dll" goto fail_nobuild

set LauncherExe=metahook.exe
Expand All @@ -14,7 +14,7 @@ echo -----------------------------------------------------

echo Copying files...

if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\externals\metahook\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
copy "%~dp0externals\libsndfile\bin\sndfile.dll" "%GameDir%\" /y
md "%GameDir%\%LauncherMod%\metahook\plugins"
copy "%~dp0build\Release\MetaAudio.dll" "%GameDir%\%LauncherMod%\metahook\plugins" /y
Expand Down
4 changes: 2 additions & 2 deletions install-to-DayOfDefeat.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo off

if not exist "%~dp0build\externals\metahook\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\MetaAudio.dll" goto fail_nobuild

set LauncherExe=metahook.exe
Expand All @@ -14,7 +14,7 @@ echo -----------------------------------------------------

echo Copying files...

if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\externals\metahook\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
copy "%~dp0externals\libsndfile\bin\sndfile.dll" "%GameDir%\" /y
md "%GameDir%\%LauncherMod%\metahook\plugins"
copy "%~dp0build\Release\MetaAudio.dll" "%GameDir%\%LauncherMod%\metahook\plugins" /y
Expand Down
4 changes: 2 additions & 2 deletions install-to-HalfLife.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo off

if not exist "%~dp0build\externals\metahook\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\MetaAudio.dll" goto fail_nobuild

set LauncherExe=metahook.exe
Expand All @@ -14,7 +14,7 @@ echo -----------------------------------------------------

echo Copying files...

if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\externals\metahook\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
copy "%~dp0externals\libsndfile\bin\sndfile.dll" "%GameDir%\" /y
md "%GameDir%\%LauncherMod%\metahook\plugins"
copy "%~dp0build\Release\MetaAudio.dll" "%GameDir%\%LauncherMod%\metahook\plugins" /y
Expand Down
4 changes: 2 additions & 2 deletions install-to-OpposingForce.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
echo off

if not exist "%~dp0build\externals\metahook\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\metahook.exe" goto fail_nobuild
if not exist "%~dp0build\Release\MetaAudio.dll" goto fail_nobuild

set LauncherExe=metahook.exe
Expand All @@ -14,7 +14,7 @@ echo -----------------------------------------------------

echo Copying files...

if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\externals\metahook\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
if not exist "%GameDir%\%LauncherExe%" copy "%~dp0build\Release\metahook.exe" "%GameDir%\%LauncherExe%" /y
copy "%~dp0externals\libsndfile\bin\sndfile.dll" "%GameDir%\" /y
md "%GameDir%\%LauncherMod%\metahook\plugins"
copy "%~dp0build\Release\MetaAudio.dll" "%GameDir%\%LauncherMod%\metahook\plugins" /y
Expand Down

0 comments on commit b830dba

Please sign in to comment.