GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add CI/CD pipeline, build script, and redesign app icon · IchenDEV/mind-keeper@cac33bf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • release.yml
  • .gitignore
  • MindKeeper.xcodeproj
    • project.pbxproj
    • project.xcworkspace
      • contents.xcworkspacedata
      • xcshareddata/swiftpm
        • Package.resolved
  • MindKeeper/Resources/Assets.xcassets/AppIcon.appiconset
    • icon_128.png
    • [email protected]
    • icon_16.png
    • [email protected]
    • icon_256.png
    • [email protected]
    • icon_32.png
    • [email protected]
    • icon_512.png
    • [email protected]
  • scripts
    • build-app.sh
    • generate-icon.swift
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/release.yml‎

Copy file name to clipboard
+114Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
name: Build & Release
14+
runs-on: macos-26
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Resolve version from tag
19+
id: version
20+
run: echo "value=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
21+
22+
- name: Install XcodeGen
23+
run: brew install xcodegen
24+
25+
- name: Check secrets availability
26+
id: secrets-check
27+
run: |
28+
if [ "${{ secrets.APPLE_CERTIFICATE_P12 }}" != '' ]; then
29+
echo "has-cert=true" >> "$GITHUB_OUTPUT"
30+
fi
31+
if [ "${{ secrets.APPLE_ID }}" != '' ] && [ "${{ secrets.APPLE_TEAM_ID }}" != '' ]; then
32+
echo "has-notarize=true" >> "$GITHUB_OUTPUT"
33+
fi
34+
35+
- name: Import code-signing certificate
36+
if: steps.secrets-check.outputs.has-cert == 'true'
37+
env:
38+
APPLE_CERTIFICATE_P12: ${{ secrets.APPLE_CERTIFICATE_P12 }}
39+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
40+
run: |
41+
CERT_PATH="$RUNNER_TEMP/certificate.p12"
42+
KEYCHAIN_PATH="$RUNNER_TEMP/build.keychain-db"
43+
KEYCHAIN_PASS="$(openssl rand -hex 16)"
44+
45+
echo "$APPLE_CERTIFICATE_P12" | base64 --decode > "$CERT_PATH"
46+
47+
security create-keychain -p "$KEYCHAIN_PASS" "$KEYCHAIN_PATH"
48+
security set-keychain-settings -lut 21600 "$KEYCHAIN_PATH"
49+
security unlock-keychain -p "$KEYCHAIN_PASS" "$KEYCHAIN_PATH"
50+
security import "$CERT_PATH" -P "$APPLE_CERTIFICATE_PASSWORD" \
51+
-A -t cert -f pkcs12 -k "$KEYCHAIN_PATH"
52+
security set-key-partition-list -S apple-tool:,apple: \
53+
-k "$KEYCHAIN_PASS" "$KEYCHAIN_PATH"
54+
55+
CERT_PEM="$RUNNER_TEMP/cert.pem"
56+
openssl pkcs12 -in "$CERT_PATH" -clcerts -nokeys \
57+
-passin "pass:${APPLE_CERTIFICATE_PASSWORD}" -out "$CERT_PEM" 2>/dev/null || true
58+
if [ -f "$CERT_PEM" ]; then
59+
sudo security add-trusted-cert -d -r trustRoot \
60+
-k "$KEYCHAIN_PATH" "$CERT_PEM" 2>/dev/null || true
61+
rm -f "$CERT_PEM"
62+
fi
63+
64+
security list-keychains -d user -s "$KEYCHAIN_PATH" login.keychain-db
65+
rm -f "$CERT_PATH"
66+
67+
IDENTITY=$(security find-identity -p codesigning "$KEYCHAIN_PATH" \
68+
| grep '"' | head -1 | sed 's/.*"\(.*\)".*/\1/')
69+
70+
if [ -n "$IDENTITY" ]; then
71+
echo "SIGN_IDENTITY=$IDENTITY" >> "$GITHUB_ENV"
72+
echo "✓ Signing identity: $IDENTITY"
73+
else
74+
echo "⚠ No codesigning identity found, will use ad-hoc"
75+
fi
76+
77+
# ── Build ──────────────────────────────────────────────────
78+
- name: Build .app and .dmg
79+
run: |
80+
ARGS=(--version="${{ steps.version.outputs.value }}")
81+
if [ -n "${SIGN_IDENTITY:-}" ]; then
82+
ARGS+=(--sign="${SIGN_IDENTITY}")
83+
fi
84+
./scripts/build-app.sh "${ARGS[@]}"
85+
86+
- name: Verify artifacts
87+
run: |
88+
ls -lh dist/
89+
codesign -dvv "dist/Mind Keeper.app"
90+
91+
# ── Notarize (optional) ────────────────────────────────────
92+
- name: Notarize DMG
93+
if: steps.secrets-check.outputs.has-notarize == 'true'
94+
env:
95+
APPLE_ID: ${{ secrets.APPLE_ID }}
96+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
97+
APPLE_APP_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
98+
run: |
99+
DMG="dist/MindKeeper-${{ steps.version.outputs.value }}.dmg"
100+
xcrun notarytool submit "$DMG" \
101+
--apple-id "$APPLE_ID" \
102+
--team-id "$APPLE_TEAM_ID" \
103+
--password "$APPLE_APP_PASSWORD" \
104+
--wait --timeout 30m
105+
xcrun stapler staple "$DMG"
106+
107+
# ── Release ────────────────────────────────────────────────
108+
- name: Create GitHub Release
109+
uses: softprops/action-gh-release@v2
110+
with:
111+
name: Mind Keeper ${{ github.ref_name }}
112+
generate_release_notes: true
113+
files: |
114+
dist/MindKeeper-*.dmg
Collapse file

‎.gitignore‎

Copy file name to clipboard
+63Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# macOS
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
Icon?
6+
._*
7+
.DocumentRevisions-V100
8+
.fseventsd
9+
.Spotlight-V100
10+
.TemporaryItems
11+
.Trashes
12+
.VolumeIcon.icns
13+
.com.apple.timemachine.donotpresent
14+
15+
# Xcode
16+
*.xcodeproj/
17+
*.xcworkspace/
18+
!*.xcworkspace/contents.xcworkspacedata
19+
*.xcuserstate
20+
xcuserdata/
21+
DerivedData/
22+
*.pbxuser
23+
*.mode1v3
24+
*.mode2v3
25+
*.perspectivev3
26+
27+
# Swift Package Manager
28+
.build/
29+
.swiftpm/
30+
31+
# Distribution & Build Output
32+
dist/
33+
34+
# Build Artifacts
35+
*.o
36+
*.d
37+
*.hmap
38+
*.ipa
39+
*.dSYM
40+
*.dSYM.zip
41+
*.xcarchive
42+
43+
# Code Signing
44+
*.p12
45+
*.mobileprovision
46+
*.provisionprofile
47+
48+
# IDE & Editor
49+
.vscode/
50+
.idea/
51+
*.swp
52+
*.swo
53+
*~
54+
55+
# Environment & Secrets
56+
.env
57+
.env.local
58+
*.key
59+
*.pem
60+
61+
# Logs & Temp
62+
*.log
63+
*.tmp

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.