From c4d0e8150c73cddb6a27488e131a24e86ea844f5 Mon Sep 17 00:00:00 2001 From: eljueves Date: Fri, 16 Jan 2026 22:54:52 -0800 Subject: [PATCH 01/16] make branch to create rc image --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e7b55337..7af2ae40 100755 --- a/install.sh +++ b/install.sh @@ -213,7 +213,7 @@ else fi DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | - grep "browser_download_url.*$ARCH_NAME.jar" | + grep "browser_download_url.*rc*$ARCH_NAME.jar" | cut -d : -f 2,3 | tr -d '"' ) From ac0e0845e430643957e722e5c5d3f91422a0dff4 Mon Sep 17 00:00:00 2001 From: eljueves Date: Fri, 16 Jan 2026 23:10:45 -0800 Subject: [PATCH 02/16] update release_url --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7af2ae40..0a152777 100755 --- a/install.sh +++ b/install.sh @@ -207,7 +207,7 @@ 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" + RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" else RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases/tags/$VERSION" fi From 27ab1658b0eb33926691b544e2ead6387575edca Mon Sep 17 00:00:00 2001 From: eljueves Date: Fri, 16 Jan 2026 23:31:36 -0800 Subject: [PATCH 03/16] fix url logic and update workflow for RC release --- .github/workflows/main.yml | 4 ++-- install.sh | 12 ++++-------- install_opi5.sh | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c8380e9..ccb80a13 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} diff --git a/install.sh b/install.sh index 0a152777..f97d9ab6 100755 --- a/install.sh +++ b/install.sh @@ -205,17 +205,13 @@ 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" -else - RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases/tags/$VERSION" -fi +RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | - grep "browser_download_url.*rc*$ARCH_NAME.jar" | + grep "browser_download_url.*rc.*$ARCH_NAME.jar" | cut -d : -f 2,3 | - tr -d '"' + tr -d '"' | + head -n1 ) if [[ -z $DOWNLOAD_URL ]] ; then diff --git a/install_opi5.sh b/install_opi5.sh index 992d70e9..0f69781e 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -58,7 +58,7 @@ echo "Freed up $freed KiB" # run Photonvision install script chmod +x ./install.sh -./install.sh --install-nm=yes --arch=aarch64 --version="$1" +./install.sh --install-nm=yes --arch=aarch64 echo "Installing additional things" apt-get --yes -qq install libc6 libstdc++6 From caf588b35926da76c6d114949810d879ca12cabf Mon Sep 17 00:00:00 2001 From: eljueves Date: Fri, 16 Jan 2026 23:32:47 -0800 Subject: [PATCH 04/16] wpiformat --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f97d9ab6..a1b090f1 100755 --- a/install.sh +++ b/install.sh @@ -210,7 +210,7 @@ RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | grep "browser_download_url.*rc.*$ARCH_NAME.jar" | cut -d : -f 2,3 | - tr -d '"' | + tr -d '"' | head -n1 ) From 886e27a7a51e4ac4e459ff2e57e682239872f4f2 Mon Sep 17 00:00:00 2001 From: eljueves Date: Fri, 16 Jan 2026 23:40:17 -0800 Subject: [PATCH 05/16] return version env var --- install_opi5.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 0f69781e..f53a1cd4 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -58,7 +58,7 @@ echo "Freed up $freed KiB" # run Photonvision install script chmod +x ./install.sh -./install.sh --install-nm=yes --arch=aarch64 +./install.sh --install-nm=yes --arch=aarch64 --version="$1" echo "Installing additional things" apt-get --yes -qq install libc6 libstdc++6 @@ -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 From 276998eb349bb0c2d5661d4b294818f03d31a024 Mon Sep 17 00:00:00 2001 From: eljueves Date: Fri, 16 Jan 2026 23:51:21 -0800 Subject: [PATCH 06/16] fix for install script --- install.sh | 11 ++++++++--- install_opi5.sh | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index a1b090f1..ffb8c6f4 100755 --- a/install.sh +++ b/install.sh @@ -205,12 +205,17 @@ fi debug "Installing for platform $ARCH" -RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" +# 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.*rc.*$ARCH_NAME.jar" | + grep "browser_download_url.*$ARCH_NAME.jar" | cut -d : -f 2,3 | - tr -d '"' | + tr -d '"' | head -n1 ) diff --git a/install_opi5.sh b/install_opi5.sh index f53a1cd4..f801ec32 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -103,7 +103,7 @@ rm -rf /usr/share/doc rm -rf /usr/share/locale/ # One-time setup for the# Update and upgrade - connected to the internet +# connected to the internet # make config directory sudo mkdir -p /xbot/config From 5a2ba35b018abafe0cff6f6dd78fa2aa210b4bf6 Mon Sep 17 00:00:00 2001 From: eljueves Date: Fri, 16 Jan 2026 23:52:28 -0800 Subject: [PATCH 07/16] fix for install script --- install.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/install.sh b/install.sh index ffb8c6f4..52744e63 100755 --- a/install.sh +++ b/install.sh @@ -205,12 +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 +RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | grep "browser_download_url.*$ARCH_NAME.jar" | From c6c2952c06bebb92f4aa0c625137444470110a8d Mon Sep 17 00:00:00 2001 From: eljueves Date: Fri, 16 Jan 2026 23:54:23 -0800 Subject: [PATCH 08/16] format --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 52744e63..ee3c4d37 100755 --- a/install.sh +++ b/install.sh @@ -210,7 +210,7 @@ RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | grep "browser_download_url.*$ARCH_NAME.jar" | cut -d : -f 2,3 | - tr -d '"' | + tr -d '"' | head -n1 ) From 9ccf582d6e516180fd3a6148aba0547e37f0443d Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 17 Jan 2026 00:02:41 -0800 Subject: [PATCH 09/16] make download url static for now --- install.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index ee3c4d37..69a88bf9 100755 --- a/install.sh +++ b/install.sh @@ -205,14 +205,8 @@ fi debug "Installing for platform $ARCH" -RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" - -DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | - grep "browser_download_url.*$ARCH_NAME.jar" | - cut -d : -f 2,3 | - tr -d '"' | - head -n1 - ) + +DOWNLOAD_URL="https://github.com/PhotonVision/photonvision/releases/download/v2026.1.1-rc-3/photonvision-v2026.1.1-rc-3-linuxarm64.jar" if [[ -z $DOWNLOAD_URL ]] ; then die "PhotonVision '$VERSION' is not available for $ARCH_NAME!" \ From 5c21ccc4fdf51895db708f61f84f675568c69f50 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 17 Jan 2026 14:21:07 -0800 Subject: [PATCH 10/16] another attempt at getting the right download url --- install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 69a88bf9..f97d9ab6 100755 --- a/install.sh +++ b/install.sh @@ -205,8 +205,14 @@ fi debug "Installing for platform $ARCH" - -DOWNLOAD_URL="https://github.com/PhotonVision/photonvision/releases/download/v2026.1.1-rc-3/photonvision-v2026.1.1-rc-3-linuxarm64.jar" +RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" + +DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | + grep "browser_download_url.*rc.*$ARCH_NAME.jar" | + cut -d : -f 2,3 | + tr -d '"' | + head -n1 + ) if [[ -z $DOWNLOAD_URL ]] ; then die "PhotonVision '$VERSION' is not available for $ARCH_NAME!" \ From 4a0be98aa06fa56a8e575ebdd6dc7f1a1a1014b3 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 17 Jan 2026 14:21:50 -0800 Subject: [PATCH 11/16] fix format --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f97d9ab6..a1b090f1 100755 --- a/install.sh +++ b/install.sh @@ -210,7 +210,7 @@ RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | grep "browser_download_url.*rc.*$ARCH_NAME.jar" | cut -d : -f 2,3 | - tr -d '"' | + tr -d '"' | head -n1 ) From 08661c3579a9ea8259ee5839e78a4b2ee6a1b072 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 17 Jan 2026 14:58:06 -0800 Subject: [PATCH 12/16] another attempt at getting the right download url --- install.sh | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/install.sh b/install.sh index a1b090f1..063f3504 100755 --- a/install.sh +++ b/install.sh @@ -207,18 +207,6 @@ debug "Installing for platform $ARCH" RELEASE_URL="https://api.github.com/repos/photonvision/photonvision/releases" -DOWNLOAD_URL=$(curl -sk "$RELEASE_URL" | - grep "browser_download_url.*rc.*$ARCH_NAME.jar" | - cut -d : -f 2,3 | - tr -d '"' | - head -n1 - ) - -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 - DISTRO=$(lsb_release -is) # Only ask if it makes sense to do so. @@ -281,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 + |echo $DOWNLOAD_URL | wget -qi - -O photonvision.jar fi debug "Downloaded PhotonVision." From 6da7755809d1d54c949fa9d0d66eaea219183c84 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 17 Jan 2026 15:07:02 -0800 Subject: [PATCH 13/16] another attempt at getting the right download url --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 063f3504..1a5528af 100755 --- a/install.sh +++ b/install.sh @@ -281,7 +281,7 @@ 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." - |echo $DOWNLOAD_URL | wget -qi - -O photonvision.jar + wget -q -O photonvision.jar "$DOWNLOAD_URL" fi debug "Downloaded PhotonVision." From 567b913090b22f6e509c64285f84935e77addec2 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 17 Jan 2026 15:13:25 -0800 Subject: [PATCH 14/16] another attempt at getting the right download url: remove quite options from wget --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 1a5528af..f23f8011 100755 --- a/install.sh +++ b/install.sh @@ -281,7 +281,7 @@ 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." - wget -q -O photonvision.jar "$DOWNLOAD_URL" + wget -O photonvision.jar "$DOWNLOAD_URL" fi debug "Downloaded PhotonVision." From db9d27bf6cd9cc10b11f036675072fb88f6530e9 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 17 Jan 2026 16:13:15 -0800 Subject: [PATCH 15/16] another attempt at getting the right download url: remove quite options from wget --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f23f8011..9616eebd 100755 --- a/install.sh +++ b/install.sh @@ -281,7 +281,7 @@ 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." - wget -O photonvision.jar "$DOWNLOAD_URL" + wget -O photonvision.jar $DOWNLOAD_URL fi debug "Downloaded PhotonVision." From c3babe8f690b111907ca31576acbb37a6ee55cd2 Mon Sep 17 00:00:00 2001 From: eljueves Date: Sat, 17 Jan 2026 16:27:39 -0800 Subject: [PATCH 16/16] make release candidate branch --- .github/workflows/main.yml | 4 ++-- install.sh | 30 ++++++++---------------------- install_opi5.sh | 3 ++- 3 files changed, 12 insertions(+), 25 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c8380e9..ccb80a13 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} diff --git a/install.sh b/install.sh index e7b55337..9616eebd 100755 --- a/install.sh +++ b/install.sh @@ -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) @@ -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." diff --git a/install_opi5.sh b/install_opi5.sh index 992d70e9..f801ec32 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -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