Skip to content

Commit 304b298

Browse files
committed
fix: Linux install script
1 parent b30faeb commit 304b298

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

resources/linux/publish-and-install.sh

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
#!/usr/bin/env bash
22

3-
# Initialize script and check arguments
4-
CURRENT_PWD=$(pwd)
5-
set -euo pipefail
6-
if [[ $# -lt 2 ]]; then
7-
echo "Usage: $0 prefix runtime"
8-
exit 1
9-
fi
10-
113
# Define colors and logging functions
124
RED="\033[0;31m"
135
GREEN="\033[0;32m"
@@ -22,16 +14,24 @@ success() { echo -e "${GREEN}✔${RESET} $1"; }
2214
warn() { echo -e "${YELLOW}${RESET} $1"; }
2315
error() { echo -e "${RED}${RESET} $1"; exit 1; }
2416

17+
echo -e "${BOLD}${BLUE}==============================================================${RESET}"
18+
echo -e "${BOLD}${BLUE} Nickvision Linux publish-and-install Script${RESET}"
19+
echo -e "${BOLD}${BLUE}==============================================================${RESET}"
20+
21+
# Initialize script and check arguments
22+
CURRENT_PWD=$(pwd)
23+
set -euo pipefail
24+
if [[ $# -lt 2 ]]; then
25+
echo "Usage: $0 prefix runtime"
26+
exit 1
27+
fi
28+
2529
# Change pwd to script directory
2630
info "Changing to script directory..."
2731
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
2832
cd "$SCRIPT_DIR"
2933
success "Changed to script directory: $SCRIPT_DIR"
3034

31-
echo -e "${BOLD}${BLUE}==============================================================${RESET}"
32-
echo -e "${BOLD}${BLUE} Publishing and Installing $APP_ID${RESET}"
33-
echo -e "${BOLD}${BLUE}==============================================================${RESET}"
34-
3535
# Load variables
3636
info "Loading variables..."
3737
APP_ID="org.nickvision.application"
@@ -46,6 +46,10 @@ info "Lib directory: $LIB_DIR"
4646
info "Data directory: $DATA_DIR"
4747
success "Loaded variables."
4848

49+
echo -e "${BOLD}${BLUE}==============================================================${RESET}"
50+
echo -e "${BOLD}${BLUE} Publishing and Installing $APP_ID${RESET}"
51+
echo -e "${BOLD}${BLUE}==============================================================${RESET}"
52+
4953
# Create main directories
5054
info "Creating directories..."
5155
mkdir -p "$BIN_DIR" "$LIB_DIR" "$DATA_DIR"

0 commit comments

Comments
 (0)