Compare commits
3 Commits
9ff80c2357
...
main
Author | SHA1 | Date | |
---|---|---|---|
9ee7e4eb36 | |||
8498d569dd | |||
cf38f2b964 |
@@ -1,39 +0,0 @@
|
|||||||
name: BinGen
|
|
||||||
run-name: Generate a exe file from the python script
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Charger le dépôt
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Installer Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: 3.11
|
|
||||||
|
|
||||||
- name: Installer Nuitka et MinGW
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install pyinstaller colorama
|
|
||||||
|
|
||||||
- name: Execute PyInstaller dans Docker
|
|
||||||
run: |
|
|
||||||
docker run --rm -v "$PWD":/src cdrx/pyinstaller-windows \
|
|
||||||
"pyinstaller --onefile /src/controleur_de_gaz.py"
|
|
||||||
|
|
||||||
- name: Archive executable
|
|
||||||
run: |
|
|
||||||
zip jeu_windows.zip ./dist/controleur_de_gaz.exe
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: escape-game-windows-exe
|
|
||||||
path: jeu_windows.zip
|
|
@@ -67,4 +67,8 @@ 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(5)
|
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)
|
@@ -1,6 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
mode con: cols=120 lines=40
|
mode con: cols=120 lines=40
|
||||||
title ESCAPE GAME
|
title LA COMPANIE
|
||||||
cd /d "%USERPROFILE%\Documents\cmd-alexandra-toxicity"
|
cd /d "%USERPROFILE%\Documents\cmd-alexandra-toxicity"
|
||||||
python jeu.py
|
python jeu.py
|
||||||
pause > nul
|
pause > nul
|
Reference in New Issue
Block a user