summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-17 01:27:04 +0000
committerdavidovski <david@davidovski.xyz>2022-02-17 01:27:04 +0000
commit1340cdfc48583514b3a256b53a5966961b08017a (patch)
tree3b0e5d5842d79bfec1f5e23c594f9c5ee30c6773
parenta8636e960d24cf986b716fc0dd923313f0366eb4 (diff)
made edits to fit with xiutils
-rwxr-xr-xxib_env5
-rwxr-xr-xxibuild/make_infos.sh6
2 files changed, 5 insertions, 6 deletions
diff --git a/xib_env b/xib_env
index ae017b2..5258215 100755
--- a/xib_env
+++ b/xib_env
@@ -1,11 +1,8 @@
#!/bin/sh
-export CHECKMARK="✔"
-export CROSSMARK="✘"
-export TABCHAR="╰┈➤ "
+. /usr/lib/glyphs.sh
export INFOCHAR=" ~ "
-
export MAKEFLAGS="-j$(grep "processor" /proc/cpuinfo | wc -l)"
export XIB_DIR="/var/lib/xib"
diff --git a/xibuild/make_infos.sh b/xibuild/make_infos.sh
index 729fccb..9c57910 100755
--- a/xibuild/make_infos.sh
+++ b/xibuild/make_infos.sh
@@ -25,7 +25,9 @@ get_info() {
}
sign () {
- echo "SIGNATURE="
+ printf "SIGNATURE="
+ openssl dgst -sign $PRIV_KEY $1 | base64 | tr '\n' ' '
+ printf "\n"
openssl dgst -sign $PRIV_KEY $1
}
@@ -35,7 +37,7 @@ list_line() {
local name=$(basename -s ".xipkg" $pkg_file)
local filecount=$(gzip -cd $pkg_file | tar -tvv | grep -c ^-)
local checksum=$(md5sum $pkg_file | awk '{ print $1 }')
- local size=$(du -s $pkg_file | awk '{print $1}')
+ local size=$(stat -c %s $pkg_file)
echo $name.xipkg $checksum $size $filecount
}