Skip to content

Commit 2becebd

Browse files
committed
📄 sign and notarize app with Apple
1 parent ccd2a07 commit 2becebd

File tree

6 files changed

+43
-5
lines changed

6 files changed

+43
-5
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ build/
1313

1414
bin/query_cache/
1515
bin/image_cache/
16-
bin/update_cache/
17-
sign.sh
16+
bin/update_cache/

bin/src/constants/config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Config {
22
Config._();
33

4-
static const String version = '1.0.9';
4+
static const String version = '1.1.0';
55
static final Uri githubRepositoryUrl =
66
Uri.https('github.com', '/techouse/alfred-gitmoji');
77
static const String algoliaApplicationId = 'WODHKE4WZG';

entitlements.plist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
6+
<true/>
7+
</dict>
8+
</plist>

info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
<key>variablesdontexport</key>
252252
<array/>
253253
<key>version</key>
254-
<string>1.0.9</string>
254+
<string>1.1.0</string>
255255
<key>webaddress</key>
256256
<string>https://github.com/techouse</string>
257257
</dict>

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Search for gitmojis and copy them to the clipboard easily.
44
# Prevent accidental publishing to pub.dev.
55
publish_to: 'none'
66

7-
version: 1.0.9
7+
version: 1.1.0
88

99
environment:
1010
sdk: '>=2.17.0 <3.0.0'

sign.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
3+
# sign
4+
codesign \
5+
--sign="D5CABC53AFC47E57F4B688BB3688CF27830BAD36" \
6+
--identifier="com.techouse.alfred-gitmoji" \
7+
--deep \
8+
--force \
9+
--options=runtime \
10+
--entitlement="./entitlements.plist" \
11+
--timestamp \
12+
--verbose=4 \
13+
./build/dist/gm
14+
15+
# verify
16+
codesign -dv --verbose=4 ./build/dist/gm
17+
18+
# zip
19+
zip -j ./build/dist/gm.zip ./build/dist/gm
20+
21+
# notarize
22+
xcrun altool \
23+
--notarize-app \
24+
--primary-bundle-id="com.techouse.alfred-gitmoji" \
25+
--username="klemen.tusar@live.com" \
26+
--password="@keychain:Developer-altool" \
27+
--asc-provider="6LYC36B94Q" \
28+
--file="./build/dist/gm.zip"
29+
30+
# delete zip
31+
rm ./build/dist/gm.zip

0 commit comments

Comments
 (0)