Skip to content

Commit

Permalink
add linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
Frontesque authored Feb 29, 2024
1 parent 79c1501 commit 2f5eaa1
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
windows:
name: "Build SCRCPY+ for Windows"
name: "Windows"
runs-on: windows-latest
steps:
- name: Checkout
Expand All @@ -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

0 comments on commit 2f5eaa1

Please sign in to comment.