Skip to content

Commit

Permalink
Fix make package command (realm#3890)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim authored and coffmark committed Apr 11, 2022
1 parent 033f283 commit fe81196
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
body opening brace on a new line.
[Tobisaninfo](https://github.com/Tobisaninfo)

* Fix SwiftLint.pkg installer installing multiple copies of SwiftLint.
[JP Simard](https://github.com/jpsim)
[#3815](https://github.com/realm/SwiftLint/issues/3815)
[#3887](https://github.com/realm/SwiftLint/issues/3887)

## 0.46.5: Laundry Studio

#### Breaking
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ zip_linux: docker_image
cp -f "$(LICENSE_PATH)" "$(TMP_FOLDER)"
(cd "$(TMP_FOLDER)"; zip -yr - "swiftlint" "LICENSE") > "./swiftlint_linux.zip"

package: installables
package: build
$(eval PACKAGE_ROOT := $(shell mktemp -d))
cp "$(SWIFTLINT_EXECUTABLE)" "$(PACKAGE_ROOT)"
pkgbuild \
--identifier "io.realm.swiftlint" \
--install-location "/usr/local/bin" \
--root "$(TEMPORARY_FOLDER)" \
--version "$(VERSION_STRING)" \
--root "$(PACKAGE_ROOT)" \
--version $(VERSION_STRING) \
"$(OUTPUT_PACKAGE)"

release: package portable_zip zip_linux
Expand Down

0 comments on commit fe81196

Please sign in to comment.