appId: site.codingplan.openterminal productName: OpenTerminal directories: output: release files: - out/** - package.json asar: true asarUnpack: - "**/node_modules/@lydell/node-pty/**" - "**/node_modules/ssh2/**" # @lydell/node-pty ships prebuilt binaries; do not trigger a rebuild. npmRebuild: false # Electron-updater only supports NSIS auto-updates (MSI has no update channel). # The NSIS .exe + latest.yml get uploaded together; MSI is manual/enterprise only. win: target: - target: msi - target: nsis msi: oneClick: false # Fixed upgrade code keeps the upgrade chain consistent across releases. upgradeCode: "{5ab9f79e-e4eb-4052-9df6-3af3a301ab0a}" artifactName: ${productName}-${version}-setup.${ext} # No build/icon.ico exists. The WiX template only emits when an icon is # set, but the shortcut elements still reference Icon=, so MSI linking # fails with LGHT0094. Disabling MSI shortcuts drops the dangling reference. # NSIS still creates its shortcuts independently. createDesktopShortcut: false createStartMenuShortcut: false nsis: oneClick: false allowToChangeInstallationDirectory: true perMachine: false artifactName: ${productName}-${version}-setup.${ext} # Declaring a publish provider makes electron-builder emit the update-info file # (latest.yml) into directories.output for upload. No token is stored here; the # main agent handles feed authentication during upload. Build runs with the # default publish policy, so nothing is uploaded from this script. publish: provider: generic url: https://git.codingplan.site/api/packages/admin/generic/openterminal-update/stable/