Skip to content

Commit 50bee6c

Browse files
committed
Remove debug files & pack release zip better
- Remove debug files & pack release zip better - bump to 1.0.3
1 parent 878c403 commit 50bee6c

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,23 @@ jobs:
4343
if (-not (Test-Path "DesktopApp/packages.lock.json")) { Write-Error 'packages.lock.json missing'; exit 1 }
4444
type DesktopApp/packages.lock.json
4545
46-
- name: Build (framework-dependent)
46+
- name: Build
4747
run: dotnet build $env:PROJECT -c $env:CONFIG -f $env:FRAMEWORK --no-restore
4848

49-
- name: Publish (self-contained win-x64)
49+
- name: Publish (framework-dependent win-x64 single-file)
5050
run: >-
5151
dotnet publish $env:PROJECT -c $env:CONFIG -f $env:FRAMEWORK
52-
-r win-x64 --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=false
53-
-o publish/win-x64-self
54-
55-
- name: Publish (framework-dependent win-x64)
56-
run: >-
57-
dotnet publish $env:PROJECT -c $env:CONFIG -f $env:FRAMEWORK
58-
-r win-x64 --self-contained false /p:PublishSingleFile=false
52+
-r win-x64 --self-contained false /p:PublishSingleFile=true
5953
-o publish/win-x64-fdd
6054
61-
- name: Zip artifacts
55+
- name: Remove any pdb files
56+
run: Get-ChildItem publish -Recurse -Include *.pdb | Remove-Item -Force -ErrorAction SilentlyContinue
57+
58+
- name: Zip artifact
6259
run: |
63-
Compress-Archive -Path publish/win-x64-self/* -DestinationPath "$env:APP_NAME-self-contained-win-x64.zip"
6460
Compress-Archive -Path publish/win-x64-fdd/* -DestinationPath "$env:APP_NAME-framework-dependent-win-x64.zip"
6561
66-
- name: Upload self-contained artifact
67-
uses: actions/upload-artifact@v4
68-
with:
69-
name: ${{ env.APP_NAME }}-self-contained-win-x64
70-
path: ${{ env.APP_NAME }}-self-contained-win-x64.zip
71-
if-no-files-found: error
72-
73-
- name: Upload framework-dependent artifact
62+
- name: Upload artifact
7463
uses: actions/upload-artifact@v4
7564
with:
7665
name: ${{ env.APP_NAME }}-framework-dependent-win-x64
@@ -90,7 +79,6 @@ jobs:
9079
uses: softprops/action-gh-release@v2
9180
with:
9281
files: |
93-
dist/**/iptv-desktop-browser-self-contained-win-x64.zip
9482
dist/**/iptv-desktop-browser-framework-dependent-win-x64.zip
9583
draft: false
9684
prerelease: ${{ contains(github.ref_name, '-rc') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-alpha') }}

DesktopApp/DesktopApp.csproj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<UseWPF>true</UseWPF>
9-
<Version>1.0.2</Version>
10-
<AssemblyVersion>1.0.2</AssemblyVersion>
11-
<FileVersion>1.0.2</FileVersion>
12-
<InformationalVersion>1.0.2</InformationalVersion>
9+
<Version>1.0.3</Version>
10+
<AssemblyVersion>1.0.3</AssemblyVersion>
11+
<FileVersion>1.0.3</FileVersion>
12+
<InformationalVersion>1.0.3</InformationalVersion>
1313
<!-- Generate NuGet lock file so GitHub Actions dependency steps succeed -->
1414
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
1515
</PropertyGroup>
1616

17+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
18+
<DebugType>none</DebugType>
19+
<DebugSymbols>false</DebugSymbols>
20+
<GenerateDocumentationFile>false</GenerateDocumentationFile>
21+
</PropertyGroup>
22+
1723
</Project>

0 commit comments

Comments
 (0)