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
Merge origin/main (What's new slides) into feature/own-installer
KnifeLemon11971344254a
diff --cc CONTRIBUTING.mdindex 2023cdd9,5a3c754d..b48a8806--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@@ -110,14 -110,39 +110,43 @@@ Read [docs/ARCHITECTURE.md](docs/ARCHITBump `<Version>` in `Directory.Build.props`, merge, then push a tag `vX.Y.Z`. `.github/workflows/release.yml` runs thetests and `build/build-installer.ps1 -Portable`: it publishes the app (`-p:FileeRelease=true`, which lets it registerExplorer and startup entries), adds the Explorer menu extension and the bundled rhwp and 7-Zip, compiles-`installer/Filee.iss` with a pinned, portable Inno Setup, and uploads `Filee-X.Y.Z-win-Setup.exe`, the portable zip and+`src/Filee.Setup` (Filee's own installer) and appends the app to it, and uploads `Filee-X.Y.Z-win-Setup.exe`, the portable zip andtheir SHA-256 sums with release notes generated from the merged pull requests.+ ### "What's new" slides for a release++ A release with features worth showing gets slides, which Filee shows once after updating to it (see+ [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md#whats-new-slides)). A release without slides shows nothing.++ 1. Write the CHANGELOG section with its `<!-- update -->` lines first: the slides are the visual version of it.+ Pick 5–7 features; put the small ones together on a last "And more" slide.+ 2. Add `src/Filee.App/Assets/WhatsNew/<version>/slides.json` (copy the previous one): per slide an `id`, the+ `media` file and the i18n keys `whats_new.<version with _>.<id>.title` / `.text`.+ 3. Add the keys to **every** `src/Filee.App/Assets/i18n/*.json` (a title and one or two short sentences; Chinese+ without fullwidth `;` / `:`).+ 4. Add a `Generate_<version>` method to `tests/Filee.App.Tests/WhatsNewMedia.cs` with a scene per slide (real+ windows driven frame by frame; start each clip on a frame that explains the slide on its own, since reduced+ motion shows only that one) and run it:++ ```+ dotnet build tests/Filee.App.Tests+ tests/Filee.App.Tests/bin/Debug/net10.0/Filee.App.Tests.exe -method "Filee.App.Tests.WhatsNewMedia.*" -explicit only+ ```++ `FILEE_WHATSNEW_ONLY=crop,theme` renders only those clips. Each file must stay under 400 KB (the test checks it,+ and `WhatsNewTests` checks all of them together stay under 2 MB); look at the first frames in+ `bin/.../screenshots/whatsnew-*.png` and at the window in `whatsnew-window-*.png`.+ 5. Run `dotnet test`: `WhatsNewTests` checks that every slide's media and keys exist.++ To try it in the app, build with the new version (`dotnet run --project src/Filee.App -p:Version=X.Y.Z`) against a+ data folder whose settings say an older version was seen (`"whatsNewSeenVersion": "1.0.0"`, `FILEE_DATA_DIR`), or+ open About → "What's new".+-To try the installer locally run `pwsh build/build-installer.ps1` (output in `Releases/`). Setup needs administrator-rights; `pwsh build/build-installer.ps1 -CheckOnly` only compiles the script. The installer's engine page and some of-its texts are generated from `EngineDownloads` and the app's translations (`build/tools/make-installer-engines.cs`);-its own texts are in the `[CustomMessages]` section of `installer/Filee.iss` (English, Korean, Simplified Chinese).+To try the installer locally run `pwsh build/build-installer.ps1` (output in `Releases/`; it fetches the bundled+engines, the C++ runtime and the Zig toolchain for the Explorer menu into `build/.cache`; run `build/fetch-fonts.ps1`+first). `pwsh build/build-installer.ps1 -CheckOnly` builds Setup around a stub app and installs, updates and+uninstalls it in a sandbox. To run the real Setup without touching your PC, give it a scratch folder:+`Filee-X.Y.Z-win-Setup.exe /SANDBOX=D:\scratch` (registry, Program Files, Start menu, desktop, PATH and `%APPDATA%`+all go into that folder; no administrator rights are asked for and Filee is not started). Setup's texts are the+`installer.*` keys of the app's translation files; its engine page uses the app's engine names. See+[Architecture](docs/ARCHITECTURE.md#windows-installer).diff --cc src/Filee.App/Services/CommandLine.csindex 53cacd45,ac469e6d..58dd1f79--- a/src/Filee.App/Services/CommandLine.cs+++ b/src/Filee.App/Services/CommandLine.cs@@@ -23,7 -24,7 +25,8 @@@ namespace Filee.App.Services/// <param name="InstallEngines">Engine packages chosen in the installer; null when the option is absent.</param>/// <param name="StartWithWindows">Value of <c>--start-with-windows</c>; null when absent.</param>/// <param name="ContextMenu">Value of <c>--context-menu</c>; null when absent.</param>+/// <param name="Language">Value of <c>--language</c>; null when absent.</param>+ /// <param name="WhatsNew"><c>--whats-new</c>: due slides show even when starting in the background.</param>public sealed record CommandLine(bool Background,bool ShowSettings,@@@ -34,7 -35,7 +37,8 @@@IReadOnlyList<string>? InstallEngines = null,bool? StartWithWindows = null,bool? ContextMenu = null,- string? Language = null)++ string? Language = null,+ bool WhatsNew = false){/// <summary>File name prefix of list files written by FileeExplorerMenu.dll (LIST_PREFIX there) into %TEMP%.</summary>public const string ListFilePrefix = "Filee-convert-";@@@ -52,7 -53,7 +56,8 @@@List<string>? engines = null;bool? startWithWindows = null;bool? contextMenu = null;+ string? language = null;+ var whatsNew = false;foreach (var arg in args){@@@ -104,7 -105,7 +112,7 @@@break;}}- return new CommandLine(background, settings, files, listFile, quit, cleanup, engines, startWithWindows, contextMenu, language);- return new CommandLine(background, settings, files, listFile, quit, cleanup, engines, startWithWindows, contextMenu, whatsNew);++ return new CommandLine(background, settings, files, listFile, quit, cleanup, engines, startWithWindows, contextMenu, language, whatsNew);}/// <summary>"--Name=Value" → ("--name", "Value"); "--name" → ("--name", null).</summary>