src/seconv/BUILD.md
# Build the project
dotnet build SeConv/SeConv.csproj
# Run during development
dotnet run --project SeConv/SeConv.csproj -- [arguments]
dotnet publish SeConv/SeConv.csproj -c Release -r win-x64 --self-contained -o publish/win-x64
dotnet publish SeConv/SeConv.csproj -c Release -r linux-x64 --self-contained -o publish/linux-x64
dotnet publish SeConv/SeConv.csproj -c Release -r osx-x64 --self-contained -o publish/osx-x64
dotnet publish SeConv/SeConv.csproj -c Release -o publish/framework-dependent
# Windows
dotnet publish SeConv/SeConv.csproj -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -o publish/single-file
# Linux
dotnet publish SeConv/SeConv.csproj -c Release -r linux-x64 --self-contained -p:PublishSingleFile=true -o publish/single-file
# macOS
dotnet publish SeConv/SeConv.csproj -c Release -r osx-x64 --self-contained -p:PublishSingleFile=true -o publish/single-file
The executable will be named:
SeConv.exeSeConvYou can then run it directly:
# Windows
SeConv.exe convert *.srt sami
# Linux/macOS
./SeConv convert *.srt sami
Add to your PowerShell profile:
Set-Alias -Name SubtitleEdit -Value "C:\path\to\SeConv.exe"
Add to your .bashrc or .zshrc:
alias SubtitleEdit='/path/to/SeConv'
Then you can use it as shown in the documentation:
SubtitleEdit convert *.srt sami
SubtitleEdit formats
SubtitleEdit --help
Consider distributing via:
dotnet pack SeConv/SeConv.csproj
dotnet tool install --global --add-source ./nupkg SeConv