From 24f08304004fa607d54b939199d175730bc62c95 Mon Sep 17 00:00:00 2001 From: HUMORCE Date: Wed, 21 Jun 2023 05:01:02 +0000 Subject: [PATCH] cygwin@2.926: Fix un|installtion (Close #4899) --- bucket/cygwin.json | 63 ++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/bucket/cygwin.json b/bucket/cygwin.json index dfa5b4895a..f8b8c49ad1 100644 --- a/bucket/cygwin.json +++ b/bucket/cygwin.json @@ -6,7 +6,7 @@ "identifier": "GPL-3.0-or-later,X11,Public Domain", "url": "https://cygwin.com/faq.html#faq.what.free" }, - "notes": "To start a Cygwin shell, type \"cygwin\"", + "notes": "To start a Cygwin shell, type \"cygwin\".", "architecture": { "64bit": { "url": "https://cygwin.com/setup-x86_64.exe#/cygwin-setup.exe", @@ -17,19 +17,19 @@ "hash": "1738561e93ce1ce7c69553cf63096b8a1798ec6b46c64f798f747ba3e7e72982" } }, - "checkver": { - "regex": ">release_([\\d.]+)<", - "url": "https://cygwin.com/git/?p=cygwin-apps/setup.git;a=tags" - }, - "autoupdate": { - "architecture": { - "64bit": { - "url": "https://cygwin.com/setup-x86_64.exe#/cygwin-setup.exe" - }, - "32bit": { - "url": "https://cygwin.com/setup-x86.exe#/cygwin-setup.exe" - } - } + "installer": { + "args": [ + "--no-admin", + "--no-shortcuts", + "--quiet-mode", + "--local-package-dir", + "$dir\\packages", + "--root", + "$dir\\root", + "--site", + "https://mirrors.kernel.org/sourceware/cygwin/" + ], + "keep": true }, "bin": [ [ @@ -38,21 +38,6 @@ "--login -i" ] ], - "installer": { - "args": [ - "--no-admin", - "--no-shortcuts", - "--quiet-mode", - "--local-package-dir", - "$persist_dir\\packages", - "--root", - "$persist_dir\\root", - "--site", - "https://mirrors.kernel.org/sourceware/cygwin/" - ], - "keep": true - }, - "pre_install": "persist_data @{persist = @('packages', 'root')} $original_dir $persist_dir", "shortcuts": [ [ "root\\Cygwin.bat", @@ -71,5 +56,23 @@ "-i \"$dir\\root\\Cygwin-Terminal.ico\" -", "root\\Cygwin-Terminal.ico" ] - ] + ], + "persist": [ + "packages", + "root" + ], + "checkver": { + "url": "https://cygwin.com/git/?p=cygwin-apps/setup.git;a=tags", + "regex": ">release_([\\d.]+)<" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://cygwin.com/setup-x86_64.exe#/cygwin-setup.exe" + }, + "32bit": { + "url": "https://cygwin.com/setup-x86.exe#/cygwin-setup.exe" + } + } + } }