From 4867a2bddd26787943db72bc5bd14c4ac714f565 Mon Sep 17 00:00:00 2001 From: Zeldris <0trims.vehicle@icloud.com> Date: Thu, 2 Oct 2025 16:26:58 +0700 Subject: [PATCH 1/2] proton-drive: Add version 1.11.4 --- bucket/proton-drive.json | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 bucket/proton-drive.json diff --git a/bucket/proton-drive.json b/bucket/proton-drive.json new file mode 100644 index 00000000000000..5ed288d160697c --- /dev/null +++ b/bucket/proton-drive.json @@ -0,0 +1,45 @@ +{ + "version": "1.11.4", + "description": "Free end-to-end encrypted cloud storage made by Proton AG", + "homepage": "https://proton.me/drive", + "license": "GPL-3.0", + "architecture": { + "64bit": { + "url": "https://proton.me/download/drive/windows/1.11.4/x64/Proton%20Drive%20Setup%201.11.4.exe", + "hash": "e00c0668839cf3c1d8d1ac508526275fc55557aa197cf3690fa4db6e9dec8961" + }, + "arm64": { + "url": "https://proton.me/download/drive/windows/1.11.4/arm64/Proton%20Drive%20Setup%201.11.4.exe", + "hash": "37e1a00375a809599a32d2f63aa8872648fbed2273b273824ca10e1026c20bb3" + } + }, + "installer": { + "script": [ + "Expand-DarkArchive \"$dir\\$fname\" \"$dir\\_tmp\"", + "$msi_file = Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\" | Select-Object -First 1", + "Expand-MsiArchive $msi_file \"$dir\\_tmp\"", + "movedir \"$dir\\_tmp\\PFiles64\\Proton\\Drive\" \"$dir\" | Out-Null", + "Remove-Item \"$dir\\_tmp\", \"$dir\\$fname\" -Force -Recurse" + ] + }, + "shortcuts": [ + [ + "ProtonDrive.exe", + "Proton Drive" + ] + ], + "checkver": { + "url": "https://proton.me/download/drive/windows/version.json", + "regex": "\"Version\"\\s*:\\s*\"([\\d.]+)\"" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://proton.me/download/drive/windows/$version/x64/Proton%20Drive%20Setup%20$version.exe" + }, + "arm64": { + "url": "https://proton.me/download/drive/windows/$version/arm64/Proton%20Drive%20Setup%20$version.exe" + } + } + } +} From 73dbd39b22c34bd057247695f43850e0338204c0 Mon Sep 17 00:00:00 2001 From: Zeldris <0trims.vehicle@icloud.com> Date: Tue, 21 Oct 2025 13:33:54 +0700 Subject: [PATCH 2/2] proton-drive: simplify install, use jsonpath --- bucket/proton-drive.json | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/bucket/proton-drive.json b/bucket/proton-drive.json index 5ed288d160697c..a9e9c70503a310 100644 --- a/bucket/proton-drive.json +++ b/bucket/proton-drive.json @@ -13,15 +13,12 @@ "hash": "37e1a00375a809599a32d2f63aa8872648fbed2273b273824ca10e1026c20bb3" } }, - "installer": { - "script": [ - "Expand-DarkArchive \"$dir\\$fname\" \"$dir\\_tmp\"", - "$msi_file = Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\" | Select-Object -First 1", - "Expand-MsiArchive $msi_file \"$dir\\_tmp\"", - "movedir \"$dir\\_tmp\\PFiles64\\Proton\\Drive\" \"$dir\" | Out-Null", - "Remove-Item \"$dir\\_tmp\", \"$dir\\$fname\" -Force -Recurse" - ] - }, + "pre_install": [ + "Expand-DarkArchive \"$dir\\$fname\" \"$dir\\tmp\" -Removal", + "$msi = Get-ChildItem \"$dir\\tmp\\AttachedContainer\\*.msi\" | Select-Object -First 1", + "Expand-MsiArchive $msi -ExtractDir 'PFiles64\\Proton\\Drive' -DestinationPath \"$dir\"" + ], + "post_install": "Remove-Item \"$dir\\tmp\" -Recurse -Force", "shortcuts": [ [ "ProtonDrive.exe", @@ -30,7 +27,7 @@ ], "checkver": { "url": "https://proton.me/download/drive/windows/version.json", - "regex": "\"Version\"\\s*:\\s*\"([\\d.]+)\"" + "jsonpath": "$.Releases[0].Version" }, "autoupdate": { "architecture": {