diff --git a/.gitignore b/.gitignore index 013fb38..98abd63 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,14 @@ -# Build outputs & intermediates +# Build intermediates bin/ obj/ -dist/ installer/bin/ installer/obj/ installer/payload.gz -# Generated build icon (re-generated automatically by build.ps1, or keep src/app.ico tracked) +# Track prebuilt .exe deliverables in dist/, ignore any debug/symbol artifacts +dist/* +!dist/*.exe + # Local download artifacts *.img *.part diff --git a/README.md b/README.md index 7931b67..01921d0 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,64 @@ -# Microsoft 365 Offline Image Downloader (`en-US`) — .NET NativeAOT +# Microsoft 365 Offline Image Downloader (`en-US`) -A single-file, zero-dependency Windows desktop GUI (`dist\M365IsoDownloader.exe`) compiled ahead-of-time to native `win-x64` machine code with **.NET 9 NativeAOT** (`true`). +A lightweight, single-file Windows desktop GUI compiled ahead-of-time to native `win-x64` machine code with **.NET 9 NativeAOT** (`true`). It checks the official Microsoft CDN (`officecdn.microsoft.com`) for the latest English (`en-US`) Microsoft 365 offline `.img` disc installers and downloads them with pause/resume support. -## Supported Editions (`en-US`, 32-bit & 64-bit) -- **Microsoft 365 Apps for Enterprise** (`O365ProPlusRetail.img`) -- **Microsoft 365 Apps for Business** (`O365BusinessRetail.img`) -- **Microsoft 365 Personal / Family** (`O365HomePremRetail.img`) +--- -## Highlights -- **True `.NET NativeAOT` Single-File `.exe`:** Compiled directly to native x64 machine code with no JIT, no external DLLs, and no `.NET` runtime required on target Windows 10/11 PCs. -- **Crisp Windows 11 Desktop UI:** Hardware-composited rounded window corners, Per-Monitor v2 High-DPI scaling, ClearType typography, and double-buffered GDI+ Fluent card layout. -- **Instant Build Inspection (Zero Full Download Needed):** Sends HTTP `HEAD` + a 192 KB HTTP `Range` request (`bytes=32768-229375`) to read the ISO-9660 volume header and display the exact `16.0.xxxxx.xxxxx` build version, publish date, and file size before downloading. -- **Local `.img` Build Comparison:** Reads byte `32768` of any existing `.img` files in your save folder to compare local vs. CDN builds (`Up to Date` vs. `Update Available`). -- **Pause & Resume Support:** Streams via `SocketsHttpHandler` (HTTP/2 + TLS 1.3) into `.img.part` files with `ETag` verification, live transfer speed, and ETA. -- **Automatic CDN Fallback:** Uses `/db/` primary endpoints and transparently falls back to `/pr/`. +## Prebuilt `.exe` Downloads (Ready to Run) + +No `.NET` runtime, SDK, or external DLLs are required on Windows 10 or Windows 11 (`x64`). Grab either prebuilt executable directly from [`dist/`](dist/): + +| Package | Direct Download | Size | Description | +| :--- | :--- | :--- | :--- | +| **Portable Single-File App** *(Recommended)* | [**Download `M365IsoDownloader.exe`**](https://gitea.beyondcloud.solutions/dennii/m365-iso-downloader/raw/branch/main/dist/M365IsoDownloader.exe) | `6.85 MB` | Standalone single-file executable — run directly from any folder or USB drive with zero installation. | +| **Windows Setup Installer** | [**Download `M365IsoDownloader-Setup.exe`**](https://gitea.beyondcloud.solutions/dennii/m365-iso-downloader/raw/branch/main/dist/M365IsoDownloader-Setup.exe) | `4.91 MB` | Per-user GUI installer (no UAC admin prompt required) — installs to `%LOCALAPPDATA%\Programs\M365IsoDownloader`, creates Start Menu & Desktop shortcuts, and registers an uninstaller in **Windows Installed Apps**. | + +*(If you cloned this repository locally, both prebuilt executables are already located in [`dist\M365IsoDownloader.exe`](dist/M365IsoDownloader.exe) and [`dist\M365IsoDownloader-Setup.exe`](dist/M365IsoDownloader-Setup.exe).)* + +--- + +## Screenshots + +### Main Application Window +![Microsoft 365 Offline Image Downloader Main Window](docs/screenshots/app-main.png) + +### Optional Windows Setup Installer +![Microsoft 365 Image Downloader Setup Wizard](docs/screenshots/setup-installer.png) + +--- + +## Supported Microsoft 365 Editions (`en-US`, 32-bit & 64-bit Combined) + +| Edition | Image Filename | Primary Microsoft CDN Endpoint | +| :--- | :--- | :--- | +| **Microsoft 365 Apps for Enterprise** *(formerly Office 365 ProPlus)* | `O365ProPlusRetail.img` | `https://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-US/O365ProPlusRetail.img` | +| **Microsoft 365 Apps for Business** *(Office 365 Business)* | `O365BusinessRetail.img` | `https://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-US/O365BusinessRetail.img` | +| **Microsoft 365 Personal / Family** *(Home Premium)* | `O365HomePremRetail.img` | `https://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-US/O365HomePremRetail.img` | + +--- + +## Key Features +- **True `.NET NativeAOT` Single-File `.exe`:** Compiled directly to native `x64` machine code with no JIT, no external DLLs, and instant startup. +- **Instant Build Inspection (Zero Full Download Needed):** Sends HTTP `HEAD` + a 192 KB HTTP `Range` request (`bytes=32768-229375`) to read the ISO-9660 volume descriptor and extract the exact `16.0.xxxxx.xxxxx` build version, publish date, and file size before downloading. +- **Local `.img` Build Comparison:** Reads byte `32768` of any existing `.img` files in your target save folder (including previously downloaded images) to show **Up to Date** vs. **Update Available**. +- **Pause & Resume Support:** Streams via `SocketsHttpHandler` (HTTP/2 + TLS 1.3) into `.img.part` files with `ETag` verification, free-disk-space validation, live transfer speed, and ETA. +- **Automatic CDN Fallback:** Uses `/db/` primary endpoints and transparently falls back to `/pr/` if unreachable. +- **Crisp Windows 11 Native UI:** Hardware-composited rounded window corners, Per-Monitor v2 High-DPI scaling, modern Explorer folder picker, **Copy URL**, and **Show File** shortcuts. + +--- + +## How to Install a Downloaded `.img` File +1. Double-click the downloaded `.img` file (e.g., `O365BusinessRetail.img`) in Windows File Explorer to mount it as a virtual DVD drive. +2. Open the `Office` folder inside the mounted drive and run `Setup64.exe` (64-bit, recommended) or `Setup32.exe` (32-bit). +3. Launch any Office app and sign in with your Microsoft 365 account to activate. + +--- ## Building from Source -Requires the `.NET 9+ SDK` and Visual Studio 2022 C++ Build Tools (`MSVC` + Windows SDK): +Requires the **.NET 9+ SDK** and **Visual Studio 2022 C++ Build Tools** (`MSVC` + Windows 10/11 SDK): ```powershell powershell -ExecutionPolicy Bypass -File .\build.ps1 ``` -Output executable: `dist\M365IsoDownloader.exe` +Outputs both `dist\M365IsoDownloader.exe` and `dist\M365IsoDownloader-Setup.exe`. diff --git a/dist/M365IsoDownloader-Setup.exe b/dist/M365IsoDownloader-Setup.exe new file mode 100644 index 0000000..ded5ba7 Binary files /dev/null and b/dist/M365IsoDownloader-Setup.exe differ diff --git a/dist/M365IsoDownloader.exe b/dist/M365IsoDownloader.exe new file mode 100644 index 0000000..f10e9f2 Binary files /dev/null and b/dist/M365IsoDownloader.exe differ diff --git a/docs/screenshots/app-main.png b/docs/screenshots/app-main.png new file mode 100644 index 0000000..df4c907 Binary files /dev/null and b/docs/screenshots/app-main.png differ diff --git a/docs/screenshots/setup-installer.png b/docs/screenshots/setup-installer.png new file mode 100644 index 0000000..a6248a5 Binary files /dev/null and b/docs/screenshots/setup-installer.png differ