Skip to content

Instantly share code, notes, and snippets.

@tomrfitz
Forked from HenryLoenwind/install.sh
Last active May 10, 2024 06:06
Show Gist options
  • Save tomrfitz/3db0ea9f26cc37dfab9c1d9b97da9277 to your computer and use it in GitHub Desktop.
Save tomrfitz/3db0ea9f26cc37dfab9c1d9b97da9277 to your computer and use it in GitHub Desktop.
Script to install and update IC Script Hub. Requirements: sh-compatible shell, git and unzip
IC Script Hub Installer and Updater
===================================
Installation
------------
1.) Put the install.sh into an empty folder.
2.) Install https://gitforwindows.org/
You can accept all default options in the installer
or change them to your likings.
3.) Double-click install.sh
Watch how it downloads everything BUT the imports.
4.) Get the current imports from Discord and place the
ZIP-file into the "imports" folder.
5.) Double-click install.sh again. It should report that
it installed the imports.
6.) Done. You can now start IC Script Hub by double-
clicking the "ICScriptHub.ahk" file in the "install"
folder.
Note: Leave all other folders but "imports" and "install" alone!
You can delete them, but don't change their contents.
Updating
--------
1.) Get the current imports from Discord and place the
ZIP-file into the "imports" folder.
2.) Double-click install.sh again.
Advanced
--------
This script also works with Cygwin, just make sure you install
both git and unzip. It also should work with the Linux subsystem
for Windows or any other environment that has bash, git and unzip.
#!/bin/sh
echo "IC Script Hub Installer v 1.0.0"
echo ""
if [ -d "scripthub" ]; then
echo "Updating Script Hub"
git -C scripthub pull
else
echo "Getting Script Hub"
git clone https://github.com/mikebaldi/Idle-Champions.git scripthub
fi
if [ -d "imp444" ]; then
echo "Updating imp444 addons (AreaTiming, BivFeatSwap, LevelUp, ...)"
git -C imp444 pull
else
echo "Getting imp444 addons (AreaTiming, BivFeatSwap, LevelUp, ...)"
git clone https://github.com/imp444/IC_Addons.git imp444
fi
if [ -d "antilectual" ]; then
echo "Updating antilectual addons (convert favor, move game window, ...)"
git -C antilectual pull
else
echo "Getting antilectual addons (convert favor, move game window, ...)"
git clone https://github.com/antilectual/IC_Addons.git antilectual
fi
if [ -d "pneumatus" ]; then
echo "Updating pneumatus addons (auto progress, better Azaka, close welcome back, ...)"
git -C pneumatus pull
else
echo "Getting pneumatus addons (auto progress, better Azaka, close welcome back, ...)"
git clone https://github.com/Pneumatus/IC-Addons.git pneumatus
fi
if [ -d "fedvee" ]; then
echo "Updating fedvee addons (AzakaQWE, ...)"
git -C fedvee pull
else
echo "Getting fedvee addons (AzakaQWE, ...)"
git clone https://github.com/Fedvee/IC-addons.git fedvee
fi
if [ -d "emmotes" ]; then
echo "Updating emmotes addons (no modron adventuring, ...)"
git -C emmotes pull
else
echo "Getting emmotes addons (no modron adventuring, ...)"
git clone https://github.com/Emmotes/IC_Addons.git emmotes
fi
if [ -d "jonballinger" ]; then
echo "Updating jonballinger addons (dash wait after stacking, ...)"
git -C jonballinger pull
else
echo "Getting jonballinger addons (dash wait after stacking, ...)"
git clone https://github.com/JonBallinger/IC_ShandieDashWait.git jonballinger
fi
if [ -d "mikebaldi" ]; then
echo "Updating mikebaldi addons (NERDs, ...)"
git -C mikebaldi pull
else
echo "Getting mikebaldi addons (NERDs, ...)"
git clone https://github.com/mikebaldi/IC_Addons.git mikebaldi
fi
echo ""
echo "Installing..."
echo ""
if [ -d "install" ]; then
echo "Installation folder already exists. Updating..."
else
echo "Creating installation folder"
mkdir install
fi
echo "Installing/updating script hub"
cp -ur scripthub/* install/
echo "Installing/updating imp444 addons"
cp -ur imp444/IC_* install/AddOns/
echo "Installing/updating antilectual addons"
cp -ur antilectual/IC_Addons/IC_* install/AddOns/
echo "Installing/updating pneumatus addons"
cp -ur pneumatus/IC_* install/AddOns/
echo "Installing/updating fedvee addons"
cp -ur fedvee/IC_* install/AddOns/
echo "Installing/updating emmotes addons"
cp -ur emmotes/IC_Addons/IC_* install/AddOns/
echo "Installing/updating jonballinger addons"
if [ ! -d "install/AddOns/IC_ShandieDashWait" ]; then
mkdir install/AddOns/IC_ShandieDashWait
fi
cp -ur jonballinger/* install/AddOns/IC_ShandieDashWait/
echo "Installing/updating mikebaldi addons"
cp -ur mikebaldi/IC_* install/AddOns/
echo ""
if [ -d "imports" ]; then
echo "Installating latest imports"
LATEST=`ls imports/*.zip 2>/dev/null | tail -1`
if [ -f "$LATEST" ]; then
echo "Installing $LATEST"
unzip -xo "$LATEST" -d install/AddOns/IC_Core/MemoryRead >/dev/null
else
echo "Found no imports in the imports folder. Please place imports from Discord there and re-run this script."
fi
else
echo "Creating imports folder. Please place imports from Discord there."
mkdir imports
fi
echo ""
echo "Done. You can now run the Script Hub from the 'install' folder."
echo ""
echo "Don't forget to also update the imports!"
echo ""
read -n 1 -p "Press any key to continue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment