From bb0c98f0f610ec44646f8e4c9b7f1ca7b7df73af Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Sat, 17 Jun 2023 11:51:32 +0530 Subject: [PATCH] add pacman build target (#7272) --- .github/workflows/nodejs.yml | 11 +++++++++-- electron-builder.json | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1e5f00cd..0579e894 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -40,6 +40,9 @@ jobs: 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' }} + - name: Install libarchive-tools + if: runner.os == 'Linux' + run: sudo apt install libarchive-tools - name: Lint and Run Unit Tests run: yarn run test - name: Getting Build Icon @@ -73,6 +76,7 @@ jobs: dist/*.AppImage dist/*.deb dist/*.rpm + dist/*.pacman dist/*.exe - name: Run E2E Tests if: runner.os != 'Linux' @@ -128,7 +132,9 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install - run: yarn install + run: | + yarn install + sudo apt install libarchive-tools - name: Compile run: yarn run build - name: rebuild node-pty @@ -157,7 +163,7 @@ jobs: sudo apt install -y libglib2.0-0:i386 libexpat1:i386 npm_config_arch=armv7l yarn run v8-snapshot:arch - name: Build - run: yarn run electron-builder -l deb rpm AppImage --${{ matrix.name }} -c electron-builder-linux-ci.json + run: yarn run electron-builder -l deb rpm AppImage pacman --${{ matrix.name }} -c electron-builder-linux-ci.json env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Archive Build Artifacts @@ -168,3 +174,4 @@ jobs: dist/*.AppImage dist/*.deb dist/*.rpm + dist/*.pacman diff --git a/electron-builder.json b/electron-builder.json index 4dd8405a..d63e8987 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -24,7 +24,8 @@ "deb", "AppImage", "rpm", - "snap" + "snap", + "pacman" ] }, "win": {