Skip to content

Releases: danielsaidi/SwiftPackageScripts

2.0.2: Fix bug in framework workflow and make git script support fallback

11 Dec 22:04

Choose a tag to compare

2.0.2

💡 Changes

  • scripts/git-default-branch-name.sh now supports a fallback result.

🐛 Bug Fixes

  • github/workflows/xcframework.sh had an old script name reference.

2.0.1

06 Dec 10:11

Choose a tag to compare

This version makes StringCatalogKeyBuilder tool independent of SwiftPackageScripts. This solves a bug where it would crash in other package folders.

This version also fixes a bug where trying to use the CLI to write to a non-existing folder would not work, by upgrading both the l10n-gen script and the CLI tool.

💡 Changes

  • The StringCatalogKeyBuilder CLI tool now builds on all platforms.

🐛 Bug Fixes

  • scripts/l10n-gen no longer fails if the target folder doesn't exist.
  • tools/StringCatalogKeyBuilder no longer needs the main package to function.
  • tools/StringCatalogKeyBuilder no longer fails if the target folder doesn't exist.

2.0.0

02 Dec 21:57

Choose a tag to compare

This version renames several scripts to use dashes instead of underline.

This version adds tools for generating public localization keys for a string catalog. This makes it possible to use a package's internal localization keys from other targets.

This version also adds a CLI tool called StringCatalogKeyBuilder and a script called l10n-gen.sh, which can generate a public localization key swift file for any package.

✨ Features

  • StringCatalog is a new struct that can parse Xcode string catalogs.
  • scripts/l10n-gen.sh is a new Terminal script for parsing string catalogs.
  • scripts/sync-to.sh and scripts/sync-from.sh can now sync .github/workflows too.
  • scripts/tools/StringCatalogKeyBuilder is a new CLI tool for parsing string catalogs.

💡 Changes

  • Many scripts has been refactored to be more optimal.

  • All workflows now target the latest macOS and Xcode.

  • release.sh now calls release-validate-git.sh.

  • release-validate-git.sh now uses git-default-branch.sh.

  • release-validate-package.sh no longer calls release-validate-git.sh.

💥 Breaking changes

Due to the localized string key support, the package now targets iOS 16.

  • .github/workflows/binary_artifacts.yml has been renamed to xcframework.yml.
  • .github/workflows/version_bump.yml has been renamed to version-bump.yml.
  • scripts/chmod.sh has been renamed to chmod-all.sh.
  • scripts/git_default_branch.sh has been renamed to git-default-branch.sh.
  • scripts/release.sh now requires --branch|-b to pass in a branch.
  • scripts/release-validate-git.sh now requires --branch|-b to pass in a branch.
  • scripts/sync_from.sh has been renamed to sync-from.sh.
  • sync_to.sh has been moved to scripts and is renamed to sync-to.sh.
  • scripts/validate_git_branch.sh has been renamed to release-validate-git.sh.
  • scripts/validate_release.sh has been renamed to release-validate-package.sh.
  • scripts/version_bump.sh has been renamed to version-bump.sh.
  • scripts/version_number.sh has been renamed to version-number.sh.

1.2.1

17 Nov 09:54

Choose a tag to compare

This version makes binary_artifacts.yml name the container zip differently.

1.2.0

17 Nov 09:40

Choose a tag to compare

This version adds a updates xcframework-binaries.yml to upload unzipped files.

The binary artifact workflow has been adjusted to upload a container zip file, to avoid data loss.

✨ Features

  • version_bump.yml is a new GitHub Actions workflow.
  • version_bump.sh has new --type and --version parameters.

💡 Changes

  • xcframework-binaries.yml is reneamed to binary_artifacts.yml.
  • xcframework-binaries.yml now uploads a container zip file that needs additional handling.

1.1.1

12 Nov 19:07

Choose a tag to compare

This version updates xcframework-binaries.yml to upload unzipped files.

✨ Features

  • framework.sh has a new --zip parameter.

💡 Changes

  • xcframework-binaries.yml calls framework.sh with --zip 0.

1.1.0

11 Nov 18:54

Choose a tag to compare

This version adds a new xcframework.yml GitHub workflow template, and adds new script parameters.

✨ Features

  • xcframework.yml is a new GitHub workflow template.

💡 Changes

  • framework.sh now allows you to pass in --dsyms/-d 1 to enable dSYM build.
  • validate_release.sh now allows you to pass in --swiftlint 0 to disable swiftlint.

1.0.1

29 Sep 04:31

Choose a tag to compare

This version updates docc.sh to support DocC hosted on a custom domain.

💡 Changes

  • docc.sh now allows you to pass in a --hosting-base-path.

1.0.0

11 Sep 11:20

Choose a tag to compare

This version updates all .github and scripts scripts.

✨ Features

  • scripts are rewritten from scratch with better argument parsing and --help support.
  • scripts that need a target now use the package name as default target, if possible.

💡 Changes

  • .github no longer pass in repository name as target, which makes them less brittle.

💥 Breaking changes

  • scripts now use a different input argument format.
  • scripts no longer contains package-specific scripts.

0.4.3

19 Mar 08:58

Choose a tag to compare

This version makes version_validate scripts properly abort on error.

This version makes test automatically resolve any matching simulator.