Ecole-Directe-Plus icon indicating copy to clipboard operation
Ecole-Directe-Plus copied to clipboard

Launcher Dor Ecole DIrecte Plus

Open danbenba opened this issue 1 year ago • 5 comments

Adding Launcher for launch easy

danbenba avatar Apr 06 '24 20:04 danbenba

You should also add a .sh file for Linux operating systems

OeildeLynx31 avatar Apr 06 '24 22:04 OeildeLynx31

This would more useful with something like this :

NET SESSION >nul 2>&1

IF %ERRORLEVEL% NEQ 0 (
	echo This setup needs admin permissions. Please run this file as admin.
	pause
	exit
)

set NODE_VER=null
set NODE_EXEC=node-v0.8.11-x86.msi
set SETUP_DIR=%CD%
node -v >tmp.txt
set /p NODE_VER=<tmp.txt
del tmp.txt
IF %NODE_VER% NEQ null (
	echo INSTALLING node ...
	mkdir tmp
	IF NOT EXIST tmp/%NODE_EXEC% (
		echo Node setup file does not exist. Downloading ...
		cd ../bin
		START /WAIT wget https://nodejs.org/dist/latest/win-x64/%NODE_EXEC%
		move %NODE_EXEC% %SETUP_DIR%/tmp
	)
	cd %SETUP_DIR%/tmp
	START /WAIT %NODE_EXEC%
	cd %SETUP_DIR%
) ELSE (
	echo Node is already installed. Proceeding ...
)

I haven't tested this code, might need patches or a version change for the node installer, but the thing is : installing node automatically to make it easier and give a real "plus-value" to your launcher over the console

xav35000 avatar Apr 21 '24 20:04 xav35000

Might be cool to also make sure that all dependencies are installed Just need to add a simple npm install after installing nodejs

Truiteseche avatar Apr 22 '24 10:04 Truiteseche

Please update or close the PR @danbenba

xav35000 avatar Apr 22 '24 15:04 xav35000

Please update or close the PR @danbenba

Vous pouvez collaborer. Et donner moi le code je le modifierai

danbenba avatar Apr 22 '24 17:04 danbenba

I do not have time nor the desire to edit this code to a useful state and i think we don't really need it, if nobody update this until the 09/06/24, the pr will be closed.

xav35000 avatar Jun 02 '24 19:06 xav35000