diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1bc2b0139..1702c555a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -49,6 +49,6 @@ jobs: channel: 'stable' flutter-version: ${{env.FLUTTER_VERSION}} - run: sudo apt update - - run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libmpv-dev libappindicator3-1 libappindicator3-dev + - run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libmpv-dev libayatana-appindicator3-dev - run: flutter pub get - run: flutter build linux -v \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 614a2bb68..17bcfd12e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,7 +96,7 @@ jobs: # channel: 'stable' # flutter-version: ${{env.FLUTTER_VERSION}} # - run: sudo apt update - # - run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libmpv-dev libappindicator3-1 libappindicator3-dev + # - run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libmpv-dev libayatana-appindicator3-dev # - run: flutter pub get # - uses: snapcore/action-build@v1 diff --git a/linux/my_application.cc b/linux/my_application.cc index 9203f3ad9..6e5432cf0 100644 --- a/linux/my_application.cc +++ b/linux/my_application.cc @@ -28,6 +28,12 @@ static void my_application_activate(GApplication* application) { gtk_widget_show(GTK_WIDGET(box)); gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(box)); + GdkGeometry geometry_min; + geometry_min.min_width = 500; + geometry_min.min_height = 700; + gtk_window_set_geometry_hints(window, nullptr, &geometry_min, GDK_HINT_MIN_SIZE); + gtk_window_set_default_size(window, 950, 820); + g_autoptr(FlDartProject) project = fl_dart_project_new(); fl_dart_project_set_dart_entrypoint_arguments( project, self->dart_entrypoint_arguments); diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 83f0001f2..e0ae59cff 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -98,6 +98,8 @@ parts: dart pub get flutter build linux --release -v cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/ + build-packages: + - libayatana-appindicator3-dev deps: plugin: nil