src/installer.js
function (options, dir, callback) {
  var name = _.template('<%= id %>_<%= branch %>_<%= arch %>.flatpak')(options)
  var dest = options.rename(options.dest, name)
  options.logger('Creating package at ' + dest)
  var extraExports = []
  if (options.icon && !_.isObject(options.icon)) extraExports.push(getPixmapPath(options))

  var files = [
    [dir, '/']
  ]
  var symlinks = [
    [path.join('/lib', options.id, options.bin), path.join('/bin', options.bin)]
  ]

  flatpak.bundle({
    id: options.id,
    branch: options.branch,
    base: options.base,
    baseVersion: options.baseVersion,
    baseFlatpakref: options.baseFlatpakref,
    runtime: options.runtime,
    runtimeVersion: options.runtimeVersion,
    runtimeFlatpakref: options.runtimeFlatpakref,
    sdk: options.sdk,
    sdkFlatpakref: options.sdkFlatpakref,
    finishArgs: options.finishArgs,
    command: options.bin,
    files: files.concat(options.files),
    symlinks: symlinks.concat(options.symlinks),
    extraExports: extraExports,
    modules: options.modules
  }, {
    arch: options.arch,
    bundlePath: dest
  }, function (err) {
    callback(err, dir)
  })
}
function (options, dir, callback) {
  var name = _.template('<%= id %>_<%= branch %>_<%= arch %>.flatpak')(options)
  var dest = options.rename(options.dest, name)
  options.logger('Creating package at ' + dest)
  var extraExports = []
  if (options.icon && !_.isObject(options.icon)) extraExports.push(getPixmapPath(options))

  var files = [
    [dir, '/']
  ]
  var symlinks = [
    [path.join('/lib', options.id, options.bin), path.join('/bin', options.bin)]
  ]

  flatpak.bundle({
    id: options.id,
    branch: options.branch,
    base: options.base,
    baseVersion: options.baseVersion,
    baseFlatpakref: options.baseFlatpakref,
    runtime: options.runtime,
    runtimeVersion: options.runtimeVersion,
    runtimeFlatpakref: options.runtimeFlatpakref,
    sdk: options.sdk,
    sdkFlatpakref: options.sdkFlatpakref,
    finishArgs: options.finishArgs,
    command: options.bin,
    files: files.concat(options.files),
    symlinks: symlinks.concat(options.symlinks),
    extraExports: extraExports,
    modules: options.modules
  }, {
    arch: options.arch,
    bundlePath: dest
  }, function (err) {
    callback(err, dir)
  })
}
function ( options , dir , callback ) { var name = _ . template ( '<%= id %>_<%= branch %>_<%= arch %>.flatpak' ) ( options ) var dest = options . rename ( options . dest , name ) options . logger ( 'Creating package at ' + dest ) var extraExports = [ ] if ( options . icon && ! _ . isObject ( options . icon ) ) extraExports . push ( getPixmapPath ( options ) ) var files = [ [ dir , '/' ] ] var symlinks = [ [ path . join ( '/lib' , options . id , options . bin ) , path . join ( '/bin' , options . bin ) ] ] flatpak . bundle ( { id : options . id , branch : options . branch , base : options . base , baseVersion : options . baseVersion , baseFlatpakref : options . baseFlatpakref , runtime : options . runtime , runtimeVersion : options . runtimeVersion , runtimeFlatpakref : options . runtimeFlatpakref , sdk : options . sdk , sdkFlatpakref : options . sdkFlatpakref , finishArgs : options . finishArgs , command : options . bin , files : files . concat ( options . files ) , symlinks : symlinks . concat ( options . symlinks ) , extraExports : extraExports , modules : options . modules } , { arch : options . arch , bundlePath : dest } , function ( err ) { callback ( err , dir ) } ) }
Bundle everything using `flatpak-bundler`.
Bundle everything using flatpak - bundler .