An open-source cross-platform alternative to AirDrop
fix(linux): require only Ayatana appindicator in the deb and name its desktop file after the application id (#3740)
Tien Nam Do26cc8f997aa3
diff --git a/.github/workflows/build_linux_deb_x64.yml b/.github/workflows/build_linux_deb_x64.ymlindex a6bb4c7b..b42c41bc 100644--- a/.github/workflows/build_linux_deb_x64.yml+++ b/.github/workflows/build_linux_deb_x64.yml@@ -51,6 +51,20 @@ jobs:- name: Enable dart_distributorrun: dart pub global activate flutter_distributor+ # Name the desktop file after the application id (linux/CMakeLists.txt),+ # as the rpm and AppImage do. flutter_app_packager names it after the+ # binary and has no option for it. KWin finds the window's desktop file+ # by the Wayland app id alone, so with localsend_app.desktop the title+ # bar shows a generic icon.+ - name: Patch flutter_app_packager+ run: |+ F=$(find "$HOME/.pub-cache/hosted/pub.dev" -path '*/flutter_app_packager-*/lib/src/makers/deb/app_package_maker_deb.dart' | head -1)+ test -n "$F"+ sed -i "s|'\${makeConfig.appBinaryName}.desktop'|'org.localsend.localsend_app.desktop'|" "$F"+ test "$(grep -cF "'org.localsend.localsend_app.desktop'" "$F")" -eq 1+ dart pub global deactivate flutter_distributor+ dart pub global activate flutter_distributor+- name: Update PATHrun: echo 'export PATH="$PATH:$HOME/.pub-cache/bin"' >> ~/.bashrcdiff --git a/app/linux/packaging/deb/make_config.yaml b/app/linux/packaging/deb/make_config.yamlindex d256e5f9..2116f6e2 100644--- a/app/linux/packaging/deb/make_config.yaml+++ b/app/linux/packaging/deb/make_config.yaml@@ -16,8 +16,11 @@ pre_dependencies:- libc6 (>= 2.34)dependencies:- - libappindicator3-1 | libayatana-appindicator3-1- - gir1.2-appindicator3-0.1 | gir1.2-ayatanaappindicator3-0.1+ # The app links libayatana-appindicator3.so.1 (built against+ # libayatana-appindicator3-dev). Canonical's libappindicator3-1 is a+ # different library: offered as an alternative, apt picks it on systems+ # without Ayatana and the app fails to start.+ - libayatana-appindicator3-1- libayatana-ido3-0.4-0- libegl1- libgles2