File: builder_OSX.sh

package info (click to toggle)
zyne 0.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 1,384 kB
  • ctags: 706
  • sloc: python: 3,873; sh: 32; makefile: 15
file content (39 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download
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
rm -rf build dist
py2applet --make-setup Zyne.py Resources/*
python setup.py py2app --plist=scripts/Info.plist
rm -f setup.py
rm -rf build
mv dist zyne_0.1.2
if cd zyne_0.1.2;
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. zyne_0.1.2 not created"
    exit;
fi

echo "Remove Windows .ico files"
rm Zyne.app/Contents/Resources/zyneicon.ico
rm Zyne.app/Contents/Resources/zyneiconDoc.ico

ditto --rsrc --arch i386 Zyne.app Zyne-i386.app
rm -rf Zyne.app
mv Zyne-i386.app Zyne.app

cd ..
cp -R zyne_0.1.2/Zyne.app .

# Fixed wrong path in Info.plist
cd Zyne.app/Contents
awk '{gsub("Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python", "@executable_path/../Frameworks/Python.framework/Versions/2.6/Python")}1' Info.plist > Info.plist_tmp && mv Info.plist_tmp Info.plist

cd ../..
tar -cjvf Zyne_0.1.2.tar.bz2 Zyne.app
rm -rf zyne_0.1.2
rm -rf Zyne.app

svn export . Zyne_0.1.2-src
tar -cjvf Zyne_0.1.2-src.tar.bz2 Zyne_0.1.2-src
rm -R Zyne_0.1.2-src