Skip to content

Commit e079ecb

Browse files
committed
Merge branch 'main' into camera-streamer
2 parents 45bb488 + 2b04af3 commit e079ecb

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/custopize.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ jobs:
248248
repo: OctoPrint/devtools
249249
ref: main
250250
inputs: '{"image": "${{ needs.build.outputs.image-url }}", "target": "pic"}'
251-
repost-logs: true
251+
repost-logs: false
252252

253253
deploy:
254254
name: "Deploy"

scripts/02-update-octoprint

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ export LC_ALL=C
66
source /common.sh
77
install_cleanup_trap
88

9+
BUNDLED="OctoPrint-FileCheck OctoPrint-FirmwareCheck OctoPrint-PiSupport"
10+
911
if [ -n "$OCTOPRINT_VERSION" ]; then
1012
# fetch from GitHub since PyPI might not yet be synced through right after a fresh release
11-
sudo -u pi /home/pi/oprint/bin/pip install -U https://github.com/OctoPrint/OctoPrint/archive/refs/tags/$OCTOPRINT_VERSION.zip
13+
sudo -u pi /home/pi/oprint/bin/pip install -U https://github.com/OctoPrint/OctoPrint/archive/refs/tags/$OCTOPRINT_VERSION.zip $BUNDLED
1214
else
13-
sudo -u pi /home/pi/oprint/bin/pip install -U OctoPrint
15+
sudo -u pi /home/pi/oprint/bin/pip install -U OctoPrint $BUNDLED
1416
fi

scripts/82-fix-welcome-banner

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
set -x
2+
set -e
3+
4+
export LC_ALL=C
5+
6+
source /common.sh
7+
install_cleanup_trap
8+
9+
# if we already have the octopi.txt file updated, we don't need to do anything
10+
grep -q 'from octoprint._version import' /home/pi/scripts/welcome || exit 0
11+
12+
sed -i 's#^_OCTOPRINT_VERSION=.*$#_OCTOPRINT_VERSION=$($HOME/oprint/bin/python -c "from octoprint.util.version import get_octoprint_version_string; print(get_octoprint_version_string())" || echo "unknown")#' /home/pi/scripts/welcome

0 commit comments

Comments
 (0)