refactor: move plist gen into setup.py

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2023-01-08 21:08:21 -07:00
parent b7e7a087f8
commit f912d55177
9 changed files with 139 additions and 170 deletions
+19
View File
@@ -0,0 +1,19 @@
#! /usr/bin/env bash
if ! command -v png2icns &> /dev/null
then
echo "png2icns cound not be found, it is required. Please install a package like icnsutils or libicns."
exit
fi
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
mkdir -p $SCRIPT_DIR/icons
for size in 16x16 32x32 48x48 128x128 256x256; do
cp $SCRIPT_DIR/../setup/data/hicolor/$size/apps/novelwriter.png $SCRIPT_DIR/icons/icon_${size}px.png
done
png2icns $SCRIPT_DIR/novelwriter.icns $SCRIPT_DIR/icons/icon_*px.png
rm -r $SCRIPT_DIR/icons