mirror of
https://github.com/c9moser/sgbackup.git
synced 2026-01-19 19:40:13 +00:00
2025.03.25 17:12:56 (desktop)
This commit is contained in:
parent
d8e8b78615
commit
9146286104
@ -1,6 +1,11 @@
|
||||
#!/bin/bash
|
||||
# vim: syn=sh ts=4 sts=4 sw=4 smartindent expandtab ff=unix
|
||||
|
||||
: ${INSTALL_PACKAGES:="YES"}
|
||||
|
||||
INSTALL_PACKAGES="$( echo "$INSTALL_PACKAGES" | tr '[:lower:]' '[:upper:]' )"
|
||||
|
||||
|
||||
SELF="$( realpath "$0" )"
|
||||
PROJECT_DIR="$( dirname "$SELF")"
|
||||
: ${PYTHON_VENV_DIR:=$(cygpath "$USERPROFILE")/python-venv}
|
||||
@ -8,6 +13,7 @@ venv="${PYTHON_VENV_DIR}/sgbackup"
|
||||
venv_bin="${venv}/bin"
|
||||
wvenv_bin="$(cygpath -w "$venv_bin")"
|
||||
|
||||
if [ "$INSTALL_PACKAGES" = "YES" -o "$INSTALL_PACKAGES" = "TRUE" -o "$INSTALL_PACKAGES" = 1 ]; then
|
||||
PACKAGES="gtk4 gobject-introspection python-pip python-gobject python-rapidfuzz"
|
||||
|
||||
_install_pkg="base-devel"
|
||||
@ -17,6 +23,7 @@ done
|
||||
|
||||
pacman -Sy
|
||||
pacman -S --noconfirm $_install_pkg
|
||||
fi
|
||||
|
||||
if [ ! -f "$venv/bin/activate" ]; then
|
||||
python -m venv --system-site-packages "$venv"
|
||||
|
||||
@ -1197,7 +1197,7 @@ class Game(GObject):
|
||||
return cls(
|
||||
savegame_root=data['savegame_root'],
|
||||
savegame_dir=data['savegame_dir'],
|
||||
variables=dict(((v['name'],v['value']) for v in data['variables'])) if ('variables' in data and config['variables']) else None,
|
||||
variables=dict([(v['name'],v['value']) for v in data['variables']]) if ('variables' in data and config['variables']) else None,
|
||||
file_match=file_match if 'file_match' in data else None ,
|
||||
ignore_match=ignore_match if 'ignore_match' in data else None,
|
||||
installdir=data['installdir'] if ('installdir' in data and data['installdir']) else None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user