Skip to content

Commit

Permalink
add self-contained and non-self contained
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhorner committed Nov 20, 2020
1 parent 7f2d48d commit 99ce88b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet publish -c Release -o build -r win-x64 --no-restore
run: dotnet publish -c Release -o build -r win-x64 --no-restore --no-self-contained
- name: Zip build directory
uses: montudor/[email protected]
with:
Expand All @@ -27,4 +27,28 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'WhereIsForward.zip'
args: 'WhereIsForward.zip'

build-release-self-contained:
name: Build and Release (Self-Contained)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.402
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet publish -c Release -o build -r win-x64 --no-restore --self-contained
- name: Zip build directory
uses: montudor/[email protected]
with:
args: sh -c "cd build && zip -qq -r ../WhereIsForward.SelfContained.zip *"
- name: Upload binaries
uses: skx/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'WhereIsForward.SelfContained.zip'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This is a very, very, _very_ simple OpenVR overlay that literally just puts an a

[Here](https://github.com/tjhorner/WhereIsForward/releases)

You might need the [.NET Core Desktop Runtime](https://download.visualstudio.microsoft.com/download/pr/1b3a8899-127a-4465-a3c2-7ce5e4feb07b/1e153ad470768baa40ed3f57e6e7a9d8/windowsdesktop-runtime-5.0.0-win-x64.exe) if you don't already have it. (Or you can download the self-contained version instead, which includes the .NET Core runtime.)

### Why?

[See this answer in video form](https://twitter.com/tjhorner/status/1329667055478566915)
Expand Down
2 changes: 1 addition & 1 deletion WhereIsForward/WhereIsForward.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<RuntimeIdentifier>win10-x86</RuntimeIdentifier>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 99ce88b

Please sign in to comment.