Peneheals / ihhh

Install Heroes of Might and Magic 3 (HoMM3) + HD mod + Horn of the Abyss (HotA) easily on old Mac OS (and will do the same on Linux in the future).
15 stars 1 forks source link

Use gog.com API #8

Closed Peneheals closed 3 years ago

Peneheals commented 3 years ago

Use one of the existing methods to automatize as much the whole process as possible. We can dl from gog.com with https://github.com/nicohman/wyvern OR https://github.com/Sude-/lgogdownloader

Tasks:

Tests:

Peneheals commented 3 years ago

Wyvern on Catalina:

brew install rust
cargo install wyvern
printf "%s" "export PATH=\"\$PATH:\$HOME/.cargo/bin\"" >> $HOME/.bashrc
. $HOME/.bashrc
read USERNAME
wyvern login --username USERNAME
wyvern down -w -i 1207658787 -o $HOME/Downloads/

Of course, Rust&Cargo installation from source on Yosemite with brew is not working :-/

Peneheals commented 3 years ago

Sierrán is elhal a rust install. Source-ből sem megy fel, így kénytelenek leszünk elé újabb user inputot bekérni, és kettébontani a folyamatot: 1: old mac os-nél megy a figyelmeztetés és a manuális yes beírogatás, újabbnál meg mehet a rust install. esetleg három irányú is lehet az egész, amennyiben a közepesen réginél csak a rust sima installja hal el, de mondjuk forrásból telepíthető, míg újabb os-nél meg a sima brew install is működik.

Peneheals commented 3 years ago

Yosemite on 2015 16gb i5@2.9GHz (without Rust, Cargo and auto DL of files): 35 min El Capitan on 2015 8g i5@2.7GHz (without Rust, Cargo and auto DL of files): 30 min Sierra on 2015 8gb i5@2.7GHz: 5.5 hr HS on 2017 8gb i5@2.3GHz: 2.5 hr Mojave on 2017 16gb i7@2.5GHz: 20 min

Peneheals commented 3 years ago
Error: No such keg: /usr/local/Cellar/git
/bin/bash: line 189: ((: 16 = 14: attempted assignment to non-variable (error token is "= 14")
Warning: Calling brew install --env is deprecated! Use `env :std` in specific formula files instead.
Peneheals commented 3 years ago

Sierra bug: wyvern is not in $PATH after cargo install and before gog login.

Peneheals commented 3 years ago

Sierra: homm installer asks for mono and gecko. Maybe we should use the relevant export before the install runs?

Peneheals commented 3 years ago

Maybe we should ask the user to press any button before we move forward to gog login. I think the auth token expires after some minutes and therefore the login cant be succesful.