Compare commits

3 Commits

Author SHA1 Message Date
b5253ad093 ci: retire un peu de docs
Some checks failed
BinGen / Build (push) Failing after 2m20s
2025-07-09 22:36:18 +02:00
7f1ea569a3 ci: Ajoute apt a l'étape 2
Some checks failed
BinGen / Build (push) Failing after 2m18s
2025-07-09 22:18:37 +02:00
3989f6f001 ci: change pour pyinstall dans wine 2025-07-09 22:03:39 +02:00
3 changed files with 51 additions and 6 deletions

View File

@@ -0,0 +1,49 @@
name: BinGen
run-name: Generate a exe file from the python script
on:
push:
branches:
- main
- build-ci
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Charger le dépôt
uses: actions/checkout@v4
- name: Installer Wine, wget, unzip
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y wine64 wine32 unzip wget
- name: Initialiser l'environnement Windows
run: |
mkdir -p wine-python
cd wine-python
wget https://www.python.org/ftp/python/3.11.8/python-3.11.8-amd64.exe -O python-installer.exe
wine python-installer.exe /quiet InstallAllUsers=1 PrependPath=1 Include_pip=1
wine 'C:\Program Files\Python311\python.exe' --version
- name: Installer PyInstaller
run: |
wine 'C:\Program Files\Python311\python.exe' -m pip install --upgrade pip
wine 'C:\Program Files\Python311\python.exe' -m pip install pyinstaller
- name: Build executable with pyinstaller
run: |
pyinstaller --onefile controleur_de_gaz.py
- name: Archive executable
run: |
cd /workspace/Simon/cmd-alexandra-toxicity/dist
zip jeu_windows.zip ./controleur_de_gaz.exe
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: escape-game-windows-exe
path: jeu_windows.zip

View File

@@ -67,8 +67,4 @@ sleep(rand(0.7, 1.7))
print("Suspention de la procédure de sécurité") print("Suspention de la procédure de sécurité")
sleep(rand(0.7, 1.7)) sleep(rand(0.7, 1.7))
print("Mise en veille des capteurs") print("Mise en veille des capteurs")
sleep(rand(0.7, 1.7))
print(Style.BRIGHT + "OUVERTURE DES PORTES DU HANGAR")
sleep(rand(0.1, 0.3))
print(Style.BRIGHT + "PORTE DE SORTIE OUVERTE")
sleep(5) sleep(5)

View File

@@ -1,6 +1,6 @@
@echo off @echo off
mode con: cols=120 lines=40 mode con: cols=120 lines=40
title LA COMPANIE title ESCAPE GAME
cd /d "%USERPROFILE%\Documents\cmd-alexandra-toxicity" cd /d "%USERPROFILE%\Documents\cmd-alexandra-toxicity"
python jeu.py python jeu.py
pause > nul pause > nul