Skip to content

Commit 0c65aaf

Browse files
committed
Build with Ventura CLI signing, for #51
1 parent b0d0616 commit 0c65aaf

File tree

4 files changed

+44
-43
lines changed

4 files changed

+44
-43
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ iOSInjectionProject/
9292

9393
# Will added this
9494
/.swiftpm
95-
/CoreLocationCLI
95+
/CoreLocationCLI.app
9696
/CoreLocationCLI.zip

Info.plist

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>CFBundleExecutable</key>
6-
<string>CoreLocationCLI</string>
7-
<key>CFBundleIdentifier</key>
8-
<string>com.fulldecent.CoreLocationCLI</string>
9-
<key>CFBundleName</key>
10-
<string>CoreLocationCLI</string>
11-
<key>CFBundlePackageType</key>
12-
<string>APPL</string>
13-
<key>CFBundleVersion</key>
14-
<string>1.0</string>
15-
<key>CFBundleShortVersionString</key>
16-
<string>4.0.3</string>
17-
<key>NSLocationUsageDescription</key>
18-
<string>This application requires location services to function.</string>
19-
<key>NSLocationWhenInUseUsageDescription</key>
20-
<string>This application requires location services to function.</string>
21-
<key>NSLocationAlwaysUsageDescription</key>
22-
<string>This application requires location services to function.</string>
23-
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
24-
<string>This application requires location services to function.</string>
25-
</dict>
26-
</plist>
4+
<dict>
5+
<key>CFBundleExecutable</key>
6+
<string>CoreLocationCLI</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>com.fulldecent.CoreLocationCLI</string>
9+
<key>CFBundleName</key>
10+
<string>CoreLocationCLI</string>
11+
<key>CFBundlePackageType</key>
12+
<string>APPL</string>
13+
<key>CFBundleVersion</key>
14+
<string>1.0</string>
15+
<key>CFBundleShortVersionString</key>
16+
<string>4.0.4</string>
17+
<key>NSLocationUsageDescription</key>
18+
<string>This application requires location services to function.</string>
19+
<key>NSLocationWhenInUseUsageDescription</key>
20+
<string>This application requires location services to function.</string>
21+
<key>NSLocationAlwaysUsageDescription</key>
22+
<string>This application requires location services to function.</string>
23+
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
24+
<string>This application requires location services to function.</string>
25+
</dict>
26+
</plist>

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,7 @@ Install the latest release using Homebrew with:
9090
brew install cask corelocationcli
9191
```
9292
93-
Or build from the command line using the compiler:
94-
95-
```sh
96-
swift build --disable-sandbox -c release # does not require account
97-
```
98-
99-
Then run your executable from this location:
100-
101-
```sh
102-
./.build/arm64-apple-macosx/release/CoreLocationCLI --help
103-
```
93+
Or build from the command line. See [detailed build instructions](./RELEASE.md).
10494

10595
## macOS Gatekeeper/Notarization
10696

RELEASE.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1-
# How To Make Releases
1+
# How to make a release
22

33
1. Create binaries
44

55
```sh
66
swift build -c release --arch arm64 --arch x86_64
7-
./.build/apple/Products/Release/CoreLocationCLI --help
8-
lipo -info .build/apple/Products/Release/CoreLocationCLI
9-
cp ./.build/apple/Products/Release/CoreLocationCLI .
10-
zip CoreLocationCLI.zip CoreLocationCLI
7+
8+
# Package as app
9+
mkdir -p CoreLocationCLI.app/Contents/MacOS/
10+
cp ./.build/apple/Products/Release/CoreLocationCLI CoreLocationCLI.app/Contents/MacOS/
11+
cp Info.plist CoreLocationCLI.app/Contents
12+
codesign --force --deep --sign - CoreLocationCLI.app
13+
14+
# Test it
15+
./CoreLocationCLI.app/Contents/MacOS/CoreLocationCLI --json
16+
17+
# Bundle it
18+
zip CoreLocationCLI.zip CoreLocationCLI.app
1119
```
1220

13-
2. Draft the release using [GitHub Releases](https://github.com/fulldecent/corelocationcli/releases)
21+
1. Draft the release using [GitHub Releases](https://github.com/fulldecent/corelocationcli/releases)
1422

1523
1. Use SemVer
1624
2. Add that binary as attachment
1725

18-
3. Push to Homebrew, see [brew documentation](https://github.com/Homebrew/homebrew-cask/blob/master/CONTRIBUTING.md#updating-a-cask)
26+
2. Push to Homebrew, see [brew documentation](https://github.com/Homebrew/homebrew-cask/blob/master/CONTRIBUTING.md#updating-a-cask)
1927

2028
```sh
21-
brew bump-cask-pr --version 4.0.1 CoreLocationCLI
29+
# Get version
30+
VERSION=$(defaults read "$(pwd)/CoreLocationCLI.app/Contents/Info" CFBundleShortVersionString)
31+
32+
brew bump-cask-pr --version $VERSION CoreLocationCLI
2233
```

0 commit comments

Comments
 (0)