From 1ef4cda79bde9c64a57a32fe0a54a35bd562f8c1 Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Fri, 16 Jul 2021 13:34:36 +0900 Subject: [PATCH] Delete target-backend-type option from create command --- lib/commands/create.dart | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/lib/commands/create.dart b/lib/commands/create.dart index 3293f4a..1504a32 100644 --- a/lib/commands/create.dart +++ b/lib/commands/create.dart @@ -22,14 +22,7 @@ import '../elinux_plugins.dart'; class ELinuxCreateCommand extends CreateCommand { ELinuxCreateCommand({bool verboseHelp = false}) - : super(verboseHelp: verboseHelp) { - argParser.addOption( - 'target-backend-type', - defaultsTo: 'wayland', - allowed: ['wayland', 'gbm', 'eglstream', 'x11'], - help: 'Target backend type that the app will run on devices.', - ); - } + : super(verboseHelp: verboseHelp); @override void printUsage() { @@ -118,7 +111,6 @@ class ELinuxCreateCommand extends CreateCommand { // renderTemplate() but it may result in additional complexity. eLinuxTemplateManifest.copySync(templateManifest.path); - final String backend = stringArg('target-backend-type'); final List created = []; try { for (final Directory projectType @@ -143,14 +135,6 @@ class ELinuxCreateCommand extends CreateCommand { copyDirectory(projectType, dest); copyDirectory(sourceFlutter, dest.childDirectory('flutter')); copyDirectory(sourceRunnerCommon, dest.childDirectory('runner')); - if (projectType.basename == 'app') { - final Directory sourceVariation = - projectType.childDirectory('runner_$backend'); - if (!sourceVariation.existsSync()) { - continue; - } - copyDirectory(sourceVariation, dest.childDirectory('runner')); - } created.add(dest); } return await runInternal();