Version auf 0.9.8 gesetzt
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 32 KiB |
|
|
@ -54,6 +54,29 @@ static void my_application_activate(GApplication* application) {
|
||||||
|
|
||||||
gtk_window_set_default_size(window, 1280, 720);
|
gtk_window_set_default_size(window, 1280, 720);
|
||||||
|
|
||||||
|
// Set the window and application icon from the bundled assets.
|
||||||
|
GError* icon_error = nullptr;
|
||||||
|
g_autofree gchar* executable_path =
|
||||||
|
g_file_read_link("/proc/self/exe", &icon_error);
|
||||||
|
if (icon_error != nullptr) {
|
||||||
|
g_warning("Failed to read executable path: %s", icon_error->message);
|
||||||
|
g_clear_error(&icon_error);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (executable_path != nullptr) {
|
||||||
|
g_autofree gchar* executable_dir = g_path_get_dirname(executable_path);
|
||||||
|
g_autofree gchar* icon_path = g_build_filename(
|
||||||
|
executable_dir, "data", "flutter_assets", "assets", "app_icon.png",
|
||||||
|
nullptr);
|
||||||
|
gtk_window_set_icon_from_file(window, icon_path, &icon_error);
|
||||||
|
if (icon_error != nullptr) {
|
||||||
|
g_warning("Failed to load window icon: %s", icon_error->message);
|
||||||
|
g_clear_error(&icon_error);
|
||||||
|
} else {
|
||||||
|
gtk_window_set_default_icon_from_file(icon_path, nullptr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
g_autoptr(FlDartProject) project = fl_dart_project_new();
|
g_autoptr(FlDartProject) project = fl_dart_project_new();
|
||||||
fl_dart_project_set_dart_entrypoint_arguments(
|
fl_dart_project_set_dart_entrypoint_arguments(
|
||||||
project, self->dart_entrypoint_arguments);
|
project, self->dart_entrypoint_arguments);
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 0.9.7
|
version: 0.9.8
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.10.1
|
sdk: ^3.10.1
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 364 KiB |