Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.
C# audio-converteravaloniabatch-conversionconvertercsharpdocument-converterdocx-to-pdfdotnetdrag-and-dropfile-conversionfile-converterheic-converterhwphwpximage-converterlinuxmacospdf-convertervideo-converterwindows
// Makes Filee-<version>-win-Setup.exe: appends the published app (an LZMA payload with a SHA-256 manifest, see
// src/Filee.Setup/Payload/SetupPayload.cs) to the published Setup program. The engines Setup offers on a fresh install
// come from EngineDownloads (engines.json), so Setup offers exactly what Settings → Engines offers.
// Run by build/build-installer.ps1:
// dotnet run build/tools/make-setup.cs -- <Filee.Setup.exe> <publish folder> <version> <output .exe> [--fast]
// LZMA with a 48 MB dictionary, programs through the x86 branch filter; --fast uses a small dictionary, for checks.
#:project ../../src/Filee.Setup/Filee.Setup.csproj
#:project ../../src/Filee.Engines/Filee.Engines.csproj
#:property PublishAot=false
using System.Diagnostics;
using System.Reflection;
using Filee.Engines.Infrastructure;
using Filee.Setup.Payload;
var fast = args.Contains("--fast");
var positional = args.Where(a => a != "--fast").ToArray();
if (positional.Length != 4)
{
Console.Error.WriteLine("usage: dotnet run build/tools/make-setup.cs -- <Filee.Setup.exe> <publish folder> <version> <output .exe> [--fast]");
return 2;
}
var (program, app, version, output) = (positional[0], positional[1], positional[2], positional[3]);
if (!File.Exists(Path.Combine(app, "Filee.exe")))
{
Console.Error.WriteLine($"Filee.exe is missing in {app}");
return 1;
}
// EngineInstaller marks every installed component folder with this file; LibreOffice extensions ("oxt") sit inside
// LibreOffice and come with it, so they have no folder of their own.
var marker = (string?)typeof(EngineInstaller).GetField("MarkerName", BindingFlags.NonPublic | BindingFlags.Static)?.GetRawConstantValue()
?? throw new InvalidOperationException("EngineInstaller.MarkerName not found");
var engines = EngineDownloads.Packages
.Where(EngineDownloads.CanDownload)
.Select(p => new EngineOffer(
p.Id,
p.Components.Where(c => EngineDownloads.Components[c].Kind != "oxt").ToList(),
EngineDownloads.DownloadSize(p),
p.InstalledSize,
EngineDownloads.IsSuggested(p)))
.ToList();
var watch = Stopwatch.StartNew();
var manifest = SetupPayload.Write(program, app, Path.GetFullPath(output), version, engines, marker, fast, Console.WriteLine);
var size = new FileInfo(output).Length;
Console.WriteLine($"{manifest.Files.Count} files, {manifest.TotalSize / 1_000_000} MB -> {output} ({size / 1_000_000} MB) in {watch.Elapsed.TotalSeconds:0} s; " +
$"engines offered: {string.Join(", ", engines.Select(e => e.Suggested ? e.Id + "*" : e.Id))}");
return 0;