diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index d4b2cdcc..8e9a35c7 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -55,9 +55,7 @@ runs: - name: Install shell: bash - run: yarn install - env: - npm_config_node_gyp: ${{ github.workspace }}${{ runner.os == 'Windows' && '\node_modules\node-gyp\bin\node-gyp.js' || '/node_modules/node-gyp/bin/node-gyp.js' }} + run: yarn install --immutable - name: Install libarchive-tools shell: bash diff --git a/bin/cp-snapshot.js b/bin/cp-snapshot.js index a800117c..a9d437e3 100644 --- a/bin/cp-snapshot.js +++ b/bin/cp-snapshot.js @@ -11,6 +11,7 @@ function copySnapshot(pathToElectron, archToCopy) { const pathToBlobV8 = path.resolve(__dirname, '..', 'cache', archToCopy, v8ContextFileName); console.log('Copying v8 snapshots from', pathToBlob, 'to', pathToElectron); + fs.mkdirSync(pathToElectron, { recursive: true }); fs.copyFileSync(pathToBlob, path.join(pathToElectron, snapshotFileName)); fs.copyFileSync(pathToBlobV8, path.join(pathToElectron, v8ContextFileName)); }