mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
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:
@@ -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
@@ -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 = '*'
|
||||
|
||||
Reference in New Issue
Block a user