Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/msix.yml
Original file line number Diff line number Diff line change
@@ -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
70 changes: 70 additions & 0 deletions packaging/msix/AppxManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap uap5 desktop rescap">

<Identity
Name="leafOfTree.WindowTabs"
Publisher="CN=67AEF516-673F-4BFF-AE21-C14CCF9B49E4"
Version="__VERSION__"
ProcessorArchitecture="x64" />

<Properties>
<DisplayName>WindowTabs</DisplayName>
<PublisherDisplayName>leafOfTree</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>

<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.26100.0" />
</Dependencies>

<Resources>
<Resource Language="en-US" />
</Resources>

<Applications>
<Application
Id="WindowTabs"
Executable="WindowTabs.exe"
EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements
DisplayName="WindowTabs"
Description="Browser-style tabs, split view, and workspaces for any Windows desktop app."
BackgroundColor="transparent"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile
Wide310x150Logo="Assets\Wide310x150Logo.png"
Square71x71Logo="Assets\SmallTile.png" />
</uap:VisualElements>
<Extensions>
<uap5:Extension
Category="windows.appExecutionAlias"
Executable="WindowTabs.exe"
EntryPoint="Windows.FullTrustApplication">
<uap5:AppExecutionAlias>
<uap5:ExecutionAlias Alias="WindowTabs.exe" />
</uap5:AppExecutionAlias>
</uap5:Extension>
<desktop:Extension
Category="windows.startupTask"
Executable="WindowTabs.exe"
EntryPoint="Windows.FullTrustApplication">
<desktop:StartupTask
TaskId="WindowTabsStartup"
Enabled="false"
DisplayName="WindowTabs" />
</desktop:Extension>
</Extensions>
</Application>
</Applications>

<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>
Binary file added packaging/msix/Assets/SmallTile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packaging/msix/Assets/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packaging/msix/Assets/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packaging/msix/Assets/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packaging/msix/Assets/Wide310x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions packaging/msix/Build-Msix.ps1
Original file line number Diff line number Diff line change
@@ -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
}
}
68 changes: 68 additions & 0 deletions privacy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Privacy Policy — WindowTabs</title>
<meta name="description" content="Privacy policy for WindowTabs.">
<link rel="icon" href="assets/site/logo.svg">
<style>
* { box-sizing: border-box; }
body {
margin: 0;
background: #141414;
color: #f5f5f5;
font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
main {
max-width: 720px;
margin: 0 auto;
padding: 56px 24px 72px;
}
.brand {
display: inline-flex;
align-items: center;
gap: 10px;
color: #f5f5f5;
text-decoration: none;
font-weight: 600;
font-size: 18px;
margin-bottom: 32px;
}
.brand img { width: 28px; height: 28px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 19px; margin: 32px 0 10px; color: #e5e5e5; }
p, li { color: #bdbdbd; }
ul { padding-left: 20px; }
a { color: #70b7ee; }
.updated { color: #8c8c8c; font-size: 14px; margin-bottom: 28px; }
</style>
</head>
<body>
<main>
<a class="brand" href="./">
<img src="assets/site/logo.svg" alt="WindowTabs">
<span>WindowTabs</span>
</a>
<h1>Privacy Policy</h1>
<p class="updated">Last updated: December 1, 2026</p>

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

<h2>Data Collection</h2>
<p>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.</p>

<h2>Network Activity</h2>
<p>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).</p>

<h2>Local Storage</h2>
<p>Your preferences, app grouping rules, shortcuts, and saved workspaces are stored locally on your device in <code>WindowTabsSettings.json</code>. You can export, reset, or delete this file at any time from Settings &rarr; Support.</p>

<h2>Troubleshooting Reports</h2>
<p>If you choose to generate a troubleshooting report from Settings &rarr; Support, it is created locally for you to review before sharing. Window titles and file paths are omitted from troubleshooting reports.</p>

<h2>Open Source &amp; Contact</h2>
<p>WindowTabs is open-source software licensed under the MIT License. You can inspect the source code or contact the maintainers via <a href="https://github.com/leafOfTree/WindowTabs/issues">GitHub Issues</a>.</p>
</main>
</body>
</html>