Skip to content

Fix version: bump to v1.6 - Fix update installer by removing InstallU… #15

Fix version: bump to v1.6 - Fix update installer by removing InstallU…

Fix version: bump to v1.6 - Fix update installer by removing InstallU… #15

Workflow file for this run

name: Build Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
version:
description: 'Version number (e.g., 0.4)'
required: true
default: '0.4'
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore WindowsEdgeLight/WindowsEdgeLight.csproj
- name: Build x64
run: |
dotnet publish WindowsEdgeLight/WindowsEdgeLight.csproj `
-c Release `
-r win-x64 `
/p:DebugType=None `
/p:DebugSymbols=false `
--self-contained
- name: Build ARM64
run: |
dotnet publish WindowsEdgeLight/WindowsEdgeLight.csproj `
-c Release `
-r win-arm64 `
/p:DebugType=None `
/p:DebugSymbols=false `
--self-contained
- name: Prepare artifacts
run: |
New-Item -ItemType Directory -Path artifacts -Force
$version = "${{ github.ref_name }}" -replace '^v', ''
if ("${{ github.event_name }}" -eq "workflow_dispatch") {
$version = "${{ github.event.inputs.version }}"
}
# Create ZIP files with exe and README (so Updatum treats as portable app)
New-Item -ItemType Directory -Path "temp-x64" -Force
Copy-Item "WindowsEdgeLight/bin/Release/net10.0-windows/win-x64/publish/WindowsEdgeLight.exe" -Destination "temp-x64/"
Copy-Item "README.md" -Destination "temp-x64/"
Compress-Archive -Path "temp-x64/*" -DestinationPath "artifacts/WindowsEdgeLight-v$version-win-x64.zip"
New-Item -ItemType Directory -Path "temp-arm64" -Force
Copy-Item "WindowsEdgeLight/bin/Release/net10.0-windows/win-arm64/publish/WindowsEdgeLight.exe" -Destination "temp-arm64/"
Copy-Item "README.md" -Destination "temp-arm64/"
Compress-Archive -Path "temp-arm64/*" -DestinationPath "artifacts/WindowsEdgeLight-v$version-win-arm64.zip"
Remove-Item "temp-x64" -Recurse -Force
Remove-Item "temp-arm64" -Recurse -Force
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: WindowsEdgeLight-Release
path: artifacts/*.zip
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: artifacts/*.zip
body: |
## Windows Edge Light ${{ github.ref_name }}
A lightweight WPF application that adds a customizable glowing edge light effect around your primary monitor.
### 📦 Downloads
Choose the version for your Windows architecture:
- **WindowsEdgeLight-${{ github.ref_name }}-win-x64.zip** - For Intel/AMD 64-bit Windows
- **WindowsEdgeLight-${{ github.ref_name }}-win-arm64.zip** - For ARM64 Windows (Surface Pro X, etc.)
**What's inside:** Each ZIP contains `WindowsEdgeLight.exe` and `README.md` (self-contained, no .NET required)
### ✨ What's New
- **Automatic Updates**: Built-in update checker notifies you of new versions
- **One-Click Install**: Download and install updates directly from the app
- **Release Notes**: View what's new before updating
### 🚀 Features
- **Global Hotkeys**: Control from any application
- `Ctrl+Shift+L` - Toggle light on/off
- `Ctrl+Shift+↑` - Increase brightness
- `Ctrl+Shift+↓` - Decrease brightness
- **System Tray Icon**: Right-click for menu with all options
- **Primary Monitor Display**: Automatically detects and fits your main screen
- **DPI Aware**: Works perfectly on 4K displays
- **Click-Through**: Won't interfere with your work
Created by Scott Hanselman
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}