Created
August 13, 2023 15:03
-
-
Save brodock/be28cd5f7e92387d188a2b429b2ad743 to your computer and use it in GitHub Desktop.
Capture Age on Linux
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/bash | |
set -x | |
PROTON="GE-Proton8-4" | |
APPID=813780 | |
CAPTURE_AGE_VERSION=1.6.1 | |
STEAM_PATH="${HOME}/.steam" | |
STEAMAPPS="${STEAM_PATH}/root/steamapps" | |
COMPATIBILITY_TOOLS="${STEAM_PATH}/root/compatibilitytools.d" | |
PROTON_BIN="${COMPATIBILITY_TOOLS}/${PROTON}/proton" | |
# Proton Experimental | |
PROTON_BIN="${STEAMAPPS}/common/Proton - Experimental/proton" | |
export STEAM_COMPAT_CLIENT_INSTALL_PATH="${STEAM_PATH}" | |
export STEAM_COMPAT_DATA_PATH="${STEAMAPPS}/compatdata/${APPID}" | |
export WINEPREFIX="${STEAM_COMPAT_DATA_PATH}/pfx" | |
download() { | |
# Donwload both: | |
# https://captureage.com/api/cade/download/prod/latest-setup | |
# https://captureage.com/api/cade/download/prod/latest | |
# | |
# Move to ${WINEPREFIX}/drive_c | |
wget https://captureage.com/api/cade/download/prod/latest-setup -o "${WINEPREFIX}/drive_c/CaptureAge ${CAPTURE_AGE_VERSION} Setup.exe" | |
wget https://captureage.com/api/cade/download/prod/latest -o "${WINEPREFIX}/drive_c/CaptureAge-${CAPTURE_AGE_VERSION}-x64.nsis.7z" | |
} | |
setup() { | |
"${PROTON_BIN}" run "${WINEPREFIX}/drive_c/CaptureAge ${CAPTURE_AGE_VERSION} Setup.exe" | |
} | |
proton_run() { | |
"${PROTON_BIN}" run ${WINEPREFIX}/drive_c/users/steamuser/AppData/Local/Programs/CaptureAge/CaptureAge.exe | |
} | |
wine_run() { | |
wine run ${WINEPREFIX}/drive_c/users/steamuser/AppData/Local/Programs/CaptureAge/CaptureAge.exe | |
} | |
download | |
setup | |
proton_run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@luisvalenzuelar Interestingly, CA does find the game process and can in fact tell it to load and play back the record. That's as far as I could get because connection is afterwards lost for no obvious reason. My CA is currently not in a usable state beyond having access to its main screen and a list of saved games.