dd2f6ebc77
- All new redefined interface - Faster animations and transitions - Import from Dropbox - Import from Server - Download public albums - Several sorting options - Installation assistent - Infobox and description for albums - Faster loading and improved performance - Better file handling and upload - Album covers are chosen intelligent - Prettier URLs - Massive changes under the hood - IPTC support (Headline and Caption) - EXIF Orientation support How to update: 1. Replace all files, excluding `uploads/` 2. Open Lychee and enter your database details
32 lines
596 B
Bash
32 lines
596 B
Bash
#!/bin/bash
|
|
|
|
folderCSS="../assets/css"
|
|
folderJS="../assets/js"
|
|
|
|
if [ -e "$folderCSS/modules/" ]
|
|
then
|
|
|
|
echo "Compiling CSS ..."
|
|
awk 'FNR==1{print ""}1' $folderCSS/modules/*.css > $folderCSS/min/main.css
|
|
csso $folderCSS/min/main.css $folderCSS/min/main.css
|
|
echo "CSS compiled!"
|
|
|
|
else
|
|
|
|
echo "CSS files not found in $folderCSS"
|
|
|
|
fi
|
|
|
|
if [ -e "$folderJS/modules/" ]
|
|
then
|
|
|
|
echo "Compiling JS ..."
|
|
awk 'FNR==1{print ""}1' $folderJS/modules/*.js > $folderJS/min/main.js
|
|
uglifyjs $folderJS/min/main.js -o $folderJS/min/main.js
|
|
echo "JS compiled!"
|
|
|
|
else
|
|
|
|
echo "JS files not found in $folderJS"
|
|
|
|
fi |