- logos: WINE-based desktop app (offline-capable) - logos-web: Electron wrapper for web app - logos-install: one-time GUI installer
32 lines
891 B
Bash
Executable file
32 lines
891 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Launch Logos Bible Software under WINE
|
|
# Run from desktop terminal or use the .desktop file
|
|
|
|
WINEPREFIX="${WINEPREFIX:-$HOME/.local/share/logos-wine}"
|
|
WINEARCH="win64"
|
|
|
|
# Try multiple possible Logos install paths
|
|
LOGOS_PATH=""
|
|
for path in \
|
|
"$WINEPREFIX/drive_c/users/$USER/AppData/Local/Logos/Logos.exe" \
|
|
"$WINEPREFIX/drive_c/Program Files/Logos/Logos.exe" \
|
|
"$WINEPREFIX/drive_c/Program Files (x86)/Logos/Logos.exe"; do
|
|
if [ -f "$path" ]; then
|
|
LOGOS_PATH="$path"
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [ -z "$LOGOS_PATH" ]; then
|
|
echo "Logos not found. Run install-logos.sh first."
|
|
exit 1
|
|
fi
|
|
|
|
# Convert to WINE path
|
|
WINE_PATH="C:\\\\users\\\\$USER\\\\AppData\\\\Local\\\\Logos\\\\Logos.exe"
|
|
|
|
exec nix-shell -p wineWow64Packages.stagingFull --command "
|
|
export WINEPREFIX='$WINEPREFIX'
|
|
export WINEARCH='$WINEARCH'
|
|
wine '$WINE_PATH'
|
|
"
|