                 "./src/icons/icon_#{src}.png=/usr/share/icons/hicolor/#{size}x#{size}/apps/#{json.name}.png"
             fpmArgs = [
                 '-s', 'dir'
-                '--loglevel', 'debug'
+                '--log', 'debug'
                 '-t', target
                 '--architecture', archName
                 '--rpm-os', 'linux'
                 '--name', json.name
                 '--force' # Overwrite existing files
-                '--license', json.license
-                '--description', json.description
+                '--description', "\"#{json.description}\""
+                '--license', "\"#{json.license}\""
                 '--url', json.homepage
-                '--maintainer', json.author
-                '--vendor', json.authorName
+                '--maintainer', "\"#{json.author}\""
+                '--vendor', "\"#{json.author}\""
                 '--version', json.version
                 '--package', "./dist/#{packageName}"
                 '--after-install', './resources/linux/after-install.sh'

                console.log "Created flatpak (#{json.name}_#{json.version}_#{arch}.flatpak)"
                done()

    names['linux'].push 'deploy:linux-' + arch + ':flatpak'
    allNames.push('deploy:linux-' + arch + ':flatpak')

# create tasks for different platforms and architectures supported
platformOpts.map (plat) ->

                "./dist/#{json.name}-linux-#{arch}/.=/opt/#{json.name}"
                "./resources/linux/app.desktop=/usr/share/applications/#{json.name}.desktop"
            ].concat iconArgs
            child = spawn 'fpm', fpmArgs
            child.stdout.on 'data', (data) ->
              # do nothing
              console.log("fpm: #{data}");
              return true
            # log all errors
            child.on 'error', (err) ->
                console.log 'Error: ' + err, fpmArgs
