From 08981e83d58380c55a5ffdeeb2fd422ed7d896a8 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 25 Nov 2026 00:32:52 +0100 Subject: [PATCH] Apply the shared design inside the native shop frame --- website/ops/publish-realm-design.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/ops/publish-realm-design.py b/website/ops/publish-realm-design.py index 54fe67e6..8050b889 100644 --- a/website/ops/publish-realm-design.py +++ b/website/ops/publish-realm-design.py @@ -39,6 +39,11 @@ def absolute(match): shop_html=re.sub(r'\b(src|href)="([^"]*)"',absolute,shop_html) changes['shop-portal/index.html']=shop_html;targets['shop-portal/index.html']=(shop_root/'index.html').resolve(strict=True) assert targets['shop-portal/index.html'].is_relative_to(shop_root) +shop_app=pathlib.Path('/home/dunerealms/apps/oscommerce').resolve(strict=True) +shop_inner=(shop_app/'oscommerce-inner.js').resolve(strict=True);assert shop_inner.is_relative_to(shop_app) +# Keep the native resizing/checkout bridge and apply the same design inside it. +changes['shop-native/oscommerce-inner.js']=append(shop_inner.read_text(),script) +targets['shop-native/oscommerce-inner.js']=shop_inner for kind,document in [('clans','clan-center-index.html'),('corp','company-center-index.html')]: root=pathlib.Path('/var/www/dunerealms-'+kind).resolve(strict=True) name=kind+'-portal/index.html';changes[name]=(release/'ops'/document).read_text();targets[name]=(root/'index.html').resolve(strict=True)