|
|
@@ -30,6 +30,32 @@ jobs:
|
|
|
$projectPath = ".\src\PicView.WPF\PicView.WPF.csproj"
|
|
|
$publishPath = "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64"
|
|
|
dotnet publish $projectPath --runtime win-x64 --self-contained true --configuration Release --output $publishPath /p:PublishReadyToRun=true
|
|
|
+ rm "$publishPath/Microsoft.VisualBasic.Forms.dll"
|
|
|
+ rm "$publishPath/Microsoft.Web.WebView2.WinForms.dll"
|
|
|
+ rm "$publishPath/PicView.pdb"
|
|
|
+ rm "$publishPath/PicView.Core.pdb"
|
|
|
+ rm "$publishPath/PicView.dll.config"
|
|
|
+ rm "$publishPath/createdump.exe"
|
|
|
+ rm "$publishPath/XamlAnimatedGif.pdb"
|
|
|
+ rm -r "$publishPath/ar"
|
|
|
+ rm -r "$publishPath/cs"
|
|
|
+ rm -r "$publishPath/da"
|
|
|
+ rm -r "$publishPath/de"
|
|
|
+ rm -r "$publishPath/es"
|
|
|
+ rm -r "$publishPath/fr"
|
|
|
+ rm -r "$publishPath/it"
|
|
|
+ rm -r "$publishPath/ja*"
|
|
|
+ rm -r "$publishPath/ko"
|
|
|
+ rm -r "$publishPath/lv"
|
|
|
+ rm -r "$publishPath/nl"
|
|
|
+ rm -r "$publishPath/pt*"
|
|
|
+ rm -r "$publishPath/pl"
|
|
|
+ rm -r "$publishPath/ru"
|
|
|
+ rm -r "$publishPath/sk"
|
|
|
+ rm -r "$publishPath/sv"
|
|
|
+ rm -r "$publishPath/th"
|
|
|
+ rm -r "$publishPath/tr"
|
|
|
+ rm -r "$publishPath/zh*"
|
|
|
shell: pwsh
|
|
|
|
|
|
# Step 5 (x64): Compile .ISS to .EXE Installer for x64
|
|
|
@@ -50,6 +76,32 @@ jobs:
|
|
|
$projectPath = ".\src\PicView.WPF\PicView.WPF.csproj"
|
|
|
$publishPath = "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64"
|
|
|
dotnet publish $projectPath --runtime win-x64 --self-contained true --configuration Release --output $publishPath /p:PublishReadyToRun=true
|
|
|
+ rm "$publishPath/Microsoft.VisualBasic.Forms.dll"
|
|
|
+ rm "$publishPath/Microsoft.Web.WebView2.WinForms.dll"
|
|
|
+ rm "$publishPath/PicView.pdb"
|
|
|
+ rm "$publishPath/PicView.Core.pdb"
|
|
|
+ rm "$publishPath/PicView.dll.config"
|
|
|
+ rm "$publishPath/createdump.exe"
|
|
|
+ rm "$publishPath/XamlAnimatedGif.pdb"
|
|
|
+ rm -r "$publishPath/ar"
|
|
|
+ rm -r "$publishPath/cs"
|
|
|
+ rm -r "$publishPath/da"
|
|
|
+ rm -r "$publishPath/de"
|
|
|
+ rm -r "$publishPath/es"
|
|
|
+ rm -r "$publishPath/fr"
|
|
|
+ rm -r "$publishPath/it"
|
|
|
+ rm -r "$publishPath/ja*"
|
|
|
+ rm -r "$publishPath/ko"
|
|
|
+ rm -r "$publishPath/lv"
|
|
|
+ rm -r "$publishPath/nl"
|
|
|
+ rm -r "$publishPath/pt*"
|
|
|
+ rm -r "$publishPath/pl"
|
|
|
+ rm -r "$publishPath/ru"
|
|
|
+ rm -r "$publishPath/sk"
|
|
|
+ rm -r "$publishPath/sv"
|
|
|
+ rm -r "$publishPath/th"
|
|
|
+ rm -r "$publishPath/tr"
|
|
|
+ rm -r "$publishPath/zh*"
|
|
|
shell: pwsh
|
|
|
|
|
|
|