diff --git a/packages/flutter_app_packager/lib/src/makers/appimage/app_package_maker_appimage.dart b/packages/flutter_app_packager/lib/src/makers/appimage/app_package_maker_appimage.dart index 439d3671..269480d5 100644 --- a/packages/flutter_app_packager/lib/src/makers/appimage/app_package_maker_appimage.dart +++ b/packages/flutter_app_packager/lib/src/makers/appimage/app_package_maker_appimage.dart @@ -278,6 +278,7 @@ class AppPackageMakerAppImage extends AppPackageMaker { makeConfig.packagingDirectory.path, '${makeConfig.appName}.AppDir', ), + if (makeConfig.update != null) ...['-u', makeConfig.update!], outputMakeConfig.outputFile.path, ], environment: { diff --git a/packages/flutter_app_packager/lib/src/makers/appimage/make_appimage_config.dart b/packages/flutter_app_packager/lib/src/makers/appimage/make_appimage_config.dart index 1f254786..f5e6b84a 100644 --- a/packages/flutter_app_packager/lib/src/makers/appimage/make_appimage_config.dart +++ b/packages/flutter_app_packager/lib/src/makers/appimage/make_appimage_config.dart @@ -40,6 +40,7 @@ class MakeAppImageConfig extends MakeConfig { this.include = const [], this.startupNotify = true, this.genericName = 'A Flutter Application', + this.update, this.supportedMimeType, this.metainfo, }); @@ -53,6 +54,7 @@ class MakeAppImageConfig extends MakeConfig { categories: (map['categories'] as List? ?? []).cast(), startupNotify: map['startup_notify'] as bool? ?? false, genericName: map['generic_name'] as String? ?? 'A Flutter Application', + update: map['update'] as String?, actions: (map['actions'] as List? ?? []) .map( (e) => AppImageAction.fromJson( @@ -74,6 +76,7 @@ class MakeAppImageConfig extends MakeConfig { final bool startupNotify; final String genericName; final String displayName; + final String? update; final List include; List? supportedMimeType;