Skip to content

Instantly share code, notes, and snippets.

@tonyarnold
Last active August 29, 2015 13:59
Show Gist options
  • Save tonyarnold/10693715 to your computer and use it in GitHub Desktop.
Save tonyarnold/10693715 to your computer and use it in GitHub Desktop.
Pod::Spec.new do |s|
s.name = 'INAppStoreWindow'
s.version = '1.4dev'
s.summary = 'Mac App Store style NSWindow subclass.'
s.homepage = 'https://github.com/indragiek/INAppStoreWindow'
s.author = { 'Indragie Karunaratne' => '[email protected]' }
s.source = { :git => 'https://github.com/indragiek/INAppStoreWindow.git', :branch => 'master' } #:tag => "v#{s.version}" }
s.platform = :osx
s.requires_arc = true
s.license = { :type => 'BSD', :text => 'INAppStoreWindow is licensed under the BSD license.'}
default_subspec = 'INAppStoreWindow/Core'
s.subspec 'Core' do |core|
core.source_files = 'INAppStoreWindow/*.{h,m}'
core.exclude_files = 'Extensions/**'
core.requires_arc = true
end
s.subspec 'Swizzling' do |swizzle|
swizzle.dependency 'INAppStoreWindow/Core'
swizzle.source_files = 'Extensions/INAppStoreWindowSwizzling.{c,h}'
swizzle.header_dir = 'INAppStoreWindow'
swizzle.requires_arc = true
end
s.subspec 'CoreUIRenderer' do |coreui|
coreui.dependency 'INAppStoreWindow/Swizzling'
coreui.source_files = 'Extensions/INTitlebarView+CoreUIRenderer.{m,h}'
coreui.header_dir = 'INAppStoreWindow'
coreui.requires_arc = true
end
s.subspec 'NSDocumentFixes' do |docfixes|
docfixes.dependency 'INAppStoreWindow/Swizzling'
docfixes.source_files = 'Extensions/NSDocument+INAppStoreWindowFixes.{m,h}'
docfixes.header_dir = 'INAppStoreWindow'
docfixes.requires_arc = true
end
end
@tonyarnold
Copy link
Author

@indragiek when you're ready to release what's in master, use this (but be sure to set the version and remove the :branch => 'master' and replace with what's in the trailing comment on that line).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment