Compare commits

...

6 commits
1.0.0 ... main

Author SHA1 Message Date
d4c73f0d57
fix ci
All checks were successful
Upload release / build (push) Successful in 13s
2025-06-05 16:15:24 +02:00
2182fa1ef5
verbose message
Some checks failed
Upload release / build (push) Has been cancelled
2025-06-05 13:02:22 +02:00
481c78c0af
this is now automated 2024-11-18 03:18:19 +01:00
84c42a93bb
python installation trought winget if needed
All checks were successful
Upload release / build (push) Successful in 11s
2024-11-18 03:16:28 +01:00
6b2cd8772f
Actualiser header.bat
All checks were successful
Upload release / build (push) Successful in 3s
2024-08-12 12:57:35 +02:00
292dcbbe9e
cleanup 2024-08-12 10:41:48 +02:00
3 changed files with 41 additions and 8 deletions

View file

@ -7,6 +7,10 @@ on:
jobs:
build:
runs-on: docker
container:
image: node
steps:
- name: Checkout
uses: actions/checkout@v4
@ -16,8 +20,6 @@ jobs:
- name: Create release
uses: akkuman/gitea-release-action@v1
env:
GITHUB_TOKEN:
with:
token: ${{ secrets.TOKEN }}
files: na.bat

View file

@ -2,8 +2,6 @@
Appuie régulièrement sur la touche Windows, tout en faisant tourner la souris
> Installer [Python via le Microsoft Store](https://apps.microsoft.com/detail/9p7qfqmjrfp7?hl=en-us&gl=US)
>
> Téléchargez le programme [disponible ici](https://git.mylloon.fr/Anri/never-away/releases/latest)
Pour stopper le programme, bougez amplement la souris

View file

@ -1,13 +1,46 @@
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET "tmpFile=%TEMP%\~searchBea.py"
SET "tmpFile=%TEMP%\~na.py"
:: Variables
SET "pipR=pip install pyautogui"
SET "py=python.exe"
:: Check python installation
!py! --version >NUL
:: Clean potential error or python version
CLS
ECHO On first start, this may take some time...
IF ERRORLEVEL 1 (
ECHO Installation of Python not found, installation...
:: Accept Winget ToT
ECHO Y | winget list >NUL
:: Install Python 3.13 from MS Store
ECHO Y | winget install -he 9PNRBTZXMB4Z
ECHO Download and installation of dependencies...
:: Location of Python
SET "py=%LOCALAPPDATA%\Microsoft\WindowsApps\!py!"
:: Update pip
!py! -m pip install --upgrade pip
:: Install dependencies
!py! -m !pipR!
) ELSE (
:: Check dependencies
!py! -m !pipR! >NUL
)
:: Write the program
CALL :getLine "::python_beg" "::python_end" > "!tmpFile!"
:: Install dependencies
python -m pip install pyautogui >NUL
:: Run the program
PowerShell -Command "Start-Process cmd -Argument '/c START /B python !tmpFile!' -WindowStyle hidden"
EXIT /B