diff --git a/bucket/beaver-notes.json b/bucket/beaver-notes.json index b093c787fdb1c1..602199da714cae 100644 --- a/bucket/beaver-notes.json +++ b/bucket/beaver-notes.json @@ -1,22 +1,21 @@ { "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", - "version": "3.7.0", + "version": "3.8.0", "description": "A privacy-focused note-taking application", "homepage": "https://beavernotes.com/", "license": "MIT", "architecture": { "64bit": { - "url": "https://github.com/Beaver-Notes/Beaver-Notes/releases/download/3.7.0/Beaver-notes.3.7.0.portable.exe#/dl.7z", - "hash": "dfc1b8576512f9f13527a62073f6c59cada548b105c3061ff2684c6337b40c8f" + "pre_install": "Expand-7zipArchive -Path \"$dir\\`$PLUGINSDIR\\app-64.7z\" -DestinationPath \"$dir\"" }, "arm64": { - "url": "https://github.com/Beaver-Notes/Beaver-Notes/releases/download/3.7.0/Beaver-notes.3.7.0.portable.arm64.exe#/dl.7z", - "hash": "832e161da398f7bd61e1fd7baed683ff19ad169aee679cff07dfae2af3fb28e9" + "pre_install": "Expand-7zipArchive -Path \"$dir\\`$PLUGINSDIR\\app-arm64.7z\" -DestinationPath \"$dir\"" } }, - "pre_install": [ - "Expand-7zipArchive -Path \"$dir\\`$PLUGINSDIR\\app*.7z\" -DestinationPath \"$dir\"", - "$ScriptBlock = [scriptblock]{Remove-Item -Path \"$dir\\`$*\", \"$dir\\Uninstall*\" -Force -Recurse}", + "url": "https://github.com/Beaver-Notes/Beaver-Notes/releases/download/3.8.0/Beaver-notes-3.8.0-portable.exe#/dl.7z", + "hash": "64b52605d04cfd3a8888fd4b1f12175e88fc9046450fa7fa171d366906ee412b", + "post_install": [ + "$ScriptBlock = [scriptblock]{Remove-Item -Path \"$dir\\`$PLUGINSDIR\" -Force -Recurse}", "Try {$ScriptBlock.Invoke()} Catch {Start-Sleep -Milliseconds 50; $ScriptBlock.Invoke()}" ], "shortcuts": [ @@ -25,7 +24,6 @@ "Beaver Notes" ] ], - "persist": "data", "post_uninstall": [ "if ($purge) {", " $Directories = [string[]](", @@ -42,21 +40,9 @@ "github": "https://github.com/Beaver-Notes/Beaver-Notes" }, "autoupdate": { - "architecture": { - "64bit": { - "url": "https://github.com/Beaver-Notes/Beaver-Notes/releases/download/$version/Beaver-notes.$version.portable.exe#/dl.7z", - "hash": { - "url": "https://github.com/Beaver-Notes/Beaver-Notes/releases/tag/$version", - "regex": "$version.portable.exe.+?\\n.+?($sha256)" - } - }, - "arm64": { - "url": "https://github.com/Beaver-Notes/Beaver-Notes/releases/download/$version/Beaver-notes.$version.portable.arm64.exe#/dl.7z", - "hash": { - "url": "https://github.com/Beaver-Notes/Beaver-Notes/releases/tag/$version", - "regex": "$version.portable.arm64.exe.+?\\n.+?($sha256)" - } - } + "url": "https://github.com/Beaver-Notes/Beaver-Notes/releases/download/$version/Beaver-notes-$version-portable.exe#/dl.7z", + "hash": { + "url": "$baseurl/checksums.sha256" } } }