From 62c109939aba3f53efbe883231d22108f4351b2c Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Sun, 16 Aug 2026 10:03:27 +0200 Subject: [PATCH] fix: bump version to 1.6.3-preview and add a check in release.sh, we could'nt publish a release if it's still marked as a preview --- package.json | 2 +- scripts/release.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ac90834..ffa2d3d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "freedom-loader", "productName": "Freedom Loader", - "version": "1.6.2", + "version": "1.6.3-preview", "author": "MasterAcnolo ", "description": "Free and open-source GUI for yt-dlp — download video and audio from hundreds of platforms", "homepage": "https://masteracnolo.github.io/Freedom-Loader-Site/", diff --git a/scripts/release.sh b/scripts/release.sh index 43286f2..a9fd633 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -4,6 +4,13 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" VERSION=$(node -p "require('$ROOT_DIR/package.json').version") + +f [[ "$VERSION" == *"-preview"* ]]; then + echo "Error: The current version ($VERSION) is a 'preview" + echo "Unable to launch release pipeline. Please update the package.json with a stable version.." + exit 1 +fi + TAG="$VERSION" # Parse arguments @@ -17,7 +24,7 @@ for arg in "$@"; do --copr) PUBLISH_COPR=true ;; --publish) PUBLISH_SNAP=true; PUBLISH_COPR=true ;; --dry-run) DRY_RUN=true ;; - *) echo "⚠️ Argument inconnu : $arg" ; exit 1 ;; + *) echo "Unknown Argument : $arg" ; exit 1 ;; esac done