diff --git a/icons/apple-touch-icon.png b/icons/apple-touch-icon.png new file mode 100644 index 0000000..61d2fb9 Binary files /dev/null and b/icons/apple-touch-icon.png differ diff --git a/icons/favicon.png b/icons/favicon.png new file mode 100644 index 0000000..8fb90ee Binary files /dev/null and b/icons/favicon.png differ diff --git a/icons/favicon.svg b/icons/favicon.svg new file mode 100644 index 0000000..86f375c --- /dev/null +++ b/icons/favicon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/nix/default.nix b/nix/default.nix index 1dad376..95b6638 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -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; diff --git a/repack.sh b/repack.sh index 5087d14..025dcd7 100755 --- a/repack.sh +++ b/repack.sh @@ -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