2023-01-03 12:18:02 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
# build RedPanda C++
|
|
|
|
mkdir -p /build/redpanda-build
|
|
|
|
cd /build/redpanda-build
|
2023-03-04 18:44:39 +08:00
|
|
|
qmake PREFIX='/usr' XDG_ADAPTIVE_ICON=ON /build/RedPanda-CPP/Red_Panda_CPP.pro
|
2023-01-03 12:18:02 +08:00
|
|
|
make -j$(nproc)
|
|
|
|
|
|
|
|
# install RedPanda C++ to AppDir
|
|
|
|
make install INSTALL_ROOT=/build/RedPandaIDE.AppDir
|
|
|
|
|
|
|
|
# setup AppImage resource
|
|
|
|
cd /build/RedPandaIDE.AppDir
|
|
|
|
ln -s usr/bin/RedPandaIDE AppRun
|
|
|
|
ln -s usr/share/applications/redpandaide.desktop redpandaide.desktop
|
2023-01-19 20:56:59 +08:00
|
|
|
ln -s usr/share/icons/hicolor/scalable/apps/redpandaide.svg redpandaide.svg
|
|
|
|
cp /build/RedPanda-CPP/platform/linux/redpandaide.png .DirIcon
|
2023-01-03 12:18:02 +08:00
|
|
|
|
|
|
|
# copy dependency
|
2023-03-04 18:44:39 +08:00
|
|
|
cp /usr/local/bin/alacritty usr/bin
|
2023-01-03 12:18:02 +08:00
|
|
|
|
|
|
|
# create AppImage
|
|
|
|
cd /build
|
|
|
|
appimagetool --appimage-extract-and-run RedPandaIDE.AppDir RedPandaIDE-$CARCH.AppImage
|
|
|
|
|
|
|
|
# copy back to host
|
|
|
|
mkdir -p /build/RedPanda-CPP/dist
|
2023-01-19 20:56:59 +08:00
|
|
|
cp RedPandaIDE-$CARCH.AppImage /build/RedPanda-CPP/dist
|