diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7804d2e..ec5fd35 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/setup-node@v4.0.2 with: node-version: 18 - + - name: Set up node_modules cache uses: actions/cache@v4 continue-on-error: false @@ -41,7 +43,7 @@ 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) @@ -49,4 +51,37 @@ jobs: # 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') }} \ No newline at end of file + 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]') \ No newline at end of file diff --git a/electron-builder.yml b/electron-builder.yml index b180fc0..af9871d 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -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 \ No newline at end of file + - "deb" \ No newline at end of file diff --git a/resources/icon.icns b/resources/icon.icns index bd1034e..9a1f11e 100644 Binary files a/resources/icon.icns and b/resources/icon.icns differ diff --git a/resources/icon.ico b/resources/icon.ico index 5118c08..34a9c8d 100644 Binary files a/resources/icon.ico and b/resources/icon.ico differ