Skip to content

Commit

Permalink
Merge pull request #1 from author-more/build/add-build
Browse files Browse the repository at this point in the history
ci: add build
  • Loading branch information
Belar authored Oct 22, 2024
2 parents a7acb1e + fae9729 commit 5e6f9fa
Show file tree
Hide file tree
Showing 4 changed files with 4,984 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on: [push, pull_request]

permissions:
# Required for Electron Builder to create and update releases on Github
contents: write

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os}}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Build
shell: bash
run: |
if [ "${{ github.head_ref || github.ref_name }}" = "main" ]; then
npm run build -- --x64 --arm64
else
npm run build -- --x64 --arm64 --publish=never
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 8 additions & 8 deletions build/electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ mac:
- "dmg" # Installer
- "zip" # Required for auto updater

dmg:
sign: true
# dmg:
# sign: true

# Windows
win:
Expand All @@ -44,11 +44,11 @@ linux:
target:
- deb # Debian/Ubuntu
- rpm # RHEL/Fedora
- freebsd # BSD
- pacman # For Arch
# - freebsd # BSD
# - pacman # For Arch
- AppImage # Universal
- snap # Snapcraft Store - Can't build arm version on amd64 machines(comment Snap out if you plan to)
# - snap # Snapcraft Store - Can't build arm version on amd64 machines(comment Snap out if you plan to)

snap:
allowNativeWayland: true
confinement: "strict"
# snap:
# allowNativeWayland: true
# confinement: "strict"
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit 5e6f9fa

Please sign in to comment.