Skip to content

Commit c245b01

Browse files
committed
feat(SPM): Add Product
1 parent 61fe4b9 commit c245b01

File tree

5 files changed

+22
-8
lines changed

5 files changed

+22
-8
lines changed

.github/workflows/dev-verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
verification:
99
name: Commit verification
10-
runs-on: macos-15
10+
runs-on: macos-26
1111

1212
steps:
1313
- name: Checkout

.github/workflows/verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
verification:
99
name: Release
10-
runs-on: macos-15
10+
runs-on: macos-26
1111

1212
permissions: # For semantic-release
1313
contents: write

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ format:
1010

1111
build-release:
1212
@echo "Building release..."
13-
swift build -c release
14-
@echo "Done! Check .build/arm64-apple-macosx/release/DepChecker"
13+
swift build -c release --product dep-checker
14+
@echo "Done in .build/arm64-apple-macosx/release/"
1515

1616
tests: setup-xcbeautify
1717
@echo "Running tests..."

Package.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
// swift-tools-version:6.0
1+
// swift-tools-version:6.2
22
import PackageDescription
33

44
let package = Package(
55
name: "DepChecker",
66
platforms: [.macOS(.v15)],
7+
products: [
8+
.executable(
9+
name: "dep-checker",
10+
targets: ["DepChecker"]
11+
)
12+
],
713
dependencies: [
814
.package(url: "https://github.com/tuist/XcodeProj", exact: "9.5.0"),
915
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.6.1"),

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DepChecker is a tool designed to help Swift developers analyze project dependenc
1515
To analyze the dependencies of your project, run:
1616

1717
```sh
18-
swift run -c release DepChecker [--output-format <output-format>] [--configuration-file <configuration-file>] [--git-hub-token <git-hub-token>] --project-path <project-path> [--resolved-package-path <resolved-package-path>] [--max-days <max-days>] [--exclude-dependencies <exclude-dependencies> ...] [--include-dependencies <include-dependencies> ...] [--include-transitive-dependencies]
18+
swift run -c release dep-checker [--output-format <output-format>] [--configuration-file <configuration-file>] [--git-hub-token <git-hub-token>] --project-path <project-path> [--resolved-package-path <resolved-package-path>] [--max-days <max-days>] [--exclude-dependencies <exclude-dependencies> ...] [--include-dependencies <include-dependencies> ...] [--include-transitive-dependencies]
1919
```
2020

2121
#### Params
@@ -33,7 +33,7 @@ swift run -c release DepChecker [--output-format <output-format>] [--configurati
3333
#### Example
3434

3535
```sh
36-
swift run -c release DepChecker -c ~/.depChecker/config.json --project-path ~/Projects/my-project/
36+
swift run -c release dep-checker -c ~/.depChecker/config.json --project-path ~/Projects/my-project/
3737
```
3838

3939
##### ~/.depChecker/config.json
@@ -80,7 +80,15 @@ jobs:
8080
# Executing depChecker from its folder
8181
run: |
8282
cd depChecker
83-
swift run -c release DepChecker --project-path ../MyProject/ --git-hub-token ${{ secrets.GITHUB_TOKEN }} --max-days 365
83+
swift run -c release dep-checker --project-path ../MyProject/ --git-hub-token ${{ secrets.GITHUB_TOKEN }} --max-days 365
84+
```
85+
86+
### Mint
87+
88+
```sh
89+
mint install amegias/ios-dep-checker
90+
dep-checker --project-path ../MyProject/ --git-hub-token ${{ secrets.GITHUB_TOKEN }} --max-days 365
91+
8492
```
8593

8694
## Contributing

0 commit comments

Comments
 (0)