| 106 | } |
| 107 | |
| 108 | void FlatpakPlugin::exportCurrent() |
| 109 | { |
| 110 | const auto runtime = qobject_cast<FlatpakRuntime*>(ICore::self()->runtimeController()->currentRuntime()); |
| 111 | Q_ASSERT(runtime); |
| 112 | |
| 113 | const QString path = QFileDialog::getSaveFileName(ICore::self()->uiController()->activeMainWindow(), i18nc("@title:window", "Export %1", runtime->name()), {}, i18n("Flatpak Bundle (*.flatpak)")); |
| 114 | if (!path.isEmpty()) { |
| 115 | const auto exportBundle = runtime->exportBundle(path); |
| 116 | auto* const job = new ExecuteCompositeJob(runtime, exportBundle.jobs); |
| 117 | job->setObjectName(i18nc("%1 - application ID", "Flatpak Export Bundle %1", exportBundle.applicationId)); |
| 118 | ICore::self()->runController()->registerJob(job); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | static Path flatpakBuildDirPath(const IProject* project, const QString& arch) |
| 123 | { |
nothing calls this directly
no test coverage detected