Skip to content

Commit

Permalink
📄 sign and notarize app with Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed May 13, 2022
1 parent ccd2a07 commit 2becebd
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ build/

bin/query_cache/
bin/image_cache/
bin/update_cache/
sign.sh
bin/update_cache/
2 changes: 1 addition & 1 deletion bin/src/constants/config.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Config {
Config._();

static const String version = '1.0.9';
static const String version = '1.1.0';
static final Uri githubRepositoryUrl =
Uri.https('github.com', '/techouse/alfred-gitmoji');
static const String algoliaApplicationId = 'WODHKE4WZG';
Expand Down
8 changes: 8 additions & 0 deletions entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.0.9</string>
<string>1.1.0</string>
<key>webaddress</key>
<string>https://github.com/techouse</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Search for gitmojis and copy them to the clipboard easily.
# Prevent accidental publishing to pub.dev.
publish_to: 'none'

version: 1.0.9
version: 1.1.0

environment:
sdk: '>=2.17.0 <3.0.0'
Expand Down
31 changes: 31 additions & 0 deletions sign.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

# sign
codesign \
--sign="D5CABC53AFC47E57F4B688BB3688CF27830BAD36" \
--identifier="com.techouse.alfred-gitmoji" \
--deep \
--force \
--options=runtime \
--entitlement="./entitlements.plist" \
--timestamp \
--verbose=4 \
./build/dist/gm

# verify
codesign -dv --verbose=4 ./build/dist/gm

# zip
zip -j ./build/dist/gm.zip ./build/dist/gm

# notarize
xcrun altool \
--notarize-app \
--primary-bundle-id="com.techouse.alfred-gitmoji" \
--username="[email protected]" \
--password="@keychain:Developer-altool" \
--asc-provider="6LYC36B94Q" \
--file="./build/dist/gm.zip"

# delete zip
rm ./build/dist/gm.zip

0 comments on commit 2becebd

Please sign in to comment.