Skip to content

Linux + iPhone Continuity / iMessage / SMS

2.8 KB
Raw Blame
# Flatpak manifest for tether.

app-id: com.tether.desktop
runtime: org.gnome.Platform
runtime-version: "49"
sdk: org.gnome.Sdk
command: tether-gtk
rename-desktop-file: tether-gtk.desktop
rename-icon: tether

finish-args:
  - --share=network # mDNS discovery and the mTLS listener
  - --socket=wayland
  - --system-talk-name=org.bluez # adapter, devices, GATT for ANCS
  - --system-talk-name=org.freedesktop.Avahi # Bonjour, so the iPhone finds this PC
  - --talk-name=org.bluez.obex # MAP messages and PBAP contacts
  - --talk-name=org.freedesktop.Notifications
  - --talk-name=org.freedesktop.secrets # the key for the encrypted message store
  - --filesystem=xdg-download # where received files go
  - --filesystem=xdg-run/tether:create
  - --allow=bluetooth
  - --filesystem=~/.mozilla/native-messaging-hosts:create
  - --filesystem=~/.thunderbird/native-messaging-hosts:create
  - --filesystem=~/.betterbird/native-messaging-hosts:create
  - --filesystem=~/.config/chromium/NativeMessagingHosts:create
  - --filesystem=~/.config/google-chrome/NativeMessagingHosts:create
  - --filesystem=~/.var/app/org.mozilla.firefox/.mozilla/native-messaging-hosts:create
  - --filesystem=~/.var/app/org.mozilla.Thunderbird/.thunderbird/native-messaging-hosts:create
  - --filesystem=~/.var/app/eu.betterbird.Betterbird/.betterbird/native-messaging-hosts:create
  - --filesystem=~/.var/app/org.chromium.Chromium/config/chromium/NativeMessagingHosts:create
  - --filesystem=~/.var/app/com.google.Chrome/config/google-chrome/NativeMessagingHosts:create
  - --filesystem=~/.local/bin:create

modules:
  - name: gtk-layer-shell
    buildsystem: meson
    config-opts:
      - --libdir=lib
      - -Dexamples=false
      - -Ddocs=false
      - -Dtests=false
    sources:
      - type: archive
        url: https://github.com/wmww/gtk-layer-shell/archive/refs/tags/v0.10.1.tar.gz
        sha256: 88c3a3e0a5300532f3d368d5df64838a87f1fb85273f22d41df0a6b8d0ec59c6

  - name: bluez-btmgmt
    buildsystem: autotools
    config-opts:
      - --disable-systemd
      - --disable-udev
      - --disable-cups
      - --disable-obex
      - --disable-monitor
      - --disable-manpages
      - --enable-tools
      - --enable-library
    no-make-install: true
    post-install:
      - install -Dm755 tools/btmgmt /app/bin/btmgmt
    sources:
      - type: archive
        url: https://www.kernel.org/pub/linux/bluetooth/bluez-5.87.tar.xz
        sha256: 26bdcf2cebd7310c6f598850606b037ef0c515fe6608ebc54d22c50c4c32b35f

  - name: tether
    buildsystem: cmake-ninja
    config-opts:
      - -DCMAKE_BUILD_TYPE=Release
      - -DTETHER_BUILD_EXTENSIONS=OFF
      - -DTETHER_BUILD_TUI=OFF
      - -DTETHER_CAMERA=OFF
    build-options:
      build-args:
        - --share=network
    post-install:
      - rm -rf /app/share/icons/hicolor/1024x1024
    sources:
      - type: dir
        path: ../..