dist und hilfe
This commit is contained in:
1 parent
60c9d56c05
commit
849aec84d4
3 files changed
+119
-67
No files matched your search
@@ -1,10 +1,24 @@
|
||||
#!/bin/bash
|
||||
# Build hyprcrd distribution ZIP
|
||||
# Build hyprcrd distribution ZIP with version bump
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
VERSION=$(grep "APP_VERSION" config.php | grep -oP "'[^']+'" | tail -1 | tr -d "'" || echo "dev")
|
||||
# Read current version
|
||||
CURRENT=$(grep "APP_VERSION" config.php | grep -oP "'[^']+'" | tail -1 | tr -d "'")
|
||||
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT"
|
||||
|
||||
# Bump: --major, --minor, or patch (default)
|
||||
case "${1:-patch}" in
|
||||
--major) MAJOR=$((MAJOR + 1)); MINOR=0; PATCH=0 ;;
|
||||
--minor) MINOR=$((MINOR + 1)); PATCH=0 ;;
|
||||
*) PATCH=$((PATCH + 1)) ;;
|
||||
esac
|
||||
|
||||
VERSION="${MAJOR}.${MINOR}.${PATCH}"
|
||||
sed -i "s/APP_VERSION', '${CURRENT}'/APP_VERSION', '${VERSION}'/" config.php
|
||||
echo "Version: ${CURRENT} → ${VERSION}"
|
||||
|
||||
DIST="hyprcrd-${VERSION}.zip"
|
||||
|
||||
# Rebuild Tailwind if CLI exists
|
||||
@@ -20,7 +34,7 @@ zip -r "$DIST" \
|
||||
Dockerfile \
|
||||
docker-entrypoint.sh \
|
||||
README.md \
|
||||
.htaccess \
|
||||
dist.sh \
|
||||
.gitignore \
|
||||
src/ \
|
||||
public/ \
|
||||
|
||||
Reference in new issue
Block a user