Skip to content

Commit

Permalink
add gui to linux package
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Sep 10, 2024
1 parent 3d55bd1 commit 5b4c4b6
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion release/linux/build_package_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,31 @@ PACKAGE_NAME=alphadia
# BUILD_NAME is taken from environment variables, e.g. 'alphadia-1.2.1-linux-x64'
rm -rf ${BUILD_NAME}.deb

mkdir -p dist_pyinstaller/${BUILD_NAME}/usr/local/bin

# === GUI ===
echo "Copying GUI"

# TODO find out where this contract from ARCH & KERNEL is used in GUI building
ARCH=$(uname -m)
if [ "$ARCH" == "x86_64" ]; then
ARCH="x64"
fi
KERNEL=$(uname -s | tr '[:upper:]' '[:lower:]')
echo ARCH=${ARCH} KERNEL=${KERNEL}

ls ./gui/out

GUI_BUILD="./gui/out/${PACKAGE_NAME}-gui-${KERNEL}-${ARCH}"
if [ ! -d "$GUI_BUILD" ]; then
echo "GUI build not found at $GUI_BUILD"
exit 1
fi

cp -a ${GUI_BUILD}/. dist_pyinstaller/${BUILD_NAME}/usr/local/bin/


# Wrapping the pyinstaller folder in a .deb package
mkdir -p dist_pyinstaller/${BUILD_NAME}/usr/local/bin
mv dist_pyinstaller/${PACKAGE_NAME} dist_pyinstaller/${BUILD_NAME}/usr/local/bin/${PACKAGE_NAME}
mkdir dist_pyinstaller/${BUILD_NAME}/DEBIAN
cp release/linux/control dist_pyinstaller/${BUILD_NAME}/DEBIAN
Expand Down

0 comments on commit 5b4c4b6

Please sign in to comment.