diff --git a/.vscode/settings.json b/.vscode/settings.json index cfcf5d6..8b1c6ca 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,7 @@ { "python.languageServer": "Pylance", "cSpell.words": [ + "DXFATTRIBS", "ezdxf" ] } \ No newline at end of file diff --git a/bin/install.bat b/bin/install.bat new file mode 100644 index 0000000..ee2ef08 --- /dev/null +++ b/bin/install.bat @@ -0,0 +1,12 @@ +@echo on + +set TARGETDIR="%ONEDRIVE%\Desktop\Kabeltool" +mkdir %TARGETDIR% +set SHORTCUT=%TARGETDIR%\create_cables.lnk + +set CHECKOUT_DIR="C:\10-Develop\gitrepos\kabellaengen" + +set TARGET=%CHECKOUT_DIR%\bin\run.bat +set ICON=%CHECKOUT_DIR%\doc\img\Icons\Icon_Gemini2.ico + +powershell -Command "$s=(New-Object -COM WScript.Shell).CreateShortcut('%SHORTCUT%');$s.TargetPath='%TARGET%';$s.IconLocation='%ICON%';$s.Save()" \ No newline at end of file diff --git a/bin/run.bat b/bin/run.bat index cc3ffb9..803b90e 100644 --- a/bin/run.bat +++ b/bin/run.bat @@ -1,10 +1,11 @@ @echo on echo Datei wurde übergeben: %1 for /F %%i in ("%1") do set FILENAME=%%~ni -set TARGET="%ONEDRIVE%\Desktop\Kabeltool" -call C:\10-Develop\gitrepos\kabellaengen\bin\setenv.bat -set PATH=%PROJECT%;%PATH% -call getexdraw.bat %1 +set TARGET="%ONEDRIVE%\Desktop\Kabeltool" +set CHECKOUT_DIR=C:\10-Develop\gitrepos\kabellaengen + +call %CHECKOUT_DIR%\bin\setenv.bat +call %CHECKOUT_DIR%\bin\getexdraw.bat %1 move %PROJECT_WORK%\%FILENAME%_* %TARGET% pause \ No newline at end of file diff --git a/bin/setenv.bat b/bin/setenv.bat index 2e539ec..f3dbf24 100644 --- a/bin/setenv.bat +++ b/bin/setenv.bat @@ -17,10 +17,10 @@ if not exist %PROJECT%\log mkdir %PROJECT%\log if not exist %PROJECT%\data mkdir %PROJECT%\data if not exist %PROJECT%\hotfolder mkdir %PROJECT%\hotfolder +set PATH=%PROJECT_BIN%;%PATH% + popd goto :eof -:set_path -set PATH=%PROJECT_BIN%;%PATH% -goto r%return% + diff --git a/doc/img/Icons/Icon_Gemini2.ico b/doc/img/Icons/Icon_Gemini2.ico index e7aa73c..027391b 100644 Binary files a/doc/img/Icons/Icon_Gemini2.ico and b/doc/img/Icons/Icon_Gemini2.ico differ