Last active
May 18, 2024 11:56
-
-
Save HenryLoenwind/779ae417e0e652c3cfbf17d27eaa9270 to your computer and use it in GitHub Desktop.
Script to install and update IC Script Hub. Requirements: sh-compatible shell, git and unzip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
This will update Script Hub and all addons, as well as | |
re-install the latest (i.e. highest filename) imports. | |
This should not overwrite any file you changed, aside | |
from the imports. | |
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. | |
Changelog | |
--------- | |
1.0.0 Initial public release | |
1.0.1 Added NERDs plugin as suggested by tomrfitz. It's unmaintained | |
but still seems to work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "IC Script Hub Installer v 1.0.1" | |
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's unmaintained NERDs addon" | |
cp -ur mikebaldi/IC_NE* 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/SharedFunctions/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
Thanks. I'll need that when I come back to IC. ;)
https://gist.github.com/tomrfitz/3db0ea9f26cc37dfab9c1d9b97da9277