Monorepo for Aesthetic.Computer aesthetic.computer
at main 41 lines 1.3 kB view raw
1#!/bin/bash 2 3# Pack aesthetic.computer pieces for Teia Interactive OBJKTs 4# Usage: ./pack-for-objkt.fish <piece-name> [options] 5 6if [ -z "$1" ]; then 7 echo "🎨 Pack aesthetic.computer pieces for Teia Interactive OBJKTs" 8 echo "" 9 echo "Usage: ./pack-for-objkt.fish <piece-name> [options]" 10 echo "" 11 echo "Examples:" 12 echo " ./pack-for-objkt.fish paint" 13 echo " ./pack-for-objkt.fish starfield --title \"My Starfield\"" 14 echo " ./pack-for-objkt.fish brush --author \"Artist Name\"" 15 echo "" 16 echo "Available pieces:" 17 ls system/public/aesthetic.computer/disks/*.{mjs,lisp} 2>/dev/null | grep -o "[^/]*\.\(mjs\|lisp\)$" | sed "s/\.\(mjs\|lisp\)$//" | sort | uniq | head -20 18 echo " (and more...)" 19 exit 1 20fi 21 22echo "📦 Packing $1 for Teia..." 23 24# Run the packer 25node utilities/ac-pack.mjs "$@" 26 27if [ $? -eq 0 ]; then 28 echo "" 29 echo "🎉 Success! Your package is ready:" 30 echo "📁 Directory: tokens/$1/" 31 echo "📦 Zip file: tokens/$1.zip" 32 echo "" 33 echo "🚀 Next steps:" 34 echo "1. Go to https://teia.art/mint" 35 echo "2. Upload tokens/$1.zip" 36 echo "3. Preview and test your interactive OBJKT" 37 echo "4. Mint when ready!" 38else 39 echo "" 40 echo "❌ Packing failed. Check the error messages above." 41fi