Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build driver
on:
push:
branches: [ main ]
branches: [ main, Release_candidate ]
tags:
- 'v*'
pull_request:
branches: [ main ]
branches: [ main, Release_candidate ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
Expand Down
30 changes: 8 additions & 22 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,23 +205,7 @@ fi

debug "Installing for platform $ARCH"

# make sure that we are downloading a valid version
if [ "$VERSION" = "latest" ] ; then
RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases/latest"
else
RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases/tags/$VERSION"
fi

DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" |
grep "browser_download_url.*$ARCH_NAME.jar" |
cut -d : -f 2,3 |
tr -d '"'
)

if [[ -z $DOWNLOAD_URL ]] ; then
die "PhotonVision '$VERSION' is not available for $ARCH_NAME!" \
"See ./install --list-versions for a list of available versions."
fi
RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases"

DISTRO=$(lsb_release -is)

Expand Down Expand Up @@ -285,17 +269,19 @@ EOF
fi
fi

DOWNLOAD_URL=$(curl -sk "https://api.github.com/repos/photonvision/photonvision/releases" |
grep "browser_download_url.*rc.*linuxarm64.jar" |
cut -d : -f 2,3 |
tr -d '"' |
head -n1)
debug ""
debug "Downloading PhotonVision '$VERSION'..."
debug "Download URL: $DOWNLOAD_URL"

if [[ -z $TEST ]]; then
mkdir -p /opt/photonvision
cd /opt/photonvision || die "Tried to enter /opt/photonvision, but it was not created."
curl -sk "$RELEASE_URL" |
grep "browser_download_url.*$ARCH_NAME.jar" |
cut -d : -f 2,3 |
tr -d '"' |
wget -qi - -O photonvision.jar
wget -O photonvision.jar $DOWNLOAD_URL
fi
debug "Downloaded PhotonVision."

Expand Down
3 changes: 2 additions & 1 deletion install_opi5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ apt-get --yes -qq clean
rm -rf /usr/share/doc
rm -rf /usr/share/locale/

# One-time setup for the Orange Pi's, needs to be connected to the internet
# One-time setup for the# Update and upgrade
# connected to the internet
# make config directory
sudo mkdir -p /xbot/config

Expand Down