diff --git a/.github/workflows/msix.yml b/.github/workflows/msix.yml new file mode 100644 index 00000000..e3b4723d --- /dev/null +++ b/.github/workflows/msix.yml @@ -0,0 +1,64 @@ +name: msix + +# Build an unsigned MSIX package for Microsoft Store submission. +# Microsoft Store signs the package automatically upon certification. +on: + workflow_dispatch: + inputs: + version: + description: '4-part or 3-part version (e.g. 2026.12.1 or 2026.12.1.0)' + required: true + default: '2026.12.1' + +permissions: + contents: read + +jobs: + package-msix: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-dotnet@v5 + with: + dotnet-version: '10.0.x' + + - name: Normalize version + id: ver + shell: pwsh + run: | + $raw = '${{ inputs.version }}'.Trim() + if ($raw -notmatch '^v?(\d+\.\d+\.\d+)(\.\d+)?$') { + throw "Invalid version '$raw'. Use MAJOR.MINOR.PATCH or MAJOR.MINOR.PATCH.REVISION." + } + $clean = $raw -replace '^v', '' + $parts = $clean.Split('.') + $dotnetVer = "$($parts[0]).$($parts[1]).$($parts[2])" + $msixVer = if ($parts.Count -eq 4) { $clean } else { "$dotnetVer.0" } + "dotnet=$dotnetVer" >> $env:GITHUB_OUTPUT + "msix=$msixVer" >> $env:GITHUB_OUTPUT + + - name: Cache NuGet packages + uses: actions/cache@v5 + with: + path: ~/.nuget/packages + key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', '**/*.csproj', 'dotnet-tools.json') }} + restore-keys: nuget-${{ runner.os }}- + + - name: Build Release executable + run: dotnet build WindowTabs.sln -c Release -p:Version=${{ steps.ver.outputs.dotnet }} + + - name: Smoke test Release executable + shell: powershell + run: ./tests/Run-ReleaseSmoke.ps1 + + - name: Build MSIX package + shell: pwsh + run: ./packaging/msix/Build-Msix.ps1 -Executable WtProgram/bin/Release/WindowTabs.exe -Version ${{ steps.ver.outputs.msix }} -OutputPath "artifacts/WindowTabs-${{ steps.ver.outputs.msix }}.msix" + + - name: Upload MSIX artifact + uses: actions/upload-artifact@v6 + with: + name: WindowTabs-${{ steps.ver.outputs.msix }}-msix + path: artifacts/WindowTabs-${{ steps.ver.outputs.msix }}.msix + if-no-files-found: error diff --git a/packaging/msix/AppxManifest.xml b/packaging/msix/AppxManifest.xml new file mode 100644 index 00000000..61824a7f --- /dev/null +++ b/packaging/msix/AppxManifest.xml @@ -0,0 +1,70 @@ + + + + + + + WindowTabs + leafOfTree + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/msix/Assets/SmallTile.png b/packaging/msix/Assets/SmallTile.png new file mode 100644 index 00000000..877dd1d2 Binary files /dev/null and b/packaging/msix/Assets/SmallTile.png differ diff --git a/packaging/msix/Assets/Square150x150Logo.png b/packaging/msix/Assets/Square150x150Logo.png new file mode 100644 index 00000000..961b785d Binary files /dev/null and b/packaging/msix/Assets/Square150x150Logo.png differ diff --git a/packaging/msix/Assets/Square44x44Logo.png b/packaging/msix/Assets/Square44x44Logo.png new file mode 100644 index 00000000..1f0c3987 Binary files /dev/null and b/packaging/msix/Assets/Square44x44Logo.png differ diff --git a/packaging/msix/Assets/StoreLogo.png b/packaging/msix/Assets/StoreLogo.png new file mode 100644 index 00000000..98a1ac86 Binary files /dev/null and b/packaging/msix/Assets/StoreLogo.png differ diff --git a/packaging/msix/Assets/Wide310x150Logo.png b/packaging/msix/Assets/Wide310x150Logo.png new file mode 100644 index 00000000..7424c2d5 Binary files /dev/null and b/packaging/msix/Assets/Wide310x150Logo.png differ diff --git a/packaging/msix/Build-Msix.ps1 b/packaging/msix/Build-Msix.ps1 new file mode 100644 index 00000000..266b2875 --- /dev/null +++ b/packaging/msix/Build-Msix.ps1 @@ -0,0 +1,70 @@ +[CmdletBinding()] +param( + [Parameter(Mandatory = $true)] + [string]$Executable, + + [Parameter(Mandatory = $true)] + [string]$Version, + + [string]$OutputPath = "" +) + +$ErrorActionPreference = "Stop" + +# MSIX requires a 4-part numeric version: MAJOR.MINOR.BUILD.REVISION (each 0..65535). +$cleanVersion = ($Version -replace '^v', '') -replace '-.*$', '' +$parts = $cleanVersion.Split('.') +if ($parts.Count -eq 3) { + $msixVersion = "$cleanVersion.0" +} elseif ($parts.Count -eq 4) { + $msixVersion = $cleanVersion +} else { + throw "Version '$Version' must be MAJOR.MINOR.PATCH or MAJOR.MINOR.PATCH.REVISION." +} + +$exeFullPath = (Resolve-Path $Executable).Path +$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path +$repoRoot = (Resolve-Path (Join-Path $scriptDir "..\..")).Path + +if ([string]::IsNullOrWhiteSpace($OutputPath)) { + $outDir = Join-Path $repoRoot "artifacts\msix" + New-Item -ItemType Directory -Force -Path $outDir | Out-Null + $OutputPath = Join-Path $outDir "WindowTabs-$msixVersion.msix" +} else { + $outDir = Split-Path -Parent $OutputPath + if ($outDir) { New-Item -ItemType Directory -Force -Path $outDir | Out-Null } +} + +$sdkBinRoot = "${env:ProgramFiles(x86)}\Windows Kits\10\bin" +$makeAppx = Get-ChildItem -Path $sdkBinRoot -Filter "makeappx.exe" -Recurse -ErrorAction SilentlyContinue | + Where-Object { $_.FullName -match '\\x64\\makeappx\.exe$' } | + Sort-Object FullName -Descending | + Select-Object -First 1 + +if (-not $makeAppx) { + throw "makeappx.exe not found under '$sdkBinRoot'. Install the Windows 10/11 SDK." +} + +$stagingDir = Join-Path ([System.IO.Path]::GetTempPath()) ("WindowTabs-MSIX-" + [Guid]::NewGuid().ToString("N")) +New-Item -ItemType Directory -Force -Path $stagingDir | Out-Null + +try { + Copy-Item -Path $exeFullPath -Destination (Join-Path $stagingDir "WindowTabs.exe") + Copy-Item -Path (Join-Path $scriptDir "Assets") -Destination (Join-Path $stagingDir "Assets") -Recurse + + $manifest = Get-Content -Path (Join-Path $scriptDir "AppxManifest.xml") -Raw -Encoding UTF8 + $manifest = $manifest.Replace("__VERSION__", $msixVersion) + [System.IO.File]::WriteAllText((Join-Path $stagingDir "AppxManifest.xml"), $manifest, (New-Object System.Text.UTF8Encoding($false))) + + Write-Host "Packing MSIX ($msixVersion) using $($makeAppx.FullName)..." + & $makeAppx.FullName pack /d $stagingDir /p $OutputPath /o + if ($LASTEXITCODE -ne 0) { + throw "makeappx.exe failed with exit code $LASTEXITCODE" + } + + Write-Host "Created MSIX: $OutputPath" +} finally { + if (Test-Path $stagingDir) { + Remove-Item -Path $stagingDir -Recurse -Force + } +} diff --git a/privacy.html b/privacy.html new file mode 100644 index 00000000..560e5d5c --- /dev/null +++ b/privacy.html @@ -0,0 +1,68 @@ + + + + + +Privacy Policy — WindowTabs + + + + + +
+ + WindowTabs + WindowTabs + +

Privacy Policy

+

Last updated: December 1, 2026

+ +

WindowTabs is a local desktop utility for Windows. We respect your privacy and keep your data on your device.

+ +

Data Collection

+

WindowTabs does not collect, store, or transmit any personal data, analytics, usage telemetry, window titles, or file paths to any external server or third party.

+ +

Network Activity

+

WindowTabs operates entirely offline and will not transfer any information to other networked systems unless specifically requested by you (for example, opening an external link to documentation or issue reporting).

+ +

Local Storage

+

Your preferences, app grouping rules, shortcuts, and saved workspaces are stored locally on your device in WindowTabsSettings.json. You can export, reset, or delete this file at any time from Settings → Support.

+ +

Troubleshooting Reports

+

If you choose to generate a troubleshooting report from Settings → Support, it is created locally for you to review before sharing. Window titles and file paths are omitted from troubleshooting reports.

+ +

Open Source & Contact

+

WindowTabs is open-source software licensed under the MIT License. You can inspect the source code or contact the maintainers via GitHub Issues.

+
+ +