Skip to content

Commit

Permalink
chore: icon & build
Browse files Browse the repository at this point in the history
  • Loading branch information
lijiahao committed Sep 20, 2024
1 parent 6f1c838 commit 88af8ff
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 20 deletions.
53 changes: 44 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,23 @@ jobs:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
arch: [x64, arm64]
exclude:
- os: ubuntu-latest
arch: arm64
- os: windows-latest
arch: arm64
exclude:
- os: ubuntu-latest
arch: arm64
- os: windows-latest
arch: arm64

steps:
- name: Check out Git repository
- name: Checkout Git repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Node.js, NPM and Yarn
uses: actions/[email protected]
with:
node-version: 18

- name: Set up node_modules cache
uses: actions/cache@v4
continue-on-error: false
Expand All @@ -41,12 +43,45 @@ jobs:
run: yarn

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
uses: samuelmeuli/action-electron-builder@v1.6.0
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
# if: startsWith(github.ref, 'refs/tags/v')

- name: Publish Linux AppImage
uses: actions/upload-artifact@v4
with:
name: XStreaming-linux.AppImage
path: |
dist/*.AppImage
if: matrix.os == 'ubuntu-latest' && contains(github.event.head_commit.message, '[build]')

- name: Publish Linux DEB
uses: actions/upload-artifact@v4
with:
name: XStreaming-linux.deb
path: |
dist/*.deb
if: matrix.os == 'ubuntu-latest' && contains(github.event.head_commit.message, '[build]')

- name: Publish Mac DMG
uses: actions/upload-artifact@v4
with:
name: XStreaming-macos.dmg
path: |
dist/*.dmg
if: matrix.os == 'macos-latest' && contains(github.event.head_commit.message, '[build]')

- name: Publish Windows EXE
uses: actions/upload-artifact@v4
with:
name: XStreaming-win.zip
path: |
dist/*.exe
if: matrix.os == 'windows-latest' && contains(github.event.head_commit.message, '[build]')
12 changes: 1 addition & 11 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,4 @@ linux:
category: Game
target:
- "AppImage"
# - "flatpak"
- "deb"
# - "pacman"

# flatpak:
# runtime: org.freedesktop.Platform
# runtimeVersion: 21.08

# sdk: org.freedesktop.Sdk
# base: org.electronjs.Electron2.BaseApp
# baseVersion: 21.08
- "deb"
Binary file modified resources/icon.icns
Binary file not shown.
Binary file modified resources/icon.ico
Binary file not shown.

0 comments on commit 88af8ff

Please sign in to comment.