From fe05fb6d15b9500dcbf8973902d78892625f0fd5 Mon Sep 17 00:00:00 2001 From: PocketMiner82 Date: Thu, 11 Apr 2024 10:12:25 +0200 Subject: [PATCH] fix: updating to beta release always downloaded the latest (non-beta) release and the changelog always was the changelog in the main branch and not dynamic --- .releaserc | 16 ++++++++++++---- AutoUpdater.xml | 4 ++-- pseudocodeIde/pseudocodeIde.csproj | 6 +++--- pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj | 10 +++++----- 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/.releaserc b/.releaserc index a45df7b..f0793c5 100644 --- a/.releaserc +++ b/.releaserc @@ -48,12 +48,20 @@ { "files": [ "AutoUpdater.xml", - "pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj", - "pseudocodeIde/pseudocodeIde.csproj" + "pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj", + "pseudocodeIde/pseudocodeIde.csproj" ], "from": ".*", "to": "${nextRelease.version.replace('-dev', '')}", "countMatches": true + }, + { + "files": [ + "AutoUpdater.xml" + ], + "from": "https://github\\.com/PocketMiner82/pseudocode-ide/(.*)/.*/(.*)/", + "to": "https://github.com/PocketMiner82/pseudocode-ide/$1/${nextRelease.version}/$2/", + "countMatches": true } ] } @@ -71,8 +79,8 @@ "README.md", "CHANGELOG.md", "AutoUpdater.xml", - "pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj", - "pseudocodeIde/pseudocodeIde.csproj" + "pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj", + "pseudocodeIde/pseudocodeIde.csproj" ] } ], diff --git a/AutoUpdater.xml b/AutoUpdater.xml index 5571cbf..f7467c8 100644 --- a/AutoUpdater.xml +++ b/AutoUpdater.xml @@ -1,7 +1,7 @@ 1.3.1.1 - https://github.com/PocketMiner82/pseudocode-ide/releases/latest/download/pseudocode-ide.zip - https://github.com/PocketMiner82/pseudocode-ide/blob/main/CHANGELOG.md + https://github.com/PocketMiner82/pseudocode-ide/releases/download/1.3.1-dev.1/pseudocode-ide.zip + https://github.com/PocketMiner82/pseudocode-ide/blob/1.3.1-dev.1/CHANGELOG.md false \ No newline at end of file diff --git a/pseudocodeIde/pseudocodeIde.csproj b/pseudocodeIde/pseudocodeIde.csproj index f04e7d0..789908d 100644 --- a/pseudocodeIde/pseudocodeIde.csproj +++ b/pseudocodeIde/pseudocodeIde.csproj @@ -8,9 +8,9 @@ pseudocode-ide PocketMiner82 pseudocode-ide - 1.3.1.1 - false - false + 1.3.1.1 + false + false full diff --git a/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj b/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj index 900de69..9b52400 100644 --- a/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj +++ b/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj @@ -7,11 +7,11 @@ pseudocodeIdeUpdater Copyright © 2023 ..\bin\$(Configuration)\updater\ - 1.3.1.1 - false - false - false - false + 1.3.1.1 + false + false + false + false full