From e83dfd1aefe502cfd000a64edeae8da9be0f7d1e Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 14 Oct 2024 10:27:11 +0100 Subject: [PATCH] Fix nightly / release building Unsure what would have changed here but electron doesn't seem to like even giving its version without a setuid sandbox helper now. --- .github/workflows/build_prepare.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_prepare.yaml b/.github/workflows/build_prepare.yaml index ffb727ca..79fa82f2 100644 --- a/.github/workflows/build_prepare.yaml +++ b/.github/workflows/build_prepare.yaml @@ -65,7 +65,8 @@ jobs: # We split this out to save the build_* scripts having to do it to make use of `hashFiles` in the cache action - name: Generate cache hash files run: | - yarn run --silent electron --version > electronVersion + # Add --no-sandbox as otherwise it fails because the helper isn't setuid root. It's only getting the version. + yarn run --silent electron --no-sandbox --version > electronVersion cat package.json | jq -c .hakDependencies | sha1sum > hakHash find hak -type f -print0 | xargs -0 sha1sum >> hakHash find scripts/hak -type f -print0 | xargs -0 sha1sum >> hakHash