Skip to content

Commit

Permalink
service ok
Browse files Browse the repository at this point in the history
service ok
  • Loading branch information
LucaCoduriV committed Jun 5, 2023
1 parent c173d1e commit 2d123e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions build_scripts/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkgname=notiflut
pkgver=0.1.1
pkgver=0.1.2
pkgrel=1
pkgdesc="A simple notificaion daemon with a GTK panel for checking previous notifications like other DEs"
_pkgfoldername=Notiflut-Land
Expand All @@ -19,6 +19,7 @@ source=("${_pkgfoldername}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")

build() {
cd "$srcdir/$_pkgfoldername-$pkgver/notiflut_deamon"
flutter_rust_bridge_codegen --rust-input native/src/api.rs --dart-output lib/src/native/bridge_generated.dart --dart-decl-output lib/src/native/bridge_definitions.dart
flutter build linux --release
}

Expand All @@ -30,6 +31,7 @@ package() {
ln -s /opt/${pkgname}/notiflut_land ${pkgdir}/usr/bin/notiflut_land

#install service
install -Dm644 $_pkgfoldername-$pkgver/notiflut_deamon/notiflut.systemd.service ${pkgdir}/etc/systemd/system/
install -Dm644 $_pkgfoldername-$pkgver/notiflut_deamon/org.lucacoduriv.notiflut.service ${pkgdir}/usr/share/dbus-1/services/
mv $_pkgfoldername-$pkgver/notiflut_deamon/notiflut.systemd.service $_pkgfoldername-$pkgver/notiflut_deamon/notiflut.service
install -Dm644 $_pkgfoldername-$pkgver/notiflut_deamon/notiflut.service -t ${pkgdir}/etc/systemd/user/
install -Dm644 $_pkgfoldername-$pkgver/notiflut_deamon/org.lucacoduriv.notiflut.service -t ${pkgdir}/usr/share/dbus-1/services/
}
4 changes: 2 additions & 2 deletions notiflut_deamon/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.1.0
version: 0.1.2

environment:
sdk: ">=2.19.6 <3.0.0"
Expand All @@ -34,7 +34,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
flutter_rust_bridge: ^1.75.1
flutter_rust_bridge: ^1.77.1
ffi: ^2.0.1
freezed_annotation: ^2.2.0
image: ^4.0.16
Expand Down

0 comments on commit 2d123e9

Please sign in to comment.