Skip to content

Commit

Permalink
Release 2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Jun 24, 2023
1 parent 7c08913 commit dcdc5a9
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 21 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@

##### Enhancements

- None.

##### Bug Fixes

- None.

## 2.14.0 (2023-06-24)

##### Breaking

- None.

##### Enhancements

- Add the `--retain-objc-annotated` option.
- Added support for SwiftPM binary command plugin.

Expand Down
32 changes: 16 additions & 16 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ var targets: [PackageDescription.Target] = [
name: "Frontend",
dependencies: frontendDependencies
),
// .plugin(
// name: "PeripheryCommandPlugin",
// capability: .command(
// intent: .custom(verb: "periphery", description: "Detect unused code"),
// permissions: []
// ),
// dependencies: [
// .target(name: "PeripheryBinary", condition: .when(platforms: [.macOS])),
// ]
// ),
.plugin(
name: "PeripheryCommandPlugin",
capability: .command(
intent: .custom(verb: "periphery", description: "Detect unused code"),
permissions: []
),
dependencies: [
.target(name: "PeripheryBinary", condition: .when(platforms: [.macOS])),
]
),
.target(
name: "PeripheryKit",
dependencies: [
Expand Down Expand Up @@ -130,11 +130,11 @@ var targets: [PackageDescription.Target] = [
],
exclude: ["AccessibilityProject"]
),
// .binaryTarget(
// name: "PeripheryBinary",
// url: "https://github.com/peripheryapp/Periphery/releases/download/124/periphery-124-macos.artifactbundle.zip",
// checksum: ""
// ),
.binaryTarget(
name: "PeripheryBinary",
url: "https://github.com/peripheryapp/Periphery/releases/download/2.14.0/periphery-2.14.0-macos.artifactbundle.zip",
checksum: "c45678908c7ff793d72f63f1dd5736847962c2e16fb60598feb822d26ef08d7f"
),
]

#if os(macOS)
Expand Down Expand Up @@ -172,7 +172,7 @@ let package = Package(
platforms: [.macOS(.v12)],
products: [
.executable(name: "periphery", targets: ["Frontend"]),
// .plugin(name: "PeripheryCommandPlugin", targets: ["PeripheryCommandPlugin"]),
.plugin(name: "PeripheryCommandPlugin", targets: ["PeripheryCommandPlugin"]),
],
dependencies: dependencies,
targets: targets,
Expand Down
4 changes: 2 additions & 2 deletions Periphery.podspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Pod::Spec.new do |spec|
spec.name = "Periphery"
spec.version = "2.13.0"
spec.version = "2.14.0"
spec.summary = "Eliminate Unused Swift Code."
spec.homepage = "https://github.com/peripheryapp/periphery"
spec.license = { :type => 'MIT', :file => 'LICENSE.md' }
spec.author = { "Ian Leitch" => "[email protected]" }
spec.source = { :http => "#{spec.homepage}/releases/download/#{spec.version}/periphery-v#{spec.version}.zip" }
spec.source = { :http => "#{spec.homepage}/releases/download/#{spec.version}/periphery-#{spec.version}.zip" }
spec.preserve_paths = '*'
end
2 changes: 1 addition & 1 deletion Sources/Frontend/Version.swift
Original file line number Diff line number Diff line change
@@ -1 +1 @@
let PeripheryVersion = "2.13.0"
let PeripheryVersion = "2.14.0"
4 changes: 2 additions & 2 deletions scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ zip_filename="periphery-${version}.zip"
zip "${zip_filename}" periphery LICENSE.md
codesign "${zip_filename}"

echo "\n${zip_filename} checksum:"
echo -e "\n${zip_filename} checksum:"
sha256=$( shasum -a 256 ${zip_filename} | awk '{print $1}' )
echo ${sha256}

Expand All @@ -71,7 +71,7 @@ cp periphery "periphery-${version}-macos/bin"
zip "${artifactbundle_zip_filename}" LICENSE.md info.json "periphery-${version}-macos/bin/periphery"
codesign "${artifactbundle_zip_filename}"

echo "\n${artifactbundle_zip_filename} checksum:"
echo -e "\n${artifactbundle_zip_filename} checksum:"
artifactbundle_sha256=$( shasum -a 256 ${artifactbundle_zip_filename} | awk '{print $1}' )
echo ${artifactbundle_sha256}

Expand Down

0 comments on commit dcdc5a9

Please sign in to comment.