diff --git a/packages/app/.metadata b/packages/app/.metadata index 72033a21..f1f62691 100644 --- a/packages/app/.metadata +++ b/packages/app/.metadata @@ -4,8 +4,8 @@ # This file should be version controlled and should not be manually edited. version: - revision: "ead455963c12b453cdb2358cad34969c76daf180" - channel: "stable" + revision: "2828ddd9a707d09af00b793a42faaa0f0e2b957f" + channel: "master" project_type: app @@ -13,14 +13,11 @@ project_type: app migration: platforms: - platform: root - create_revision: ead455963c12b453cdb2358cad34969c76daf180 - base_revision: ead455963c12b453cdb2358cad34969c76daf180 - - platform: android - create_revision: ead455963c12b453cdb2358cad34969c76daf180 - base_revision: ead455963c12b453cdb2358cad34969c76daf180 - - platform: linux - create_revision: ead455963c12b453cdb2358cad34969c76daf180 - base_revision: ead455963c12b453cdb2358cad34969c76daf180 + create_revision: 2828ddd9a707d09af00b793a42faaa0f0e2b957f + base_revision: 2828ddd9a707d09af00b793a42faaa0f0e2b957f + - platform: aurora + create_revision: 2828ddd9a707d09af00b793a42faaa0f0e2b957f + base_revision: 2828ddd9a707d09af00b793a42faaa0f0e2b957f # User provided section diff --git a/packages/app/aurora/.gitignore b/packages/app/aurora/.gitignore new file mode 100644 index 00000000..d3896c98 --- /dev/null +++ b/packages/app/aurora/.gitignore @@ -0,0 +1 @@ +flutter/ephemeral diff --git a/packages/app/aurora/CMakeLists.txt b/packages/app/aurora/CMakeLists.txt new file mode 100644 index 00000000..f7de7a57 --- /dev/null +++ b/packages/app/aurora/CMakeLists.txt @@ -0,0 +1,47 @@ +cmake_minimum_required(VERSION 3.10) +project(su.markow.nextcloud.app LANGUAGES CXX) + +include(GNUInstallDirs) + +set(BINARY_NAME ${CMAKE_PROJECT_NAME}) +set(FLUTTER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/flutter) + +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +set(CMAKE_CXX_FLAGS "-Wall -Wextra") +set(CMAKE_CXX_FLAGS_RELEASE "-O3") + +set(CMAKE_SKIP_RPATH OFF) +set(CMAKE_INSTALL_RPATH "\$ORIGIN/../share/${BINARY_NAME}/lib") + +find_package(PkgConfig REQUIRED) +pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) + +add_executable(${BINARY_NAME} main.cpp ${FLUTTER_DIR}/generated_plugin_registrant.cpp) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::FlutterEmbedder) +target_include_directories(${BINARY_NAME} PRIVATE ${FLUTTER_DIR}) + +include(flutter/generated_plugins.cmake) + +set(PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}) +set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_DATADIR}/applications) +set(ICONS_INSTALL_ROOT_DIR ${CMAKE_INSTALL_DATADIR}/icons/hicolor) + +add_custom_command(TARGET ${BINARY_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy + ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libflutter-embedder.so + ${PROJECT_BINARY_DIR}/bundle/lib/libflutter-embedder.so) + +install(FILES ${PROJECT_BINARY_DIR}/bundle/icudtl.dat DESTINATION ${PACKAGE_INSTALL_DIR}) +install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/flutter_assets DESTINATION ${PACKAGE_INSTALL_DIR}) +install(DIRECTORY ${PROJECT_BINARY_DIR}/bundle/lib DESTINATION ${PACKAGE_INSTALL_DIR}) + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +install(FILES desktop/${BINARY_NAME}.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) + +foreach(ICONS_SIZE 86x86 108x108 128x128 172x172) + install(FILES icons/${ICONS_SIZE}.png + RENAME ${BINARY_NAME}.png + DESTINATION ${ICONS_INSTALL_ROOT_DIR}/${ICONS_SIZE}/apps/) +endforeach(ICONS_SIZE) diff --git a/packages/app/aurora/desktop/su.markow.nextcloud.neon.desktop b/packages/app/aurora/desktop/su.markow.nextcloud.neon.desktop new file mode 100644 index 00000000..eb0b6062 --- /dev/null +++ b/packages/app/aurora/desktop/su.markow.nextcloud.neon.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Name=app +Comment=A new Flutter project. +Icon=su.markow.nextcloud.app +Exec=/usr/bin/su.markow.nextcloud.app +X-Nemo-Application-Type=silica-qt5 + +[X-Application] +Permissions= +OrganizationName=su.markow.nextcloud +ApplicationName=app diff --git a/packages/app/aurora/icons/108x108.png b/packages/app/aurora/icons/108x108.png new file mode 100644 index 00000000..984893df Binary files /dev/null and b/packages/app/aurora/icons/108x108.png differ diff --git a/packages/app/aurora/icons/128x128.png b/packages/app/aurora/icons/128x128.png new file mode 100644 index 00000000..2d552efd Binary files /dev/null and b/packages/app/aurora/icons/128x128.png differ diff --git a/packages/app/aurora/icons/172x172.png b/packages/app/aurora/icons/172x172.png new file mode 100644 index 00000000..9dc271ba Binary files /dev/null and b/packages/app/aurora/icons/172x172.png differ diff --git a/packages/app/aurora/icons/86x86.png b/packages/app/aurora/icons/86x86.png new file mode 100644 index 00000000..5923bb11 Binary files /dev/null and b/packages/app/aurora/icons/86x86.png differ diff --git a/packages/app/aurora/main.cpp b/packages/app/aurora/main.cpp new file mode 100644 index 00000000..331e26ef --- /dev/null +++ b/packages/app/aurora/main.cpp @@ -0,0 +1,9 @@ +#include +#include "generated_plugin_registrant.h" + +int main(int argc, char *argv[]) { + Application::Initialize(argc, argv); + RegisterPlugins(); + Application::Launch(); + return 0; +} diff --git a/packages/app/aurora/rpm/su.markow.nextcloud.neon.spec b/packages/app/aurora/rpm/su.markow.nextcloud.neon.spec new file mode 100644 index 00000000..b4425ea9 --- /dev/null +++ b/packages/app/aurora/rpm/su.markow.nextcloud.neon.spec @@ -0,0 +1,31 @@ +%global __provides_exclude_from ^%{_datadir}/%{name}/lib/.*$ +%global __requires_exclude ^lib(dconf|flutter-embedder|maliit-glib|.+_platform_plugin)\\.so.*$ + +Name: su.markow.nextcloud.app +Summary: A new Flutter project. +Version: 0.1.0 +Release: 1 +License: Proprietary +Source0: %{name}-%{version}.tar.zst + +BuildRequires: cmake +BuildRequires: pkgconfig(flutter-embedder) + +%description +%{summary}. + +%prep +%autosetup + +%build +%cmake -DCMAKE_BUILD_TYPE=%{_flutter_build_type} +%make_build + +%install +%make_install + +%files +%{_bindir}/%{name} +%{_datadir}/%{name}/* +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.png