Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ "v6", v* ]

env:
DOTNET_VERSION: 8.x

jobs:
analyze:
name: Analyze
Expand All @@ -29,9 +32,28 @@ jobs:
with:
languages: ${{ matrix.language }}

- name: Autobuild
- if: matrix.language != 'csharp'
name: Autobuild
uses: github/codeql-action/autobuild@v3

- if: matrix.language == 'csharp'
name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- if: matrix.language == 'csharp'
name: Build Patcher
run: |
export DOTNET_NOLOGO=true
export DOTNET_CLI_TELEMETRY_OPTOUT=true
cd $GITHUB_WORKSPACE/patcher
dotnet build HitmanPatcher.CLI/HitmanPatcher.CLI.csproj -c Release -p:EnableWindowsTargeting=True
dotnet build HitmanPatcher.UI/HitmanPatcher.UI.csproj -c Release -p:EnableWindowsTargeting=True
dotnet build HitmanPatcher.CLI/HitmanPatcher.CLI.csproj -r linux-x64 -c "Release - Linux" -p:IsLinux=true
dotnet build HitmanPatcher.CLI/HitmanPatcher.CLI.csproj -c Release -p:EnableWindowsTargeting=True -p:IsLegacy=True
dotnet build HitmanPatcher.UI/HitmanPatcher.UI.csproj -c Release -p:EnableWindowsTargeting=True -p:IsLegacy=True

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
Expand Down
60 changes: 53 additions & 7 deletions .github/workflows/patcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,69 @@ on:
branches: [ "v*" ]
paths: [ "patcher/**/*" ]

env:
DOTNET_VERSION: 8.x

jobs:
build:
name: Build Patcher
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Build Patcher
run: msbuild.exe patcher\HitmanPatcher.sln -t:Build -p:Configuration=Release -p:Platform=x64 -m
run: |
export DOTNET_NOLOGO=true
export DOTNET_CLI_TELEMETRY_OPTOUT=true
cd patcher
dotnet publish HitmanPatcher.CLI/HitmanPatcher.CLI.csproj -c Release -p:PublishSingleFile=True --no-self-contained -p DebugType=none -p:EnableWindowsTargeting=True -o Publish/Windows-Portable
dotnet publish HitmanPatcher.CLI/HitmanPatcher.CLI.csproj -r win-x64 -c Release -f net8.0 -p:PublishTrimmed=True -p:PublishSingleFile=True --self-contained -p DebugType=none -p:EnableWindowsTargeting=True -o Publish/Windows-x64
dotnet publish HitmanPatcher.CLI/HitmanPatcher.CLI.csproj -r linux-x64 -c "Release - Linux" -p:PublishSingleFile=True --no-self-contained -p DebugType=none -p:IsLinux=true -o Publish/Linux-Portable
dotnet publish HitmanPatcher.CLI/HitmanPatcher.CLI.csproj -r linux-x64 -c "Release - Linux" -f net8.0 -p:PublishTrimmed=True -p:PublishSingleFile=True --self-contained -p DebugType=none -p:IsLinux=true -o Publish/Linux-x64
dotnet publish HitmanPatcher.UI/HitmanPatcher.UI.csproj -c Release -p:PublishSingleFile=True --no-self-contained -p DebugType=none -p:EnableWindowsTargeting=True -o Publish/Windows-Portable
dotnet publish HitmanPatcher.UI/HitmanPatcher.UI.csproj -r win-x64 -c Release -p:PublishSingleFile=True --self-contained -p DebugType=none -p:EnableWindowsTargeting=True -o Publish/Windows-x64
dotnet publish HitmanPatcher.CLI/HitmanPatcher.CLI.csproj -c Release -p DebugType=none -p:EnableWindowsTargeting=True -o Publish/Windows-Legacy -p:IsLegacy=True
dotnet publish HitmanPatcher.UI/HitmanPatcher.UI.csproj -c Release -p DebugType=none -p:EnableWindowsTargeting=True -o Publish/Windows-Legacy -p:IsLegacy=True

- name: Upload patcher-windows-portable
uses: actions/upload-artifact@v4
with:
name: patcher-windows-portable
path: patcher/Publish/Windows-Portable

- name: Upload patcher-cli-windows
uses: actions/upload-artifact@v4
with:
name: patcher-cli-windows
path: patcher/Publish/Windows-x64/PeacockPatcher.CLI.exe

- name: Upload patcher-ui-windows
uses: actions/upload-artifact@v4
with:
name: patcher-ui-windows
path: patcher/Publish/Windows-x64/PeacockPatcher.UI.exe

- name: Upload patcher-linux-portable
uses: actions/upload-artifact@v4
with:
name: patcher-linux-portable
path: patcher/Publish/Linux-Portable

- name: Upload patcher-linux
uses: actions/upload-artifact@v4
with:
name: patcher-linux
path: patcher/Publish/Linux-x64

- name: Upload Patcher Artifacts
- name: Upload patcher-windows-legacy
uses: actions/upload-artifact@v4
with:
name: patcher-windows
path: patcher/bin/x64/Release/PeacockPatcher.exe
name: patcher-windows-legacy
path: patcher/Publish/Windows-Legacy/ILRepack
9 changes: 6 additions & 3 deletions patcher/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.vs/*
bin/*
obj/*
.vs
bin
obj
/Publish
/Res
/HitmanPatcher.sln.DotSettings.user
/.idea/.idea.HitmanPatcher/.idea/riderMarkupCache.xml
*.suo
*.user
10 changes: 7 additions & 3 deletions patcher/.idea/.idea.HitmanPatcher/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions patcher/.idea/.idea.HitmanPatcher/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions patcher/App.config

This file was deleted.

84 changes: 0 additions & 84 deletions patcher/CliLocale.Designer.cs

This file was deleted.

57 changes: 0 additions & 57 deletions patcher/CliLocale.resx

This file was deleted.

Loading