diff options
-rwxr-xr-x | mkdeb.sh | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -44,7 +44,16 @@ find $INSTALL_DIR -type d | xargs chmod 755 | |||
44 | cd $CODE_DIR | 44 | cd $CODE_DIR |
45 | fakeroot dpkg-deb --build debian | 45 | fakeroot dpkg-deb --build debian |
46 | lintian --no-tag-display-limit debian.deb | 46 | lintian --no-tag-display-limit debian.deb |
47 | mv debian.deb ../firejail_$2_1_amd64.deb | 47 | arch=$( getconf LONG_BIT ) |
48 | echo "if building a 32bit package, rename the deb file manually" | 48 | if [ $arch = 64 ] |
49 | then | ||
50 | mv debian.deb ../firejail_$2_1_amd64.deb | ||
51 | elif [ $arch = 32 ] | ||
52 | then | ||
53 | mv debian.deb ../firejail_$2_1_i386.deb | ||
54 | # Fallback to 64-bit package. | ||
55 | else | ||
56 | mv debian.deb ../firejail_$2_1_amd64.deb | ||
57 | fi | ||
49 | cd .. | 58 | cd .. |
50 | rm -fr $CODE_DIR | 59 | rm -fr $CODE_DIR |