0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 14:12:59 +03:00

Better Icons

Nix Fix
This commit is contained in:
Andrey Onishchenko 2024-03-07 22:16:21 +03:00
parent f5eeac19b4
commit 8bf13524b5
5 changed files with 13 additions and 0 deletions

BIN
icons/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
icons/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

4
icons/favicon.svg Normal file
View File

@ -0,0 +1,4 @@
<svg width="445" height="445" viewBox="0 0 442 445" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M220.86 445C342.838 445 441.72 345.383 441.72 222.5C441.72 99.6166 342.838 0 220.86 0C98.8825 0 0 99.6166 0 222.5C0 345.383 98.8825 445 220.86 445Z" fill="black"/>
<path d="M388.708 178.197L387.278 171.452L330.975 161.518L363.753 116.785L359.979 112.401L311.802 135.794L317.888 73.7995L312.958 70.8868L283.65 121.169L250.842 46.3281H245.06L252.881 118.533L170.161 51.571L163.192 53.6252L226.769 134.629L100.802 92.2262L94.9892 98.6648L207.595 163.572L52.3207 176.725L50.5859 186.383L211.947 204.197L77.2767 317.087L83.0895 324.967L243.295 236.666L211.673 392.235H221.26L282.767 245.741L320.232 360.348L326.897 355.075L311.528 238.72L369.839 305.681L373.613 299.519L328.936 216.491L391.326 239.885L391.904 232.864L335.905 191.044L388.708 178.197Z" fill="#FED42B"/>
</svg>

After

Width:  |  Height:  |  Size: 879 B

View File

@ -30,6 +30,7 @@ stdenvNoCC.mkDerivation
repack = ./../repack.sh;
patches = ./../patches;
utility = ./../utility;
icons = ./../icons;
desktopItem = ../templates/desktop;
src =
if ymExe != null
@ -44,6 +45,7 @@ stdenvNoCC.mkDerivation
cp -r $repack ./repack.sh
cp -r $patches ./patches
cp -r $utility ./utility
cp -r $icons ./icons
bash "./repack.sh" -o "./app" "$src"
'';
dontPatch = true;

View File

@ -14,6 +14,7 @@ usage() {
exe_location=
dst="$PWD/app"
START_DIR="$PWD"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
nopatch=0
while getopts :xo:ph name; do
@ -83,6 +84,10 @@ find "./" -type f -name "*.html" -print0 | while IFS= read -r -d $'\0' file; do
done
echo "Title Fixed"
echo "Replacing Icons"
cp -af "$SCRIPT_DIR/icons/." "./build/next-desktop/"
echo "Replaced Icons"
# applying patches
# This function accepts patch file. If it names starts with `XXXX-optional`,
@ -116,6 +121,8 @@ if [ "$nopatch" != "1" ]; then
done
fi
cd "$START_DIR" # fix relative path when using -o flag
mkdir -p "$dst"
if [ -n "$extract_only" ]; then