Skip to content

Commit

Permalink
add README.hdml to legacy macOS dmg
Browse files Browse the repository at this point in the history
Redirects to a wiki page informing how to allow unsigned UG build
(alternative builds are not signed).
  • Loading branch information
MartinPulec committed Oct 15, 2024
1 parent 2b62857 commit 50b7207
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,11 @@ gui-bundle: $(GUI_BUNDLE)
## uv-qt rebuild which breaks fixed links by macdeployqt)
osx-gui-dmg:
[ ! -f UltraGrid.dmg ] || rm UltraGrid.dmg
hdiutil create -fs HFS+ -volname ULTRAGRID -srcdir $(GUI_BUNDLE) -format UDZO -imagekey zlib-level=9 -o UltraGrid.dmg
if [ $(MACOS_LEGACY) = yes ]; then \
LEGACY_README="-srcdir $(srcdir)/data/template/macOS-legacy/README.html"; \
fi; \
hdiutil create -fs HFS+ -volname ULTRAGRID -srcdir $(GUI_BUNDLE) \
$$LEGACY_README -format UDZO -imagekey zlib-level=9 -o UltraGrid.dmg

@TARGETS@

Expand Down
6 changes: 4 additions & 2 deletions data/template/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
files from this subdirectories will be deployed automatically:

1. macOS/* - will be copied to macOS bundle
2. bin/* - will be copied to $(bindir) and also to macOS bundle
1. bin/* - will be copied to $(bindir) and also to macOS bundle
Contents/MacOS subdir
2. macOS-bundle/* - will be copied to macOS bundle
3. macOS-legacy/README.html - will be copied to macOS dmg (at the same
level as application bundle). Contains hint how to allow unsigned UG.
15 changes: 15 additions & 0 deletions data/template/macOS-legacy/README.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Refresh"
content="0; url='https://github.com/CESNET/UltraGrid/wiki/macOS-allow-unidentified-developer'" />
</head>

<body>
<p>You will be redirected to <a
href="https://github.com/CESNET/UltraGrid/wiki/macOS-allow-unidentified-developer">UltraGrid wiki</a> soon!
</p>
</body>

</html>

0 comments on commit 50b7207

Please sign in to comment.