[eric] vmp: --no-ask must precede the subcommand (castlabs global flag; broke the release afterPack on both platforms)

This commit is contained in:
ciregenz
2026-07-05 16:43:44 -07:00
parent a459177d39
commit f5a851c5c6
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ function signVmp(context) {
console.log(`[afterPack] VMP-signing ${target}`);
// Creds go via the environment (EVS reads EVS_ACCOUNT_NAME/EVS_PASSWD), never on
// the argv — a password in a command line is readable by any `ps` on the host.
execFileSync(py, ['-m', 'castlabs_evs.vmp', 'sign-pkg', target, '--no-ask'], {
// --no-ask is a GLOBAL castlabs flag; it must precede the subcommand or vmp.py rejects it (killed the first 1.5.5 release run).
execFileSync(py, ['-m', 'castlabs_evs.vmp', '--no-ask', 'sign-pkg', target], {
stdio: 'inherit',
env: { ...process.env, EVS_ACCOUNT_NAME: acct, EVS_PASSWD: pass },
});
+1 -1
View File
@@ -57,7 +57,7 @@ if echo "$VERIFY_OUTPUT" | grep -q "Signature is valid" && ! echo "$VERIFY_OUTPU
fi
echo "[vmp] Signing Electron with production VMP certificate..."
if python3 -m castlabs_evs.vmp sign-pkg "$ELECTRON_DIR" "${EVS_AUTH[@]}" 2>&1; then
if python3 -m castlabs_evs.vmp "${EVS_AUTH[@]}" sign-pkg "$ELECTRON_DIR" 2>&1; then
echo "[vmp] VMP signing successful — full DRM playback enabled"
# Re-fix symlinks in case signing modified the bundle
fix_framework_symlinks