Skip to content

Commit

Permalink
Better Icons
Browse files Browse the repository at this point in the history
Nix Fix
  • Loading branch information
cucumber-sp committed Mar 7, 2024
1 parent f5eeac1 commit 8bf1352
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
Binary file added icons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions icons/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ stdenvNoCC.mkDerivation
repack = ./../repack.sh;
patches = ./../patches;
utility = ./../utility;
icons = ./../icons;
desktopItem = ../templates/desktop;
src =
if ymExe != null
Expand All @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions repack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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`,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8bf1352

Please sign in to comment.