Skip to content

Instantly share code, notes, and snippets.

@siutin
Last active January 16, 2026 19:15
Show Gist options
  • Select an option

  • Save siutin/1026561de9b72101f77d855abb6d4d4b to your computer and use it in GitHub Desktop.

Select an option

Save siutin/1026561de9b72101f77d855abb6d4d4b to your computer and use it in GitHub Desktop.
CaptureAge in Linux, works in 2026!
#!/bin/bash
# Reference:
# https://gist.github.com/brodock/be28cd5f7e92387d188a2b429b2ad743
# https://gist.github.com/Kjir/dadb0a2bc1a71aa265cfdbecaf7569b8
set -x
APPID=813780
STEAM_PATH="${HOME}/.steam"
STEAMAPPS="${STEAM_PATH}/root/steamapps"
PROTON_BIN="${STEAMAPPS}/common/Proton 9.0 (Beta)/proton"
export STEAM_COMPAT_CLIENT_INSTALL_PATH="${STEAM_PATH}"
export STEAM_COMPAT_DATA_PATH="${STEAMAPPS}/compatdata/${APPID}"
export WINEPREFIX="${STEAM_COMPAT_DATA_PATH}/pfx"
check_window_version() {
# This is for debug logs
export WINEDEBUG=warn+all
# ensure the windows version at least windows 10
protontricks $APPID winecfg
}
install_dependencies() {
protontricks $APPID d3dcompiler_47
}
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\ Setup.exe"
wget https://captureage.com/api/cade/download/prod/latest -o "${WINEPREFIX}/drive_c/CaptureAge-x64.nsis.7z"
}
setup() {
"${PROTON_BIN}" run "${WINEPREFIX}/drive_c/CaptureAge 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
}
# check_window_version
install_dependencies
download
setup # run once only
proton_run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment