From b2b8b70361305a645e36b3f487082a6d6389ab09 Mon Sep 17 00:00:00 2001 From: AkariiinMKII Date: Wed, 18 May 2022 23:04:29 +0800 Subject: [PATCH 1/5] Create cleanmywechat.json --- bucket/cleanmywechat.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 bucket/cleanmywechat.json diff --git a/bucket/cleanmywechat.json b/bucket/cleanmywechat.json new file mode 100644 index 00000000000..dd26e6151e5 --- /dev/null +++ b/bucket/cleanmywechat.json @@ -0,0 +1,19 @@ +{ + "homepage": "https://github.com/blackboxo/CleanMyWechat", + "description": "A cleaning tool for Wechat files", + "version": "2.0", + "license": "No license", + "url": "https://github.com/blackboxo/CleanMyWechat/releases/download/v2.0/CleanMyWechat.zip", + "hash": "422698F788A8E4C886F09939AE6E3BCA9CD20681A7B9982CA659EFC46C6E0C48", + "persist": "config.json", + "shortcuts": [ + [ + "start.exe", + "CleanMyWechat" + ] + ], + "checkver":"github", + "autoupdate": { + "url": "https://github.com/blackboxo/CleanMyWechat/releases/download/v$version/CleanMyWechat.zip" + } +} From 89cfc3dc6b00f882a697cf3598b8bc1eeab046a7 Mon Sep 17 00:00:00 2001 From: AkariiinMKII Date: Thu, 19 May 2022 23:21:22 +0800 Subject: [PATCH 2/5] Update cleanmywechat.json --- bucket/cleanmywechat.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bucket/cleanmywechat.json b/bucket/cleanmywechat.json index dd26e6151e5..01788d5d157 100644 --- a/bucket/cleanmywechat.json +++ b/bucket/cleanmywechat.json @@ -5,6 +5,12 @@ "license": "No license", "url": "https://github.com/blackboxo/CleanMyWechat/releases/download/v2.0/CleanMyWechat.zip", "hash": "422698F788A8E4C886F09939AE6E3BCA9CD20681A7B9982CA659EFC46C6E0C48", + "extract_dir": "CleanMyWechat", + "pre_install":[ + "if (!(Test-Path $persist_dir\\config.json)) {", + " New-Item -Path $persist_dir\\config.json -Value $NULL -ItemType File -Force | Out-Null", + "}" + ], "persist": "config.json", "shortcuts": [ [ From b7a1182e133240b3b948c0b9a233f6875d20eb02 Mon Sep 17 00:00:00 2001 From: AkariiinMKII Date: Sat, 21 May 2022 01:50:10 +0800 Subject: [PATCH 3/5] Update cleanmywechat.json --- bucket/cleanmywechat.json | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/bucket/cleanmywechat.json b/bucket/cleanmywechat.json index 01788d5d157..9b97b064201 100644 --- a/bucket/cleanmywechat.json +++ b/bucket/cleanmywechat.json @@ -2,9 +2,13 @@ "homepage": "https://github.com/blackboxo/CleanMyWechat", "description": "A cleaning tool for Wechat files", "version": "2.0", - "license": "No license", - "url": "https://github.com/blackboxo/CleanMyWechat/releases/download/v2.0/CleanMyWechat.zip", - "hash": "422698F788A8E4C886F09939AE6E3BCA9CD20681A7B9982CA659EFC46C6E0C48", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://github.com/blackboxo/CleanMyWechat/releases/download/v2.0/CleanMyWechat.zip", + "hash": "422698F788A8E4C886F09939AE6E3BCA9CD20681A7B9982CA659EFC46C6E0C48" + } + }, "extract_dir": "CleanMyWechat", "pre_install":[ "if (!(Test-Path $persist_dir\\config.json)) {", @@ -20,6 +24,10 @@ ], "checkver":"github", "autoupdate": { - "url": "https://github.com/blackboxo/CleanMyWechat/releases/download/v$version/CleanMyWechat.zip" + "architecture": { + "64bit": { + "url": "https://github.com/blackboxo/CleanMyWechat/releases/download/v$version/CleanMyWechat.zip" + } + } } } From 822e607693f230d555c3653ce183f1a587a0b6c8 Mon Sep 17 00:00:00 2001 From: AkariiinMKII Date: Sat, 21 May 2022 01:51:09 +0800 Subject: [PATCH 4/5] Update cleanmywechat.json --- bucket/cleanmywechat.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/cleanmywechat.json b/bucket/cleanmywechat.json index 9b97b064201..eb86238fb07 100644 --- a/bucket/cleanmywechat.json +++ b/bucket/cleanmywechat.json @@ -27,7 +27,7 @@ "architecture": { "64bit": { "url": "https://github.com/blackboxo/CleanMyWechat/releases/download/v$version/CleanMyWechat.zip" - } } + } } } From d7dadcf271f73c8a25bada2c31a076581ffd1db6 Mon Sep 17 00:00:00 2001 From: AkariiinMKII Date: Sat, 28 May 2022 01:24:21 +0800 Subject: [PATCH 5/5] Update cleanmywechat.json --- bucket/cleanmywechat.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/bucket/cleanmywechat.json b/bucket/cleanmywechat.json index eb86238fb07..e9f8806a504 100644 --- a/bucket/cleanmywechat.json +++ b/bucket/cleanmywechat.json @@ -10,18 +10,24 @@ } }, "extract_dir": "CleanMyWechat", - "pre_install":[ - "if (!(Test-Path $persist_dir\\config.json)) {", - " New-Item -Path $persist_dir\\config.json -Value $NULL -ItemType File -Force | Out-Null", - "}" - ], - "persist": "config.json", + "installer": { + "script": [ + "ensure $persist_dir", + "Get-ChildItem -Path \"$persist_dir\" -Filter \"config.json\" -File | Move-Item -Destination \"$dir\" -Force" + ] + }, "shortcuts": [ [ "start.exe", "CleanMyWechat" ] ], + "uninstaller": { + "script": [ + "Get-ChildItem -Path \"$persist_dir\" -Filter \"config.json\" | Remove-Item -Force", + "Get-ChildItem -Path \"$dir\" -Filter \"config.json\" -File | Move-Item -Destination \"$persist_dir\" -Force" + ] + }, "checkver":"github", "autoupdate": { "architecture": {