Add desktop shortcut and Windows exe packaging
Operators can double-click XlsxClean without using the terminal: Windows VBS/BAT launchers plus Install-DesktopShortcut, Linux .desktop installer, and a PyInstaller spec/build script for a standalone Windows exe. Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
This commit is contained in:
23
desktop/Install-DesktopShortcut.ps1
Normal file
23
desktop/Install-DesktopShortcut.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
# Creates %USERPROFILE%\Desktop\XlsxClean.lnk -> desktop\XlsxClean.vbs
|
||||
$ErrorActionPreference = "Stop"
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
$target = Join-Path $PSScriptRoot "XlsxClean.vbs"
|
||||
$desktop = [Environment]::GetFolderPath("Desktop")
|
||||
$shortcutPath = Join-Path $desktop "XlsxClean.lnk"
|
||||
|
||||
if (-not (Test-Path $target)) {
|
||||
throw "Launcher not found: $target"
|
||||
}
|
||||
|
||||
$wsh = New-Object -ComObject WScript.Shell
|
||||
$shortcut = $wsh.CreateShortcut($shortcutPath)
|
||||
$shortcut.TargetPath = $target
|
||||
$shortcut.WorkingDirectory = $repoRoot
|
||||
$shortcut.WindowStyle = 7
|
||||
$shortcut.Description = "Open xlsx-clean web UI"
|
||||
$iconCandidate = Join-Path $PSScriptRoot "xlsx-clean.ico"
|
||||
if (Test-Path $iconCandidate) {
|
||||
$shortcut.IconLocation = $iconCandidate
|
||||
}
|
||||
$shortcut.Save()
|
||||
Write-Host "Created $shortcutPath"
|
||||
Reference in New Issue
Block a user