/usr/lib/python-pyo/epyo_builder_OSX.sh is in python-pyo 0.7-2.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 34 35 36 37 38 39 40 41 42 43 44 45 | mkdir Resources
cp PyoDoc.py Resources/
cp FlatNoteBook.py Resources/
cp Tutorial_01_RingMod.py Resources/
cp Tutorial_02_Flanger.py Resources/
cp Tutorial_03_TriTable.py Resources/
cp *.icns Resources/
svn export ../examples examples/
cp -R examples Resources/
cp -R snippets Resources/
cp -R styles Resources/
rm -rf build dist
py2applet --make-setup E-Pyo.py Resources/*
python setup.py py2app --plist=info.plist
rm -f setup.py
rm -rf build
mv dist E-Pyo_OSX
if cd E-Pyo_OSX;
then
find . -name .svn -depth -exec rm -rf {} \
find . -name *.pyc -depth -exec rm -f {} \
find . -name .* -depth -exec rm -f {} \;
else
echo "Something wrong. E-Pyo_OSX not created"
exit;
fi
# keep only 64-bit arch
ditto --rsrc --arch x86_64 E-Pyo.app E-Pyo-x86_64.app
rm -rf E-Pyo.app
mv E-Pyo-x86_64.app E-Pyo.app
cd ..
cp -R E-Pyo_OSX/E-Pyo.app .
# Fixed wrong path in Info.plist (no more needed python 2.7.8, py2app 0.9)
#cd E-Pyo.app/Contents
#awk '{gsub("Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python", "@executable_path/../Frameworks/Python.framework/Versions/2.7/Python")}1' Info.plist > Info.plist_tmp && mv Info.plist_tmp Info.plist
#cd ../..
rm -rf E-Pyo_OSX
rm -rf Resources
rm -rf examples
|