Skip to content

Commit

Permalink
Copy sndfile to package
Browse files Browse the repository at this point in the history
  • Loading branch information
LAGonauta committed Nov 19, 2023
1 parent b830dba commit eff07d7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit eff07d7

Please sign in to comment.