Skip to content

Commit

Permalink
Rename tzdb-gen executable to SwiftTZGenerator (#13)
Browse files Browse the repository at this point in the history
- Remove separate executable product name while keeping target name consistent
- Update references in GitHub workflow and documentation
- No functional changes, purely naming consistency improvement
  • Loading branch information
vamsii777 authored Nov 28, 2024
1 parent b103dc4 commit ff23fab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-tzdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

- name: Generate updated timezone data
if: steps.check.outputs.changes_detected == 'true'
run: swift run tzdb-gen
run: swift run SwiftTZGenerator

- name: Create Pull Request
if: steps.check.outputs.changes_detected == 'true'
Expand All @@ -76,7 +76,7 @@ jobs:
body: |
This PR updates the timezone database based on changes in the IANA tzdb.
Changes were automatically detected and generated using the `tzdb-gen` tool.
Changes were automatically detected and generated using the `SwiftTZGenerator` tool.
### Changes
<details>
Expand Down
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ let package = Package(
.visionOS(.v1)
],
products: [
.library(name: "SwiftTZ", targets: ["SwiftTZ"]),
.executable(name: "tzdb-gen", targets: ["SwiftTZGenerator"]),
.library(name: "SwiftTZ", targets: ["SwiftTZ"])
],
targets: [
// Generator executable
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ cd SwiftTZ
2. Run the generator to fetch the latest IANA Time Zone Database and generate the `TimeZoneIdentifier.swift` file

```sh
swift run tzdb-gen
swift run SwiftTZGenerator
```

## Acknowledgments
Expand Down

0 comments on commit ff23fab

Please sign in to comment.