Skip to content

Commit

Permalink
Fix build_debpackage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Dec 24, 2024
1 parent 89e1db0 commit 9f6e399
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
SOURCE_DIR: ${{github.workspace}}/.cache/source
TOOSL_DIR: ${{github.workspace}}/.cache/tools
INSTALL_DIR: ${{github.workspace}}/.cache/install
STOREPASS: ${{secrets.STOREPASS}}
artifact_name: build_android
ANDROID_PLATFORM: android-23
ANDROID_NATIVE_API_LEVEL: 23
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
env:
RabbitCommon_DIR: ${{env.SOURCE_DIR}}/RabbitCommon
run: |
export Qt6_DIR=/usr/lib/`uname -a`-linux-gnu/cmake/Qt6
export Qt6_DIR=/usr/lib/`uname -m`-linux-gnu/cmake/Qt6
./build_debpackage.sh
cp ../rabbitcalendar_${{env.Calendar_VERSION}}_amd64.deb rabbitcalendar_${{env.Calendar_VERSION}}_ubuntu_amd64.deb
Expand Down
2 changes: 1 addition & 1 deletion 3th_libs/LunarCalendar
20 changes: 16 additions & 4 deletions build_debpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ if [ -n "$1" -a -z "$QT_ROOT" ]; then
QT_ROOT=$1
fi

if [ ! -f /usr/bin/qmake -a -z "$QT_ROOT" ]; then
if [ -d "/usr/lib/`uname -m`-linux-gnu" -a -z "$QT_ROOT" ]; then
QT_ROOT="/usr/lib/`uname -m`-linux-gnu"
fi

if [ -z "$QT_ROOT" ]; then
echo "QT_ROOT=$QT_ROOT"
echo "$0 QT_ROOT RabbitCommon_DIR"
exit -1
fi
Expand All @@ -15,13 +20,20 @@ fi

if [ -z "$RabbitCommon_DIR" ]; then
RabbitCommon_DIR=`pwd`/../RabbitCommon
echo "RabbitCommon_DIR=$RabbitCommon_DIR"
fi

if [ ! -d "$RabbitCommon_DIR" ]; then
echo "QT_ROOT=$QT_ROOT"
echo "RabbitCommon_DIR=$RabbitCommon_DIR"
echo "$0 QT_ROOT RabbitCommon_DIR"
exit -1
fi

export RabbitCommon_DIR=$RabbitCommon_DIR
export QT_ROOT=$QT_ROOT
export RabbitCommon_DIR=$RabbitCommon_DIR
export PATH=$QT_ROOT/bin:$PATH
export LD_LIBRARY_PATH=$QT_ROOT/lib/i386-linux-gnu:$QT_ROOT/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=$QT_ROOT/lib/pkgconfig:$PKG_CONFIG_PATH

#fakeroot debian/rules binary

# -p, --sign-command=sign-command
Expand Down

0 comments on commit 9f6e399

Please sign in to comment.