Skip to content

Commit

Permalink
Update windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 authored Oct 18, 2024
1 parent 5ca3be2 commit 1bdbf6f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
runs-on: windows-latest

env:
PROJECT_NAME: ${{ github.event.repository.name }}
PROJECT_NAME: raylib_game
PROJECT_REPO_NAME: ${{ github.event.repository.name }}
PROJECT_BUILD_PATH: "${{ github.event.repository.name }}\\projects\\VS2022\\build\\${{ github.event.repository.name }}\\bin\\x64\\Release"
PROJECT_RELEASE_PATH: ${{ github.event.repository.name }}_dev_win_x64
PROJECT_RESOURCES_PATH: resources
Expand Down Expand Up @@ -57,7 +58,7 @@ jobs:
- name: Build raylib Library + Product (VS2022 solution)
run: |
dir
cd ${{ env.PROJECT_NAME }}/projects/VS2022
cd ${{ env.PROJECT_REPO_NAME }}/projects/VS2022
msbuild.exe ${{ env.PROJECT_NAME }}.sln /target:${{ env.PROJECT_NAME }} /property:Configuration=Release /property:Platform=x64 /property:RaylibSrcPath="..\..\..\..\raylib\src"
cd ../..
shell: cmd
Expand All @@ -66,9 +67,9 @@ jobs:
run: |
dir ${{ env.PROJECT_BUILD_PATH }}
copy /Y ${{ env.PROJECT_BUILD_PATH }}\${{ env.PROJECT_NAME }}.exe ${{ env.PROJECT_RELEASE_PATH }}\${{ env.PROJECT_NAME }}.exe
xcopy ${{ env.PROJECT_NAME }}\${{ env.PROJECT_RESOURCES_PATH }} ${{ env.PROJECT_RELEASE_PATH }}\${{ env.PROJECT_RESOURCES_PATH }} /s /e /i
copy /Y ${{ env.PROJECT_NAME }}\README.md ${{ env.PROJECT_RELEASE_PATH }}\README.md
copy /Y ${{ env.PROJECT_NAME }}\LICENSE ${{ env.PROJECT_RELEASE_PATH }}\LICENSE
xcopy ${{ env.PROJECT_REPO_NAME }}\src\${{ env.PROJECT_RESOURCES_PATH }} ${{ env.PROJECT_RELEASE_PATH }}\${{ env.PROJECT_RESOURCES_PATH }} /s /e /i
copy /Y ${{ env.PROJECT_REPO_NAME }}\README.md ${{ env.PROJECT_RELEASE_PATH }}\README.md
copy /Y ${{ env.PROJECT_REPO_NAME }}\LICENSE ${{ env.PROJECT_RELEASE_PATH }}\LICENSE
dir ${{ env.PROJECT_RELEASE_PATH }}
7z a .\${{ env.PROJECT_RELEASE_PATH }}.zip .\${{ env.PROJECT_RELEASE_PATH }}
shell: cmd
Expand Down

0 comments on commit 1bdbf6f

Please sign in to comment.