From ff23fab53adc6243788aacade28ccc006a101650 Mon Sep 17 00:00:00 2001 From: Vamsi Madduluri Date: Thu, 28 Nov 2024 12:42:22 +0530 Subject: [PATCH] Rename tzdb-gen executable to SwiftTZGenerator (#13) - Remove separate executable product name while keeping target name consistent - Update references in GitHub workflow and documentation - No functional changes, purely naming consistency improvement --- .github/workflows/update-tzdb.yml | 4 ++-- Package.swift | 3 +-- README.md | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-tzdb.yml b/.github/workflows/update-tzdb.yml index 54357d2..b83d4af 100644 --- a/.github/workflows/update-tzdb.yml +++ b/.github/workflows/update-tzdb.yml @@ -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' @@ -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
diff --git a/Package.swift b/Package.swift index 5b9d275..3eb2bf2 100644 --- a/Package.swift +++ b/Package.swift @@ -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 diff --git a/README.md b/README.md index 0a6fb24..b4c6084 100644 --- a/README.md +++ b/README.md @@ -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