fix(release): the dry run goes on without snapcraft rather than crashing
Where snapcraft is missing, the release is refused already; asking it for its login then threw, so the dry run stopped before listing the rest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
7727317c68
commit
50c0d28194
1 changed files with 4 additions and 1 deletions
|
|
@ -835,7 +835,10 @@ final class Releaser({
|
||||||
_refuse('No JDK found (java, keytool).');
|
_refuse('No JDK found (java, keytool).');
|
||||||
}
|
}
|
||||||
_environment['PATH'] = '$jdk:${_environment['PATH'] ?? ''}';
|
_environment['PATH'] = '$jdk:${_environment['PATH'] ?? ''}';
|
||||||
if (app.snap?.storeChannel case final channel? when channel.isNotEmpty) {
|
// Asked only where snapcraft is there: without, the release was
|
||||||
|
// refused above, and the dry run goes on to say what else it would.
|
||||||
|
if (app.snap?.storeChannel case final channel?
|
||||||
|
when channel.isNotEmpty && _which('snapcraft') != null) {
|
||||||
final whoami = await Process.run('snapcraft', ['whoami']);
|
final whoami = await Process.run('snapcraft', ['whoami']);
|
||||||
if (!RegExp(
|
if (!RegExp(
|
||||||
r'^username:\s*\S',
|
r'^username:\s*\S',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue