@@ -77,50 +77,50 @@ install-appify:
7777app-bundle : out build-darwin install-appify
7878 @echo " Removing old app bundle..."
7979 @rm -rf " out/$( BUNDLE_NAME) .app"
80-
80+
8181 @echo "Creating macOS application bundle with appify..."
82-
82+
8383 # Create universal binary
8484 @echo "Creating universal binary..."
8585 lipo -create out/$(APP_NAME)-darwin-amd64 out/$(APP_NAME)-darwin-arm64 \
8686 -output out/$(APP_NAME)-universal
87-
87+
8888 # Copy logo to out directory
8989 cp media/logo.png out/logo.png
90-
90+
9191 # Create menubar icon (small version with transparency)
9292 @echo "Creating menubar icon..."
9393 sips -z 44 44 media/logo.png --out out/menubar-icon.png
9494 # Ensure the icon has an alpha channel
9595 sips -s format png out/menubar-icon.png --out out/menubar-icon.png
96-
96+
9797 # Create app bundle with appify using universal binary
9898 cd out && appify -name "$(BUNDLE_NAME)" \
9999 -icon logo.png \
100100 -id "$(BUNDLE_ID)" \
101101 $(APP_NAME)-universal
102-
102+
103103 # Move the generated app to the expected location
104104 @if [ -f "out/$(BUNDLE_NAME)-universal.app" ]; then \
105105 mv "out/$(BUNDLE_NAME)-universal.app" "out/$(BUNDLE_NAME).app"; \
106106 elif [ ! -d "out/$(BUNDLE_NAME).app" ]; then \
107107 echo "Warning: App bundle not found in expected location"; \
108108 fi
109-
109+
110110 # Copy menubar icon to Resources
111111 @echo "Copying menubar icon to app bundle..."
112112 cp out/menubar-icon.png "out/$(BUNDLE_NAME).app/Contents/Resources/menubar-icon.png"
113-
113+
114114 # Create English localization
115115 @echo "Creating English localization..."
116116 mkdir -p "out/$(BUNDLE_NAME).app/Contents/Resources/en.lproj"
117-
117+
118118 # Fix the executable name (appify adds .app suffix which we don't want)
119119 @echo "Fixing executable name..."
120120 @if [ -f "out/$(BUNDLE_NAME).app/Contents/MacOS/$(BUNDLE_NAME).app" ]; then \
121121 mv "out/$(BUNDLE_NAME).app/Contents/MacOS/$(BUNDLE_NAME).app" "out/$(BUNDLE_NAME).app/Contents/MacOS/$(BUNDLE_NAME)"; \
122122 fi
123-
123+
124124 # Fix the Info.plist
125125 @echo "Fixing Info.plist..."
126126 @/usr/libexec/PlistBuddy -c "Set :CFBundleExecutable Ready\\ to\\ Review" "out/$(BUNDLE_NAME).app/Contents/Info.plist"
@@ -130,14 +130,14 @@ app-bundle: out build-darwin install-appify
130130 /usr/libexec/PlistBuddy -c "Set :CFBundleDevelopmentRegion en" "out/$(BUNDLE_NAME).app/Contents/Info.plist"
131131 @/usr/libexec/PlistBuddy -c "Add :NSUserNotificationAlertStyle string alert" "out/$(BUNDLE_NAME).app/Contents/Info.plist" 2>/dev/null || \
132132 /usr/libexec/PlistBuddy -c "Set :NSUserNotificationAlertStyle alert" "out/$(BUNDLE_NAME).app/Contents/Info.plist"
133-
133+
134134 # Remove extended attributes and code sign the app bundle
135135 @echo "Preparing app bundle for signing..."
136136 xattr -cr "out/$(BUNDLE_NAME).app"
137-
137+
138138 @echo "Code signing the app bundle..."
139139 codesign --force --deep --sign - --options runtime "out/$(BUNDLE_NAME).app"
140-
140+
141141 @echo "macOS app bundle created: out/$(BUNDLE_NAME).app"
142142
143143# Install the application (detects OS automatically)
0 commit comments