Skip to content

Commit e7a6674

Browse files
committed
Refactor the build script
1 parent 28d9fd0 commit e7a6674

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/build_deb_package.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
#!/usr/bin/env bash
22

3+
4+
# initialize
35
set -eux
46

57
PYTHON=python3
6-
78
DIST_DIR_NAME="dist"
89
INSTALL_DIR_PATH="/usr/local/bin"
910
DIST_DIR_PATH="./${DIST_DIR_NAME}/${INSTALL_DIR_PATH}"
1011
PKG_NAME="tcconfig"
1112

12-
# initialize
1313
cd "$(git rev-parse --show-toplevel)"
1414
rm -rf $DIST_DIR_NAME
1515
mkdir -p "${DIST_DIR_NAME}/DEBIAN"
1616

17+
18+
# setup
1719
$PYTHON -m pip install --upgrade "pip>=21.1"
1820
$PYTHON -m pip install --upgrade .[buildexe,color]
1921

0 commit comments

Comments
 (0)