Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ jobs:
"./firmware/cosmos-centauri-carbon-2.swu" \
--clobber \
--repo OpenCentauri/cosmos

gh api -X PATCH repos/${GITHUB_REPOSITORY}/git/refs/tags/0.0.0 \

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the commit the nightly release it based off, rather than just checking against latest commit hash on main

-f sha=$GITHUB_SHA -F force=true
1 change: 1 addition & 0 deletions meta-opencentauri/images/cosmos-image-base.bb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ inherit core-image
IMAGE_FEATURES += "ssh-server-dropbear"

CORE_IMAGE_EXTRA_INSTALL += "\
os-release \
usbutils \
libgpiod \
libgpiod-tools \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
From 24908423635c63389f1da713cb723aa3a3af21c9 Mon Sep 17 00:00:00 2001
From: James Turton <james.turton@gmx.com>
Date: Thu, 1 Oct 2026 22:04:33 +0200
Subject: [PATCH] update_manager: Add support for SWUDeploy

---
moonraker/components/update_manager/common.py | 3 +++
moonraker/components/update_manager/update_manager.py | 4 +++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/moonraker/components/update_manager/common.py b/moonraker/components/update_manager/common.py
index 32c1cf8..232eb3d 100644
--- a/moonraker/components/update_manager/common.py
+++ b/moonraker/components/update_manager/common.py
@@ -51,6 +51,7 @@ class AppType(ExtendedEnum):
ZIP = 4
PYTHON = 5
EXECUTABLE = 6
+ SWUPDATE = 7

@classmethod
def detect(cls, app_path: Union[str, pathlib.Path, None] = None):
@@ -76,6 +77,8 @@ class AppType(ExtendedEnum):
return []
elif self in [AppType.WEB, AppType.ZIP, AppType.EXECUTABLE]:
return [Channel.STABLE, Channel.BETA] # type: ignore
+ elif self == AppType.SWUPDATE:
+ return [Channel.STABLE, Channel.DEV] # type: ignore
else:
return list(Channel)

diff --git a/moonraker/components/update_manager/update_manager.py b/moonraker/components/update_manager/update_manager.py
index cd580c9..0973132 100644
--- a/moonraker/components/update_manager/update_manager.py
+++ b/moonraker/components/update_manager/update_manager.py
@@ -17,6 +17,7 @@ from .app_deploy import AppDeploy
from .git_deploy import GitDeploy
from .net_deploy import NetDeploy
from .python_deploy import PythonDeploy
+from .swu_deploy import SwuDeploy
from .system_deploy import PackageDeploy
from ...common import RequestType
from ...utils.filelock import AsyncExclusiveFileLock, LockTimeout
@@ -61,7 +62,8 @@ def get_deploy_class(
AppType.GIT_REPO: GitDeploy,
AppType.ZIP: NetDeploy,
AppType.PYTHON: PythonDeploy,
- AppType.EXECUTABLE: NetDeploy
+ AppType.EXECUTABLE: NetDeploy,
+ AppType.SWUPDATE: SwuDeploy
}
return _deployers.get(key, default)

Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ subscriptions:
service: mjpegstreamer
stream_url: /webcam/?action=stream
snapshot_url: /webcam/?action=snapshot

[update_manager]
enable_system_updates: False
Loading
Loading