From 9cffc1f4b1817725384b6bc1c9f54ac2b89cb503 Mon Sep 17 00:00:00 2001 From: sokripon Date: Mon, 30 Sep 2024 16:14:35 +0200 Subject: [PATCH 1/4] prismlauncher-git: Update checkver --- bucket/prismlauncher-git.json | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bucket/prismlauncher-git.json b/bucket/prismlauncher-git.json index 426acebabe5..3a718cd5b51 100644 --- a/bucket/prismlauncher-git.json +++ b/bucket/prismlauncher-git.json @@ -1,5 +1,5 @@ { - "version": "7.0-a634512", + "version": "9.0-a634512", "description": "An open source Minecraft launcher with the ability to manage multiple instances, accounts and mods. Focused on user freedom and free redistributability.", "homepage": "https://prismlauncher.org/", "license": "GPL-3.0-only", @@ -31,10 +31,16 @@ ] ], "checkver": { - "url": "https://api.github.com/repositories/553135896/actions/workflows/trigger_builds.yml/runs?branch=develop&status=success", - "jsonpath": "$.workflow_runs[0].head_sha", - "regex": "(?\\A[a-f\\d]{0,7})", - "replace": "7.0-${sha}" + "script": [ + "$apiUrl = 'https://api.github.com/repositories/553135896/actions/workflows/trigger_builds.yml/runs?branch=develop&status=success'", + "$fullSha = (Invoke-RestMethod -Uri $apiUrl).workflow_runs[0].head_sha", + "$cmakeContent = Invoke-WebRequest \"https://raw.githubusercontent.com/PrismLauncher/PrismLauncher/$fullSha/CMakeLists.txt\" | Select-Object -ExpandProperty Content", + "$majorVersion = [regex]::Match($cmakeContent, 'set\\(Launcher_VERSION_MAJOR (\\d+)\\)').Groups[1].Value", + "$minorVersion = [regex]::Match($cmakeContent, 'set\\(Launcher_VERSION_MINOR (\\d+)\\)').Groups[1].Value", + "$version = \"$majorVersion.$minorVersion-$fullSha\"", + "$version" + ], + "regex": "([\\d.]+\\-[a-f0-9]{7,7})" }, "autoupdate": { "architecture": { From 5f1f7a9155b617a377f4b54793a06e03ac134cec Mon Sep 17 00:00:00 2001 From: sokripon Date: Mon, 30 Sep 2024 16:41:29 +0200 Subject: [PATCH 2/4] prismlauncher-git: Fix autoupdate now failing --- bucket/prismlauncher-git.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bucket/prismlauncher-git.json b/bucket/prismlauncher-git.json index 3a718cd5b51..b04b7539efa 100644 --- a/bucket/prismlauncher-git.json +++ b/bucket/prismlauncher-git.json @@ -40,7 +40,8 @@ "$version = \"$majorVersion.$minorVersion-$fullSha\"", "$version" ], - "regex": "([\\d.]+\\-[a-f0-9]{7,7})" + "regex": "(?[\\d.]+)-(?[a-f0-9]{7,7})", + "replace": "${version}-${sha}" }, "autoupdate": { "architecture": { From 78e892599f5889bec9268f077ba6a45e0ce0ad17 Mon Sep 17 00:00:00 2001 From: sokripon Date: Fri, 15 Nov 2024 18:33:51 +0100 Subject: [PATCH 3/4] prismlauncher-git: Fix getting the wrong workflow runs --- bucket/prismlauncher-git.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/prismlauncher-git.json b/bucket/prismlauncher-git.json index b04b7539efa..0d0b5d280ff 100644 --- a/bucket/prismlauncher-git.json +++ b/bucket/prismlauncher-git.json @@ -32,7 +32,7 @@ ], "checkver": { "script": [ - "$apiUrl = 'https://api.github.com/repositories/553135896/actions/workflows/trigger_builds.yml/runs?branch=develop&status=success'", + "$apiUrl = 'https://api.github.com/repositories/553135896/actions/workflows/trigger_builds.yml/runs?branch=develop&status=success&event=push'", "$fullSha = (Invoke-RestMethod -Uri $apiUrl).workflow_runs[0].head_sha", "$cmakeContent = Invoke-WebRequest \"https://raw.githubusercontent.com/PrismLauncher/PrismLauncher/$fullSha/CMakeLists.txt\" | Select-Object -ExpandProperty Content", "$majorVersion = [regex]::Match($cmakeContent, 'set\\(Launcher_VERSION_MAJOR (\\d+)\\)').Groups[1].Value", From 4df80974bc7f7504af8a2249e2086ea88f5ba3fc Mon Sep 17 00:00:00 2001 From: sokripon Date: Fri, 15 Nov 2024 18:34:43 +0100 Subject: [PATCH 4/4] prismlauncher-git: Update to version 10.0-4a92573 --- bucket/prismlauncher-git.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bucket/prismlauncher-git.json b/bucket/prismlauncher-git.json index 0d0b5d280ff..6612eda0450 100644 --- a/bucket/prismlauncher-git.json +++ b/bucket/prismlauncher-git.json @@ -1,13 +1,13 @@ { - "version": "9.0-a634512", + "version": "10.0-4a92573", "description": "An open source Minecraft launcher with the ability to manage multiple instances, accounts and mods. Focused on user freedom and free redistributability.", "homepage": "https://prismlauncher.org/", "license": "GPL-3.0-only", "notes": "To add Prism Launcher file association options for .ZIPs and .MRPACKS, run this: \"$dir\\install-associations.reg\"", "architecture": { "64bit": { - "url": "https://nightly.link/PrismLauncher/PrismLauncher/workflows/trigger_builds/develop/PrismLauncher-Windows-MSVC-a634512-Debug.zip", - "hash": "944f58fc7aa55b31d3a7b6e8108fb5a4682b6f93980d05cb3fd953c7185207d7" + "url": "https://nightly.link/PrismLauncher/PrismLauncher/workflows/trigger_builds/develop/PrismLauncher-Windows-MSVC-4a92573-Debug.zip", + "hash": "feaeebdd2c98218bab3351c3e2731c225e613bcc4f8a6087befa5ea5ec767f50" } }, "suggest": {