Skip to content

Commit 6d7c227

Browse files
committed
refactor: improve deb build log
1 parent 3c49e2a commit 6d7c227

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

resources/deb/build.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ if [[ ! -z $FORCE_VERSION ]]; then
3535
VERSION=$FORCE_VERSION
3636
fi
3737

38+
VERSION_STRING=
39+
FILE_VERSION_STRING=
40+
BUILD_ARCHITECTURE=
41+
3842
function _build_local() {
3943
local cwd=$PWD
4044

@@ -47,7 +51,7 @@ function _build_local() {
4751
if [[ $? == 0 ]]; then
4852
_pack
4953

50-
echo -e "\nPackage built successfully"
54+
echo -e "\nPackage built successfully: $NAME $VERSION_STRING $BUILD_ARCHITECTURE"
5155
else
5256
error=1
5357

@@ -66,11 +70,8 @@ function _build() { (
6670
build
6771
); }
6872

69-
function _pack() { (
73+
function _pack() {
7074
local VERSION_ID=$(source /etc/os-release && echo $VERSION_ID)
71-
local VERSION_STRING=
72-
local FILE_VERSION_STRING=
73-
local BUILD_ARCHITECTURE=
7475
local TARGET=
7576

7677
if [[ -z $EPOCH || $EPOCH == "0" ]]; then
@@ -115,7 +116,6 @@ EOF
115116

116117
mkdir -p $(dirname $TARGET)
117118
dpkg-deb --build -Zgzip --root-owner-group $DESTDIR $TARGET
118-
119-
); }
119+
}
120120

121121
_build_local

0 commit comments

Comments
 (0)