Broadcast Copy Manager
======================
The suite, one door - from Broadcast Copy.

One download that carries the studio. The manager is a native Windows
application: it shows your station and your suite's live status, launches
every module, and installs and updates the modules themselves from the
Broadcast Copy release registry - each artifact verified against its
published sha256 before a single file is written.


PREREQUISITES
-------------
Windows 10 or 11, 64-bit. Nothing else. There is no .NET runtime to
install: the manager ships with its own. Modules you install through it
carry their own prerequisites and say so before they need them.


INSTALL
-------
Right-click Install-BroadcastCopyManager.ps1 > Run with PowerShell, or:

    powershell -ExecutionPolicy Bypass -File "Install-BroadcastCopyManager.ps1"

It installs for the current user and never asks for administrator rights.
It touches exactly these places:

    %LOCALAPPDATA%\Programs\Broadcast Copy Manager   program files
    %LOCALAPPDATA%\Broadcast Copy Manager            configuration
    Start Menu > Broadcast Copy                      shortcut
    Desktop                                          shortcut (skip with -NoDesktopShortcut)
    HKCU ...\Uninstall\BroadcastCopyManager          so it appears in Settings > Apps
    Startup folder                                   ONLY if you ask for it, see below

It creates no services, no scheduled tasks and no firewall rules.


RUNNING IT ALL DAY
------------------
The manager is meant to sit in the notification area, beside the clock, for
the whole shift: closing its window hides it, the background monitor keeps
watching, and it speaks up when a service stops answering or an update
arrives. Quit (tray menu) or Exit (footer) are the two ways out.

To have it come back after a reboot, add it at install time:

    powershell -ExecutionPolicy Bypass -File "Install-BroadcastCopyManager.ps1" -Autostart

That puts one shortcut in YOUR Startup folder - no service, no scheduled
task, no administrator. It starts MINIMISED TO THE TRAY, so a studio PC
comes up to an icon and not to a window in front of whoever is on air, and
it stays quiet for the first two minutes while the machine finishes
starting rather than reporting services that are merely not up yet.

    -NoAutostart   removes it again
    (neither)      leaves your choice alone, so an upgrade never changes it

You can also just delete the shortcut, or switch it off in Task Manager >
Startup apps. Uninstalling removes it.


FIRST RUN
---------
Start Menu > Broadcast Copy > Broadcast Copy Manager.

The dashboard opens with your configuration. On a fresh machine that is a
starter page - open Updates (bottom right) to install modules, and press
Settings to name your station and add your apps. The configuration is one
plain JSON file, meant to be read and edited by hand:

    %LOCALAPPDATA%\Broadcast Copy Manager\manager-config.json

Reinstalling or upgrading never overwrites this file.


ONE CONFIGURATION, SEVERAL MACHINES
-----------------------------------
A station with more than one desk can hand every machine the same file. The
top level is what every machine gets; a "machines" block keyed by computer
name overrides the parts that differ:

    "services": [ { "name": "On-Air Engine", "port": 8106 } ],
    "machines": {
      "STUDIO-B": {
        "services": [ { "name": "On-Air Engine", "port": 8106, "host": "10.0.0.9" } ]
      }
    }

A section replaces the parts it names, wholesale, and inherits the rest.
A machine that is not listed gets the shared top level UNCHANGED - it is
never given another desk's services - so put what is true everywhere at the
top level and only the differences under "machines".


UPDATES
-------
The Updates window reads the Broadcast Copy release registry, compares it
with what this machine has, and installs or updates modules on request.
Every download is verified against the sha256 the registry publishes; an
artifact that does not match is discarded, never installed.

The same pipeline runs unattended, for scripted or scheduled updates:

    BroadcastCopySuiteManager.exe --install <package> --log out.log

exits 0 on success, 1 on failure. After the installer finishes, the Manager
looks for the install the way the Updates window will, and an installer that
exits cleanly but leaves nothing it can find is reported as a failure.

The modules it knows, where each one installs, and how it is found again:

    broadcast-copy-manager  this application
                            %LOCALAPPDATA%\Programs\Broadcast Copy Manager
    airsuite-console        the software mixing console
                            %LOCALAPPDATA%\Programs\AirSuite Console
    airsuite-production     the station's scheduling and production app
                            %LOCALAPPDATA%\Programs\AirSuite Production
                            needs airsuite-library (see below)
    airsuite-library        the Library & Programming service the app is a
                            client of: the station's format database and
                            scheduling (needs Node.js 22.13 or newer)
                            %LOCALAPPDATA%\Programs\AirSuite Library, its
                            data in %LOCALAPPDATA%\AirSuite Library
    airsuite-sync           the syndicated-programme downloader (needs Node.js)
                            C:\AirSuiteSync, or %LOCALAPPDATA%\AirSuiteSync
                            when C:\ is not writable without admin
    airsuite-onair          the on-air player (needs Node.js 22.15+); installs
                            silent - no audio until you configure the engine
                            %LOCALAPPDATA%\Programs\AirSuite On-Air

AirSuite Production does nothing without a library service. Installing it on a
PC that has none offers to install AirSuite Library FIRST (Yes installs both,
each download verified on its own; No installs only the app, for a station
whose library runs on another PC). Headless, add --with-requirements:

    BroadcastCopySuiteManager.exe --install airsuite-production --with-requirements

Each installer writes an install manifest (.airsuite-<module>.json) in its
folder, last, and the Manager reads the installed version from it (or from
Settings > Apps). Every install is per user and none needs administrator
rights. A module the registry lists but has not published yet shows as
"registered - no artifact published yet" and offers no button.

To install somewhere else, or with an installer's own switches, add an entry
for that package under "updates" > "packages" in manager-config.json:

    { "package": "airsuite-production",
      "manifests": [ "D:\\Apps\\AirSuite Production\\.airsuite-production.json" ],
      "installArgs": "-InstallRoot \"D:\\Apps\\AirSuite Production\" -NoDesktopShortcut" }

An entry replaces the built-in rule for that package, whole.


UNINSTALL
---------
Settings > Apps > Broadcast Copy Manager > Uninstall, or from the install
directory:

    powershell -ExecutionPolicy Bypass -File "Uninstall-BroadcastCopyManager.ps1"

It removes only what the installer created. Your configuration is kept, so
a reinstall picks up the same station; add -Purge to remove that as well.


SUPPORT
-------
https://broadcastcopy.ai
