From eff07d73da05010942e522f27da90e2586b9e2e2 Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Sun, 19 Nov 2023 11:27:13 -0500 Subject: [PATCH] Copy sndfile to package --- .github/workflows/build.yml | 11 +++++++++-- .github/workflows/release.yml | 10 ++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cc15a9b..8dbadb6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,7 @@ jobs: run: | mkdir "Output\${{env.BUILD_CONFIGURATION}}" xcopy "Build\${{env.BUILD_CONFIGURATION}}\MetaAudio.dll" "Output\${{env.BUILD_CONFIGURATION}}" /y /e + xcopy "externals\libsndfile\lib\sndfile.dll" "Output\${{env.BUILD_CONFIGURATION}}" /y /e shell: cmd - name: Copy SteamAppsLocation to Output @@ -53,6 +54,12 @@ jobs: copy "SteamAppsLocation\steam_api.dll" "Output\SteamAppsLocation" /y shell: cmd + - name: Copy sndfile to Output + working-directory: ${{env.GITHUB_WORKSPACE}} + run: | + xcopy "externals\libsndfile\lib\sndfile.dll" "Output\externals\libsndfile\lib" /y /e + shell: cmd + - name: Copy install bat to Output working-directory: ${{env.GITHUB_WORKSPACE}} run: | @@ -72,8 +79,8 @@ jobs: Exit -1 } Expand-Archive ./MetaHook.zip -DestinationPath MetaHook/ - New-Item -Type dir ./Output/Release - Copy-Item ./MetaHook/Build/svencoop.exe ./Output/Release/metahook.exe + New-Item -Type dir ./Output/${{env.BUILD_CONFIGURATION}} + Copy-Item ./MetaHook/Build/svencoop.exe ./Output/${{env.BUILD_CONFIGURATION}}/metahook.exe shell: pwsh - uses: actions/upload-artifact@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb29db6..3df9c3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,6 +59,12 @@ jobs: copy "SteamAppsLocation\steam_api.dll" "Output\SteamAppsLocation" /y shell: cmd + - name: Copy sndfile to Output + working-directory: ${{env.GITHUB_WORKSPACE}} + run: | + xcopy "externals\libsndfile\lib\sndfile.dll" "Output\externals\libsndfile\lib" /y /e + shell: cmd + - name: Copy install bat to Output working-directory: ${{env.GITHUB_WORKSPACE}} run: | @@ -78,8 +84,8 @@ jobs: Exit -1 } Expand-Archive ./MetaHook.zip -DestinationPath MetaHook/ - New-Item -Type dir ./Output/Release - Copy-Item ./MetaHook/Build/svencoop.exe ./Output/Release/metahook.exe + New-Item -Type dir ./Output/${{env.BUILD_CONFIGURATION}} + Copy-Item ./MetaHook/Build/svencoop.exe ./Output/${{env.BUILD_CONFIGURATION}}/metahook.exe shell: pwsh - name: Zipping All