Skip to content

Commit 1967b39

Browse files
committed
debian package improvements
1 parent 34164ae commit 1967b39

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

Packaging/Readme.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
In here you will find the the scripts and config file I use to build distributable binaries.
44
They all work with relative paths the way I have set them up in my 3 systems.
5-
They do not contain the pre-compiled enfuse and align_image_stack (and neither the scripts I use
6-
to make them distributable).
7-
I decided not to pack "everything" in one big Python executable, but to leave the data files
8-
and enfuse and align_image_stack outside the Python executable, also to make the application start faster.
5+
These scripts and source code tree do not contain the pre-compiled enfuse and align_image_stack packaged in the AppImage, the Windows build and the MacOS bundel (and contain neither the scripts I use to make enfuse and align_image_stack distributable).
6+
PyInstaller is use to make the python binaries for the several platforms.
97

10-
HvdW, 2022-04-30
8+
HvdW, 2022-05-29.

Packaging/debian/packagedeb.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,16 @@ chgrp -R root $TEMP_DIR/debian/
7777
cd $TEMP_DIR/
7878
dpkg --build debian
7979

80-
mv debian.deb $DWD/$PACKAGE_NAME-$PACKAGE_VERSION.deb
80+
arch=$(uname -m)
81+
printf "\nBuilding for machine/architecture: $arch\n"
82+
if [ "$arch" == 'x86_64' ];
83+
then
84+
mv debian.deb $DWD/$PACKAGE_NAME-$PACKAGE_VERSION-amd64.deb
85+
fi
86+
if [[ $arch =~ ^arm ]];
87+
then
88+
mv debian.deb $DWD/$PACKAGE_NAME-$PACKAGE_VERSION-armhf.deb
89+
fi
8190

8291
printf "\n\nAs we run as root we now need to clean up our stuff\n"
8392
rm -rf $RWD/dist $RWD/build $RWD/*.spec

0 commit comments

Comments
 (0)