RedPanda-CPP/packages/debian/builddeb.sh

24 lines
618 B
Bash
Raw Normal View History

#!/bin/bash
2022-01-06 16:24:03 +08:00
set -xeuo pipefail
2022-01-06 16:32:09 +08:00
2022-01-06 16:24:03 +08:00
TMP_FOLDER=/tmp/redpandaide
[[ -d $TMP_FOLDER ]] && rm -rf $TMP_FOLDER
mkdir -p "$TMP_FOLDER"
2022-01-18 22:38:27 +08:00
2022-01-06 16:24:03 +08:00
cp -r packages/debian $TMP_FOLDER
2022-09-26 15:10:31 +08:00
cp -r tools $TMP_FOLDER
cp -r libs $TMP_FOLDER
2022-01-06 16:24:03 +08:00
cp -r RedPandaIDE $TMP_FOLDER
cp README.md $TMP_FOLDER
cp LICENSE $TMP_FOLDER
cp NEWS.md $TMP_FOLDER
cp version.inc $TMP_FOLDER
2022-09-26 15:20:13 +08:00
cp -r platform $TMP_FOLDER
2022-01-06 16:24:03 +08:00
cp Red_Panda_CPP.pro $TMP_FOLDER
cd $TMP_FOLDER
command -v mk-build-deps && mk-build-deps -i -t "apt -y --no-install-recommends" debian/control
sed -i '/CONFIG += ENABLE_LUA_ADDON/ { s/^#\s*// }' RedPandaIDE/RedPandaIDE.pro
2022-01-06 16:24:03 +08:00
dpkg-buildpackage -us -uc