From 2f5eaa18c79904531f7b00c22438f59241f6ebe6 Mon Sep 17 00:00:00 2001 From: Kenny <27463495+Frontesque@users.noreply.github.com> Date: Thu, 29 Feb 2024 11:57:07 -0500 Subject: [PATCH] add linux build --- .github/workflows/build.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 578253e..f098680 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ env: jobs: windows: - name: "Build SCRCPY+ for Windows" + name: "Windows" runs-on: windows-latest steps: - name: Checkout @@ -29,4 +29,25 @@ jobs: uses: actions/upload-artifact@v2 with: name: windows - path: electron_dist + path: app/electron_dist + linux: + name: "Linux" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v2 + with: + node-version: ${{ env.NODE_VERSION }} + - name: Install dependencies + run: npm i + working-directory: app + - name: Build + run: export NODE_OPTIONS=--openssl-legacy-provider && npm run electron:build + working-directory: app + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: windows + path: app/electron_dist