filecollector/scripts/package.sh
2026-11-06 21:14:44 +03:00

19 lines
548 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
set -euo pipefail
project_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
project_name="$(basename "$project_dir")"
parent_dir="$(dirname "$project_dir")"
archive_name="Владислав_Агибалов_С++.zip"
cd "$parent_dir"
zip -r -FS "$archive_name" "$project_name" \
-x "$project_name/.git/*" \
"$project_name/build*/*" \
"$project_name/.cache/*" \
"$project_name/.DS_Store" \
"$project_name/*.dSYM/*" \
"$project_name/*.zip"
printf 'Архив: %s\n' "$parent_dir/$archive_name"