Skip to content

Commit

Permalink
Update scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
BB9z committed Mar 3, 2024
1 parent 2cf7b82 commit 1668f4f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
6 changes: 0 additions & 6 deletions compute-zip-checksum.command

This file was deleted.

27 changes: 27 additions & 0 deletions make-package.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/zsh
# Copyright © 2024 BB9z.
# https://github.com/BB9z/LAME-xcframework
#
# The MIT License
# https://opensource.org/licenses/MIT

set -euo pipefail

readonly ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
# echo "$ROOT_DIR"
rm -rf "$ROOT_DIR/LAME.xcframework" "$ROOT_DIR/LAME.xcframework.zip"

cd "$ROOT_DIR/macosx"
if [ -x "$(command -v xcpretty)" ]; then
sh ./make-xcframework.sh | xcpretty
else
sh ./make-xcframework.sh
fi

cd "$ROOT_DIR"

mv "$ROOT_DIR/macosx/LAME.xcframework" "$ROOT_DIR"
zip -r -9 LAME.xcframework.zip LAME.xcframework LICENSE LICENSE-LAME

checksum=$(swift package compute-checksum LAME.xcframework.zip)
echo "Checksum: $checksum"

0 comments on commit 1668f4f

Please sign in to comment.