patch package.json
This commit is contained in:
@@ -14,4 +14,4 @@ steps=/usr/lib/qt6/bin/qmake, make, sudo make install
|
|||||||
version=1.1.0
|
version=1.1.0
|
||||||
git=https://github.com/Waffleslop/POTACAT.git
|
git=https://github.com/Waffleslop/POTACAT.git
|
||||||
install=$HOME/.local/bin
|
install=$HOME/.local/bin
|
||||||
steps=npm install, npm run dist:linux, mv /dist/*.AppImage $HOME/.local/bin/
|
steps=npm install, ./patch-potacat.sh, npm run dist:linux, mv /dist/*.AppImage $HOME/.local/bin/
|
||||||
20
patch-potacat.sh
Executable file
20
patch-potacat.sh
Executable file
@@ -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."
|
||||||
Reference in New Issue
Block a user