Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update adds glazewm-np.json #374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
136 changes: 136 additions & 0 deletions bucket/glazewm-np.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"version": "3.7.0",
"description": "A tiling window manager for Windows inspired by i3 and Polybar (nonportable installation).",
"homepage": "https://github.com/glzr-io/glazewm",
"license": "GPL-3.0-only",
"architecture": {
"64bit": {
"url": "https://github.com/glzr-io/glazewm/releases/download/v3.7.0/standalone-glazewm-v3.7.0-x64.msi",
"hash": "733C09B3D19BF68FD5A522EE8F068F48CADE8EC7422A4AA8A0D18B2BEEBE3494",
"installer": {
"script": [
"if (!(is_admin)) {",
" Start-Process powershell -ArgumentList \"-ExecutionPolicy Bypass -Command & { scoop install $global:scoop_local_bucket/glazewm-np }\" -Verb RunAs;",
" break;",
"}",
"$programFilesPath = [System.Environment]::GetFolderPath('ProgramFiles');",
"$destinationPath = Join-Path $programFilesPath 'glzr.io\\GlazeWM';",
"$sourcePath = \"$dir\\PFiles64\\glzr.io\\GlazeWM\";",
"Start-Process msiexec -ArgumentList @('/i', \"$dir\\$fname\", '/quiet', '/norestart') -Wait -Verb RunAs",
"if (!(Test-Path $sourcePath)) { throw \"Source path not found: $sourcePath\" }",
"if (!(Test-Path $destinationPath)) { New-Item -ItemType Directory -Force -Path $destinationPath }",
"Copy-Item -Recurse -Force \"$sourcePath\\*\" \"$destinationPath\"",
"Copy-Item -Force \"$dir\\$fname\" \"$destinationPath\\glazewm.msi\"",
"if (!(Test-Path \"$destinationPath\\glazewm.exe\")) { throw \"Installation failed. glazewm.exe not found in $destinationPath\" }",
"Write-Host \"Installation successful. Files located in: $destinationPath\";",
"",
"Write-Host 'Creating shortcut for GlazeWM...';",
"$startMenuPath = Join-Path ([Environment]::GetFolderPath('StartMenu')) 'Programs';",
"$shortcutPath = Join-Path $startMenuPath 'GlazeWM.lnk';",
"$shell = New-Object -ComObject WScript.Shell;",
"$shortcut = $shell.CreateShortcut($shortcutPath);",
"$shortcut.TargetPath = \"$destinationPath\\glazewm.exe\";",
"$shortcut.WorkingDirectory = \"$destinationPath\";",
"$shortcut.IconLocation = \"$destinationPath\\glazewm.exe\";",
"$shortcut.Save();",
"Write-Host \"Shortcut created in Start Menu: $shortcutPath\";",
"",
"Write-Host 'Refreshing Windows Search Index...';",
"Start-Sleep -Seconds 2;",
"Stop-Service 'WSearch' -Force;",
"Start-Sleep -Seconds 3;",
"Start-Service 'WSearch';",
"Write-Host 'Windows Search Index refreshed successfully.';"
]
}
},
"arm64": {
"url": "https://github.com/glzr-io/glazewm/releases/download/v3.7.0/standalone-glazewm-v3.7.0-arm64.msi",
"hash": "C1C91D4E29863A9454C336101D57042A97613138F6403B1F718D018AD52BF517",
"installer": {
"script": [
"if (!(is_admin)) {",
" Start-Process powershell -ArgumentList \"-ExecutionPolicy Bypass -Command & { scoop install $global:scoop_local_bucket/glazewm-np }\" -Verb RunAs;",
" break;",
"}",
"$programFilesPath = [System.Environment]::GetFolderPath('ProgramFiles');",
"$destinationPath = Join-Path $programFilesPath 'glzr.io\\GlazeWM';",
"$sourcePath = \"$dir\\PFiles64\\glzr.io\\GlazeWM\";",
"Start-Process msiexec -ArgumentList @('/i', \"$dir\\$fname\", '/quiet', '/norestart') -Wait -Verb RunAs",
"if (!(Test-Path $sourcePath)) { throw \"Source path not found: $sourcePath\" }",
"if (!(Test-Path $destinationPath)) { New-Item -ItemType Directory -Force -Path $destinationPath }",
"Copy-Item -Recurse -Force \"$sourcePath\\*\" \"$destinationPath\"",
"Copy-Item -Force \"$dir\\$fname\" \"$destinationPath\\glazewm.msi\"",
"if (!(Test-Path \"$destinationPath\\glazewm.exe\")) { throw \"Installation failed. glazewm.exe not found in $destinationPath\" }",
"Write-Host \"Installation successful. Files located in: $destinationPath\";",
"",
"Write-Host 'Creating shortcut for GlazeWM...';",
"$startMenuPath = Join-Path ([Environment]::GetFolderPath('StartMenu')) 'Programs';",
"$shortcutPath = Join-Path $startMenuPath 'GlazeWM.lnk';",
"$shell = New-Object -ComObject WScript.Shell;",
"$shortcut = $shell.CreateShortcut($shortcutPath);",
"$shortcut.TargetPath = \"$destinationPath\\glazewm.exe\";",
"$shortcut.WorkingDirectory = \"$destinationPath\";",
"$shortcut.IconLocation = \"$destinationPath\\glazewm.exe\";",
"$shortcut.Save();",
"Write-Host \"Shortcut created in Start Menu: $shortcutPath\";",
"",
"Write-Host 'Refreshing Windows Search Index...';",
"Start-Sleep -Seconds 2;",
"Stop-Service 'WSearch' -Force;",
"Start-Sleep -Seconds 3;",
"Start-Service 'WSearch';",
"Write-Host 'Windows Search Index refreshed successfully.';"
]
}
}
},
"uninstaller": {
"script": [
"if (!(is_admin)) {",
" Start-Process powershell -ArgumentList \"-ExecutionPolicy Bypass -Command & { scoop uninstall glazewm-np }\" -Verb RunAs;",
" break;",
"}",
"$programFilesPath = [System.Environment]::GetFolderPath('ProgramFiles');",
"$destinationPath = Join-Path $programFilesPath 'glzr.io\\GlazeWM';",
"try {",
" $productCode = (Get-WmiObject -Query \"SELECT IdentifyingNumber FROM Win32_Product WHERE Name = 'GlazeWM'\").IdentifyingNumber;",
" if ($productCode) {",
" Start-Process msiexec -ArgumentList @('/x', $productCode, '/quiet', '/norestart') -Wait -Verb RunAs;",
" if (!(Test-Path $destinationPath)) {",
" Write-Host 'GlazeWM uninstalled successfully.';",
" } else {",
" throw 'MSI uninstallation failed. Proceeding with manual cleanup.';",
" }",
" } else {",
" throw 'ProductCode not found for GlazeWM.';",
" }",
"} catch {",
" Remove-Item -Recurse -Force $destinationPath;",
" if (!(Test-Path $destinationPath)) {",
" Write-Host 'GlazeWM uninstalled successfully (manual cleanup).';",
" } else {",
" throw 'Uninstallation failed. Directory still exists.';",
" }",
"}"
]
},
"shortcuts": [
[
"%ProgramFiles%\\glzr.io\\GlazeWM\\glazewm.exe",
"GlazeWM",
"%AppData%\\Microsoft\\Windows\\Start Menu\\Programs\\GlazeWM.lnk"
]
],
"checkver": "github",
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/glzr-io/glazewm/releases/download/v$version/standalone-glazewm-v$version-x64.msi"
},
"arm64": {
"url": "https://github.com/glzr-io/glazewm/releases/download/v$version/standalone-glazewm-v$version-arm64.msi"
}
}
}
}