From 158ab56643bd2e2e88d655ff88c7806e31219009 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Fri, 4 Jul 2025 17:19:01 +0200 Subject: [PATCH] Prepare for release --- .github/workflows/build.yml | 43 ------------------------------------- .gitignore | 5 ++++- release.bat | 9 ++++++++ 3 files changed, 13 insertions(+), 44 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 release.bat diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index a69a84c..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Visual Studio - -on: [push, pull_request] - -jobs: - build: - # Skip building pull requests from the same repository - if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }} - runs-on: windows-2019 - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.0.2 - - - name: Build - run: | - msbuild.exe ${{ github.event.repository.name }}.sln /m /verbosity:minimal /t:Rebuild /p:Configuration=Release /p:Platform=x64 - msbuild.exe ${{ github.event.repository.name }}.sln /m /verbosity:minimal /t:Rebuild /p:Configuration=Release /p:Platform=Win32 - - - uses: actions/upload-artifact@v2 - with: - name: ${{ github.event.repository.name }}-${{ github.sha }} - path: Release/ - - - name: Compress artifacts - uses: papeloto/action-zip@v1 - if: ${{ startsWith(github.ref, 'refs/tags/') }} - with: - files: Release/ - dest: ${{ github.event.repository.name }}-${{ github.sha }}.zip - - - name: Release - uses: softprops/action-gh-release@v1 - if: ${{ startsWith(github.ref, 'refs/tags/') }} - with: - prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') || contains(github.ref, '-pre') }} - files: ${{ github.event.repository.name }}-${{ github.sha }}.zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9da9612..6d003d7 100644 --- a/.gitignore +++ b/.gitignore @@ -160,4 +160,7 @@ $RECYCLE.BIN/ *.cbTemp cov-* coverity* -*.user +*.user + +# Release +deps/ \ No newline at end of file diff --git a/release.bat b/release.bat new file mode 100644 index 0000000..f7f846a --- /dev/null +++ b/release.bat @@ -0,0 +1,9 @@ +@echo off +setlocal enableextensions +if exist deps rmdir /s /q deps +mkdir deps\x32 +mkdir deps\x64 +copy /y Release\x32\TitanEngine.dll deps\x32\TitanEngine.dll +copy /y Release\x32\TitanEngine.pdb deps\x32\TitanEngine.pdb +copy /y Release\x64\TitanEngine.dll deps\x64\TitanEngine.dll +copy /y Release\x64\TitanEngine.pdb deps\x64\TitanEngine.pdb