-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·27 lines (21 loc) · 812 Bytes
/
Copy pathrelease.sh
File metadata and controls
executable file
·27 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
# release.sh — Create a clean release archive without development artifacts.
# Usage: ./release.sh [version]
# Output: reframe-v<version>.tar.gz (or reframe-latest.tar.gz if no version)
set -euo pipefail
VERSION="${1:-latest}"
ARCHIVE="reframe-${VERSION}.tar.gz"
INCLUDE_FILES=(
main.py config.py database.py handlers.py admin_handlers.py
media_processor.py scanner.py locales.py utils.py
requirements.txt Dockerfile .env.example
README.md README.fa.md LICENSE .gitignore
)
echo "Creating release archive: ${ARCHIVE}"
# Clean any previous build artifacts
rm -f "${ARCHIVE}"
# Create archive with only the specified files
tar czf "${ARCHIVE}" "${INCLUDE_FILES[@]}"
echo "Done. Archive size: $(du -h "${ARCHIVE}" | cut -f1)"
echo "Contents:"
tar tzf "${ARCHIVE}" | sort