Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 38 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,33 @@ jobs:
echo "VEYRA_NOTES_EOF"
} >> "$GITHUB_OUTPUT"

# macOS: Developer ID signing and notarization (App Store Connect API key). The .p8 key is written to a
# temporary file because Tauri reads it from a path.
- name: Apple notarization key
if: matrix.platform == 'macos-latest'
shell: bash
env:
APPLE_API_KEY_CONTENT: ${{ secrets.APPLE_API_KEY_CONTENT }}
run: |
if [ -z "$APPLE_API_KEY_CONTENT" ]; then echo "::error::The APPLE_API_KEY_CONTENT secret is missing"; exit 1; fi
key="$RUNNER_TEMP/AuthKey.p8"
printf '%s\n' "$APPLE_API_KEY_CONTENT" > "$key"
chmod 600 "$key"
echo "APPLE_API_KEY_PATH=$key" >> "$GITHUB_ENV"

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Signs the update bundles; the matching public key is in src-tauri/tauri.conf.json.
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
# Optional OS code signing (removes "unidentified developer" / SmartScreen warnings).
# Uncomment after adding the secrets; see docs/RELEASING.md.
# APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
# APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
# APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# macOS: sign with the Developer ID Application certificate and notarize with the App Store Connect
# API key, so the app opens without Gatekeeper warnings. Only set on the macOS builds.
APPLE_CERTIFICATE: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_CERTIFICATE || '' }}
APPLE_CERTIFICATE_PASSWORD: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_CERTIFICATE_PASSWORD || '' }}
APPLE_SIGNING_IDENTITY: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_SIGNING_IDENTITY || '' }}
APPLE_API_ISSUER: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_API_ISSUER || '' }}
APPLE_API_KEY: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_API_KEY || '' }}
with:
tagName: v__VERSION__
releaseName: Veyra Studio v__VERSION__
Expand All @@ -112,6 +125,23 @@ jobs:
includeUpdaterJson: true
args: ${{ matrix.args }}

# Fail the release if a Mac build isn't signed with Developer ID, notarized and stapled.
- name: Check the macOS signature and notarization
if: matrix.platform == 'macos-latest'
shell: bash
run: |
set -euo pipefail
target=$(echo "${{ matrix.args }}" | sed -E 's/.*--target ([^ ]+).*/\1/')
bundle="src-tauri/target/$target/release/bundle"
app=$(find "$bundle/macos" -maxdepth 1 -name '*.app' | head -1)
dmg=$(find "$bundle/dmg" -maxdepth 1 -name '*.dmg' | head -1)
echo "App: $app"; echo "DMG: $dmg"
codesign --verify --deep --strict --verbose=2 "$app"
codesign -dv --verbose=4 "$app" 2>&1 | grep -E "Authority=Developer ID Application|TeamIdentifier|flags=.*runtime"
spctl --assess --type execute --verbose=4 "$app"
xcrun stapler validate "$app"
spctl --assess --type open --context context:primary-signature --verbose=4 "$dmg"

# The VS Code extensions (Veyra Live Server, Veyra Port Manager), attached to the same draft release.
vscode-extension:
name: VS Code extension (${{ matrix.dir }}.vsix)
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ in-app update prompt. Headings must be `## <version>`.
**A cinematic launch screen**
- The hummingbird sweeps in under drifting stars, lands, and "Veyra Studio" types itself out while a real progress bar fills

**Signed and notarized for Mac**
- The macOS downloads are signed with an Apple Developer ID and notarized by Apple, so Veyra opens without the "unidentified developer" warning

**Fixes**
- Error Lens messages no longer overlap the next line
- Search Everywhere highlights matches without spacing out the text
- Security updates for the networking and URL libraries Veyra uses

## 0.11.0

Expand Down
46 changes: 23 additions & 23 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"shortDescription": "AI-native desktop code editor",
"category": "DeveloperTool",
"macOS": {
"signingIdentity": "-",
"minimumSystemVersion": "11.0"
}
},
Expand Down
Loading