Skip to content

Commit

Permalink
feat(ci): add flatpak to releases (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorillamoe authored Dec 6, 2024
1 parent ea9afac commit 74372d3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "PLATFORM=linux" >> $GITHUB_ENV
- name: Install OS packages
run: |
sudo apt-get install -y flatpak flatpak-builder && \
flatpak remote-add \
--user \
--if-not-exists \
flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Set up Node
uses: actions/setup-node@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion electron-builder.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
appId: net.getbananas
appId: net.getbananas.desktop
productName: bananas
directories:
buildResources: build
Expand Down Expand Up @@ -44,6 +44,7 @@ linux:
target:
- AppImage
- snap
- flatpak
- deb
maintainer: getbananas.net
category: Utility
Expand All @@ -52,6 +53,8 @@ appImage:
artifactName: ${name}_${arch}.${ext}
snap:
artifactName: ${name}_${arch}.${ext}
flatpak:
artifactName: ${name}_${arch}.${ext}
deb:
artifactName: ${name}_${arch}.${ext}
npmRebuild: false
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bananas",
"version": "0.0.16",
"version": "0.0.17",
"description": "Bananas Screen Sharing is a simple and easy-to-use screen sharing tool for Mac, Windows, and Linux.",
"main": "./out/main/index.js",
"author": {
Expand All @@ -26,6 +26,7 @@
"build:linux:deb": "npm run build && electron-builder --linux deb --publish never",
"build:linux:appimage": "npm run build && electron-builder --linux appImage --publish never",
"build:linux:snap": "npm run build && electron-builder --linux snap --publish never",
"build:linux:flatpak": "npm run build && electron-builder --linux flatpak --publish never",
"node:packages:update": "ncu -u",
"node:packaages:upgrade": "ncu -u && npm install"
},
Expand Down
1 change: 1 addition & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LINUX_FILES=(
"dist/${BIN_NAME}_amd64.deb"
"dist/${BIN_NAME}_amd64.snap"
"dist/${BIN_NAME}_x86_64.AppImage"
"dist/${BIN_NAME}_x86_64.flatpak"
)

WINDOWS_FILES=(
Expand Down

0 comments on commit 74372d3

Please sign in to comment.