Skip to content

Commit

Permalink
gotify-server: Add version2.6.1 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbwfu authored Dec 6, 2024
1 parent 35f6a61 commit 62ad5df
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions bucket/gotify-server.json
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"
}
}
}
}

0 comments on commit 62ad5df

Please sign in to comment.