summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-05 17:47:59 -0700
committerTim Smith <tsmith@chef.io>2018-10-05 17:49:21 -0700
commit4e037820d9d11ea3fcb580e65f98cdcc33b6fb49 (patch)
treeb5cec63d45bf9d70783e9d173e7f2b258379c3fe
parent7d1d18b1dc3905f39694734a3c809f92c4955d57 (diff)
downloadchef-4e037820d9d11ea3fcb580e65f98cdcc33b6fb49.tar.gz
Only include the Windows distro files on Windows
We don't actually need these powershell scripts and DLLs on non-Windows platforms. This shaves 300k from our gem size on non-Windows platforms. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--chef-universal-mingw32.gemspec2
-rw-r--r--chef.gemspec2
2 files changed, 2 insertions, 2 deletions
diff --git a/chef-universal-mingw32.gemspec b/chef-universal-mingw32.gemspec
index e0dde26732..6de12265d2 100644
--- a/chef-universal-mingw32.gemspec
+++ b/chef-universal-mingw32.gemspec
@@ -16,7 +16,7 @@ gemspec.add_dependency "windows-api", "~> 0.4.4"
gemspec.add_dependency "wmi-lite", "~> 1.0"
gemspec.add_dependency "win32-taskscheduler", "~> 1.0.0"
gemspec.extensions << "ext/win32-eventlog/Rakefile"
-gemspec.files += %w{ext/win32-eventlog/Rakefile ext/win32-eventlog/chef-log.man}
+gemspec.files += Dir.glob("{distro,ext}/**/*")
gemspec.executables += %w{ chef-service-manager chef-windows-service }
diff --git a/chef.gemspec b/chef.gemspec
index 6ad2e4e2c3..b9a80a0b4b 100644
--- a/chef.gemspec
+++ b/chef.gemspec
@@ -59,5 +59,5 @@ Gem::Specification.new do |s|
s.executables = %w{ chef-client chef-solo knife chef-shell chef-apply chef-resource-inspector }
s.require_paths = %w{ lib }
- s.files = %w{Gemfile Rakefile LICENSE README.md CONTRIBUTING.md VERSION} + Dir.glob("{distro,lib,lib-backcompat,tasks,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } + Dir.glob("*.gemspec")
+ s.files = %w{Gemfile Rakefile LICENSE README.md VERSION} + Dir.glob("{lib,lib-backcompat,tasks,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } + Dir.glob("*.gemspec")
end