mirror of
				https://github.com/kyantech/Palmr.git
				synced 2025-11-03 21:43:20 +00:00 
			
		
		
		
	- Added PALMR_UID and PALMR_GID environment variables to all relevant Docker Compose files to ensure consistent user and group ID settings for container processes. - Updated documentation in quick-start guide to reflect these changes, enhancing clarity for users regarding UID/GID configurations.
		
			
				
	
	
		
			36 lines
		
	
	
		
			969 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			969 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
VERSION=$1
 | 
						|
 | 
						|
if [ -z "$VERSION" ]; then
 | 
						|
    echo "❌ Error: Version parameter is required"
 | 
						|
    echo "Usage: $0 <version>"
 | 
						|
    echo "Example: $0 v3.0.0"
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
echo "🔄 Updating version to $VERSION in all package.json files..."
 | 
						|
 | 
						|
update_package_json() {
 | 
						|
    local file=$1
 | 
						|
    local app_name=$2
 | 
						|
    
 | 
						|
    if [ -f "$file" ]; then
 | 
						|
        if [[ "$OSTYPE" == "darwin"* ]]; then
 | 
						|
            sed -i '' "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" "$file"
 | 
						|
        else
 | 
						|
            sed -i "s/\"version\": \".*\"/\"version\": \"$VERSION\"/" "$file"
 | 
						|
        fi
 | 
						|
        
 | 
						|
        echo "✅ Updated $app_name: $file"
 | 
						|
    else
 | 
						|
        echo "❌ Warning: $file not found"
 | 
						|
    fi
 | 
						|
}
 | 
						|
 | 
						|
update_package_json "apps/web/package.json" "Web App"
 | 
						|
update_package_json "apps/docs/package.json" "Documentation"
 | 
						|
update_package_json "apps/server/package.json" "API Server"
 | 
						|
 | 
						|
echo "🎉 Version update completed!"
 | 
						|
echo "📦 All package.json files now have version: $VERSION"  |