Skip to content

Commit

Permalink
Updating build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Nov 14, 2023
1 parent 250459a commit 77eeffd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ fi
TAGS="${TAGS[@]}"
LDFLAGS="${LDFLAGS[@]}"

log() {
cat - | while read -r message; do
echo "$1$message"
done
}

echo "APP: $NAME/${VER} ($PLATFORM/$ARCH)"
if [ "$STATIC" = "1" ]; then
echo "STATIC: yes"
Expand Down Expand Up @@ -184,7 +178,7 @@ fi
-tags="$TAGS" \
-trimpath \
$OUTPUT
) 2>&1 | log ' '
)

if [[ "$INSTALL" == "1" || "$BUILDONLY" == "1" ]]; then
exit
Expand Down Expand Up @@ -230,9 +224,13 @@ esac

# report
echo "PACKED: $OUT ($(du -sh $OUT|awk '{print $1}'))"

case $EXT in
tar.bz2) tar -jvtf $OUT ;;
zip) unzip -l $OUT ;;
esac

echo "SHA256SUM:"
sha256sum $DIR/*

popd &> /dev/null

0 comments on commit 77eeffd

Please sign in to comment.