Skip to content

Commit

Permalink
Update scripts & desktop build & pack steps
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen-palanisamy committed Apr 16, 2023
1 parent 625c469 commit eca7065
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build_desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,20 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build for Desktop
run: npm run build:desktop

- if: startsWith(matrix.os, 'ubuntu')
name: Build Linux App
name: Pack for Linux
run: |
sudo apt-get install -y rpm
sudo snap install snapcraft --classic
npx electron-builder build --linux --x64 --publish=always
- if: startsWith(matrix.os, 'windows')
name: Build Windows App
name: Pack for Windows
run: npx electron-builder build --win --x64 --arm64 --publish=always

- if: startsWith(matrix.os, 'macos')
name: Build macOS App
name: Pack for macOS
run: npx electron-builder build --mac --x64 --universal --publish=always
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"dev": "next renderer",
"build": "next build renderer",
"start": "next start renderer",
"dev:desktop": "npm run build && electron .",
"dev:desktop": "npm run build:dekstop && electron .",
"build:desktop": "npm run clean && npm run build:electron",
"dist": "npm run build && electron-builder",
"dist": "npm run build:desktop && electron-builder",
"postinstall": "electron-builder install-app-deps",
"clean": "rimraf dist renderer/.next main/*.js main/**/*.js",
"build:main": "tsc -p main",
Expand Down

0 comments on commit eca7065

Please sign in to comment.