Skip to content

Commit 0b4f0e6

Browse files
committed
Self-contain builds
1 parent 8f4d467 commit 0b4f0e6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/dotnet_release_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626

2727
# Step 4
2828
- name: Build the project
29-
run: dotnet build --configuration Release --runtime win-x64 --framework net8.0 -p:Optimize=true
29+
run: dotnet build --configuration Release --runtime linux-x64 --self-contained --framework net8.0 -p:Optimize=true
3030

3131
# Step 5
3232
- name: Run tests
3333
run: dotnet test
3434

3535
# Step 6
3636
- name: Publish the project
37-
run: dotnet publish --configuration Release --runtime win-x64 --framework net8.0 -p:Optimize=true --output ./publish
37+
run: dotnet publish --configuration Release --runtime linux-x64 --self-contained --framework net8.0 -p:Optimize=true --output ./publish
3838

3939
# Step 7
4040
- name: Get version from tag

.github/workflows/dotnet_release_windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626

2727
# Step 4
2828
- name: Build the project
29-
run: dotnet build --configuration Release --runtime win-x64 --framework net8.0 -p:Optimize=true
29+
run: dotnet build --configuration Release --runtime win-x64 --self-contained --framework net8.0 -p:Optimize=true
3030

3131
# Step 5
3232
- name: Run tests
3333
run: dotnet test
3434

3535
# Step 6
3636
- name: Publish the project
37-
run: dotnet publish --configuration Release --runtime win-x64 --framework net8.0 -p:Optimize=true --output ./publish
37+
run: dotnet publish --configuration Release --runtime win-x64 --self-contained --framework net8.0 -p:Optimize=true --output ./publish
3838

3939
# Step 7
4040
- name: Create ZIP archives

WriterSharp.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
<Description>The text editor... now in C#. WriterSharp is a simple text editor, yet one you can't miss out on!</Description>
1717
<FileVersion>1.0.0.0</FileVersion>
18-
<InformationalVersion>1.0.0</InformationalVersion>
18+
<InformationalVersion>1.0.0-alpha1</InformationalVersion>
1919

2020
<!-- UNCOMMENT FOR UNSTABLE RELEASES -->
21-
<!-- SourceRevisisonId = <alpha/beta>@<DD><MM><YY><reviewer (6 letters)> -->
22-
<SourceRevisionId>ALPHA@260425mfmatt</SourceRevisionId>
21+
<!-- SourceRevisisonId = @<DD><MM><YY><reviewer (6 letters)> -->
22+
<SourceRevisionId>@280425mfmatt</SourceRevisionId>
2323

2424
<!-- UNCOMMENT FOR STABLE RELEASES -->
2525
<!-- <SourceRevisionId>stable</SourceRevisionId> -->
@@ -28,19 +28,19 @@
2828
<!-- <SourceRevisionId>patch1</SourceRevisionId> -->
2929

3030
<!-- End of SourceRevisionId -->
31-
31+
3232
<!-- this setting gets overwrited if in debug mode -->
3333
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;win-x86</RuntimeIdentifiers>
3434
<Platforms>AnyCPU;x64;x86</Platforms>
35-
35+
3636
<DefineConstants>WINDOWS;LINUX;DARWIN;X86_64;X86</DefineConstants>
3737
<!-- these constants will be overwritten afterwards -->
3838
</PropertyGroup>
3939

4040
<!-- OS and Platform constants -->
4141
<PropertyGroup>
4242
<DefineConstants>UNIVERSAL</DefineConstants>
43-
43+
4444
<!-- Windows (64 bit) -->
4545
<DefineConstants Condition="'$(RuntimeIdentifier)' == 'win-x64'">
4646
WINDOWS;X86_64

0 commit comments

Comments
 (0)