Krock bc220ff176 Various maintenance/rewording work 2 年 前
..
README.md e812463617 Update script: Major rewrite for jq integration + POSIX 2 年 前
update_gi.sh bc220ff176 Various maintenance/rewording work 2 年 前

README.md

Game update script

Description

This script automates following steps:

  1. Check for game updates
  2. Download the game files
  3. Revert any previously applied patches
  4. Install or update the game files
  5. Apply the newest patch

If you prefer a graphical updater, check out:

Requirements

This script requires following applications:

  • jq (JSON parsing)
  • Either aria2c, wget, curl or axel (file download)
  • bash and xdelta3 (patch script)

Usage instructions

The script must be executed from the wanted game installation directory using either relative or absolute paths to execute update_gi.sh.

If errors occur after updating the game files, re-run the patch scripts manually.

New installation

Installs the newest game version to an empty directory.

Syntax:

sh "/path/to/dawn/updater/update_gi.sh" install

Example:

# Install game to a new directory in HOME (~)
mkdir -p "$HOME/Genshin Impact Game"
cd "$HOME/Genshin Impact Game/"

sh "/path/to/dawn/updater/update_gi.sh" install

Update installation

Updates the game in the working directory to the newest version.

Important: If the official launcher was used for the installation, ensure that the working directory contains GenshinImpact.exe but not launcher.exe.

Syntax:

sh "/path/to/dawn/updater/update_gi.sh"

Example:

# Update game located in HOME
cd "$HOME/Genshin Impact Game/"
sh "/path/to/dawn/updater/update_gi.sh"