Skip to content

Commit a4ac635

Browse files
committed
notarize app
1 parent de29a42 commit a4ac635

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

Lolgato.xcodeproj/project.pbxproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,13 @@
465465
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
466466
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
467467
CODE_SIGN_ENTITLEMENTS = Lolgato/Lolgato.entitlements;
468+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
468469
CODE_SIGN_STYLE = Automatic;
469470
COMBINE_HIDPI_IMAGES = YES;
470471
CURRENT_PROJECT_VERSION = 1;
471472
DEAD_CODE_STRIPPING = YES;
472473
DEVELOPMENT_ASSET_PATHS = "\"Lolgato/Preview Content\"";
473-
DEVELOPMENT_TEAM = 8KC85QU7L4;
474+
DEVELOPMENT_TEAM = YG824X87Y2;
474475
ENABLE_HARDENED_RUNTIME = YES;
475476
ENABLE_PREVIEWS = YES;
476477
GENERATE_INFOPLIST_FILE = YES;
@@ -483,7 +484,7 @@
483484
"$(inherited)",
484485
"@executable_path/../Frameworks",
485486
);
486-
MARKETING_VERSION = 1.2.6;
487+
MARKETING_VERSION = 1.2.7;
487488
PRODUCT_BUNDLE_IDENTIFIER = fi.zendit.Lolgato;
488489
PRODUCT_NAME = "$(TARGET_NAME)";
489490
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -498,12 +499,13 @@
498499
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
499500
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
500501
CODE_SIGN_ENTITLEMENTS = Lolgato/Lolgato.entitlements;
502+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
501503
CODE_SIGN_STYLE = Automatic;
502504
COMBINE_HIDPI_IMAGES = YES;
503505
CURRENT_PROJECT_VERSION = 1;
504506
DEAD_CODE_STRIPPING = YES;
505507
DEVELOPMENT_ASSET_PATHS = "\"Lolgato/Preview Content\"";
506-
DEVELOPMENT_TEAM = 8KC85QU7L4;
508+
DEVELOPMENT_TEAM = YG824X87Y2;
507509
ENABLE_HARDENED_RUNTIME = YES;
508510
ENABLE_PREVIEWS = YES;
509511
GENERATE_INFOPLIST_FILE = YES;
@@ -516,7 +518,7 @@
516518
"$(inherited)",
517519
"@executable_path/../Frameworks",
518520
);
519-
MARKETING_VERSION = 1.2.6;
521+
MARKETING_VERSION = 1.2.7;
520522
PRODUCT_BUNDLE_IDENTIFIER = fi.zendit.Lolgato;
521523
PRODUCT_NAME = "$(TARGET_NAME)";
522524
SWIFT_EMIT_LOC_STRINGS = YES;

scripts/archive

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/usr/bin/env bash
2+
set -euo pipefail
23

34
project_dir=$(git rev-parse --show-toplevel)
45
project_name="Lolgato"
56
scheme_name="Lolgato"
67
configuration="Release"
7-
88
archive_path="$project_dir/build/$project_name.xcarchive"
99
export_path="$project_dir/build"
1010

1111
cd "$project_dir" || exit 1
12-
1312
mkdir -p "$export_path"
13+
1414
xcodebuild archive -project "$project_name.xcodeproj" -scheme "$scheme_name" -configuration "$configuration" -archivePath "$archive_path"
1515

1616
cat <<EOF >export_options.plist
@@ -19,14 +19,15 @@ cat <<EOF >export_options.plist
1919
<plist version="1.0">
2020
<dict>
2121
<key>method</key>
22-
<string>mac-application</string>
22+
<string>developer-id</string>
2323
<key>signingStyle</key>
2424
<string>automatic</string>
25+
<key>teamID</key>
26+
<string>${APPLE_TEAM_ID}</string>
2527
</dict>
2628
</plist>
2729
EOF
2830

29-
# Export the archive as a .app
3031
xcodebuild -exportArchive -archivePath "$archive_path" -exportPath "$export_path" -exportOptionsPlist export_options.plist
3132

3233
echo "Build complete. .app file should be available at $export_path/$project_name.app"

scripts/build

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ dmg_path="build/$dmg_filename"
1717
dmgbuild -s dmgbuild_settings.py -D app="$app_path" "$project_name" "$dmg_path"
1818

1919
echo "Build and packaging complete. DMG created: $dmg_path"
20+
21+
# Notarize the DMG
22+
echo "Submitting DMG for notarization..."
23+
xcrun notarytool submit "$dmg_path" --wait --apple-id "$APPLE_ID" --password "$APPLE_ID_PASSWORD" --team-id "$APPLE_TEAM_ID"
24+
25+
# Staple the ticket to the DMG
26+
echo "Stapling notarization ticket to DMG..."
27+
xcrun stapler staple "$dmg_path"
28+
29+
echo "Build, packaging, and notarization complete. Notarized DMG available at: $dmg_path"

0 commit comments

Comments
 (0)