Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
mcpproxy-go/scripts/create-app-dmg.sh at main · mvanhorn/mcpproxy-go · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mvanhorn
mcpproxy-go
Repository navigation
Code
Pull requests
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
mcpproxy-go
/
scripts
/
create-app-dmg.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
120 lines (91 loc) · 3.37 KB
main
Breadcrumbs
mcpproxy-go
/
scripts
/
create-app-dmg.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
120 lines (91 loc) · 3.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!
/bin/bash
set
-e
#
Script to create macOS DMG containing app bundle (for PR/development builds)
APP_BUNDLE_PATH=
"
$1
"
VERSION=
"
$2
"
ARCH=
"
$3
"
if
[
-z
"
$APP_BUNDLE_PATH
"
]
||
[
-z
"
$VERSION
"
]
||
[
-z
"
$ARCH
"
]
;
then
echo
"
Usage:
$0
<app_bundle_path> <version> <arch>
"
echo
"
Example:
$0
./pkg_temp/pkg_root/Applications/mcpproxy.app v1.0.0 arm64
"
exit
1
fi
if
[
!
-d
"
$APP_BUNDLE_PATH
"
]
;
then
echo
"
App bundle not found:
$APP_BUNDLE_PATH
"
exit
1
fi
#
Variables
APP_NAME=
$(
basename
"
$APP_BUNDLE_PATH
"
.app
)
DMG_NAME=
"
mcpproxy-
${VERSION
#
v}
-darwin-
${ARCH}
-installer
"
TEMP_DIR=
"
dmg_app_temp
"
echo
"
Creating app DMG for
${APP_NAME}
${VERSION}
(
${ARCH}
)
"
#
Clean up previous builds
rm -rf
"
$TEMP_DIR
"
rm -f
"
${DMG_NAME}
.dmg
"
#
Create temporary directory
mkdir -p
"
$TEMP_DIR
"
#
Copy app bundle to temp directory
echo
"
Copying app bundle:
$APP_BUNDLE_PATH
"
cp -R
"
$APP_BUNDLE_PATH
"
"
$TEMP_DIR
/
"
#
Create README file
cat
>
"
$TEMP_DIR
/README.txt
"
<<
EOF
Smart MCP Proxy
${VERSION
#
v}
DEVELOPMENT BUILD - For testing purposes
INSTALLATION:
1. Drag mcpproxy.app to your Applications folder
2. Right-click and select "Open" on first launch (bypass Gatekeeper)
3. The app will appear in your system tray
CLI USAGE:
The CLI binary is embedded in the app bundle. To use it:
- Right-click mcpproxy.app → Show Package Contents
- Navigate to Contents/Resources/bin/
- Run ./mcpproxy from Terminal
Or add to PATH:
export PATH="/Applications/mcpproxy.app/Contents/Resources/bin:
\$
PATH"
FEATURES:
• Intelligent MCP server proxy with tool discovery
• System tray application for easy management
• Built-in security quarantine for new servers
• HTTP by default (no certificate setup needed)
GETTING STARTED:
• Launch mcpproxy.app from Applications
• Configure MCP servers via the tray menu
• Or use the CLI: mcpproxy --help
NOTE: This is an ad-hoc signed development build.
Production builds are fully signed and notarized.
Visit https://github.com/smart-mcp-proxy/mcpproxy-go for documentation.
EOF
#
Create a simple Applications symlink for drag-and-drop installation
ln -s /Applications
"
$TEMP_DIR
/Applications
"
#
Sync filesystem to ensure all writes complete
sync
#
Wait a moment for macOS to finish any background operations (Spotlight indexing, etc.)
sleep 2
#
Create DMG using hdiutil
echo
"
Creating DMG...
"
hdiutil create -size 100m -fs HFS+ -volname
"
Smart MCP Proxy
${VERSION
#
v}
"
-srcfolder
"
$TEMP_DIR
"
"
${DMG_NAME}
.dmg
"
#
Clean up
rm -rf
"
$TEMP_DIR
"
echo
"
DMG created:
${DMG_NAME}
.dmg
"
#
Make DMG read-only and compressed
echo
"
Compressing DMG...
"
hdiutil convert
"
${DMG_NAME}
.dmg
"
-format UDZO -o
"
${DMG_NAME}
-compressed.dmg
"
mv
"
${DMG_NAME}
-compressed.dmg
"
"
${DMG_NAME}
.dmg
"
#
Sign DMG (ad-hoc for development)
echo
"
Signing DMG...
"
#
Use certificate identity from environment if available
if
[
-n
"
${APP_CERT_IDENTITY}
"
]
&&
[
"
${APP_CERT_IDENTITY}
"
!=
"
"
]
;
then
CERT_IDENTITY=
"
${APP_CERT_IDENTITY}
"
echo
"
✅ Using provided certificate for DMG:
${CERT_IDENTITY}
"
else
#
Fallback to ad-hoc signing
CERT_IDENTITY=
"
-
"
echo
"
Using ad-hoc signature for DMG (development build)
"
fi
#
Sign DMG
codesign --force \
--sign
"
${CERT_IDENTITY}
"
\
"
${DMG_NAME}
.dmg
"
#
Verify DMG signing
echo
"
=== Verifying DMG signature ===
"
codesign --verify --verbose
"
${DMG_NAME}
.dmg
"
||
echo
"
⚠️ Ad-hoc signed (expected for development)
"
echo
"
✅ DMG created successfully:
${DMG_NAME}
.dmg
"
You can’t perform that action at this time.