Added fixes to mac build script.

This commit is contained in:
Joey Payne 2015-05-07 08:19:05 -06:00
commit a462297764
2 changed files with 12 additions and 6 deletions

View file

@ -2,20 +2,23 @@ rm -rf Web2ExeMac*
rm files/error.log files/last_project_path.txt files/recent_files.txt rm files/error.log files/last_project_path.txt files/recent_files.txt
rm -rf files/downloads/* rm -rf files/downloads/*
rm -rf Web2ExeMac-CMD/files rm -rf Web2ExeMac-CMD/files
pyinstaller --hidden-import Jpeg2KImagePlugin --hidden-import configobj --distpath Web2ExeMac-CMD --onefile -n web2exe-mac command_line.py pyinstaller --hidden-import PIL.Jpeg2KImagePlugin --hidden-import configobj --distpath Web2ExeMac-CMD --onefile -n web2exe-mac command_line.py
cp -rf files Web2ExeMac-CMD/files/ cp -rf files Web2ExeMac-CMD/files/
rm -rf build dist Web2Executable.app rm -rf build dist Web2Executable.app
sudo python build_mac_setup.py py2app --iconfile icon.icns sudo python build_mac_setup.py py2app --iconfile icon.icns
sudo chown -R joey dist/main.app sudo chown -R joey dist/Web2Executable.app
sudo chown -R joey dist/ build/ sudo chown -R joey dist/ build/
mv dist/main.app Web2Executable.app mv dist/Web2Executable.app Web2Executable.app
rm -rf Web2Executable.app/Contents/Frameworks/Qt* rm -rf Web2Executable.app/Contents/Frameworks/QtDesigner*
rm -rf Web2Executable.app/Contents/Frameworks/QtXml*
rm -rf Web2Executable.app/Contents/Frameworks/QtWebKit*
rm -rf Web2Executable.app/Contents/Frameworks/QtScript*
rm -rf build dist rm -rf build dist
zip -r -9 Web2ExeMac-CMD.zip Web2ExeMac-CMD /Applications/Keka.app/Contents/Resources/keka7z a -r Web2ExeMac-CMD.zip Web2ExeMac-CMD
zip -r -9 Web2ExeMac-v0.2.2b.zip Web2Executable.app /Applications/Keka.app/Contents/Resources/keka7z a -r Web2ExeMac-v0.2.2b.zip Web2Executable.app

View file

@ -18,7 +18,10 @@ OPTIONS = {
} }
setup( setup(
name='Web2Executable',
version='0.2.2b',
app=APP, app=APP,
author='Joey Payne',
data_files=DATA_FILES, data_files=DATA_FILES,
options={'py2app': OPTIONS}, options={'py2app': OPTIONS},
setup_requires=['py2app'], setup_requires=['py2app'],