mirror of
https://github.com/xtool-org/xtool.git
synced 2026-11-16 20:41:53 +03:00
Use ./tmp
This commit is contained in:
+1
-1
@@ -12,4 +12,4 @@ DerivedData/
|
||||
.docc-build
|
||||
|
||||
/openapi
|
||||
/.swiftlint
|
||||
/tmp
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user