Skip to content

Instantly share code, notes, and snippets.

@simonsan
Forked from brodock/capture-age.sh
Created January 10, 2024 21:40
Show Gist options
  • Save simonsan/dbbed5161076a6dc80e58f6b7c4ffa03 to your computer and use it in GitHub Desktop.
Save simonsan/dbbed5161076a6dc80e58f6b7c4ffa03 to your computer and use it in GitHub Desktop.
Capture Age on Linux
#!/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