Skip to content

Commit

Permalink
Updated script with correct parameters. It seems to install correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
anderskaestner committed Jan 13, 2025
1 parent 4162b23 commit 1384718
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions deploy/linux/create_muhrec_deb.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PACKAGE_NAME="muhrec"
VERSION="1.0" # Update this version as needed
ARCHITECTURE="amd64"
MAINTAINER="Your Name <[email protected]>" # Replace with your details
MAINTAINER="Anders Kaestner <[email protected]>" # Replace with your details
DESCRIPTION="muhrec application package with plugins and resources"
BUILD_DIR="$HOME/git/build-imagingsuite/Release"
SCRIPT_DIR="$HOME/git/imagingsuite/applications/muhrec/scripts"
Expand Down Expand Up @@ -48,17 +48,17 @@ mkdir -p "$PACKAGE_ROOT/opt/$PACKAGE_NAME"
# Copy the required directories to /opt/muhrec
cp -r "$BUILD_DIR/bin" "$PACKAGE_ROOT/opt/$PACKAGE_NAME/"
cp -r "$BUILD_DIR/lib" "$PACKAGE_ROOT/opt/$PACKAGE_NAME/"
cp -r "$BUILD_DIR/Plugins" "$PACKAGE_ROOT/opt/$PACKAGE_NAME/"
cp -r "$BUILD_DIR/Resources" "$PACKAGE_ROOT/opt/$PACKAGE_NAME/"
cp -r "$BUILD_DIR/plugins" "$PACKAGE_ROOT/opt/$PACKAGE_NAME/"
cp -r "$BUILD_DIR/resources" "$PACKAGE_ROOT/opt/$PACKAGE_NAME/"

# Copy the script and make it executable
mkdir -p "$PACKAGE_ROOT/opt/$PACKAGE_NAME/scripts"
cp "$SCRIPT_DIR/muhrec" "$PACKAGE_ROOT/opt/$PACKAGE_NAME/scripts/"
chmod +x "$PACKAGE_ROOT/opt/$PACKAGE_NAME/scripts/muhrec"
#mkdir -p "$PACKAGE_ROOT/opt/$PACKAGE_NAME/scripts"
cp "$SCRIPT_DIR/muhrec" "$PACKAGE_ROOT/opt/$PACKAGE_NAME/"
chmod +x "$PACKAGE_ROOT/opt/$PACKAGE_NAME/muhrec"

# Create a symlink in /usr/bin for easy execution
mkdir -p "$PACKAGE_ROOT/usr/bin"
ln -s /opt/$PACKAGE_NAME/scripts/muhrec "$PACKAGE_ROOT/usr/bin/muhrec"
ln -s /opt/$PACKAGE_NAME/muhrec "$PACKAGE_ROOT/usr/bin/muhrec"

# Set ownership and permissions
sudo chown -R root:root "$PACKAGE_ROOT"
Expand Down

0 comments on commit 1384718

Please sign in to comment.