Skip to content

Commit 84e8017

Browse files
committed
Add Linux RPM packaging files
1 parent 16694d5 commit 84e8017

24 files changed

Lines changed: 89 additions & 2 deletions

File tree

YTSubConverter.Shared/Formats/Ass/AssDocument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ public AssDocument(SubtitleDocument doc)
4444

4545
public AssDocument(string filePath, List<AssStyleOptions> styleOptions = null)
4646
{
47-
using StreamReader reader = new StreamReader(filePath);
47+
using StreamReader reader = new(filePath);
4848
Load(reader, styleOptions);
4949
}
5050

5151
public AssDocument(Stream stream, List<AssStyleOptions> styleOptions = null)
5252
{
53-
using StreamReader reader = new StreamReader(stream, Encoding.UTF8, true, 1024, true);
53+
using StreamReader reader = new(stream, Encoding.UTF8, true, 1024, true);
5454
Load(reader, styleOptions);
5555
}
5656

YTSubConverter.UI.Linux/YTSubConverter.UI.Linux.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<TargetFramework>net10.0</TargetFramework>
1111
<ImplicitUsings>disable</ImplicitUsings>
1212
<Nullable>disable</Nullable>
13+
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
1314
</PropertyGroup>
1415

1516
<ItemGroup>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dpkg-deb --build --nocheck ytsubconverter
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://github.com/genereese/togo
2+
3+
togo file exclude root/usr/share/applications
4+
togo file exclude root/usr/share/icons/hicolor/16x16/apps
5+
togo file exclude root/usr/share/icons/hicolor/32x32/apps
6+
togo file exclude root/usr/share/icons/hicolor/64x64/apps
7+
togo file exclude root/usr/share/icons/hicolor/128x128/apps
8+
togo file exclude root/usr/share/icons/hicolor/256x256/apps
9+
chmod +x root/opt/ytsubconverter/ytsubconverter
10+
togo build package
11+

YTSubConverter.UI.Linux/rpm/root/opt/ytsubconverter/.gitkeep

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Desktop Entry]
2+
Name=YTSubConverter
3+
Version=1.6.6
4+
Type=Application
5+
GenericName=YouTube Subtitle Converter
6+
Comment=Conversion tool for YouTube's proprietary subtitle format
7+
Exec=/opt/ytsubconverter/ytsubconverter %f
8+
Icon=ytsubconverter
9+
Terminal=false
10+
Categories=AudioVideo;AudioVideoEditing;GTK;
11+
Keywords=subtitles;subtitle;captions;captioning;video;audio;
2.8 KB
Loading
336 Bytes
Loading
5.59 KB
Loading
622 Bytes
Loading

0 commit comments

Comments
 (0)