Skip to content

Commit

Permalink
InstallBuilder packager
Browse files Browse the repository at this point in the history
- Allow to build both Linux and Windows installers in single build

Signed-off-by: Przemysław Niekraś <[email protected]>
  • Loading branch information
Przemysław Niekraś committed Oct 29, 2019
1 parent ac881b7 commit f739f60
Show file tree
Hide file tree
Showing 3 changed files with 397 additions and 15 deletions.
27 changes: 14 additions & 13 deletions lib/omnibus/packager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ module Packager
include Logging
include Sugarable

autoload :Base, "omnibus/packagers/base"
autoload :BFF, "omnibus/packagers/bff"
autoload :DEB, "omnibus/packagers/deb"
autoload :Makeself, "omnibus/packagers/makeself"
autoload :MSI, "omnibus/packagers/msi"
autoload :APPX, "omnibus/packagers/appx"
autoload :PKG, "omnibus/packagers/pkg"
autoload :PKGSRC, "omnibus/packagers/pkgsrc"
autoload :Solaris, "omnibus/packagers/solaris"
autoload :IPS, "omnibus/packagers/ips"
autoload :RPM, "omnibus/packagers/rpm"
autoload :Base, "omnibus/packagers/base"
autoload :BFF, "omnibus/packagers/bff"
autoload :DEB, "omnibus/packagers/deb"
autoload :Makeself, "omnibus/packagers/makeself"
autoload :MSI, "omnibus/packagers/msi"
autoload :APPX, "omnibus/packagers/appx"
autoload :PKG, "omnibus/packagers/pkg"
autoload :PKGSRC, "omnibus/packagers/pkgsrc"
autoload :Solaris, "omnibus/packagers/solaris"
autoload :IPS, "omnibus/packagers/ips"
autoload :RPM, "omnibus/packagers/rpm"
autoload :InstallBuilder, "omnibus/packagers/installbuilder"

#
# The list of Ohai platform families mapped to the respective packager
Expand All @@ -41,13 +42,13 @@ module Packager
"debian" => DEB,
"fedora" => RPM,
"suse" => RPM,
"rhel" => RPM,
"rhel" => [RPM, InstallBuilder],
"wrlinux" => RPM,
"amazon" => RPM,
"aix" => BFF,
"solaris" => Solaris,
"ips" => IPS,
"windows" => [MSI, APPX],
"windows" => [MSI, APPX, InstallBuilder],
"mac_os_x" => PKG,
"smartos" => PKGSRC,
}.freeze
Expand Down
Loading

0 comments on commit f739f60

Please sign in to comment.