mirror of
https://github.com/c9moser/sgbackup.git
synced 2026-01-19 19:40:13 +00:00
2025-02-11 14:39:56
This commit is contained in:
parent
7c68d4d2a2
commit
8c5acc987f
@ -17,3 +17,32 @@ pacman -S --noconfirm $_install_pkg
|
|||||||
cd $PROJECT_DIR
|
cd $PROJECT_DIR
|
||||||
pip install --user .
|
pip install --user .
|
||||||
|
|
||||||
|
bindir=$( realpath ~/bin )
|
||||||
|
wbindir=$( cygpath -w "$bindir" )
|
||||||
|
if [ ! -d "$bindir" ]; then
|
||||||
|
mkdir -p "$bindir"
|
||||||
|
fi
|
||||||
|
|
||||||
|
pythonpath="$( python -c 'import sys; print(sys.executable)' )"
|
||||||
|
cat > "${bindir}/sgbackup" << EOF
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
python -m sgbackup "\$@"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat > "${bindir}/sgbackup.bat" << EOF
|
||||||
|
@ECHO OFF\r
|
||||||
|
"$pythonpath" -m sgbackup %*\r
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat > "${bindir}/gsgbackup" << EOF
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
python -m sgbackup.gui "\$@"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat > "${bindir}/gsgbackup.bat" << EOF
|
||||||
|
@ECHO OFF\r
|
||||||
|
"$pythonpath" -m sgbackup.gui %*
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user