Renamed to QR Script
- Split into three projects: Library, Console, and Tests - Library compiles as QRScript.Interpreter to avoid conflicts
This commit is contained in:
parent
e681e6144c
commit
6501b72973
16 changed files with 82 additions and 20 deletions
28
QRScript.Console/install.sh
Executable file
28
QRScript.Console/install.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Install qrscript locally for current user (no sudo)
|
||||
# Usage: ./install.sh ./dist/qrscript-linux/qrscript
|
||||
|
||||
set -e
|
||||
|
||||
PLATFORM="$1"
|
||||
SOURCE_BIN="./dist/qrscript-$PLATFORM/qrscript"
|
||||
INSTALL_DIR="$HOME/.local/bin"
|
||||
TARGET="$INSTALL_DIR/qrscript"
|
||||
|
||||
if [[ ! -x "$SOURCE_BIN" ]]; then
|
||||
echo "❌ Error: Provide a valid built qrscript binary as the first argument."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$INSTALL_DIR"
|
||||
cp "$SOURCE_BIN" "$TARGET"
|
||||
chmod +x "$TARGET"
|
||||
|
||||
if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
|
||||
echo "⚠️ $INSTALL_DIR is not in your PATH. Consider adding this to your shell profile:"
|
||||
echo " export PATH=\"\$HOME/.local/bin:\$PATH\""
|
||||
else
|
||||
echo "✅ Installed qrscript to $TARGET"
|
||||
echo "Run 'qrscript --help' to get started."
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue