mirror of
https://github.com/RetroGameSets/RGSX.git
synced 2026-03-19 08:16:49 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e769e4b18 | ||
|
|
3023a45402 | ||
|
|
f1b2fad0d4 | ||
|
|
80844bda79 | ||
|
|
b19d4ff60a |
61
.github/workflows/release.yml
vendored
61
.github/workflows/release.yml
vendored
@@ -47,7 +47,36 @@ jobs:
|
||||
echo "Creating stable-named copy for latest download link…"
|
||||
cp -f "dist/RGSX_${VERSION}.zip" "dist/RGSX_latest.zip"
|
||||
|
||||
echo "✓ Package created successfully"
|
||||
echo "✓ RGSX package created successfully"
|
||||
|
||||
echo ""
|
||||
echo "Building RGSX Retrobat package (includes ports/ and windows/ directories)…"
|
||||
zip -r "dist/RGSX_Retrobat_${VERSION}.zip" ports windows \
|
||||
-x "ports/RGSX/logs/*" \
|
||||
"ports/RGSX/logs/**" \
|
||||
"ports/RGSX/images/*" \
|
||||
"ports/RGSX/images/**" \
|
||||
"ports/RGSX/games/*" \
|
||||
"ports/RGSX/games/**" \
|
||||
"ports/RGSX/scripts/*" \
|
||||
"ports/RGSX/scripts/**" \
|
||||
"ports/RGSX/__pycache__/*" \
|
||||
"ports/RGSX/__pycache__/**" \
|
||||
"ports/RGSX/*.pyc" \
|
||||
"ports/RGSX/sources.json" \
|
||||
"ports/RGSX/*.log" \
|
||||
"windows/logs/*" \
|
||||
"windows/*.xml" \
|
||||
"ports/*.xml" \
|
||||
"*.xml" \
|
||||
"*.pyc" \
|
||||
"*.xml" \
|
||||
"*.log"
|
||||
|
||||
echo "Creating stable-named copy for Retrobat package…"
|
||||
cp -f "dist/RGSX_Retrobat_${VERSION}.zip" "dist/RGSX_Retrobat_latest.zip"
|
||||
|
||||
echo "✓ All packages created successfully"
|
||||
ls -lh dist/
|
||||
|
||||
- name: Create GitHub Release
|
||||
@@ -62,27 +91,25 @@ jobs:
|
||||
## 📦 RGSX Release ${{ github.ref_name }}
|
||||
|
||||
### 📥 Installation
|
||||
1. Téléchargez `RGSX_${{ github.ref_name }}.zip`
|
||||
2. Extrayez le contenu dans `/userdata/roms/ports/RGSX/` (Batocera/Knulli)
|
||||
3. Lancez RGSX depuis le menu Ports
|
||||
|
||||
### 📦 Contenu du package
|
||||
- Application RGSX complète (tous les fichiers Python)
|
||||
- Interface graphique pygame
|
||||
- Interface web (rgsx_web.py)
|
||||
- Assets complets :
|
||||
- Polices (fonts/)
|
||||
- Images SVG des boutons (images/)
|
||||
- Musiques (music/)
|
||||
- Programmes utilitaires (progs/)
|
||||
- Mappings de contrôleurs (assets/controls/)
|
||||
- Traductions (languages/ : FR, EN, ES, DE, IT, PT)
|
||||
- Scripts de lancement (RGSX.sh)
|
||||
#### Batocera/Knulli
|
||||
1. Download `RGSX_${{ github.ref_name }}.zip`
|
||||
2. Extract in `/userdata/roms/ports/RGSX/`
|
||||
3. Launch RGSX from the Ports menu
|
||||
|
||||
#### Retrobat/Windows
|
||||
1. `RGSX_Retrobat_${{ github.ref_name }}.zip`
|
||||
2. Extract in retrobat/roms (les dossiers `ports/` et `windows/` seront créés automatiquement)
|
||||
3. Launch RGSX from system "Windows"
|
||||
|
||||
|
||||
### 📖 Documentation
|
||||
Consultez le [README.md](https://github.com/${{ github.repository }}/blob/main/README.md) pour plus d'informations.
|
||||
[]README.md](https://github.com/${{ github.repository }}/blob/main/README.md)
|
||||
files: |
|
||||
dist/RGSX_${{ github.ref_name }}.zip
|
||||
dist/RGSX_latest.zip
|
||||
dist/RGSX_Retrobat_${{ github.ref_name }}.zip
|
||||
dist/RGSX_Retrobat_latest.zip
|
||||
dist/RGSX_latest.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -13,7 +13,7 @@ except Exception:
|
||||
pygame = None # type: ignore
|
||||
|
||||
# Version actuelle de l'application
|
||||
app_version = "2.3.0.2"
|
||||
app_version = "2.3.0.4.1"
|
||||
|
||||
|
||||
def get_application_root():
|
||||
@@ -91,10 +91,17 @@ API_KEY_REALDEBRID_PATH = os.path.join(SAVE_FOLDER, "RealDebridAPI.txt")
|
||||
|
||||
|
||||
|
||||
# URL
|
||||
# URL - GitHub Releases
|
||||
GITHUB_REPO = "RetroGameSets/RGSX"
|
||||
GITHUB_RELEASES_URL = f"https://github.com/{GITHUB_REPO}/releases"
|
||||
|
||||
# URLs pour les mises à jour OTA (Over-The-Air)
|
||||
# Utilise le fichier RGSX_latest.zip qui pointe toujours vers la dernière version
|
||||
OTA_UPDATE_ZIP = f"{GITHUB_RELEASES_URL}/latest/download/RGSX_latest.zip"
|
||||
OTA_VERSION_ENDPOINT = "https://retrogamesets.fr/softs/version.json" # Endpoint pour vérifier la version disponible
|
||||
|
||||
# URLs legacy (conservées pour compatibilité)
|
||||
OTA_SERVER_URL = "https://retrogamesets.fr/softs/"
|
||||
OTA_VERSION_ENDPOINT = os.path.join(OTA_SERVER_URL, "version.json")
|
||||
OTA_UPDATE_ZIP = os.path.join(OTA_SERVER_URL, "RGSX.zip")
|
||||
OTA_data_ZIP = os.path.join(OTA_SERVER_URL, "games.zip")
|
||||
|
||||
#CHEMINS DES EXECUTABLES
|
||||
|
||||
@@ -1489,8 +1489,8 @@ def draw_controls(screen, menu_state, current_music_name=None, music_popup_start
|
||||
# Construire les lignes avec icônes
|
||||
icon_lines = []
|
||||
|
||||
# Sur la page d'accueil uniquement: afficher version et musique
|
||||
if menu_state == "platform":
|
||||
# Sur la page d'accueil et la page loading afficher version et musique
|
||||
if menu_state == "platform" or menu_state == "loading":
|
||||
control_parts = []
|
||||
|
||||
start_button = get_control_display('start', 'START')
|
||||
|
||||
@@ -483,8 +483,9 @@ async def check_for_updates():
|
||||
return True, _("network_no_update_available") if _ else "No update (local >= remote)"
|
||||
|
||||
# À ce stade latest_version est strictement > version locale
|
||||
UPDATE_ZIP = OTA_UPDATE_ZIP.replace("RGSX.zip", f"RGSX_v{latest_version}.zip")
|
||||
logger.debug(f"URL de mise à jour : {UPDATE_ZIP}")
|
||||
# Utiliser l'URL RGSX_latest.zip qui pointe toujours vers la dernière version sur GitHub
|
||||
UPDATE_ZIP = OTA_UPDATE_ZIP
|
||||
logger.debug(f"URL de mise à jour : {UPDATE_ZIP} (version {latest_version})")
|
||||
|
||||
if latest_version != config.app_version:
|
||||
config.current_loading_system = _("network_update_available").format(latest_version)
|
||||
|
||||
Reference in New Issue
Block a user