refactor translation for pizaa_ya_san. #577
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: windows | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| pull_request: | |
| tags: | |
| - "v*" | |
| env: | |
| # Path to the solution file relative to the root of the project. | |
| SOLUTION_FILE_PATH: . | |
| # Configuration type to build. | |
| # You can convert this to a build matrix if you need coverage of multiple configuration types. | |
| # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
| BUILD_CONFIGURATION: Release | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| if: github.repository == 'hzqst/MetaHookSv' | |
| steps: | |
| - uses: hzqst/checkout@v2.3.4 | |
| with: | |
| submodules: true | |
| - name: Add MSBuild to PATH | |
| uses: microsoft/setup-msbuild@v1.0.2 | |
| - name: Build MetaHook | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: scripts\build-MetaHook.bat | |
| shell: cmd | |
| - name: Build Plugins | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: scripts\build-Plugins.bat | |
| shell: cmd | |
| - name: Checkout BetterSpray | |
| uses: hzqst/checkout@v2.3.4 | |
| with: | |
| repository: hzqst/BetterSpray | |
| path: BetterSpray | |
| submodules: true | |
| - name: Build BetterSpray | |
| working-directory: BetterSpray | |
| run: msbuild /m /p:Configuration=Release /t:BetterSpray | |
| shell: cmd | |
| - name: Merge BetterSpray Build | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: xcopy "BetterSpray\Build\*" "Build\" /y /e | |
| shell: cmd | |
| - name: Create Build-Output directory | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: mkdir Build-Output | |
| shell: cmd | |
| - name: Copy Build to Build-Output | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: | | |
| mkdir "Build-Output\Build" | |
| xcopy "Build" "Build-Output\Build" /y /e | |
| if exist "Build-Output\Build\svencoop\metahook\dlls\.placeholder" del "Build-Output\Build\svencoop\metahook\dlls\.placeholder" | |
| if exist "Build-Output\Build\svencoop\metahook\plugins\.placeholder" del "Build-Output\Build\svencoop\metahook\plugins\.placeholder" | |
| shell: cmd | |
| - name: Build and Publish MetahookInstaller | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: | | |
| dotnet publish toolsrc/MetahookInstaller/MetahookInstallerAvalonia.Desktop/MetahookInstallerAvalonia.Desktop.csproj -p:PublishProfile=FolderProfile | |
| echo .pdb > exclude.txt | |
| ren "toolsrc\MetahookInstaller\MetahookInstallerAvalonia.Desktop\bin\Release\net8.0\publish\win-x64\MetahookInstallerAvalonia.Desktop.exe" "MetahookInstaller.exe" | |
| xcopy "toolsrc\MetahookInstaller\MetahookInstallerAvalonia.Desktop\bin\Release\net8.0\publish\win-x64\*" "Build-Output\" /y /e /EXCLUDE:exclude.txt | |
| shell: cmd | |
| - name: Copy SteamAppsLocation to Build-Output | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: | | |
| mkdir "Build-Output\tools" | |
| copy "tools\SteamAppsLocation.exe" "Build-Output\tools" /y | |
| copy "tools\steam_appid.txt" "Build-Output\tools" /y | |
| copy "tools\steam_api.dll" "Build-Output\tools" /y | |
| shell: cmd | |
| - name: Copy install bat to Build-Output | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: | | |
| mkdir "Build-Output\scripts" | |
| copy "scripts\install-*.bat" "Build-Output\scripts" /y | |
| shell: cmd | |
| - name: Zipping All | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: | | |
| 7z a MetaHookSv-windows-x86.7z "Build-Output/*" -r | |
| shell: cmd | |
| - name: Zipping PDB | |
| working-directory: ${{env.GITHUB_WORKSPACE}} | |
| run: | | |
| 7z a MetaHookSv-windows-x86-debug-info.7z "output/x86/*" -r ^ | |
| -x!*.lib ^ | |
| -x!*.exp | |
| shell: cmd | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| name: MetaHookSv-${{ github.ref }} | |
| files: | | |
| MetaHookSv-windows-x86.7z | |
| MetaHookSv-windows-x86-debug-info.7z |