A Bash script designed to synchronize your Slay The Spire progress (preferences, saves, and runs) between your Linux PC (Steam) and an Android device using ADB.
- ADB (Android Debug Bridge): Must be installed on your PC.
- USB Debugging: Enabled in Developer Options on your Android device.
- File Transfer Mode: Ensure your phone is connected via USB and set to File Transfer mode.
To ensure that the script can successfully transfer saves from your PC to your phone, you must follow these steps:
- Uninstall Slay The Spire from your Android device (if installed).
- Reinstall the game from the Play Store.
- Launch the game.
- Close the game immediately after the developer logo appears.
- Now you can run the
to_phonecommand.
Important
Without this, save files will not be transferred due to how Android handles app data permissions.
The script synchronizes the following directories:
preferences(Unlock progress, settings)saves(Active runs)runs(History of past runs)
Before every transfer, the script automatically creates a local backup on the target device to prevent data loss.
Run the script from your terminal with one of the following arguments:
- Syncing Data
./sts-sync.sh to_pc: Pulls saves from your Phone and moves them to your PC../sts-sync.sh to_phone: Pushes saves from your PC to your Phone.
- Restoring from Backup
./sts-sync.sh restore pc: Restores the PC save files from thesync_backupfolder../sts-sync.sh restore phone: Restores the Android save files from the internalsync_backupfolder.
- PC Path:
~/.local/share/Steam/steamapps/common/SlayTheSpire - Android Path:
/storage/emulated/0/Android/data/com.humble.SlayTheSpire
Note
If you are using a different Steam library path, make sure to update the PC_DIR variable in the script.