mirror of
https://github.com/jstrdev/ps5directo.git
synced 2026-10-29 02:01:14 +01:00
1.21.0: versiones para Linux y Mac
This commit is contained in:
1 parent
d5de6399e0
commit
be8a217875
13 files changed
+713
-78
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleName</key><string>PS5 Directo</string>
|
||||
<key>CFBundleDisplayName</key><string>PS5 Directo</string>
|
||||
<key>CFBundleIdentifier</key><string>io.github.jstrdev.ps5directo</string>
|
||||
<key>CFBundleExecutable</key><string>PS5 Directo</string>
|
||||
<key>CFBundleIconFile</key><string>ps5directo</string>
|
||||
<key>CFBundlePackageType</key><string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key><string>__VERSION__</string>
|
||||
<key>CFBundleVersion</key><string>__VERSION__</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
|
||||
<key>LSMinimumSystemVersion</key><string>11.0</string>
|
||||
<key>NSHighResolutionCapable</key><true/>
|
||||
<key>LSApplicationCategoryType</key><string>public.app-category.utilities</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,64 @@
|
||||
PS5 DIRECTO PARA MAC (EN PRUEBAS)
|
||||
=================================
|
||||
|
||||
Esta versión todavía no se ha podido probar en un Mac de verdad. Si algo
|
||||
falla, en el programa pulsa "Crear informe de fallo" y adjúntalo en un
|
||||
aviso en GitHub: https://github.com/jstrdev/ps5directo/issues
|
||||
Con eso se arregla rápido. ¡Gracias por probarla!
|
||||
|
||||
INSTALAR
|
||||
1. Arrastra "PS5 Directo" a la carpeta Aplicaciones (Applications).
|
||||
2. Ábrelo desde Aplicaciones.
|
||||
|
||||
SI MACOS NO TE DEJA ABRIRLO
|
||||
La app no está firmada por Apple (eso cuesta 99 $ al año), así que la
|
||||
primera vez macOS la bloquea. Es normal en programas gratuitos.
|
||||
- macOS 15 (Sequoia) o posterior: intenta abrirla, cierra el aviso y ve a
|
||||
Ajustes del Sistema > Privacidad y seguridad. Abajo verás "Se ha
|
||||
bloqueado PS5 Directo": pulsa "Abrir igualmente".
|
||||
- macOS 14 o anterior: clic derecho (o Control + clic) sobre la app >
|
||||
Abrir > Abrir.
|
||||
- Si aun así no abre, en Terminal:
|
||||
xattr -dr com.apple.quarantine "/Applications/PS5 Directo.app"
|
||||
|
||||
NOTAS
|
||||
- Funciona en Mac con Apple Silicon (M1, M2...) e Intel, macOS 11 o
|
||||
posterior. Trae Python y 7-Zip.
|
||||
- Para la ventana sin pestañas usa Chrome, Edge o Brave si los tienes; si
|
||||
no, se abre en Safari.
|
||||
- Para los torrents hace falta aria2: instala Homebrew (brew.sh) y luego
|
||||
"brew install aria2".
|
||||
- Se actualiza solo desde el propio programa, como en Windows.
|
||||
|
||||
|
||||
PS5 DIRECTO FOR MAC (TESTING)
|
||||
=============================
|
||||
|
||||
This version hasn't been tested on a real Mac yet. If something fails,
|
||||
click "Create problem report" in the program and attach it to an issue
|
||||
on GitHub: https://github.com/jstrdev/ps5directo/issues
|
||||
That makes it quick to fix. Thanks for trying it!
|
||||
|
||||
INSTALL
|
||||
1. Drag "PS5 Directo" into the Applications folder.
|
||||
2. Open it from Applications.
|
||||
|
||||
IF MACOS WON'T OPEN IT
|
||||
The app isn't signed by Apple (that costs $99 a year), so macOS blocks it
|
||||
the first time. That's normal for free programs.
|
||||
- macOS 15 (Sequoia) or later: try to open it, close the warning and go
|
||||
to System Settings > Privacy & Security. Near the bottom you'll see
|
||||
"PS5 Directo was blocked": click "Open Anyway".
|
||||
- macOS 14 or earlier: right-click (or Control-click) the app > Open >
|
||||
Open.
|
||||
- If it still won't open, in Terminal:
|
||||
xattr -dr com.apple.quarantine "/Applications/PS5 Directo.app"
|
||||
|
||||
NOTES
|
||||
- Works on Apple Silicon (M1, M2...) and Intel Macs, macOS 11 or later.
|
||||
Python and 7-Zip are included.
|
||||
- For the window without tabs it uses Chrome, Edge or Brave if you have
|
||||
one; otherwise it opens in Safari.
|
||||
- Torrents need aria2: install Homebrew (brew.sh), then
|
||||
"brew install aria2".
|
||||
- It updates itself from the program, like on Windows.
|
||||
@@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
# Lanzador de "PS5 Directo.app" (va en Contents/MacOS/PS5 Directo).
|
||||
# - Python incluido para Apple Silicon (python-arm64) e Intel (python-x86_64), en Contents/Resources.
|
||||
# - El programa se copia a ~/Library/Application Support/PS5 Directo/app y se ejecuta desde ahi,
|
||||
# para que «Actualizar» pueda escribir aunque la app este en /Applications. Si la app trae una
|
||||
# version mas nueva que la copiada, se vuelve a copiar.
|
||||
RES="$(cd "$(dirname "$0")/../Resources" && pwd)"
|
||||
SUP="$HOME/Library/Application Support/PS5 Directo"
|
||||
APP="$SUP/app"
|
||||
LOG="$SUP/lanzador.log"
|
||||
mkdir -p "$SUP"
|
||||
|
||||
case "$(uname -m)" in
|
||||
arm64) PY="$RES/python-arm64/bin/python3" ;;
|
||||
*) PY="$RES/python-x86_64/bin/python3" ;;
|
||||
esac
|
||||
[ -x "$PY" ] || PY="$RES/python-x86_64/bin/python3" # Rosetta, por si acaso
|
||||
|
||||
ver() { sed -n 's/^VERSION = "\([^"]*\)".*/\1/p' "$1" 2>/dev/null | head -1; }
|
||||
newer() { # 0 si $1 es mas nueva que $2
|
||||
[ -z "$2" ] && return 0
|
||||
[ "$1" = "$2" ] && return 1
|
||||
[ "$(printf '%s\n%s\n' "$1" "$2" | sort -t. -k1,1n -k2,2n -k3,3n | tail -1)" = "$1" ]
|
||||
}
|
||||
BUNDLED="$(ver "$RES/app/app.py")"
|
||||
COPIED="$(ver "$APP/app.py")"
|
||||
if [ ! -f "$APP/app.py" ] || newer "$BUNDLED" "$COPIED"; then
|
||||
echo "$(date) copio la version $BUNDLED (habia: ${COPIED:-ninguna})" >> "$LOG"
|
||||
rm -rf "$APP.nuevo"
|
||||
cp -R "$RES/app" "$APP.nuevo" && rm -rf "$APP" && mv "$APP.nuevo" "$APP"
|
||||
fi
|
||||
|
||||
export PATH="$RES/bin:$PATH" # 7-Zip incluido
|
||||
export PYTHONUNBUFFERED=1
|
||||
cd "$APP" || exit 1
|
||||
if [ ! -x "$PY" ]; then
|
||||
osascript -e 'display alert "PS5 Directo" message "No encuentro el Python incluido en la app. Vuelve a descargarla de github.com/jstrdev/ps5directo/releases"' >/dev/null 2>&1
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p "$HOME/.ps5directo"
|
||||
# El programa sigue en segundo plano y el lanzador termina: asi cada clic en el icono vuelve a
|
||||
# entrar aqui y, si ya estaba abierto, solo trae su ventana (si no, macOS creeria que la app
|
||||
# sigue abierta y no haria nada).
|
||||
nohup "$PY" "$APP/app.py" "$@" >> "$HOME/.ps5directo/ps5directo.log" 2>&1 < /dev/null &
|
||||
exit 0
|
||||
Reference in new issue
Block a user