aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/dists/debian/package_debian.sh
blob: bdb341a28c05e5306332890b9091c49c5781a550 (plain) (blame)
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
# This script should be run post-compile
# and i should move files to the correct location for packaging ... ( for DEB package )

rm -fr ../../../deb-package
rm -fr ../../../packages
clear

mkdir ../../../packages

mkdir ../../../deb-package
mkdir ../../../deb-package/DEBIAN
mkdir ../../../deb-package/usr
mkdir ../../../deb-package/usr/local
mkdir ../../../deb-package/usr/local/share
mkdir ../../../deb-package/usr/local/share/UltraStarDeluxe
mkdir ../../../deb-package/usr/bin

cp ../../UltraStar ../../../deb-package/usr/bin/UltraStarDeluxe

cp -a ../../Themes/ ../../../deb-package/usr/local/share/UltraStarDeluxe/
cp -a ../../Sounds/ ../../../deb-package/usr/local/share/UltraStarDeluxe/
cp -a ../../Skins/ ../../../deb-package/usr/local/share/UltraStarDeluxe/
cp -a ../../Languages/ ../../../deb-package/usr/local/share/UltraStarDeluxe/

cp UltraStarDeluxe.control ../../../deb-package/DEBIAN/control

cd ../../../

dpkg-deb --build ./deb-package
mv deb-package.deb ./packages/UltraStarDeluxe_1.1_i386.deb

rm -fr ../../../deb-package