Skip to content

Commit

Permalink
Merge pull request #10 from viam-labs/side
Browse files Browse the repository at this point in the history
ci things
  • Loading branch information
kharijarrett authored Feb 6, 2024
2 parents 983addb + df971b4 commit 7d0f9cd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
UNAME=$(uname -s)

if [ "$UNAME" = "Linux" ]
then
echo "Installing venv on Linux"
sudo apt-get install -y python3.11-venv
fi
if [ "$UNAME" = "Darwin" ]
then
echo "Installing venv on Darwin"
brew install python3.11-venv
fi
python3 -m venv .venv
. .venv/bin/activate
pip3 install -r requirements.txt
python3 -m PyInstaller --add-data .venv/lib/python3.11/site-packages/ahrs/utils:ahrs/utils --onefile --hidden-import="googleapiclient" src/main.py
tar -czvf dist/archive.tar.gz dist/main

0 comments on commit 7d0f9cd

Please sign in to comment.