Skip to content

Instantly share code, notes, and snippets.

@superzazu
Last active March 11, 2023 10:57
Show Gist options
  • Save superzazu/ca22adaf6e6fedae71f4c0ac9e8e8ae4 to your computer and use it in GitHub Desktop.
Save superzazu/ca22adaf6e6fedae71f4c0ac9e8e8ae4 to your computer and use it in GitHub Desktop.
Umineko Project installer for macOS/Linux
#!/usr/bin/env bash
#
# Umineko Project installer for macOS/Linux
#
# note1: "7z" cli tool is required (on mac, install with: `brew install p7zip`)
# note2: all 7z files (.001, .002, etc.) must be in the current folder
#
if [[ $# -eq 0 ]]; then
echo "usage: umineko_installer extraction_password [install_path]"
exit 1
fi
extraction_password="$1"
echo "info: using extraction password '$extraction_password'"
install_path=$(pwd)
if [[ ! -z $2 ]]; then
install_path="$2"
fi
echo "info: installing game to $install_path"
files=(
"umiproj_31.12.19.7z.001"
"extra_31.12.19.7z"
"umineko-main-scripts_r3520.zip"
)
mkdir -p "$install_path"
for file in "${files[@]}"
do
if [ ! -e "$file" ]; then
echo "warning: file '$file' does not exist"
continue
fi
echo "extracting $file..."
7z x $file -p"$extraction_password" -o"$install_path" -y
done
@aTalykov
Copy link

aTalykov commented Mar 11, 2023

There might be problems with installation. Umineko project no longer contains these files:
extra_31.12.19.7z
umineko-main-scripts_r3520.zip

Files has been updated so it's necessary to rename them to match script names or to update script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment