MatN work for versatile appimage creation for all types of os
[goodguy/cinelerra.git] / cinelerra-5.1 / tools / makeappimagetool / includes / core.h
diff --git a/cinelerra-5.1/tools/makeappimagetool/includes/core.h b/cinelerra-5.1/tools/makeappimagetool/includes/core.h
new file mode 100644 (file)
index 0000000..5e9c450
--- /dev/null
@@ -0,0 +1,28 @@
+#pragma once
+
+#include <iostream>
+#include <boost/filesystem/path.hpp>
+
+#include "appdir.h"
+
+namespace linuxdeploy {
+    /**
+     * Deploy the application ".desktop", icon, and runnable files in the AppDir root path. According to the
+     * AppDir spec at: https://docs.appimage.org/reference/appdir.html
+     *
+     * @param desktopFilePaths to be deployed in the AppDir root
+     * @param customAppRunPath AppRun to be used, if empty the application executable will be used instead
+     * @param appDir
+     * @return true on success otherwise false
+     */
+    bool deployAppDirRootFiles(std::vector<std::string> desktopFilePaths, std::string customAppRunPath,
+                               linuxdeploy::core::appdir::AppDir& appDir);
+
+    /**
+     *
+     * @param desktopFile
+     * @param executableFileName
+     * @return
+     */
+    bool addDefaultKeys(desktopfile::DesktopFile& desktopFile, const std::string& executableFileName);
+}