This commit is contained in:
Lurenaud
2023-02-07 19:57:21 +01:00
parent 9d7e5abcf8
commit 3b36821681
3 changed files with 1 additions and 1 deletions

4
scripts/install.ps1 Normal file
View File

@@ -0,0 +1,4 @@
python -m venv .venv
.\.venv\Scripts\activate
pip install -r .\requirements.txt
python .\gui.py

5
scripts/installFrom0.cmd Normal file
View File

@@ -0,0 +1,5 @@
git clone https://git.lurenaud.com/lurenaud/SldwrksExporter.git
copy SldwrksExporter\scripts\runExport.cmd runExport.cmd
cd SldwrksExporter
powershell -file "scripts\install.ps1"
(goto) 2>nul & del "%~f0" & cmd /c exit /b 10

View File

@@ -0,0 +1,25 @@
@echo off
@REM Git and python install
set test
python --version 3 > test
echo %test%
if (%test%== 0) GOTO :EOF
ECHO Installing python
@REM curl -o python.exe https://www.python.org/ftp/python/3.11.1/python-3.11.1-amd64.exe
@REM python.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
:EOF
IF EXIST git GOTO :end
ECHO Installing Git
@REM winget install --id Git.Git -e --source winget
:end
@echo on
@REM Get the project and install it
@REM git clone https://git.lurenaud.com/lurenaud/SldwrksExporter.git
@REM copy SldwrksExporter\scripts\runExport.cmd runExport.cmd
@REM cd SldwrksExporter
@REM powershell -file "install.ps1"
@REM (goto) 2>nul & del "%~f0" & cmd /c exit /b 10