Skip to content

Commit

Permalink
Add zip script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHarker committed Jan 18, 2022
1 parent 15cba04 commit 5c45829
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/dist-zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /bin/sh

BASEDIR=$(dirname $0)

EXPORT_PATH="$BASEDIR/../build-mac/HISSTools_Granular"
ZIP_PATH="$EXPORT_PATH.zip"

find "$EXPORT_PATH" -name '.DS_Store' -type f -delete || exit 1
find "$EXPORT_PATH" -name '._*' -type f -delete || exit 1

/usr/bin/ditto -c -k --norsrc --keepParent "$EXPORT_PATH" "$ZIP_PATH" || exit 1

0 comments on commit 5c45829

Please sign in to comment.