diff --git a/apps/Chesscoin/description b/apps/Chesscoin/description new file mode 100644 index 0000000000..07202edf02 --- /dev/null +++ b/apps/Chesscoin/description @@ -0,0 +1,4 @@ +Website https://www.chesscoin032.com/ + +To run: Menu -> Office -> Chesscoin +To run in a terminal: /opt/chesscoin-qt.AppImage diff --git a/apps/Chesscoin/icon-24.png b/apps/Chesscoin/icon-24.png new file mode 100644 index 0000000000..6a2750c166 Binary files /dev/null and b/apps/Chesscoin/icon-24.png differ diff --git a/apps/Chesscoin/icon-64.png b/apps/Chesscoin/icon-64.png new file mode 100644 index 0000000000..bd9aa6141f Binary files /dev/null and b/apps/Chesscoin/icon-64.png differ diff --git a/apps/Chesscoin/install-64 b/apps/Chesscoin/install-64 new file mode 100755 index 0000000000..16551cc2d3 --- /dev/null +++ b/apps/Chesscoin/install-64 @@ -0,0 +1,44 @@ +#!/bin/bash + +version=1.5.1 + +#installs libfuse2 +enable_module fuse || exit 1 + + + +# Download ZIP file +wget -O /tmp/chesscoin-qt.zip "https://github.com/AKKPP/ChessCoin032-Core-x64/releases/download/v${version}/chesscoin-qt-v${version}-rpi5-aarch64.zip" || error "Failed to download!" + +# Unzip the file +unzip -o /tmp/chesscoin-qt.zip -d /tmp/ || error "Failed to unzip!" + +# Move the extracted AppImage to /opt +sudo mv -f /tmp/chesscoin-qt-aarch64.AppImage /opt/ || error "Failed to move AppImage!" + +# Set execution permissions +sudo chmod +x /opt/chesscoin-qt-aarch64.AppImage || error "Failed to set permissions!" + +# Cleanup +rm -f /tmp/chesscoin-qt.zip + +echo "ChessCoin-Qt AppImage installed successfully!" + +sudo cp -f "$(dirname "$0")/icon-64.png" /usr/share/icons/hicolor/64x64/apps/chesscoin-qt.png || error "failed to copy icon" + +#refresh icon caches +sudo update-icon-caches /usr/share/icons/* +sudo xdg-icon-resource forceupdate --mode system + + +echo "[Desktop Entry] +Type=Application +Name=Chesscoin +Exec=/opt/chesscoin-qt-aarch64.AppImage +Icon=chesscoin-qt +Hidden=false +GenericName=chesscoin 0.32%% +Comment=GUI application for Raspberry +Terminal=false +Categories=Office; +Keywords=crypto;currency;XMR" | sudo tee /usr/share/applications/chesscoin-qt.desktop >/dev/null || error "Failed to create menu button!" diff --git a/apps/Chesscoin/uninstall b/apps/Chesscoin/uninstall new file mode 100755 index 0000000000..28104c7eb1 --- /dev/null +++ b/apps/Chesscoin/uninstall @@ -0,0 +1,6 @@ +#!/bin/bash + +#Allow packages required by this app to be uninstalled +purge_packages || exit 1 + +sudo rm -f /usr/share/applications/chesscoin-qt.desktop /opt/chesscoin-qt-aarch64.AppImage /usr/share/icons/hicolor/64x64/apps/chesscoin-qt.png diff --git a/apps/Chesscoin/website b/apps/Chesscoin/website new file mode 100644 index 0000000000..0417cb01d0 --- /dev/null +++ b/apps/Chesscoin/website @@ -0,0 +1 @@ +https://chesscoin032.com