From e7b6e32f32cee250e4917ce1808bedf52db750ea Mon Sep 17 00:00:00 2001 From: Yume Date: Fri, 25 Aug 2023 14:50:47 +0800 Subject: [PATCH] Update to 0.0.4 --- CodeQL.mk | 19 +++++++++++++++++++ Makefile | 20 ++++++++++++++++++-- Sources/LeakDetect/Command.swift | 2 +- 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 CodeQL.mk diff --git a/CodeQL.mk b/CodeQL.mk new file mode 100644 index 0000000..21714eb --- /dev/null +++ b/CodeQL.mk @@ -0,0 +1,19 @@ +db: + -rm -Rf swiftdb + -rm -Rf .build + swift package clean + codeql database create \ + --language=swift \ + --source-root . \ + --search-path=/Users/yume/git/codeql/swift/extractor-pack \ + --command="swift build" \ + swiftdb + +analyze: + codeql database \ + analyze swiftdb \ + --format=sarifv2.1.0 \ + --output=out/xxx.sarif \ + /Users/yume/git/codeql/swift/ql/src/codeql-suites/swift-code-scanning.qls \ + /Users/yume/git/codeql/swift/ql/src/codeql-suites/swift-security-and-quality.qls \ + /Users/yume/git/codeql/swift/ql/src/codeql-suites/swift-security-extended.qls diff --git a/Makefile b/Makefile index 26df0f9..cda3e45 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,17 @@ -VERSION = 0.0.1 +VERSION = 0.0.4 + +include CodeQL.mk + +.PHONY: githubRelease +githubRelease: + sed -i '' 's|\(version: "\)\(.*\)\("\)|\1$(VERSION)\3|' Sources/LeakDetect/Command.swift + + git add Sources/LeakDetect/Command.swift + git add Makefile + + git commit -m "Update to $(VERSION)" + git tag $(VERSION) + git push origin $(VERSION) .PHONY: build build: @@ -13,7 +26,10 @@ test: build .PHONY: release release: @swift build -c release -# @swift build -c release --arch arm64 --arch x86_64 + +.PHONY: releaseAll +releaseAll: + @swift build -c release --arch arm64 --arch x86_64 .PHONY: install install: release diff --git a/Sources/LeakDetect/Command.swift b/Sources/LeakDetect/Command.swift index 1ea950f..9f9b767 100644 --- a/Sources/LeakDetect/Command.swift +++ b/Sources/LeakDetect/Command.swift @@ -24,7 +24,7 @@ struct Command: ParsableCommand { --targetType xcworkspace \ --file LeakDetectorDemo.xcworkspace """, - version: "0.0.3" + version: "0.0.4" ) @Flag(name: [.customLong("verbose", withSingleDash: false), .short], help: "print inpect time")