-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_macos.sh
More file actions
executable file
·33 lines (28 loc) · 880 Bytes
/
Copy pathbuild_macos.sh
File metadata and controls
executable file
·33 lines (28 loc) · 880 Bytes
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
#!/bin/bash
# Build script for macOS .app bundle
# Author: Enes Ozturk
# GitHub: https://github.com/nsozturk
echo "Building Photo Size Reducer for macOS..."
# Check if PyInstaller is installed
if ! command -v pyinstaller &> /dev/null
then
echo "PyInstaller not found. Installing..."
pip install pyinstaller
fi
# Clean previous builds
rm -rf build dist
# Build the .app
pyinstaller --clean \
--onefile \
--windowed \
--name "Photo Size Reducer" \
--icon=icon.icns \
--add-data "README.md:." \
--osx-bundle-identifier "com.nsozturk.photosizereducer" \
photo_reducer.py
echo ""
echo "Build complete!"
echo "The .app is located in: dist/Photo Size Reducer.app"
echo ""
echo "To create a DMG for distribution:"
echo " hdiutil create -volname 'Photo Size Reducer' -srcfolder 'dist/Photo Size Reducer.app' -ov -format UDZO PhotoSizeReducer.dmg"