Skip to content

Commit

Permalink
snap: update to core22
Browse files Browse the repository at this point in the history
  • Loading branch information
brenodt authored and MathJud committed Jun 25, 2024
1 parent 05aca06 commit 0909c91
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions qaul_ui/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ summary: qaul - Internet Independent Wireless Mesh Communication App
description: Communicate directly from device to device via your local wifi network, or via the shared wifi network of your phone. Mesh local clouds together via manually added static nodes. Use this peer to peer communication method to communicate internet independently and completely off-the-grid.

confinement: strict
base: core20
base: core22
grade: stable

slots:
Expand All @@ -16,7 +16,7 @@ slots:
apps:
qaul:
command: bin/qaul
extensions: [gnome-3-38]
extensions: [gnome]
plugs:
- home
- mount-observe
Expand Down Expand Up @@ -46,7 +46,7 @@ parts:
flutter-deps:
plugin: nil
source: https://github.com/flutter/flutter.git
source-tag: 3.22.2
source-tag: 3.22.1
override-build: |
set -eux
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/bin
Expand All @@ -61,12 +61,12 @@ parts:
- curl
- ninja-build
- unzip
override-prime: ''
override-prime: ""

libqaul:
plugin: nil
source: https://github.com/qaul/qaul.net.git
after: [ rust-deps ]
after: [rust-deps]
build-packages:
- protobuf-compiler
- libc-bin
Expand All @@ -77,26 +77,26 @@ parts:
cargo --version
cd rust/libqaul || exit 1
rm build.rs
cargo build --release
cd ..
mkdir -p $SNAPCRAFT_PART_INSTALL/bin/lib
cp target/release/liblibqaul.so $SNAPCRAFT_PART_INSTALL/bin/lib
qaul:
plugin: nil
after: [ flutter-deps ]
after: [flutter-deps]
source: .
override-build: |
set -eux
BEFORE="_lib = DynamicLibrary.open('../rust/target/\$mode/liblibqaul.so');"
AFTER="_lib = DynamicLibrary.open('\${Platform.environment['SNAP']}/bin/lib/liblibqaul.so');"
sed -i -e "s|$BEFORE|$AFTER|g" packages/qaul_rpc/lib/src/libqaul/ffi.dart
flutter pub get || true
flutter build linux --release -v
Expand Down

0 comments on commit 0909c91

Please sign in to comment.