Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
d4c73f0d57 | |||
2182fa1ef5 | |||
481c78c0af | |||
84c42a93bb | |||
6b2cd8772f | |||
292dcbbe9e |
3 changed files with 41 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
41
header.bat
41
header.bat
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue