diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml new file mode 100644 index 0000000..ef9f3d4 --- /dev/null +++ b/.github/workflows/dotnet-desktop.yml @@ -0,0 +1,50 @@ +name: .NET Core Desktop + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: windows-latest + + env: + Project: RemnantSaveGuardian/RemnantSaveGuardian.csproj + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Setup MSBuild.exe + uses: microsoft/setup-msbuild@v2 + + # Just in case there will be some unit tests in future + - name: Execute unit tests + run: dotnet test + + - name: Restore the application + run: msbuild $env:Project /t:Restore /p:Configuration=Release + + - uses: kzrnm/get-net-sdk-project-versions-action@v2 + id: get-version + with: + proj-path: ${{ env.Project }} + + - name: publish + run: dotnet publish -o "./publish" + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: 'RemnantSaveGuardian_${{steps.get-version.outputs.assembly-version}}' + path: ./publish diff --git a/README.md b/README.md index 0cdc810..0e3bf40 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Back up your Remnant 2 saves and view your world rolls. **This project is a work in progress. Lots of features are broken or partially implemented.** ## Installation -1. Download and install [Microsoft .NET 6.0](https://dotnet.microsoft.com/en-us/download) or greater +1. Download and install [Microsoft .NET 8.0](https://dotnet.microsoft.com/en-us/download) or greater 2. Download the [latest release](https://github.com/Razzmatazzz/RemnantSaveGuardian/releases/latest/download/RemnantSaveGuardian.zip) 3. Unzip the latest release to a folder of your choosing (probably not the same folder where you have the game installed) 4. Run RemnantSaveGuardian.exe diff --git a/RemnantSaveGuardian.sln b/RemnantSaveGuardian.sln index 0a0b4c1..4b1bfc2 100644 --- a/RemnantSaveGuardian.sln +++ b/RemnantSaveGuardian.sln @@ -8,6 +8,9 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D6BEAB10-FA9E-421D-A7E6-ED1F5203B96F}" ProjectSection(SolutionItems) = preProject Directory.Build.props = Directory.Build.props + .github\workflows\dotnet-desktop.yml = .github\workflows\dotnet-desktop.yml + LICENSE = LICENSE + README.md = README.md EndProjectSection EndProject Global diff --git a/RemnantSaveGuardian/RemnantSaveGuardian.csproj b/RemnantSaveGuardian/RemnantSaveGuardian.csproj index 558cded..eabb267 100644 --- a/RemnantSaveGuardian/RemnantSaveGuardian.csproj +++ b/RemnantSaveGuardian/RemnantSaveGuardian.csproj @@ -2,15 +2,13 @@ WinExe - net6.0-windows + net8.0-windows enable - 10.0 true - true en;ru;de;es;fr;it;ja;ko;pt-BR;zh-Hans;zh-Hant app.manifest Assets\256.ico - 1.3.0.0 + 1.3.1.0 OnOutputUpdated @@ -19,12 +17,12 @@ - + - - + + - +