From 25f7b91990c8e842643643e0eecf2e7c2479b49e Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 20 Mar 2026 19:31:17 -0600 Subject: [PATCH] patch package.json --- compile.conf | 2 +- patch-potacat.sh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 patch-potacat.sh diff --git a/compile.conf b/compile.conf index c756cbc..5f35bc3 100644 --- a/compile.conf +++ b/compile.conf @@ -14,4 +14,4 @@ steps=/usr/lib/qt6/bin/qmake, make, sudo make install version=1.1.0 git=https://github.com/Waffleslop/POTACAT.git install=$HOME/.local/bin -steps=npm install, npm run dist:linux, mv /dist/*.AppImage $HOME/.local/bin/ \ No newline at end of file +steps=npm install, ./patch-potacat.sh, npm run dist:linux, mv /dist/*.AppImage $HOME/.local/bin/ \ No newline at end of file diff --git a/patch-potacat.sh b/patch-potacat.sh new file mode 100755 index 0000000..5a12ae0 --- /dev/null +++ b/patch-potacat.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Purpose : Remove deb target from electron-builder package.json + +PACKAGE_JSON="${1:-package.json}" + +if [ ! -f "$PACKAGE_JSON" ]; then + echo "Error: $PACKAGE_JSON not found." + exit 1 +fi + +if ! grep -q '"deb"' "$PACKAGE_JSON"; then + echo "No deb target found in $PACKAGE_JSON, nothing to do." + exit 0 +fi + +# Remove "deb" entry including trailing or leading comma +sed -i '/"deb"/d' "$PACKAGE_JSON" + +echo "Removed deb target from $PACKAGE_JSON." \ No newline at end of file