From f6f9e28624f65533e8f648934ac95150860c0616 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Sun, 24 Mar 2019 22:12:59 +0800 Subject: [PATCH] mailsend-go: Add v1.0.3 and mod mailsend (#3258) * mailsend-go: Add v1.0.3 and mod mailsend * change mailsend hash url Co-Authored-By: niheaven * add notes --- mailsend-go.json | 38 ++++++++++++++++++++++++++++++++++++++ mailsend.json | 24 ++++++++++++------------ 2 files changed, 50 insertions(+), 12 deletions(-) create mode 100644 mailsend-go.json diff --git a/mailsend-go.json b/mailsend-go.json new file mode 100644 index 0000000000..839725a7cc --- /dev/null +++ b/mailsend-go.json @@ -0,0 +1,38 @@ +{ + "homepage": "https://github.com/muquit/mailsend-go", + "version": "1.0.3", + "description": "A multi-platform command line tool to send mail via SMTP protocol.", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://github.com/muquit/mailsend-go/releases/download/v1.0.3/mailsend-go_1.0.3_windows_64-bit.zip", + "hash": "fc3e0ea437bfe3b2de8bec57bf19d60587b86195d159d1a82f7473d86c2ad640" + }, + "32bit": { + "url": "https://github.com/muquit/mailsend-go/releases/download/v1.0.3/mailsend-go_1.0.3_windows_32-bit.zip", + "hash": "359db90c21fa3e9835243f6c9ce09d4eaae636ef2ff9e047e39e3345d0d8a26f" + } + }, + "extract_dir": "mailsend-go-dir", + "bin": [ + "mailsend-go.exe", + [ + "mailsend-go.exe", + "mailsend" + ] + ], + "checkver": "github", + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/muquit/mailsend-go/releases/download/v$version/mailsend-go_$version_windows_64-bit.zip" + }, + "32bit": { + "url": "https://github.com/muquit/mailsend-go/releases/download/v$version/mailsend-go_$version_windows_32-bit.zip" + } + }, + "hash": { + "url": "$baseurl/mailsend-go_$version_checksums.txt" + } + } +} diff --git a/mailsend.json b/mailsend.json index a45203e6af..8d8162a4e4 100644 --- a/mailsend.json +++ b/mailsend.json @@ -1,19 +1,19 @@ { + "homepage": "https://github.com/muquit/mailsend", "version": "1.19", + "description": "A program to send mail via SMTP from command line.", "license": "BSD-3-Clause", "url": "https://github.com/muquit/mailsend/releases/download/1.19/mailsend1.19.exe.zip", - "homepage": "https://github.com/muquit/mailsend", - "checkver": { - "github": "https://github.com/muquit/mailsend" - }, + "hash": "sha1:9f25e39200089d8c281949323eadb7ab18352dff", + "pre_install": "Rename-Item \"$dir\\mailsend$version.exe\" \"$dir\\mailsend.exe\"", + "bin": "mailsend.exe", + "checkver": "github", "autoupdate": { - "url": "https://github.com/muquit/mailsend/releases/download/$version/mailsend$version.exe.zip" + "url": "https://github.com/muquit/mailsend/releases/download/$version/mailsend$version.exe.zip", + "hash": { + "url": "https://github.com/muquit/mailsend/releases/tag/$version", + "regex": "SHA1\\($basename\\).*$sha1" + } }, - "hash": "87db23b8c9588353d12e19e953dddb17ed04b422f41bcfbaa8ad4e27057245b4", - "bin": [ - [ - "mailsend1.19.exe", - "mailsend" - ] - ] + "notes": "Depricated, please use 'mailsend-go' instead." }