chore: add BIN_ARCHIVE_DIR_PATH as bin_archives

This commit is contained in:
Jesús Pérex 2025-06-27 04:50:22 +01:00
parent c99d557f99
commit e077b6d935
2 changed files with 2 additions and 0 deletions

1
env
View File

@ -3,3 +3,4 @@ export TARGET_PATH=${TARGET_PATH:-distribution}
export INSTALL_FILE=${INSTALL_FILE:-install_nu_plugins.nu}
export INSTALL_BIN_PATH=${INSTALL_BIN_PATH:-/usr/local/bin}
export ARCHIVE_DIR_PATH=${ARCHIVE_DIR_PATH:-/tmp}
export BIN_ARCHIVES_DIR_PATH=bin_archives

View File

@ -12,6 +12,7 @@ ARCH=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]' | sed -e 's/gnu//g' | sed -e 's,/,,g')
ARCHIVE_PATH="${PLATFORM}-${ARCH}-${APP_NAME}.tar.gz"
[ -n "$BIN_ARCHIVES_DIR_PATH" ] && [ -d "$BIN_ARCHIVES_DIR_PATH" ] && ARCHIVE_PATH=$BIN_ARCHIVES_DIR_PATH/$ARCHIVE_PATH
cp env $TARGET_PATH
echo "Create pack archive ..."