Skip to content

Commit 6bdfeab

Browse files
committed
feat: Debian package workflow
1 parent 74ba4fe commit 6bdfeab

6 files changed

Lines changed: 80 additions & 73 deletions

File tree

.github/actions/debian/action.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/build-deb.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
-name: Build Linux .deb
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
8+
jobs:
9+
build-deb:
10+
name: Build Debian Package
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v5
16+
17+
- name: Install Linux build dependencies
18+
run: |
19+
sudo apt-get update -y
20+
sudo apt-get install -y \
21+
clang cmake ninja-build pkg-config \
22+
libgtk-3-dev liblzma-dev libstdc++-12-dev \
23+
dpkg-dev
24+
25+
- name: Set up Flutter
26+
uses: subosito/flutter-action@v2
27+
with:
28+
channel: stable
29+
cache: true
30+
31+
- name: Install Dart/Flutter dependencies
32+
run: flutter pub get
33+
34+
- name: Build Linux release
35+
run: flutter build linux --release
36+
37+
- name: Install flutter_build_debian
38+
run: dart pub global activate flutter_build_debian
39+
40+
- name: Build .deb package
41+
run: |
42+
export PATH="$PATH:$HOME/.pub-cache/bin"
43+
flutter_build_debian
44+
45+
- name: Upload .deb as artifact
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: badgemagic-deb
49+
path: debian/packages/*.deb
50+
retention-days: 30

.github/workflows/build_debian.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

debian/debian.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
flutter_app:
2+
command: badgemagic
3+
arch: x64
4+
parent: /usr/local/lib
5+
nonInteractive: false
6+
7+
control:
8+
Package: badgemagic
9+
Version: 1.0.0+1
10+
Architecture: amd64
11+
Priority: optional
12+
Depends: libgtk-3-0, libglib2.0-0, libstdc++6, bluez
13+
Maintainer: Badge Magic Contributors <your-email@example.com>
14+
Description: Badge Magic - BLE LED Badge Controller
15+
Control your LED name badges wirelessly via Bluetooth using Badge Magic.
16+
17+
options:
18+
exec_out_dir: debian/packages

debian/gui/badgemagic.desktop

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Name=Badge Magic
4+
GenericName=LED Badge Controller
5+
Comment=Control LED name badges via Bluetooth
6+
Exec=badgemagic
7+
Icon=badgemagic
8+
Terminal=false
9+
Type=Application
10+
Categories=Utility;HamRadio;
11+
Keywords=BLE;LED;Badge;Bluetooth;
12+
StartupNotify=true

debian/gui/badgemagic.png

34.9 KB
Loading

0 commit comments

Comments
 (0)