diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index b288ce9..76fbc82 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
- description: 'Version'
+ description: 'Version (example: "1.1")'
required: true
default: ''
env:
@@ -26,9 +26,9 @@ jobs:
- name: Build Windows
run: dotnet publish MkvDefaultTrackChanger/MkvDefaultTrackChanger.WinForms/MkvDefaultTrackChanger.WinForms.csproj --configuration Release -r win-x64 --self-contained true -p:PublishTrimmed=True -p:IncludeNativeLibrariesForSelfExtract=true -p:Version=${{ github.event.inputs.version }}
- name: Build Linux
- run: dotnet publish MkvDefaultTrackChanger/MkvDefaultTrackChanger.Gtk/MkvDefaultTrackChanger.Gtk.csproj --configuration Release -r linux-x64 --self-contained true -p:PublishTrimmed=True -p:TrimMode=CopyUsed -p:Version=${{ github.event.inputs.version }}
+ run: dotnet publish MkvDefaultTrackChanger/MkvDefaultTrackChanger.Gtk/MkvDefaultTrackChanger.Gtk.csproj --configuration Release -r linux-x64 --self-contained true -p:PublishTrimmed=True -p:Version=${{ github.event.inputs.version }}
- name: Build Mac
- run: dotnet publish MkvDefaultTrackChanger/MkvDefaultTrackChanger.Mac/MkvDefaultTrackChanger.Mac.csproj --configuration Release -r osx-x64 --self-contained true -p:Version=${{ github.event.inputs.version }}
+ run: dotnet publish MkvDefaultTrackChanger/MkvDefaultTrackChanger.Mac/MkvDefaultTrackChanger.Mac.csproj --configuration Release -r osx-x64 --self-contained true -p:PublishTrimmed=True -p:Version=${{ github.event.inputs.version }}
- name: Zip releases
run: |
powershell Rename-Item $env:PUBLISH_WIN_PATH/MkvDefaultTrackChanger.WinForms.exe MkvDefaultTrackChanger-V${{ github.event.inputs.version }}.exe
@@ -37,7 +37,6 @@ jobs:
powershell Compress-Archive $env:PUBLISH_LINUX_PATH/MkvDefaultTrackChanger-V${{ github.event.inputs.version }}.Gtk ./MkvDefaultTrackChanger-Linux-V${{ github.event.inputs.version }}.zip
powershell Rename-Item $env:PUBLISH_MAC_PATH/MkvDefaultTrackChanger.Mac.app ./MkvDefaultTrackChanger-V${{ github.event.inputs.version }}.Mac.app
powershell Compress-Archive $env:PUBLISH_MAC_PATH/MkvDefaultTrackChanger-V${{ github.event.inputs.version }}.Mac.app ./MkvDefaultTrackChanger-MacOS-V${{ github.event.inputs.version }}.zip
- # TODO: Fix MacOS archive not working (it extracts to a folder instead of a .app file)
- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
diff --git a/MkvDefaultTrackChanger/MkvDefaultTrackChanger.Mac/Info.plist b/MkvDefaultTrackChanger/MkvDefaultTrackChanger.Mac/Info.plist
index 00f93fd..5c715fb 100644
--- a/MkvDefaultTrackChanger/MkvDefaultTrackChanger.Mac/Info.plist
+++ b/MkvDefaultTrackChanger/MkvDefaultTrackChanger.Mac/Info.plist
@@ -1,20 +1,20 @@
-
- CFBundleName
- MkvDefaultTrackChanger
- CFBundleIdentifier
- com.mikemoolenaar.MkvDefaultTrackChanger
- CFBundleShortVersionString
- 1.0
- LSMinimumSystemVersion
- 10.12
- CFBundleDevelopmentRegion
- en
- NSHumanReadableCopyright
-
- CFBundleIconFile
- Icon.icns
-
+
+ CFBundleName
+ MkvDefaultTrackChanger
+ CFBundleIdentifier
+ com.mikemoolenaar.MkvDefaultTrackChanger
+ CFBundleShortVersionString
+ 1.1
+ LSMinimumSystemVersion
+ 10.12
+ CFBundleDevelopmentRegion
+ en
+ NSHumanReadableCopyright
+
+ CFBundleIconFile
+ Icon.icns
+
diff --git a/MkvDefaultTrackChanger/MkvDefaultTrackChanger/ErrorForm.xeto.cs b/MkvDefaultTrackChanger/MkvDefaultTrackChanger/ErrorForm.xeto.cs
index cba9c78..e3da98e 100644
--- a/MkvDefaultTrackChanger/MkvDefaultTrackChanger/ErrorForm.xeto.cs
+++ b/MkvDefaultTrackChanger/MkvDefaultTrackChanger/ErrorForm.xeto.cs
@@ -12,8 +12,9 @@ public class ErrorForm : Form
TextArea txaExceptionMessage;
private Label lblTitle;
- public ErrorForm(Exception ex, string? mkvFileInfo)
+ public ErrorForm(Exception ex, string? mkvFileInfo, Icon icon)
{
+ Icon = icon;
XamlReader.Load(this);
txaExceptionMessage!.Text = new StringBuilder()
.Append(GetPlatformInfo())
diff --git a/MkvDefaultTrackChanger/MkvDefaultTrackChanger/MainForm.xeto.cs b/MkvDefaultTrackChanger/MkvDefaultTrackChanger/MainForm.xeto.cs
index f3e13c1..8894beb 100644
--- a/MkvDefaultTrackChanger/MkvDefaultTrackChanger/MainForm.xeto.cs
+++ b/MkvDefaultTrackChanger/MkvDefaultTrackChanger/MainForm.xeto.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
+using Eto.Drawing;
using Eto.Forms;
using Eto.Serialization.Xaml;
using MatroskaLib;
@@ -23,6 +24,7 @@ public class MainForm : Form
public MainForm()
{
+ Icon = Icon.FromResource("MkvDefaultTrackChanger.logo.ico");
XamlReader.Load(this);
fileDialog = new OpenFileDialog();
@@ -128,21 +130,20 @@ protected void HandleAbout(object sender, EventArgs e)
{
var aboutDialog = new AboutDialog
{
- // TODO logo
- // Logo =
+ Logo = Icon,
Website = new Uri("https://github.com/MikeMoolenaar/MkvDefaultTrackChanger"),
WebsiteLabel = "Github",
ProgramDescription =
"MkvDefaultTrackChanger is a small application to change the default subtitle and audio tracks in MKV video files. ",
License = @"Copyright (C) 2021 Mike Moolenaar
MkvDefaultTrackChanger is licensed under the terms of the GNU General Public License version 3. A copy of this license can be obtained from .",
- Developers = new[] { "Mike Moolenaar" }
+ Developers = ["Mike Moolenaar"]
};
aboutDialog.ShowDialog(this);
}
private void HandleException(Exception ex)
{
- new ErrorForm(ex, mkvContainer?.ToString()).Show();
+ new ErrorForm(ex, mkvContainer?.ToString(), Icon).Show();
}
}
diff --git a/MkvDefaultTrackChanger/MkvDefaultTrackChanger/MkvDefaultTrackChanger.csproj b/MkvDefaultTrackChanger/MkvDefaultTrackChanger/MkvDefaultTrackChanger.csproj
index ab4a4ae..c6d680c 100644
--- a/MkvDefaultTrackChanger/MkvDefaultTrackChanger/MkvDefaultTrackChanger.csproj
+++ b/MkvDefaultTrackChanger/MkvDefaultTrackChanger/MkvDefaultTrackChanger.csproj
@@ -5,6 +5,7 @@
CS8618;CS0649
true
enable
+ 1.1.0
@@ -16,4 +17,10 @@
+
+
+ PreserveNewest
+
+
+
\ No newline at end of file
diff --git a/MkvDefaultTrackChanger/MkvDefaultTrackChanger/logo.ico b/MkvDefaultTrackChanger/MkvDefaultTrackChanger/logo.ico
new file mode 100644
index 0000000..22c1bbc
Binary files /dev/null and b/MkvDefaultTrackChanger/MkvDefaultTrackChanger/logo.ico differ