From 734267fbbd52cc8f60b0f3fbc963a4ba639907d9 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Wed, 12 Feb 2025 17:36:54 +0800 Subject: [PATCH 1/3] anythingllm: Add version 1.7.3-r2 --- bucket/anythingllm.json | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 bucket/anythingllm.json diff --git a/bucket/anythingllm.json b/bucket/anythingllm.json new file mode 100644 index 00000000000000..9ef434a84ed155 --- /dev/null +++ b/bucket/anythingllm.json @@ -0,0 +1,50 @@ +{ + "version": "1.7.3-r2", + "description": "The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, and more.", + "homepage": "https://anythingllm.com", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://github.com/Mintplex-Labs/anything-llm/releases/download/v1.4.0/AnythingLLMDesktop.exe#/dl.7z", + "hash": "00b3a2f690e2da918cf7bdfe604e5f3499b70044af07d36c986ad6944951f41a", + "pre_install": [ + "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"", + "Remove-Item \"$dir\\`$*\", \"$dir\\Unintall*\" -Recurse" + ] + }, + "arm64": { + "url": "https://github.com/Mintplex-Labs/anything-llm/releases/download/v1.4.0/AnythingLLMDesktop-Arm64.exe#/dl.7z", + "hash": "b21b7b5fcad87110e9bd880946ad69daf4601ede4ce8c24874147e19db0ee8df", + "pre_install": [ + "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-arm64.7z\" \"$dir\"", + "Remove-Item \"$dir\\`$*\", \"$dir\\Unintall*\" -Recurse" + ] + } + }, + "shortcuts": [ + [ + "AnythingLLM.exe", + "AnythingLLM" + ] + ], + "checkver": { + "url": "https://github.com/Mintplex-Labs/anything-llm/releases/latest", + "script": [ + "$release = (Invoke-WebRequest -Uri $url -UseBasicParsing -Method Head).BaseResponse.RequestMessage.RequestUri.Segments[-1]", + "$version_txt = 'https://github.com/Mintplex-Labs/anything-llm/releases/download/' + $release + '/version.txt'", + "$version = (Invoke-RestMethod -Uri $version_txt -UseBasicParsing).Trim()", + "Write-Output $version $release" + ], + "regex": "(\\S+) (?\\S+)" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/Mintplex-Labs/anything-llm/releases/download/$matchRelease/AnythingLLMDesktop.exe#/dl.7z" + }, + "arm64": { + "url": "https://github.com/Mintplex-Labs/anything-llm/releases/download/$matchRelease/AnythingLLMDesktop-Arm64.exe#/dl.7z" + } + } + } +} From 656ea2140f3fec200512fb98fd7a100dadb7e072 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Wed, 12 Feb 2025 17:52:43 +0800 Subject: [PATCH 2/3] Fix hash --- bucket/anythingllm.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/anythingllm.json b/bucket/anythingllm.json index 9ef434a84ed155..338a9dbcb093b8 100644 --- a/bucket/anythingllm.json +++ b/bucket/anythingllm.json @@ -6,7 +6,7 @@ "architecture": { "64bit": { "url": "https://github.com/Mintplex-Labs/anything-llm/releases/download/v1.4.0/AnythingLLMDesktop.exe#/dl.7z", - "hash": "00b3a2f690e2da918cf7bdfe604e5f3499b70044af07d36c986ad6944951f41a", + "hash": "265b89855c776cc713ed2bc9bc878486a118460a11a60bea0e3f2aa76c07f9c2", "pre_install": [ "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"", "Remove-Item \"$dir\\`$*\", \"$dir\\Unintall*\" -Recurse" From 69958ac982fdcd93da502639e2ebce54d5b5aeac Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Wed, 12 Feb 2025 18:05:54 +0800 Subject: [PATCH 3/3] Fix checkver error in Windows PowerShell --- bucket/anythingllm.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bucket/anythingllm.json b/bucket/anythingllm.json index 338a9dbcb093b8..d0f90b52789380 100644 --- a/bucket/anythingllm.json +++ b/bucket/anythingllm.json @@ -30,7 +30,12 @@ "checkver": { "url": "https://github.com/Mintplex-Labs/anything-llm/releases/latest", "script": [ - "$release = (Invoke-WebRequest -Uri $url -UseBasicParsing -Method Head).BaseResponse.RequestMessage.RequestUri.Segments[-1]", + "$response = (Invoke-WebRequest -Uri $url -UseBasicParsing -Method Head).BaseResponse", + "$release = if ($response.RequestMessage) {", + " $response.RequestMessage.RequestUri.Segments[-1]", + "} else {", + " $response.ResponseUri.Segments[-1]", + "}", "$version_txt = 'https://github.com/Mintplex-Labs/anything-llm/releases/download/' + $release + '/version.txt'", "$version = (Invoke-RestMethod -Uri $version_txt -UseBasicParsing).Trim()", "Write-Output $version $release"