From e4a18bf6634348d63bb0eff622177f1c3c3a169c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20R=C3=B8nnestad=20Birkeland?= <6450056+o-l-a-v@users.noreply.github.com> Date: Fri, 16 Aug 2024 09:02:04 +0200 Subject: [PATCH 1/3] Added paint.net-prerelease --- bucket/paint.net-prerelease.json | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 bucket/paint.net-prerelease.json diff --git a/bucket/paint.net-prerelease.json b/bucket/paint.net-prerelease.json new file mode 100644 index 00000000000..46d9643c499 --- /dev/null +++ b/bucket/paint.net-prerelease.json @@ -0,0 +1,54 @@ +{ + "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", + "version": "5.100.8986.33792", + "description": "Image and photo editor", + "homepage": "https://www.getpaint.net", + "license": { + "identifier": "Freeware", + "url": "https://www.getpaint.net/license.html" + }, + "notes": "Windows 7 SP1 and Windows 8.1 are no longer supported.", + "architecture": { + "64bit": { + "url": "https://github.com/paintdotnet/release/releases/download/v5.1-beta.5.100.8986.33792/paint.net.5.100.8986.33792.portable.x64.zip", + "hash": "74a6c01f5da0c687e3004067aa966313a3a565a5318a94276f8bedbeda317105" + }, + "arm64": { + "url": "https://github.com/paintdotnet/release/releases/download/v5.1-beta.5.100.8986.33792/paint.net.5.100.8986.33792.portable.arm64.zip", + "hash": "a1f32f1fd315efcc26446b4089253d80c2ce7f72b26c9c27401593746dc47c3d" + } + }, + "pre_install": "if(!(Test-Path \"$persist_dir\\PaintDotNet.AppSettings.json\")) {New-Item \"$dir\\PaintDotNet.AppSettings.json\" -ItemType File | Out-Null}", + "bin": "paintdotnet.exe", + "shortcuts": [ + [ + "PaintDotNet.exe", + "paint.net prerelease" + ] + ], + "persist": [ + "Effects", + "FileTypes", + "Shapes", + "PaintDotNet.AppSettings.json" + ], + "checkver": { + "script": [ + "$Response = [PSCustomObject[]](Invoke-RestMethod -Method 'Get' -Uri 'https://api.github.com/repos/paintdotnet/release/releases')", + "$TagName = [string]($Response.Where{$_.'prerelease'}[0].'tag_name'.TrimStart('v'))", + "[string]($TagName + '..' + ($TagName.Split('.')[-4 .. -1] -join '.'))" + ], + "regex": "(?.+)(\\.{2})(?.+)", + "replace": "${buildnumber}" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/paintdotnet/release/releases/download/v$matchVersion/paint.net.$matchBuildnumber.portable.x64.zip" + }, + "arm64": { + "url": "https://github.com/paintdotnet/release/releases/download/v$matchVersion/paint.net.$matchBuildnumber.portable.arm64.zip" + } + } + } +} From d461c3882fc0e2e2382959bca1dfbfc0093f9bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20R=C3=B8nnestad=20Birkeland?= <6450056+o-l-a-v@users.noreply.github.com> Date: Sat, 26 Oct 2024 12:40:42 +0200 Subject: [PATCH 2/3] Updated version --- bucket/paint.net-prerelease.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bucket/paint.net-prerelease.json b/bucket/paint.net-prerelease.json index 46d9643c499..d48bb5108b2 100644 --- a/bucket/paint.net-prerelease.json +++ b/bucket/paint.net-prerelease.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", - "version": "5.100.8986.33792", + "version": "5.100.9064.37466", "description": "Image and photo editor", "homepage": "https://www.getpaint.net", "license": { @@ -10,12 +10,12 @@ "notes": "Windows 7 SP1 and Windows 8.1 are no longer supported.", "architecture": { "64bit": { - "url": "https://github.com/paintdotnet/release/releases/download/v5.1-beta.5.100.8986.33792/paint.net.5.100.8986.33792.portable.x64.zip", - "hash": "74a6c01f5da0c687e3004067aa966313a3a565a5318a94276f8bedbeda317105" + "url": "https://github.com/paintdotnet/release/releases/download/v5.1-beta.5.100.9064.37466/paint.net.5.100.9064.37466.portable.x64.zip", + "hash": "700a1e2978a6bfd2f1f8137bbf503dbe0ea3dbad841c7c15319a95d9ce9611a6" }, "arm64": { - "url": "https://github.com/paintdotnet/release/releases/download/v5.1-beta.5.100.8986.33792/paint.net.5.100.8986.33792.portable.arm64.zip", - "hash": "a1f32f1fd315efcc26446b4089253d80c2ce7f72b26c9c27401593746dc47c3d" + "url": "https://github.com/paintdotnet/release/releases/download/v5.1-beta.5.100.9064.37466/paint.net.5.100.9064.37466.portable.arm64.zip", + "hash": "522b6a3e18ed96b088e1f3fa52f1fb17cd3332ece432370ef30c2bb8bfc2bc6f" } }, "pre_install": "if(!(Test-Path \"$persist_dir\\PaintDotNet.AppSettings.json\")) {New-Item \"$dir\\PaintDotNet.AppSettings.json\" -ItemType File | Out-Null}", From 570420525f3cb5ef239a7db71c10a6471b0fff38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20R=C3=B8nnestad=20Birkeland?= <6450056+o-l-a-v@users.noreply.github.com> Date: Wed, 18 Dec 2024 18:53:38 +0100 Subject: [PATCH 3/3] Updated version and added note about the author removing prerelease versions when stable version is released --- bucket/paint.net-prerelease.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bucket/paint.net-prerelease.json b/bucket/paint.net-prerelease.json index d48bb5108b2..eca6334c6a1 100644 --- a/bucket/paint.net-prerelease.json +++ b/bucket/paint.net-prerelease.json @@ -1,6 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json", - "version": "5.100.9064.37466", + "##": "Author removes the prerelease GitHub releases and artifacts when next stable is released.", + "version": "5.102.9118.148", "description": "Image and photo editor", "homepage": "https://www.getpaint.net", "license": { @@ -10,12 +11,12 @@ "notes": "Windows 7 SP1 and Windows 8.1 are no longer supported.", "architecture": { "64bit": { - "url": "https://github.com/paintdotnet/release/releases/download/v5.1-beta.5.100.9064.37466/paint.net.5.100.9064.37466.portable.x64.zip", - "hash": "700a1e2978a6bfd2f1f8137bbf503dbe0ea3dbad841c7c15319a95d9ce9611a6" + "url": "https://github.com/paintdotnet/release/releases/download/v5.1.2-beta.5.102.9118.148/paint.net.5.102.9118.148.portable.x64.zip", + "hash": "0e5688da314381fe646ac609675c0786643616755ae85a681a29c848b6e4e1d0" }, "arm64": { - "url": "https://github.com/paintdotnet/release/releases/download/v5.1-beta.5.100.9064.37466/paint.net.5.100.9064.37466.portable.arm64.zip", - "hash": "522b6a3e18ed96b088e1f3fa52f1fb17cd3332ece432370ef30c2bb8bfc2bc6f" + "url": "https://github.com/paintdotnet/release/releases/download/v5.1.2-beta.5.102.9118.148/paint.net.5.102.9118.148.portable.arm64.zip", + "hash": "71bd26a493dede063f0f0df831c4aac2e37ba990d7e5447f7ab8fe3fdd067479" } }, "pre_install": "if(!(Test-Path \"$persist_dir\\PaintDotNet.AppSettings.json\")) {New-Item \"$dir\\PaintDotNet.AppSettings.json\" -ItemType File | Out-Null}", @@ -34,8 +35,8 @@ ], "checkver": { "script": [ - "$Response = [PSCustomObject[]](Invoke-RestMethod -Method 'Get' -Uri 'https://api.github.com/repos/paintdotnet/release/releases')", - "$TagName = [string]($Response.Where{$_.'prerelease'}[0].'tag_name'.TrimStart('v'))", + "$Response = [PSCustomObject[]](Invoke-RestMethod -Method 'Get' -Uri 'https://api.github.com/repos/paintdotnet/release/tags')", + "$TagName = [string]($Response.Where{$_.'name'.Contains('-')}[0].'name'.TrimStart('v'))", "[string]($TagName + '..' + ($TagName.Split('.')[-4 .. -1] -join '.'))" ], "regex": "(?.+)(\\.{2})(?.+)",