Compare commits
12 Commits
d186875589
...
release
| Author | SHA1 | Date | |
|---|---|---|---|
| 470320431d | |||
| 88b356daa6 | |||
| 1050a8d25f | |||
| 6c9c424985 | |||
| 5ad223468e | |||
| 82ab273ad3 | |||
| 8e087d96a2 | |||
| b00836d0d2 | |||
| 55639cc866 | |||
| 0b013f039d | |||
| 1815c0401a | |||
| 1da5cfd4e4 |
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo "Usage: $0 <commit message>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git add -A
|
||||||
|
git commit -m "$*"
|
||||||
|
git push origin main
|
||||||
@@ -44,11 +44,15 @@ def main():
|
|||||||
print()
|
print()
|
||||||
|
|
||||||
log_info("Step 3/4: Rsyncing LocalMods + config to server...")
|
log_info("Step 3/4: Rsyncing LocalMods + config to server...")
|
||||||
|
subprocess.run([
|
||||||
|
"rsync", "-avz", "--delete",
|
||||||
|
"-e", RSYNC_SSH,
|
||||||
|
LOCALMODS_DIR + "/", "baro@barotrauma:/opt/barotrauma/LocalMods/"
|
||||||
|
], check=True)
|
||||||
subprocess.run([
|
subprocess.run([
|
||||||
"rsync", "-avz",
|
"rsync", "-avz",
|
||||||
"-e", RSYNC_SSH,
|
"-e", RSYNC_SSH,
|
||||||
LOCALMODS_DIR + "/", CONFIG_PATH,
|
CONFIG_PATH, "baro@barotrauma:/opt/barotrauma/config_player.xml"
|
||||||
"baro@barotrauma:/opt/barotrauma/"
|
|
||||||
], check=True)
|
], check=True)
|
||||||
log_ok("Synced to server")
|
log_ok("Synced to server")
|
||||||
print()
|
print()
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
git checkout release
|
||||||
|
git merge main
|
||||||
|
git push origin release
|
||||||
|
git checkout main
|
||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""Rsync Content/ from Steam to server with progress."""
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
SRC = "/mnt/nvme/B/SteamLibrary/steamapps/common/Barotrauma/Content/"
|
||||||
|
DST = "root@barotrauma:/opt/barotrauma/Content/"
|
||||||
|
SSH = "ssh -p 22"
|
||||||
|
|
||||||
|
print("Syncing Content/ to server...")
|
||||||
|
subprocess.run([
|
||||||
|
"rsync", "-avz", "--delete", "--info=progress2",
|
||||||
|
"-e", SSH,
|
||||||
|
SRC, DST
|
||||||
|
], check=True)
|
||||||
|
print("Done.")
|
||||||
Reference in New Issue
Block a user