diff --git a/Makefile b/Makefile index bd54b73e5..d01aac3cb 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ portable_zip: installables install_name_tool -rpath "/Library/Frameworks/SwiftLintFramework.framework/Versions/Current/Frameworks" "@executable_path/SwiftLintFramework.framework/Versions/Current/Frameworks" "$(TEMPORARY_FOLDER)/swiftlint" install_name_tool -rpath "/Library/Frameworks" "@executable_path" "$(TEMPORARY_FOLDER)/swiftlint" rm -f "./portable_swiftlint.zip" - (cd "$(TEMPORARY_FOLDER)"; zip -yr - "swiftlint" "SwiftLintFramework.framework") > "./portable_swiftlint.zip" + (cd "$(TEMPORARY_FOLDER)"; zip -yr - "swiftlint" "SwiftLintFramework.framework" "LICENSE") > "./portable_swiftlint.zip" package: installables pkgbuild \ @@ -120,7 +120,8 @@ spm_clean_dist: publish: brew update && brew bump-formula-pr --tag=$(shell git describe --tags) --revision=$(shell git rev-parse HEAD) swiftlint - pod trunk push + pod trunk push SwiftLintFramework.podspec + pod trunk push SwiftLint.podspec get_version: @echo $(VERSION_STRING) diff --git a/SwiftLint.podspec b/SwiftLint.podspec index 32a138e27..d636e8028 100644 --- a/SwiftLint.podspec +++ b/SwiftLint.podspec @@ -3,7 +3,7 @@ Pod::Spec.new do |s| s.version = `make get_version` s.summary = 'A tool to enforce Swift style and conventions.' s.homepage = 'https://github.com/realm/SwiftLint' - s.license = 'MIT' + s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { 'JP Simard' => 'jp@jpsim.com' } s.source = { :http => "#{s.homepage}/releases/download/#{s.version}/portable_swiftlint.zip" } s.preserve_paths = '*'