Open source video conferencing app powered by LiveKit. Built with Django and React.
π(release) fix prepare-release script on NixOS
briquet1913330ae6fa
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 534fd959..9a7d8d8d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,7 @@ and this project adheres to- π(backend) put a timeout on every LiveKit API call- ποΈ(backend) upgrade aiohttp to 3.14.5 to fix CVE-2026-111064- βΏοΈ(frontend) announce the microphone turning off on shortcut #1816+- π(release) use env bash in prepare-release script for NixOS## [1.35.0] - 2026-10-13diff --git a/bin/prepare-release.sh b/bin/prepare-release.shindex 5b0b36ca..c3ad4d58 100755--- a/bin/prepare-release.sh+++ b/bin/prepare-release.sh@@ -1,6 +1,6 @@-#!/bin/bash+#!/usr/bin/env bash-set -e # Exit on error+set -e # Exit on error# Colors for outputRED='\033[0;31m'@@ -10,60 +10,59 @@ NC='\033[0m' # No Color# Function to print colored outputprint_info() {- echo -e "${GREEN}[INFO]${NC} $1"+ echo -e "${GREEN}[INFO]${NC} $1"}print_error() {- echo -e "${RED}[ERROR]${NC} $1"+ echo -e "${RED}[ERROR]${NC} $1"}print_warning() {- echo -e "${YELLOW}[WARNING]${NC} $1"+ echo -e "${YELLOW}[WARNING]${NC} $1"}-# Function to update npm package versionupdate_npm_version() {- local component=$1- print_info "Updating $component version..."- cd "src/$component"- npm version "$VERSION" --no-git-tag-version- cd -+ local component=$1+ print_info "Updating $component version..."+ cd "src/$component"+ npm version "$VERSION" --no-git-tag-version+ cd -}# Function to update Python project version in pyproject.tomlupdate_python_version() {- local component=$1- print_info "Updating $component version..."- cd "src/$component"-- if [ ! -f "pyproject.toml" ]; then- print_error "pyproject.toml not found in src/$component!"- exit 1- fi-- if grep -q '^version = "' pyproject.toml; then- sed -i.bak "s/^version = \".*\"/version = \"$VERSION\"/" pyproject.toml- rm pyproject.toml.bak- print_info "Updated pyproject.toml version to $VERSION"- else- print_error "Could not find version line in pyproject.toml"- exit 1- fi-- cd -+ local component=$1+ print_info "Updating $component version..."+ cd "src/$component"++ if [ ! -f "pyproject.toml" ]; then+ print_error "pyproject.toml not found in src/$component!"+ exit 1+ fi++ if grep -q '^version = "' pyproject.toml; then+ sed -i.bak "s/^version = \".*\"/version = \"$VERSION\"/" pyproject.toml+ rm pyproject.toml.bak+ print_info "Updated pyproject.toml version to $VERSION"+ else+ print_error "Could not find version line in pyproject.toml"+ exit 1+ fi++ cd -}# Check if we're in a git repository-if ! git rev-parse --git-dir > /dev/null 2>&1; then- print_error "Not a git repository. Please run this script from the root of your project."- exit 1+if ! git rev-parse --git-dir >/dev/null 2>&1; then+ print_error "Not a git repository. Please run this script from the root of your project."+ exit 1fi# Check if working directory is cleanif ! git diff-index --quiet HEAD --; then- print_error "Working directory is not clean. Please commit or stash your changes first."- exit 1+ print_error "Working directory is not clean. Please commit or stash your changes first."+ exit 1fi# Ask user for release version number@@ -72,8 +71,8 @@ read -r -p "Enter release version number (e.g., 1.2.3): " VERSION# Validate version format (basic semver check)if ! [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then- print_error "Invalid version format. Please use semantic versioning (e.g., 1.2.3)"- exit 1+ print_error "Invalid version format. Please use semantic versioning (e.g., 1.2.3)"+ exit 1fiprint_info "Release version: $VERSION"@@ -81,8 +80,8 @@ print_info "Release version: $VERSION"# Check if branch already existsBRANCH_NAME="release/$VERSION"if git show-ref --verify --quiet "refs/heads/$BRANCH_NAME"; then- print_error "Branch $BRANCH_NAME already exists!"- exit 1+ print_error "Branch $BRANCH_NAME already exists!"+ exit 1fi# Create and checkout new branch@@ -129,8 +128,8 @@ cd -print_info "Updating CHANGELOG..."if [ ! -f "CHANGELOG.md" ]; then- print_error "CHANGELOG.md not found in project root!"- exit 1+ print_error "CHANGELOG.md not found in project root!"+ exit 1fi# Get current date in YYYY-MM-DD format@@ -138,23 +137,21 @@ CURRENT_DATE=$(date +%Y-%m-%d)# Replace [Unreleased] with [version number] - YYYY-MM-DDif grep -q '\[Unreleased\]' CHANGELOG.md; then- sed -i.bak "s/\[Unreleased\]/[$VERSION] - $CURRENT_DATE/" CHANGELOG.md+ sed -i.bak "s/\[Unreleased\]/[$VERSION] - $CURRENT_DATE/" CHANGELOG.md- # Add new [Unreleased] section after the header- # This adds it after the line containing "Semantic Versioning"- sed -i.bak "/Semantic Versioning/a\\+ # Add new [Unreleased] section after the header+ # This adds it after the line containing "Semantic Versioning"+ sed -i.bak "/Semantic Versioning/a\\\\## [Unreleased]" CHANGELOG.md- rm CHANGELOG.md.bak- print_info "Updated CHANGELOG.md"+ rm CHANGELOG.md.bak+ print_info "Updated CHANGELOG.md"else- print_warning "Could not find [Unreleased] section in CHANGELOG.md"+ print_warning "Could not find [Unreleased] section in CHANGELOG.md"fi--# Summaryecho ""print_info "Release preparation complete!"@@ -178,4 +175,4 @@ print_warning "Next steps:"echo " 1. Review the changes: git status"echo " 2. Commit the changes: git add . && git commit -m 'Release $VERSION'"echo " 3. Push the branch: git push origin $BRANCH_NAME"-echo ""\ No newline at end of file+echo ""