fix js8call

This commit is contained in:
David Young
2026-05-19 11:07:02 -06:00
parent 68dd17f712
commit 5b24401407
2 changed files with 6 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ gui=true
steps=bash $HOME/.local/share/HamPack/patch-potacat.sh, npm install, npm run dist:linux, mv dist/*.AppImage $HOME/.local/bin/POTACAT.AppImage steps=bash $HOME/.local/share/HamPack/patch-potacat.sh, npm install, npm run dist:linux, mv dist/*.AppImage $HOME/.local/bin/POTACAT.AppImage
[js8call-improved] [js8call-improved]
name=JS8Call
version=3.0.1 version=3.0.1
git=https://github.com/JS8Call-improved/JS8Call-improved.git git=https://github.com/JS8Call-improved/JS8Call-improved.git
install=$HOME/.local/bin/JS8Call install=$HOME/.local/bin/JS8Call

View File

@@ -85,26 +85,27 @@ check_binaries() {
check_compiled() { check_compiled() {
echo "" echo ""
echo "=== compile.conf ===" echo "=== compile.conf ==="
local app="" version="" git_url="" wget_url="" local app="" name="" version="" git_url="" wget_url=""
while IFS= read -r line || [ -n "$line" ]; do while IFS= read -r line || [ -n "$line" ]; do
[[ -z "$line" || "$line" == \#* ]] && continue [[ -z "$line" || "$line" == \#* ]] && continue
if [[ "$line" =~ ^\[(.+)\]$ ]]; then if [[ "$line" =~ ^\[(.+)\]$ ]]; then
check_app "$app" "$version" "$git_url" "$wget_url" check_app "${name:-$app}" "$version" "$git_url" "$wget_url"
app="${BASH_REMATCH[1]}" version="" git_url="" wget_url="" app="${BASH_REMATCH[1]}" name="" version="" git_url="" wget_url=""
continue continue
fi fi
local key="${line%%=*}" value="${line#*=}" local key="${line%%=*}" value="${line#*=}"
case "$key" in case "$key" in
name) name="$value" ;;
version) version="$value" ;; version) version="$value" ;;
git) git_url="$value" ;; git) git_url="$value" ;;
wget) wget_url="$value" ;; wget) wget_url="$value" ;;
esac esac
done < "$COMPILE_CONF" done < "$COMPILE_CONF"
check_app "$app" "$version" "$git_url" "$wget_url" check_app "${name:-$app}" "$version" "$git_url" "$wget_url"
} }
# --- Main --- # --- Main ---