mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-28 03:59:58 -07:00
Small bump in the road
- Update assets and references for new project - Revert DFU image and CLI motd - Remove NSFW text and flag - Remove credits animation (will be replaced with a setting menu soon) - New EvilPortal example HTML and better error message - Initial standalone naming for asset packs and mainmenu apps - File migration fixes/improvements - Remove hotfix workflow
This commit is contained in:
10
.github/workflow_data/webupdater.py
vendored
10
.github/workflow_data/webupdater.py
vendored
@@ -5,16 +5,10 @@ import os
|
||||
|
||||
if __name__ == "__main__":
|
||||
client = nextcloud_client.Client(os.environ["NC_HOST"])
|
||||
_session = requests.session
|
||||
def session(*args, **kwargs):
|
||||
s = _session(*args, **kwargs)
|
||||
s.headers["User-Agent"] = os.environ["NC_USERAGENT"]
|
||||
return s
|
||||
requests.session = session
|
||||
client.login(os.environ["NC_USER"], os.environ["NC_PASS"])
|
||||
|
||||
file = os.environ["ARTIFACT_TGZ"]
|
||||
path = f"XFW-Updater/{file}"
|
||||
path = f"MNTM-Release/{file}"
|
||||
try:
|
||||
client.delete(path)
|
||||
except Exception:
|
||||
@@ -34,7 +28,7 @@ if __name__ == "__main__":
|
||||
os.environ['ARTIFACT_TGZ'],
|
||||
os.environ['ARTIFACT_TGZ'].removesuffix(".tgz") + ".md"
|
||||
)
|
||||
for file in client.list("XFW-Updater"):
|
||||
for file in client.list("MNTM-Release"):
|
||||
if file.name.startswith(version) and file.name not in files:
|
||||
try:
|
||||
client.delete(file.path)
|
||||
|
||||
Reference in New Issue
Block a user