Use ./tmp

This commit is contained in:
Kabir Oberai
2025-05-28 23:39:13 +05:30
Unverified
parent 97a73b003d
commit 67fd10f6eb
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -12,4 +12,4 @@ DerivedData/
.docc-build
/openapi
/.swiftlint
/tmp
+7 -7
View File
@@ -127,7 +127,7 @@ docs-preview:
./Documentation/build.sh preview
SWIFTLINT_VERSION = $(shell head -1 .swiftlint.yml | cut -d' ' -f2)
SWIFTLINT_BIN = .swiftlint/swiftlint-$(SWIFTLINT_VERSION)
SWIFTLINT_BIN = tmp/swiftlint-$(SWIFTLINT_VERSION)
SWIFTLINT_URL = https://github.com/realm/SwiftLint/releases/download/$(SWIFTLINT_VERSION)/$(if $(IS_MAC),portable_swiftlint,swiftlint_linux).zip
.PHONY: lint
@@ -135,12 +135,12 @@ lint: $(SWIFTLINT_BIN)
$(SWIFTLINT_BIN) $(SWIFTLINT_FLAGS)
$(SWIFTLINT_BIN):
@rm -rf .swiftlint
@mkdir -p .swiftlint
curl -fSL $(SWIFTLINT_URL) -o .swiftlint/swiftlint.zip
unzip -q .swiftlint/swiftlint.zip swiftlint -d .swiftlint
@rm -f .swiftlint/swiftlint.zip
@mv .swiftlint/swiftlint $@
@rm -rf tmp
@mkdir -p tmp
curl -fSL $(SWIFTLINT_URL) -o tmp/swiftlint.zip
unzip -q tmp/swiftlint.zip swiftlint -d tmp
@rm -f tmp/swiftlint.zip
@mv tmp/swiftlint $@
SPEC_URL = https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip