Skip to content

Commit

Permalink
Finish up packaging script
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Heringer committed Oct 22, 2024
1 parent 6554dde commit 21dabc7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
**/*.swo
**/*.swp
**/.DS_Store
**/*.tar.gz
Cargo.lock
binary_release/
target/
Expand Down
13 changes: 10 additions & 3 deletions package.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/usr/bin/env bash

# Best way to use this script is to run it in the form:
# -------------------------------------------------------
# PANACUS_TARGET="x86_64-unknown-linux-musl" ./package.sh
# -------------------------------------------------------
# Output is in the pkg directory

NAME="panacus"
EXEC="panacus"
VERSION="0.2.5"
ARCH="x86_64-unknown-linux-musl"
ARCH="${PANACUS_TARGET}"
# ARCH="x86_64-unknown-linux-musl"
# ARCH="x86_64-apple-darwin"

echo "Packaging ${NAME}, ${EXEC}, ${VERSION}, ${ARCH}"
Expand Down Expand Up @@ -41,5 +48,5 @@ cp README.md ./pkg/${NAME}-${VERSION}_${ARCH}/
cp -r examples ./pkg/${NAME}-${VERSION}_${ARCH}/

cd ./pkg && tar -czf ./${NAME}-${VERSION}_${ARCH}.tar.gz ./${NAME}-${VERSION}_${ARCH}
echo "Cleaning up"
rm -rf ./pkg/${NAME}-${VERSION}_${ARCH}
echo "Cleaning up ./pkg/${NAME}-${VERSION}_${ARCH}"
rm -rf ./${NAME}-${VERSION}_${ARCH}

0 comments on commit 21dabc7

Please sign in to comment.