generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gotify-server: Add version2.6.1 (#6)
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"version": "2.6.1", | ||
"description": "A simple server for sending and receiving messages in real-time per WebSocket, with a sleek web UI", | ||
"homepage": "https://gotify.net/", | ||
"license": "MIT", | ||
"notes": "Get gotify default configuration by running: \"$dir\\get_default_config.ps1\"", | ||
"architecture": { | ||
"64bit": { | ||
"url": "https://github.com/gotify/server/releases/download/v2.6.1/gotify-windows-amd64.exe.zip", | ||
"hash": "d43ac2a97f0707c0a04f0a7be95454082d37a297bd9d9eb3a3ccb71b8e681c3c" | ||
}, | ||
"32bit": { | ||
"url": "https://github.com/gotify/server/releases/download/v2.6.1/gotify-windows-386.exe.zip", | ||
"hash": "af7b1978abd44a870e22286da0ba78a85912e7b2e575e6576cd918829c8320f6" | ||
} | ||
}, | ||
"pre_install": [ | ||
"Get-ChildItem \"$dir\\gotify-windows-*\" | Rename-Item -NewName gotify.exe", | ||
"$content = \"Push-Location `\"`$PSScriptRoot`\"; try { & .\\gotify.exe } finally { Pop-Location }\"", | ||
"Set-Content \"$dir\\gotify.ps1\" \"$content\" -Encoding Ascii", | ||
"$configFile = \"$persist_dir\\config.yml\"", | ||
"New-Item -Path \"$configFile\" -ItemType File -ErrorAction SilentlyContinue", | ||
"$configUrl = \"https://raw.githubusercontent.com/gotify/server/master/config.example.yml\"", | ||
"if ((Get-Content -Path \"$configUrl\" -ErrorAction SilentlyContinue | Measure-Object -Line).Lines -eq 0) {", | ||
" try {", | ||
" Invoke-WebRequest -Uri \"$configUrl\" -OutFile \"$configFile\"", | ||
" Write-Output ''", | ||
" info \"Default configuration retrieved successfully.\"", | ||
" } catch {", | ||
" New-Item -Path \"$configFile\" -ItemType File -Force | Out-Null", | ||
" Write-Output ''", | ||
" warn \"Failed to retrieve default configuration. Please take action based on the Notes prompt.\"", | ||
" }", | ||
"}" | ||
], | ||
"post_install": [ | ||
"$configUrl = \"https://raw.githubusercontent.com/gotify/server/master/config.example.yml\"", | ||
"$content = \"Invoke-WebRequest $configUrl -OutFile `\"`$PSScriptRoot\\config.yml`\"\"", | ||
"Set-Content \"$dir\\get_default_config.ps1\" $content -Encoding Ascii" | ||
], | ||
"bin": "gotify.ps1", | ||
"persist": [ | ||
"data", | ||
"config.yml" | ||
], | ||
"checkver": { | ||
"github": "https://github.com/gotify/server/" | ||
}, | ||
"autoupdate": { | ||
"architecture": { | ||
"64bit": { | ||
"url": "https://github.com/gotify/server/releases/download/v$version/gotify-windows-amd64.exe.zip" | ||
}, | ||
"32bit": { | ||
"url": "https://github.com/gotify/server/releases/download/v$version/gotify-windows-386.exe.zip" | ||
} | ||
} | ||
} | ||
} |