build corrections

This commit is contained in:
Michael Freno
2026-01-12 23:03:08 -05:00
parent cef69e4423
commit f74390e4c3
3 changed files with 31 additions and 22 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ AGENTS.md
*.dmg
*.delta
*.pem
build

View File

@@ -3,7 +3,9 @@ set -e
# Load environment variables from .env file
if [ -f .env ]; then
export $(grep -v '^#' .env | xargs)
set -a
source .env
set +a
fi
# Validate required code signing and notarization credentials
@@ -112,14 +114,6 @@ rm -f "$DMG_NAME"
echo ""
echo "📦 Creating archive..."
xcodebuild archive \
-project Gaze.xcodeproj \
-scheme Gaze \
-configuration Release \
-archivePath "$ARCHIVE_PATH" \
CODE_SIGN_IDENTITY="$DEVELOPER_ID_APPLICATION" \
CODE_SIGN_STYLE=Manual \
DEVELOPMENT_TEAM="$APPLE_TEAM_ID" \
| xcpretty || xcodebuild archive \
-project Gaze.xcodeproj \
-scheme Gaze \
-configuration Release \
@@ -163,10 +157,6 @@ EOF
echo ""
echo "📤 Exporting signed application..."
xcodebuild -exportArchive \
-archivePath "$ARCHIVE_PATH" \
-exportPath "$EXPORT_PATH" \
-exportOptionsPlist /tmp/exportOptions.plist \
| xcpretty || xcodebuild -exportArchive \
-archivePath "$ARCHIVE_PATH" \
-exportPath "$EXPORT_PATH" \
-exportOptionsPlist /tmp/exportOptions.plist
@@ -249,8 +239,11 @@ fi
# Step 8: Verify with Gatekeeper
echo ""
echo "🔍 Verifying Gatekeeper acceptance..."
set +e # Temporarily disable exit on error
spctl --assess --type execute --verbose=4 "$EXPORT_PATH/Gaze.app" 2>&1
if [ $? -eq 0 ]; then
SPCTL_RESULT=$?
set -e # Re-enable exit on error
if [ $SPCTL_RESULT -eq 0 ]; then
echo "✅ Application passes Gatekeeper verification"
else
echo "⚠️ Warning: Gatekeeper assessment returned non-zero status"
@@ -342,8 +335,11 @@ fi
# Step 13: Final verification
echo ""
echo "🔍 Final DMG verification..."
set +e # Temporarily disable exit on error
spctl --assess --type open --context context:primary-signature --verbose=4 "$DMG_NAME" 2>&1
if [ $? -eq 0 ]; then
DMG_SPCTL_RESULT=$?
set -e # Re-enable exit on error
if [ $DMG_SPCTL_RESULT -eq 0 ]; then
echo "✅ DMG passes all Gatekeeper checks"
else
echo "⚠️ Warning: Gatekeeper assessment returned non-zero status"
@@ -492,9 +488,7 @@ echo " ✅ DMG notarized by Apple"
echo " ✅ Gatekeeper approved"
echo ""
echo "Next steps:"
echo " 1. Upload DMG to: ${DOWNLOAD_URL_PREFIX}$DMG_NAME"
echo " 2. Upload appcast to: $FEED_URL"
echo " 3. Verify appcast is accessible and valid"
echo " 4. Test installation on clean macOS system"
echo " 5. Test update from previous version"
echo " 1. Verify appcast is accessible and valid"
echo " 2. Test installation on clean macOS system"
echo " 3. Test update from previous version"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"

View File

@@ -2,6 +2,20 @@
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
<channel>
<title>Gaze</title>
<item>
<title>0.3.0</title>
<pubDate>Mon, 12 Jan 2026 22:56:56 -0500</pubDate>
<sparkle:version>5</sparkle:version>
<sparkle:shortVersionString>0.3.0</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>13.0</sparkle:minimumSystemVersion>
<enclosure url="https://freno.me/api/downloads/Gaze-0.3.0.dmg" length="4853163" type="application/octet-stream" sparkle:edSignature="0CDqOaD0ONSm9OiIlpeL/HZsAKgxZOBugFCmrbB9MoHAkmaYbsjHUWt+PEIASMKvqNHAjoiK9SgeQ6GXDeUTBQ=="/>
<sparkle:deltas>
<enclosure url="https://freno.me/api/downloads/Gaze5-4.delta" sparkle:deltaFrom="4" length="278002" type="application/octet-stream" sparkle:deltaFromSparkleExecutableSize="858560" sparkle:deltaFromSparkleLocales="de,he,ar,el,ja,fa,uk" sparkle:edSignature="U0BcNkajxIu+WvXSgXhlNhjY71YVEYoJqewQO4rQ3hSi2FOx6JeR//U4gBVhwbZ/HhXDH9eJi0Hr5EA8HGq2DQ=="/>
<enclosure url="https://freno.me/api/downloads/Gaze5-3.delta" sparkle:deltaFrom="3" length="306982" type="application/octet-stream" sparkle:deltaFromSparkleExecutableSize="858560" sparkle:deltaFromSparkleLocales="de,he,ar,el,ja,fa,uk" sparkle:edSignature="aLNhlWG9RbjoPwBhJENjDfTgyyAYvIt7xt3zMU/oh9meqHY84rrXNawodYlSP+H5UqsTWiMg42g5JbESprQ9DA=="/>
<enclosure url="https://freno.me/api/downloads/Gaze5-2.delta" sparkle:deltaFrom="2" length="306818" type="application/octet-stream" sparkle:deltaFromSparkleExecutableSize="858560" sparkle:deltaFromSparkleLocales="de,he,ar,el,ja,fa,uk" sparkle:edSignature="YyljOhkj4Nnha9v3WxhczuMO0aYZA5TrS/ieiMwEynR3i1D5NejrEidSq75EWlnXUETaRHzaIwaHmzIA6x1cAQ=="/>
<enclosure url="https://freno.me/api/downloads/Gaze5-1.delta" sparkle:deltaFrom="1" length="308378" type="application/octet-stream" sparkle:deltaFromSparkleExecutableSize="858560" sparkle:deltaFromSparkleLocales="de,he,ar,el,ja,fa,uk" sparkle:edSignature="99KIjuszoi8uKgEbYmoL9BB9dM2qbuIGDWKfLkFE2YJdq77NSpmwg6AJmgOOULYsTppqEcxfRzSC5XSorru0Dw=="/>
</sparkle:deltas>
</item>
<item>
<title>0.2.3</title>
<pubDate>Sun, 11 Jan 2026 21:48:03 -0500</pubDate>