File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ swift build -c "$CONF" --arch arm64
88
99APP=" $ROOT /CodexBar.app"
1010rm -rf " $APP "
11- mkdir -p " $APP /Contents/MacOS" " $APP /Contents/Resources"
11+ mkdir -p " $APP /Contents/MacOS" " $APP /Contents/Resources" " $APP /Contents/Frameworks "
1212
1313# Convert new .icon bundle to .icns if present (macOS 14+/IconStudio export)
1414ICON_SOURCE=" $ROOT /Icon.icon"
4242
4343cp " .build/$CONF /CodexBar" " $APP /Contents/MacOS/CodexBar"
4444chmod +x " $APP /Contents/MacOS/CodexBar"
45+ # Embed Sparkle.framework
46+ if [[ -d " .build/$CONF /Sparkle.framework" ]]; then
47+ cp -R " .build/$CONF /Sparkle.framework" " $APP /Contents/Frameworks/"
48+ chmod -R a+rX " $APP /Contents/Frameworks/Sparkle.framework"
49+ install_name_tool -add_rpath " @executable_path/../Frameworks" " $APP /Contents/MacOS/CodexBar"
50+ fi
4551
4652if [[ -f " $ICON_TARGET " ]]; then
4753 cp " $ICON_TARGET " " $APP /Contents/Resources/Icon.icns"
You can’t perform that action at this time.
0 commit comments