Skip to content

Commit 0cc9388

Browse files
committed
Revert command plugin
1 parent 5372d52 commit 0cc9388

File tree

5 files changed

+4
-66
lines changed

5 files changed

+4
-66
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
##### Bug Fixes
1212

13-
- None.
13+
- Revert SwiftPM binary command plugin. Sorry folks, but SwiftPM doesn't provide the appropriate permissions for Periphery to build projects in the sandbox.
1414

1515
## 2.14.0 (2023-06-24)
1616

Package.swift

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.7
1+
// swift-tools-version:5.5
22
import PackageDescription
33

44
var dependencies: [Package.Dependency] = [
@@ -7,7 +7,7 @@ var dependencies: [Package.Dependency] = [
77
.package(url: "https://github.com/tadija/AEXML", from: "4.0.0"),
88
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
99
.package(url: "https://github.com/ileitch/swift-indexstore", from: "9.0.0"),
10-
.package(url: "https://github.com/peripheryapp/swift-syntax", exact: "1.0.2"),
10+
.package(url: "https://github.com/peripheryapp/swift-syntax", .exact("1.0.2")),
1111
.package(url: "https://github.com/ileitch/swift-filename-matcher", from: "0.0.0"),
1212
]
1313

@@ -36,16 +36,6 @@ var targets: [PackageDescription.Target] = [
3636
name: "Frontend",
3737
dependencies: frontendDependencies
3838
),
39-
.plugin(
40-
name: "PeripheryCommandPlugin",
41-
capability: .command(
42-
intent: .custom(verb: "periphery", description: "Detect unused code"),
43-
permissions: []
44-
),
45-
dependencies: [
46-
.target(name: "PeripheryBinary", condition: .when(platforms: [.macOS])),
47-
]
48-
),
4939
.target(
5040
name: "PeripheryKit",
5141
dependencies: [
@@ -130,11 +120,6 @@ var targets: [PackageDescription.Target] = [
130120
],
131121
exclude: ["AccessibilityProject"]
132122
),
133-
.binaryTarget(
134-
name: "PeripheryBinary",
135-
url: "https://github.com/peripheryapp/Periphery/releases/download/2.14.0/periphery-2.14.0-macos.artifactbundle.zip",
136-
checksum: "c45678908c7ff793d72f63f1dd5736847962c2e16fb60598feb822d26ef08d7f"
137-
),
138123
]
139124

140125
#if os(macOS)
@@ -172,7 +157,6 @@ let package = Package(
172157
platforms: [.macOS(.v12)],
173158
products: [
174159
.executable(name: "periphery", targets: ["Frontend"]),
175-
.plugin(name: "PeripheryCommandPlugin", targets: ["PeripheryCommandPlugin"]),
176160
],
177161
dependencies: dependencies,
178162
targets: targets,

Plugins/PeripheryCommandPlugin/PeripheryCommandPlugin.swift

Lines changed: 0 additions & 15 deletions
This file was deleted.

scripts/info.json.template

Lines changed: 0 additions & 15 deletions
This file was deleted.

scripts/release

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,8 @@ echo -e "\n${zip_filename} checksum:"
6363
sha256=$( shasum -a 256 ${zip_filename} | awk '{print $1}' )
6464
echo ${sha256}
6565

66-
# Artifact bundle
67-
artifactbundle_zip_filename="periphery-${version}-macos.artifactbundle.zip"
68-
cat ../scripts/info.json.template | sed s/__VERSION__/${version}/ > info.json
69-
mkdir -p "periphery-${version}-macos/bin"
70-
cp periphery "periphery-${version}-macos/bin"
71-
zip "${artifactbundle_zip_filename}" LICENSE.md info.json "periphery-${version}-macos/bin/periphery"
72-
codesign "${artifactbundle_zip_filename}"
73-
74-
echo -e "\n${artifactbundle_zip_filename} checksum:"
75-
artifactbundle_sha256=$( shasum -a 256 ${artifactbundle_zip_filename} | awk '{print $1}' )
76-
echo ${artifactbundle_sha256}
77-
78-
echo -e "\nUpdate Package.swift"
79-
confirm "Continue?"
80-
8166
# Notarize
8267
notarize "${zip_filename}"
83-
notarize "${artifactbundle_zip_filename}"
8468

8569
echo -e "\nVerify changes"
8670
confirm "Continue?"
@@ -101,7 +85,7 @@ echo
10185
confirm "Continue?"
10286

10387
cd ..
104-
gh release create -F .release/release_notes.md "${version}" ".release/${zip_filename}" ".release/${artifactbundle_zip_filename}"
88+
gh release create -F .release/release_notes.md "${version}" ".release/${zip_filename}"
10589

10690
# HomeBrew
10791
cd ../homebrew-periphery

0 commit comments

Comments
 (0)