1
2
3
4
5
6
7
8
9
10
11
|
#-- meta data
VERSION=$(version --get st2.py --write:rpmspec _package.epm --write:_raw_:2 st2.py)
echo "------------------ source .txz ------------------"
cd ..
pax -wvJf streamtuner2-$VERSION.src.txz \
streamtuner2/*.py streamtuner2/*.xml streamtuner2/channels/*.{py,png} \
streamtuner2/*.png streamtuner2/*.svg streamtuner2/*.desktop \
|
|
|
1
2
3
4
5
6
7
8
9
10
11
|
#-- meta data
VERSION=$(version --get:plugin st2.py --write:rpmspec _package.epm --write:python st2.py)
echo "------------------ source .txz ------------------"
cd ..
pax -wvJf streamtuner2-$VERSION.src.txz \
streamtuner2/*.py streamtuner2/*.xml streamtuner2/channels/*.{py,png} \
streamtuner2/*.png streamtuner2/*.svg streamtuner2/*.desktop \
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
echo "-------------- .tar.gz installer ---------------"
epm -vvv -n -a all -f portable -s streamtuner2.png streamtuner2 _package.epm
mv linux-3.0-all/streamtuner2-$VERSION.tar.gz linux-3.0-all/streamtuner2-$VERSION.bin.tgz
echo "-------------------- .rpm -----------------------"
epm -vvv -n -a all -f rpm streamtuner2 _package.epm
/usr/bin/rpmbuild -bb --buildroot ./linux-3.0-all/buildroot --target all linux-3.0-all/streamtuner2.spec
mv linux-3.0-all/RPMS/all/*.rpm linux-3.0-all/streamtuner2-$VERSION.rpm
rm -r linux-3.0-all/RPMS
rm -r linux-3.0-all/rpms
rm -r linux-3.0-all/buildroot
rmdir linux-3.0-all/streamtuner2-$VERSION
rm linux-3.0-all/streamtuner2.spec
echo "-------------------- win32 -----------------------"
for pkg in "win32"
do
epm-win32sfx -v streamtuner2 _package.epm
done
mv win32/*exe linux-3.0-all/
rmdir win32
|
>
|
>
|
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
echo "-------------- .tar.gz installer ---------------"
epm -vvv -n -a all -f portable -s streamtuner2.png streamtuner2 _package.epm
mv linux-3.0-all/streamtuner2-$VERSION.tar.gz linux-3.0-all/streamtuner2-$VERSION.bin.tgz
echo "-------------------- .rpm -----------------------"
epm -vvv -n -a all -f rpm streamtuner2 _package.epm
mkdir linux-3.0-all/BUILD
/usr/bin/rpmbuild -bb --buildroot $(pwd)/linux-3.0-all/buildroot --target all linux-3.0-all/streamtuner2.spec
mv linux-3.0-all/RPMS/all/*.rpm linux-3.0-all/streamtuner2-$VERSION.rpm
rm -r linux-3.0-all/BUILD
rm -r linux-3.0-all/RPMS
rm -r linux-3.0-all/rpms
#rm -r linux-3.0-all/buildroot
rmdir linux-3.0-all/streamtuner2-$VERSION
rm linux-3.0-all/streamtuner2.spec
echo "-------------------- win32 -----------------------"
for pkg in "win32"
do
epm-win32sfx -v streamtuner2 _package.epm
done
mv win32/*exe linux-3.0-all/
rmdir win32
|