Krock 332c4d3a66 Update script: Fix find warning, document zsh %!s(int64=2) %!d(string=hai) anos
..
README.md 332c4d3a66 Update script: Fix find warning, document zsh %!s(int64=2) %!d(string=hai) anos
update_gi.sh 332c4d3a66 Update script: Fix find warning, document zsh %!s(int64=2) %!d(string=hai) anos

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)

Known bug: Broken in zsh due to different strings handling. See PR #252 for details.

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"