Skip to content

Commit

Permalink
fix: added missing install script 'install-ctrlx-datalayer.sh'
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam72 committed May 28, 2024
1 parent c82a0a2 commit 053b689
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/install-ctrlx-datalayer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

# Exit immediately if a command exits with a non-zero status.
set -e

DIR=$1
if [ ! -z "$DIR" ]; then
cd $DIR
fi

sudo apt-get install -y dpkg-dev

# Install debian package locally so that 'apt-get install' will find it (for building sample project snaps)
dpkg-scanpackages -m . >Packages

# Add package to sources list
full_path=$(pwd)
echo "deb [trusted=yes] file:${full_path} ./" | sudo tee /etc/apt/sources.list.d/ctrlx-automation.list

sudo apt-get update

# Install newest ctrlx-datalayer package
sudo apt-get install ctrlx-datalayer -y

0 comments on commit 053b689

Please sign in to comment.