Skip to content

Commit 2530c2e

Browse files
ZonatedCordclaude
andcommitted
fix(ci): ad-hoc sign DMG for macOS Tahoe compatibility
- Add codesign step after tauri-action: signs .app, repacks DMG, re-uploads with --clobber so users get a signed bundle - Update README with correct install instructions for Tahoe (16.x): both xattr -cr and codesign needed without this CI fix - Fix release notes: replace wrong "tasto destro → Apri" with actual Terminal commands Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ce1dbbb commit 2530c2e

2 files changed

Lines changed: 59 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,37 @@ jobs:
6868
### Nota
6969
Le funzionalità di scansione (OSM/Google/Foursquare), verifica siti e arricchimento Facebook richiedono il worker Python locale. Vedi README per istruzioni.
7070
71-
### Installazione
71+
### Installazione (Apple Silicon — M1/M2/M3/M4)
7272
1. Scarica `Morpheus_${{ github.ref_name }}_aarch64.dmg`
7373
2. Apri il DMG e trascina Morpheus in Applicazioni
74-
3. Al primo avvio: tasto destro → Apri (app non firmata)
74+
3. Se macOS dice **"danneggiata"**, apri Terminal e incolla:
75+
```
76+
xattr -cr /Applications/Morpheus.app
77+
codesign --force --deep --sign - /Applications/Morpheus.app
78+
```
79+
Poi riapri normalmente. Necessari entrambi i comandi su macOS Tahoe (16.x).
7580
releaseDraft: false
7681
prerelease: false
82+
83+
- name: Ad-hoc sign app and repackage DMG
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
run: |
87+
APP="src-tauri/target/release/bundle/macos/Morpheus.app"
88+
DMG=$(ls src-tauri/target/release/bundle/dmg/*.dmg | head -1)
89+
90+
# Ad-hoc sign the .app bundle
91+
codesign --force --deep --sign - "$APP"
92+
93+
# Replace .app in DMG with signed version and repack
94+
hdiutil convert "$DMG" -format UDRW -o /tmp/rw.dmg
95+
hdiutil attach /tmp/rw.dmg -mountpoint /tmp/morphvol -nobrowse -quiet
96+
rm -rf "/tmp/morphvol/Morpheus.app"
97+
cp -r "$APP" "/tmp/morphvol/Morpheus.app"
98+
hdiutil detach /tmp/morphvol -quiet
99+
rm "$DMG"
100+
hdiutil convert /tmp/rw.dmg -format UDZO -o "$DMG"
101+
rm /tmp/rw.dmg
102+
103+
# Re-upload signed DMG to release (overwrites unsigned)
104+
gh release upload "${{ github.ref_name }}" "$DMG" --clobber

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,35 @@ App desktop nativa macOS per lead generation iperlocale. Raccoglie attività com
1616
1717
---
1818

19+
## Download e installazione
20+
21+
**Requisiti:** Mac con Apple Silicon (M1/M2/M3/M4) · macOS 12 Monterey o superiore
22+
23+
> ⚠️ Intel Mac non supportato in questa versione. Supporto Intel in arrivo.
24+
25+
1. Scarica `Morpheus_vX.X.X_aarch64.dmg` dalla [pagina Releases](https://github.com/ZonatedCord/Morpheus/releases/latest)
26+
2. Apri il DMG e trascina **Morpheus** in **Applicazioni**
27+
3. Prova ad aprire l'app
28+
29+
### macOS dice "danneggiata" o "non può essere aperta"
30+
31+
L'app non è ancora firmata con certificato Apple. macOS blocca le app non firmate scaricate da internet.
32+
33+
**Fix — apri Terminal e incolla questi due comandi:**
34+
35+
```bash
36+
xattr -cr /Applications/Morpheus.app
37+
codesign --force --deep --sign - /Applications/Morpheus.app
38+
```
39+
40+
Poi riapri Morpheus normalmente.
41+
42+
> ⚠️ **macOS Tahoe (16.x):** il solo primo comando non basta. Servono entrambi.
43+
>
44+
> Questo errore scomparirà nella versione futura con firma Apple (Apple Developer Program).
45+
46+
---
47+
1948
## Screenshot
2049

2150
![Morpheus Desktop](assets/screenshot.png)

0 commit comments

Comments
 (0)