From 3cb073863a34ac89bdd9d9acb56ad7e55f32ea3e Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:22:39 +0100 Subject: Fix arm builds (#1400) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: André Oliveira (cherry picked from commit f669badf1908284de591ab12399fc3e7ee0c311a) Co-authored-by: Alphrag <34252790+Alphrag@users.noreply.github.com> --- .github/workflows/builds.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.github') diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 84feaa167..8e5f6c9bf 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -356,6 +356,14 @@ jobs: with: node-version-file: '.nvmrc' cache: 'pnpm' + #TODO - Remove this once https://github.com/electron-userland/electron-builder/issues/6933#issuecomment-1213438889 is resolved + - name: Tweak pnpm.cjs + run: | + # Run the command to get the pnpm store path and store it in a variable + PNPM_BASEDIR=$(dirname "$(echo "$PNPM_HOME" | sed -e 's/\\/\//g' -e 's/^\([A-Za-z]\):/\/\1/')") + + sed -i 's/\/usr\/bin\/env node/node/g' "$PNPM_BASEDIR/pnpm/bin/pnpm.cjs" + shell: bash - name: Install node dependencies uses: nick-fields/retry@v2.8.3 with: -- cgit v1.2.3-54-g00ecf