From 19f2b0ae5c5fcde6486c2dffce47cce6c2cc0322 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 26 Sep 2024 15:46:30 +0200 Subject: [PATCH] Updated template workflows --- src/template/.github/workflows/linux.yml | 2 ++ src/template/.github/workflows/macos.yml | 2 ++ src/template/.github/workflows/windows.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/template/.github/workflows/linux.yml b/src/template/.github/workflows/linux.yml index 9dfb102..ea72014 100644 --- a/src/template/.github/workflows/linux.yml +++ b/src/template/.github/workflows/linux.yml @@ -23,6 +23,7 @@ jobs: PROJECT_BUILD_PATH: ${{ github.event.repository.name }}/src PROJECT_RELEASE_PATH: ${{ github.event.repository.name }}_dev_linux_x64 PROJECT_CUSTOM_FLAGS: "" + PROJECT_RESOURCES_PATH: resources steps: - name: Checkout this repo @@ -65,6 +66,7 @@ jobs: run: | ls ${{ env.PROJECT_BUILD_PATH }} cp ${{ env.PROJECT_BUILD_PATH }}/${{ env.PROJECT_NAME }} ${{ env.PROJECT_RELEASE_PATH }} + cp -r ${{ env.PROJECT_NAME }}/${{ env.PROJECT_RESOURCES_PATH }} ${{ env.PROJECT_RELEASE_PATH }} cp ${{ env.PROJECT_NAME }}/README.md ${{ env.PROJECT_RELEASE_PATH }} cp ${{ env.PROJECT_NAME }}/LICENSE ${{ env.PROJECT_RELEASE_PATH }} ls ${{ env.PROJECT_RELEASE_PATH }} diff --git a/src/template/.github/workflows/macos.yml b/src/template/.github/workflows/macos.yml index f9946e7..8d4d3a4 100644 --- a/src/template/.github/workflows/macos.yml +++ b/src/template/.github/workflows/macos.yml @@ -23,6 +23,7 @@ jobs: PROJECT_BUILD_PATH: ${{ github.event.repository.name }}/src PROJECT_RELEASE_PATH: ${{ github.event.repository.name }}_dev_macos PROJECT_CUSTOM_FLAGS: "" + PROJECT_RESOURCES_PATH: resources steps: - name: Checkout this repo @@ -110,6 +111,7 @@ jobs: cp ${{ env.PROJECT_BUILD_PATH }}/${{ env.PROJECT_NAME }} ${{ env.PROJECT_RELEASE_PATH }}/${{ env.PROJECT_NAME }}.app/Contents/MacOS cp ${{ env.PROJECT_NAME }}/src/${{ env.PROJECT_NAME }}.icns ${{ env.PROJECT_RELEASE_PATH }}/${{ env.PROJECT_NAME }}.app/Contents/Resources cp ${{ env.PROJECT_NAME }}/src/Info.plist ${{ env.PROJECT_RELEASE_PATH }}/${{ env.PROJECT_NAME }}.app/Contents + cp -r ${{ env.PROJECT_NAME }}/${{ env.PROJECT_RESOURCES_PATH }} ${{ env.PROJECT_RELEASE_PATH }}/${{ env.PROJECT_NAME }}.app/Contents cp ${{ env.PROJECT_NAME }}/README.md ${{ env.PROJECT_RELEASE_PATH }} cp ${{ env.PROJECT_NAME }}/LICENSE ${{ env.PROJECT_RELEASE_PATH }} ls ${{ env.PROJECT_RELEASE_PATH }} diff --git a/src/template/.github/workflows/windows.yml b/src/template/.github/workflows/windows.yml index 2ae7a9c..4ecb156 100644 --- a/src/template/.github/workflows/windows.yml +++ b/src/template/.github/workflows/windows.yml @@ -22,6 +22,7 @@ jobs: PROJECT_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 steps: - name: Checkout this repo @@ -65,6 +66,7 @@ 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 dir ${{ env.PROJECT_RELEASE_PATH }}