From 8d5eefaf3f615083258760c3fde38083ab7f9cdd Mon Sep 17 00:00:00 2001 From: Chawye Hsu Date: Sun, 18 Apr 2021 15:39:36 +0800 Subject: [PATCH] adiirc: Add version 4.0 Signed-off-by: Chawye Hsu --- bucket/adiirc.json | 63 ++++++++++++++++++++++++++++++++++++++++++ experiment/adiirc.json | 36 ------------------------ 2 files changed, 63 insertions(+), 36 deletions(-) create mode 100644 bucket/adiirc.json delete mode 100644 experiment/adiirc.json diff --git a/bucket/adiirc.json b/bucket/adiirc.json new file mode 100644 index 00000000000..703905cb7d8 --- /dev/null +++ b/bucket/adiirc.json @@ -0,0 +1,63 @@ +{ + "homepage": "https://www.adiirc.com/", + "description": "AdiIRC is a free Internet Relay Chat (IRC) client.", + "version": "4.0", + "license": "Freeware", + "architecture": { + "64bit": { + "url": "https://www.adiirc.com/AdiIRC64_4.0.zip", + "hash": "5a39d6384f4b45dcebcbb80ebfe53322114f4abffeb8d00d4297abc61ab26f58" + }, + "32bit": { + "url": "https://www.adiirc.com/AdiIRC_4.0.zip", + "hash": "dceb61bc043a8f4d3c574172b64c75c6e0a37b240764f76d695fa4a2c90fe2b9" + } + }, + "installer": { + "script": [ + "function CreateFile([String] $file, [String] $content = $null) {", + " if (!(Test-Path \"$persist_dir\\$file\")) {", + " New-Item -Force -Path \"$persist_dir\\$file\" -ItemType file -Value $content | Out-Null", + " }", + "}", + "CreateFile 'commands.ini'", + "CreateFile 'config.ini'" + ] + }, + "uninstaller": { + "script": [ + "function BackupFile([String] $file) {", + " if (!(Test-Path \"$persist_dir\\$file\")) {", + " Remove-Item \"$persist_dir\\$file\" -Force", + " }", + " Move-Item \"$dir\\$file\" \"$persist_dir\" -Force", + "}", + "BackupFile 'commands.ini'", + "BackupFile 'config.ini'" + ] + }, + "shortcuts": [ + [ + "AdiIRC.exe", + "AdiIRC" + ] + ], + "persist": [ + "commands.ini", + "config.ini" + ], + "checkver": { + "url": "https://www.adiirc.com/download.php", + "regex": "Latest stable:.*?>AdiIRC ([\\d.]+)" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://www.adiirc.com/AdiIRC64_$version.zip" + }, + "32bit": { + "url": "https://www.adiirc.com/AdiIRC_$version.zip" + } + } + } +} diff --git a/experiment/adiirc.json b/experiment/adiirc.json deleted file mode 100644 index b7285cb6b7a..00000000000 --- a/experiment/adiirc.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "homepage": "https://www.adiirc.com/", - "description": "AdiIRC is a free Internet Relay Chat (IRC) client.", - "version": "3.6", - "license": "Freeware", - "architecture": { - "64bit": { - "url": "https://www.adiirc.com/AdiIRC64_3.6.zip", - "hash": "f5f82cccc339db3c245d8dc42a69507afddfb612c49d8da93642e8f380d051e0" - }, - "32bit": { - "url": "https://www.adiirc.com/AdiIRC_3.6.zip", - "hash": "35d926a57c0f2972036017f56816d8a0ba5b3972095c416aac554d44946cd8a2" - } - }, - "shortcuts": [ - [ - "AdiIRC.exe", - "AdiIRC" - ] - ], - "checkver": { - "url": "https://www.adiirc.com/download.php", - "regex": "Latest stable:.*?>AdiIRC ([\\d.]+)" - }, - "autoupdate": { - "architecture": { - "64bit": { - "url": "https://www.adiirc.com/AdiIRC64_$version.zip" - }, - "32bit": { - "url": "https://www.adiirc.com/AdiIRC_$version.zip" - } - } - } -}