1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Packager configuration for Spotlight Dimmer
# Documentation: https://docs.crabnebula.dev/packager/configuration/
# Product Information
= "Spotlight Dimmer"
= "0.6.0"
= "com.thomazmoura.spotlight-dimmer"
= "Thomaz Moura"
= ["Thomaz Moura"]
= "https://github.com/thomazmoura/spotlight-dimmer"
= "LICENSE"
# Short description for package managers
= "A lightweight Windows application that dims inactive displays to highlight the active one."
# Long description for installers
= """
Spotlight Dimmer helps you focus by dimming all displays except the one with your currently active window.
Features:
• Ultra-lightweight: Only ~7.6 MB RAM usage
• Real-time Monitoring: Instantly detects window focus changes
• Click-through Overlays: Dimming doesn't interfere with your workflow
• Native Windows API: No browser engine overhead, instant startup
• Auto-reload Config: Changes detected instantly via file system notifications
Perfect for multi-monitor setups!
"""
# Build configuration
# before_packaging_command = "cargo build --release --bin spotlight-dimmer --bin spotlight-dimmer-config"
# Binaries to package
= [
{ path = "target/release/spotlight-dimmer.exe", main = true },
{ path = "target/release/spotlight-dimmer-config.exe", main = false }
]
# Resources to include in installation
= [
"spotlight-dimmer-icon.ico",
"spotlight-dimmer-icon-paused.ico",
"README.md",
"LICENSE"
]
# Application icon (for installer and Start Menu)
= ["src/icons/icon.ico"]
# Windows-specific configuration
[]
# Allow downgrades for beta versioning
= true
# NSIS Installer Configuration
[]
# Install mode: "currentUser" = No admin required, per-user installation
# "perMachine" = Requires admin, system-wide installation
# "both" = User can choose
= "currentUser"
# Compression algorithm (lzma provides best compression)
= "lzma"
# Installer languages
= ["English"]
# Display language selector before installation
= false
# Installer header image (optional - 150x57px recommended)
# headerImage = "installer-header.bmp"
# Installer sidebar image (optional - 164x314px recommended)
# sidebarImage = "installer-sidebar.bmp"
# Installer icon (sets the icon for the installer .exe itself and MUI_ICON for the wizard)
= "src/icons/icon.ico"
# Custom NSIS template with explicit icon parameters for shortcuts
= "custom-installer-template.nsi"
# Uninstaller configuration
# Automatically handled - creates uninstaller in installation directory
# Adds "Add/Remove Programs" entry for proper Windows integration