Skip to content

Commit

Permalink
Merge pull request #214 from ciriousjoker/master
Browse files Browse the repository at this point in the history
Replace Linux app icon with svg variant
  • Loading branch information
rooklift authored Jan 2, 2023
2 parents ee2dc52 + e09d022 commit 5f2f6be
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ Leela running out of RAM can be a problem if searches go on too long. You might
Thanks to everyone in Discord and GitHub who's offered advice and suggestions; and thanks to all Lc0 devs and GPU-hours contributors!

The pieces are from [Lichess](https://lichess.org/).

Icon design by [ciriousjoker](https://github.com/ciriousjoker) based on [this](https://www.svgrepo.com/svg/155301/chess).
3 changes: 3 additions & 0 deletions files/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Autogenerated by MacOS
.DS_Store

scripts/dist
scripts/electron_zipped
Binary file modified files/res/nibbler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions files/res/nibbler.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions files/scripts/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
# copy files
shutil.copytree("src", os.path.join(build_res_dir, "app"))
shutil.copy("res/nibbler.png", os.path.join(build_res_dir, "nibbler.png"))
shutil.copy("res/nibbler.svg", os.path.join(build_res_dir, "nibbler.svg"))
shutil.copytree("res/linux", os.path.join(build_res_dir, "linux"))

# extract electron
Expand Down
9 changes: 5 additions & 4 deletions files/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ UNZIPPED_NAME="${ZIP_NAME%.zip}"

# prepare
chmod +x "${UNZIPPED_NAME}/nibbler"
mv "${UNZIPPED_NAME}/resources/nibbler.png" ./
mv "${UNZIPPED_NAME}/resources/linux" ./
mv "${UNZIPPED_NAME}/resources/"{nibbler.png,nibbler.svg,linux} ./

# check if already installed
INSTALL_DIR="/opt/nibbler"
Expand All @@ -60,7 +59,8 @@ fi
# start install
BIN_SYMLINK_PATH="/usr/local/bin/nibbler"
DESKTOP_ENTRY_PATH="/usr/local/share/applications/nibbler.desktop"
ICON_PATH="/usr/local/share/icons/hicolor/512x512/apps/nibbler.png"
ICON_PNG_PATH="/usr/local/share/icons/hicolor/512x512/apps/nibbler.png"
ICON_SVG_PATH="/usr/local/share/icons/hicolor/scalable/apps/nibbler.svg"
echo "Installing Nibbler to ${INSTALL_DIR}"
echo "Creating binary symlink at ${BIN_SYMLINK_PATH}"
echo "Installing desktop entry to ${DESKTOP_ENTRY_PATH}"
Expand All @@ -77,7 +77,8 @@ done
sudo mv "${UNZIPPED_NAME}" "${INSTALL_DIR}"
sudo ln -s "${INSTALL_DIR}/nibbler" "${BIN_SYMLINK_PATH}"
sudo mv "linux/nibbler.desktop" "${DESKTOP_ENTRY_PATH}"
sudo mv "nibbler.png" "${ICON_PATH}"
sudo mv "nibbler.png" "${ICON_PNG_PATH}"
sudo mv "nibbler.svg" "${ICON_SVG_PATH}"

# done
echo "Successfully installed Nibbler ${VERSION}"
Expand Down

0 comments on commit 5f2f6be

Please sign in to comment.