🚧 Add build script

This commit is contained in:
Jonas Bengtsson
2026-10-08 11:01:27 +02:00
parent e5675ec559
commit eee8181166
+12 -5
View File
@@ -7,9 +7,10 @@
# .\scripts\build_exe.ps1 -Clean # remove build\ + dist\ first # .\scripts\build_exe.ps1 -Clean # remove build\ + dist\ first
# #
# The exe is a console application hosting every CLI verb (check-config, # The exe is a console application hosting every CLI verb (check-config,
# list-servers, list-devices, list-tags, the future run/probe/service verbs). # list-servers, list-items, read/probe, run) AND the Windows service host:
# It is not itself a service binary: the Phase 3 service host will register # 'install' registers this same exe with the SCM (IMPLEMENTATION_PLAN 6);
# this same exe with the SCM via the 'install' verb (IMPLEMENTATION_PLAN 6). # when the SCM starts it, the fixed 'service' argv shape dispatches to
# the ServiceFramework host.
# #
# Hard rules enforced here: # Hard rules enforced here:
# 1. 32-bit interpreter (SPECIFICATION 11): the OPC DA Automation Wrapper # 1. 32-bit interpreter (SPECIFICATION 11): the OPC DA Automation Wrapper
@@ -49,8 +50,14 @@ $HiddenImports = @(
# opc backend modules imported lazily in main.py CLI verbs # opc backend modules imported lazily in main.py CLI verbs
'opcda_diagnozer.opc.automation', 'opcda_diagnozer.opc.automation',
'opcda_diagnozer.opc.browse', 'opcda_diagnozer.opc.browse',
# future service host (Phase 3) - keep it in the bundle from day one # the service host (Phase 3) - lazily imported by main (SCM dispatch) and
'opcda_diagnozer.service' # itself importing win32serviceutil/win32service/servicemanager/
# win32evtlogutil only inside functions
'opcda_diagnozer.service',
'win32service',
'win32serviceutil',
'servicemanager',
'win32evtlogutil'
) )
function Fail { function Fail {