fix 'pod trunk push' commands

must push one spec at a time, and if more than one exists,
must specify them by name.

Also include the 'LICENSE' file in the portable zip and let
SwiftLint.podspec know about it.
This commit is contained in:
JP Simard
2016-12-18 18:16:22 -08:00
parent 83f0911e1b
commit 7abbd847e3
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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)
+1 -1
View File
@@ -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 = '*'