@@ -94,31 +94,57 @@ jobs:
9494 --self-contained \
9595 -o dist/Cleanuparr.app/Contents/MacOS \
9696 /p:PublishSingleFile=true \
97- /p:Version=${{ env.appVersion }}
97+ /p:Version=${{ env.appVersion }} \
98+ /p:DebugType=None \
99+ /p:DebugSymbols=false
98100
99101 - name : Verify architecture
100102 run : |
101103 echo "Checking architecture of built binary:"
102- file dist/Cleanuparr.app/Contents/MacOS/cleanuparr
104+ file dist/Cleanuparr.app/Contents/MacOS/Cleanuparr
103105 if command -v lipo >/dev/null 2>&1; then
104- lipo -info dist/Cleanuparr.app/Contents/MacOS/cleanuparr
106+ lipo -info dist/Cleanuparr.app/Contents/MacOS/Cleanuparr
105107 fi
106108
107109 - name : Create macOS app bundle structure
108110 run : |
109111 # Create proper app bundle structure
110112 mkdir -p dist/Cleanuparr.app/Contents/{MacOS,Resources}
111113
112- # Create Info.plist
114+ # Convert ICO to ICNS for macOS app bundle
115+ if command -v iconutil >/dev/null 2>&1; then
116+ # Create iconset directory structure
117+ mkdir -p Cleanuparr.iconset
118+
119+ # Use existing PNG files from Logo directory for different sizes
120+ cp Logo/16.png Cleanuparr.iconset/icon_16x16.png
121+ cp Logo/32.png Cleanuparr.iconset/[email protected] 122+ cp Logo/32.png Cleanuparr.iconset/icon_32x32.png
123+ cp Logo/64.png Cleanuparr.iconset/[email protected] 124+ cp Logo/128.png Cleanuparr.iconset/icon_128x128.png
125+ cp Logo/256.png Cleanuparr.iconset/[email protected] 126+ cp Logo/256.png Cleanuparr.iconset/icon_256x256.png
127+ cp Logo/512.png Cleanuparr.iconset/[email protected] 128+ cp Logo/512.png Cleanuparr.iconset/icon_512x512.png
129+ cp Logo/1024.png Cleanuparr.iconset/[email protected] 130+
131+ # Create ICNS file
132+ iconutil -c icns Cleanuparr.iconset -o dist/Cleanuparr.app/Contents/Resources/Cleanuparr.icns
133+
134+ # Clean up iconset directory
135+ rm -rf Cleanuparr.iconset
136+ fi
137+
138+ # Create Info.plist with icon reference
113139 cat > dist/Cleanuparr.app/Contents/Info.plist << EOF
114140 <?xml version="1.0" encoding="UTF-8"?>
115141 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
116142 <plist version="1.0">
117143 <dict>
118144 <key>CFBundleExecutable</key>
119- <string>cleanuparr </string>
145+ <string>Cleanuparr </string>
120146 <key>CFBundleIdentifier</key>
121- <string>org.cleanuparr.app </string>
147+ <string>Cleanuparr </string>
122148 <key>CFBundleName</key>
123149 <string>Cleanuparr</string>
124150 <key>CFBundleVersion</key>
@@ -131,6 +157,8 @@ jobs:
131157 <string>APPL</string>
132158 <key>CFBundleSignature</key>
133159 <string>????</string>
160+ <key>CFBundleIconFile</key>
161+ <string>Cleanuparr</string>
134162 <key>NSHighResolutionCapable</key>
135163 <true/>
136164 <key>NSRequiresAquaSystemAppearance</key>
@@ -141,18 +169,12 @@ jobs:
141169 </plist>
142170 EOF
143171
144- # Create sample configuration
145- mkdir -p dist/Cleanuparr.app/Contents/Resources
146- cat > dist/Cleanuparr.app/Contents/Resources/appsettings .json << EOF
172+ # Create sample configuration with simplified settings
173+ mkdir -p dist/Cleanuparr.app/Contents/Resources/config
174+ cat > dist/Cleanuparr.app/Contents/Resources/config/cleanuparr .json << EOF
147175 {
148- "Logging": {
149- "LogLevel": {
150- "Default": "Information",
151- "Microsoft.AspNetCore": "Warning"
152- }
153- },
154- "AllowedHosts": "*",
155- "HTTP_PORTS": "11011"
176+ "HTTP_PORTS": 11011,
177+ "BASE_PATH": "/"
156178 }
157179 EOF
158180
@@ -167,8 +189,8 @@ jobs:
167189 mkdir -p "$HOME/Library/Application Support/Cleanuparr"
168190
169191 # Create sample configuration if it doesn't exist
170- if [ ! -f "$HOME/Library/Application Support/Cleanuparr/appsettings .json" ]; then
171- cp "/Applications/Cleanuparr.app/Contents/Resources/appsettings .json" "$HOME/Library/Application Support/Cleanuparr/"
192+ if [ ! -f "$HOME/Library/Application Support/Cleanuparr/cleanuparr .json" ]; then
193+ cp "/Applications/Cleanuparr.app/Contents/Resources/config/cleanuparr .json" "$HOME/Library/Application Support/Cleanuparr/"
172194 fi
173195
174196 # Set permissions
@@ -189,7 +211,7 @@ jobs:
189211 # Create PKG installer
190212 pkgbuild --root dist/ \
191213 --scripts scripts/ \
192- --identifier org.cleanuparr.app \
214+ --identifier Cleanuparr \
193215 --version ${{ env.appVersion }} \
194216 --install-location /Applications \
195217 ${pkg_name}
@@ -199,7 +221,7 @@ jobs:
199221 - name : Upload installer as artifact
200222 uses : actions/upload-artifact@v4
201223 with :
202- name : cleanuparr -macos-intel-installer
224+ name : Cleanuparr -macos-intel-installer
203225 path : ' ${{ env.pkgName }}'
204226 retention-days : 30
205227
0 commit comments