mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-09-27 20:11:15 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7dee94da6f |
1
scripts/CHANGELOG.md
Normal file
1
scripts/CHANGELOG.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[//]: # (This file is used for the release CHANGELOG. Please use Markdown to describe changes.)
|
||||||
@@ -5,7 +5,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||||
VERSION=$(node -p "require('$ROOT_DIR/package.json').version")
|
VERSION=$(node -p "require('$ROOT_DIR/package.json').version")
|
||||||
|
|
||||||
f [[ "$VERSION" == *"-preview"* ]]; then
|
if [[ "$VERSION" == *"-preview"* ]]; then
|
||||||
echo "Error: The current version ($VERSION) is a 'preview"
|
echo "Error: The current version ($VERSION) is a 'preview"
|
||||||
echo "Unable to launch release pipeline. Please update the package.json with a stable version.."
|
echo "Unable to launch release pipeline. Please update the package.json with a stable version.."
|
||||||
exit 1
|
exit 1
|
||||||
@@ -64,6 +64,16 @@ echo "[0/5] Cleaning workspace..."
|
|||||||
rm -rf "$ROOT_DIR/dist" "$ROOT_DIR/srpm-out"
|
rm -rf "$ROOT_DIR/dist" "$ROOT_DIR/srpm-out"
|
||||||
echo "Workspace cleaned (dist/ and srpm-out/ removed)"
|
echo "Workspace cleaned (dist/ and srpm-out/ removed)"
|
||||||
|
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Step 0.3 - Retrieve Changelog
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
if [ ! -f "$ROOT_DIR/CHANGELOG.md" ]; then
|
||||||
|
echo "Warning: CHANGELOG.md not found, release notes will be empty."
|
||||||
|
CHANGELOG=""
|
||||||
|
else
|
||||||
|
CHANGELOG="$(cat "$ROOT_DIR/CHANGELOG.md")"
|
||||||
|
echo "Changelog retrieved successfully"
|
||||||
|
fi
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Step 1 - Build Linux packages (AppImage, deb, snap)
|
# Step 1 - Build Linux packages (AppImage, deb, snap)
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
@@ -105,6 +115,10 @@ PREV_TAG=$(git rev-list --tags --skip=1 --max-count=1 | xargs git describe --tag
|
|||||||
|
|
||||||
RELEASE_NOTES="# Freedom Loader - $VERSION
|
RELEASE_NOTES="# Freedom Loader - $VERSION
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
$CHANGELOG
|
||||||
|
|
||||||
## Found a bug or issue?
|
## Found a bug or issue?
|
||||||
Please report it in the [GitHub Issues](https://github.com/MasterAcnolo/Freedom-Loader/issues) section.
|
Please report it in the [GitHub Issues](https://github.com/MasterAcnolo/Freedom-Loader/issues) section.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user