jerrykuku / luci-theme-argon

Argon is a clean and tidy OpenWrt LuCI theme that allows users to customize their login interface with images or videos. It also supports automatic and manual switching between light and dark modes.
Apache License 2.0
4.12k stars 803 forks source link

Can you add automatic installation script? #498

Open Makki68 opened 6 months ago

Makki68 commented 6 months ago

Hi

can you add automatic installation script? For now it looks too complicated to install your theme.

For example:

#!/bin/sh

if opkg list-installed | grep -q "openwrt"; then
    echo "This script is intended for OpenWRT systems only. Exiting and self-deleting."
    rm -- "$0"
    exit 1
fi

read -p "Do you want to start the installation? (y/n): " start_install
if [ "$start_install"!= "y" ]; then
    echo "Invalid option. Please try again."
    exit 1
else
    echo "Starting installation..."
fi

opkg update
opkg install luci-compat luci-lib-ipkg

wget --no-check-certificate https://github.com/jerrykuku/luci-theme-argon/releases/download/v2.3.1/luci-theme-argon_2.3.1_all.ipk
opkg install luci-theme-argon*.ipk

echo "It is recommended to install the additional configuration package for the theme as it will not affect performance."

read -p "Do you want to install the additional configuration package for the theme? (y/n): " install_config
if [ "$install_config" = "y" ]; then
    echo "Starting installation of additional configuration package..."
    wget --no-check-certificate https://github.com/jerrykuku/luci-app-argon-config/releases/download/v0.9/luci-app-argon-config_0.9_all.ipk
    opkg install luci-app-argon-config*.ipk
fi

echo "Installation completed. Script will self-remove to save available memory."
rm -- "$0"
jerrykuku commented 5 months ago

This is a really great suggestion that I will add to the Readme!