-
Notifications
You must be signed in to change notification settings - Fork 20
Add customized directories issues/21 #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
directories_config
C: drive default
|
Any issues with this now? |
|
Is there anything else you want done or good 2 go? |
|
I will check contents . |
FREEWING-JP
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First , I pointed out the parts that concerned me .
| echo %0 | ||
| cd /d \00_fritzing | ||
| rem Load configuration | ||
| if exist directories_config.bat call directories_config.bat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if exist directories_config.bat call directories_config.bat
cange to
call directories_config.bat
The directories_config.bat file always exists, so there is no need to check for its existence .
Of course , this also applies to batch files 01 to 20 .
| rem Load configuration from directories_config.bat if it exists | ||
| rem Otherwise, use default values | ||
| if exist directories_config.bat ( | ||
| echo Loading configuration from directories_config.bat | ||
| call directories_config.bat | ||
| ) else ( | ||
| echo directories_config.bat not found, creating with default values | ||
| rem Configure Qt installation directory (default is C:\Qt) | ||
| if "%QT_INSTALL_DIR%" == "" set QT_INSTALL_DIR=C:\Qt | ||
|
|
||
| rem Configure Fritzing workspace directory (default is \00_fritzing) | ||
| if "%FRITZING_WORKSPACE_DIR%" == "" set FRITZING_WORKSPACE_DIR=\00_fritzing | ||
|
|
||
| rem Configure Visual Studio installation directory | ||
| if "%VS_INSTALL_DIR%" == "" set VS_INSTALL_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools | ||
|
|
||
| rem Create the configuration file | ||
| echo @echo off> directories_config.bat | ||
| echo rem directories_config.bat>> directories_config.bat | ||
| echo rem Configuration file for directory paths used in Fritzing build scripts>> directories_config.bat | ||
| echo rem This file is meant to be persistent and can be edited manually>> directories_config.bat | ||
| echo.>> directories_config.bat | ||
| echo rem Qt installation directory>> directories_config.bat | ||
| echo set QT_INSTALL_DIR=%QT_INSTALL_DIR%>> directories_config.bat | ||
| echo.>> directories_config.bat | ||
| echo rem Fritzing workspace directory>> directories_config.bat | ||
| echo set FRITZING_WORKSPACE_DIR=%FRITZING_WORKSPACE_DIR%>> directories_config.bat | ||
| echo.>> directories_config.bat | ||
| echo rem Visual Studio installation directory>> directories_config.bat | ||
| echo set VS_INSTALL_DIR=%VS_INSTALL_DIR%>> directories_config.bat | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rem Load configuration from directories_config.bat if it exists
rem Otherwise, use default values
if exist directories_config.bat (
...
echo set VS_INSTALL_DIR=%VS_INSTALL_DIR%>> directories_config.bat
)
change to
call directories_config.bat
Because Will change it to do the same processing in directories_config.bat , so can delete this section .
| rem Update directories_config.bat if it already exists | ||
| if not exist directories_config.bat ( | ||
| rem Create the configuration file | ||
| echo @echo off> directories_config.bat | ||
| echo rem directories_config.bat>> directories_config.bat | ||
| echo rem Configuration file for directory paths used in Fritzing build scripts>> directories_config.bat | ||
| echo rem This file is meant to be persistent and can be edited manually>> directories_config.bat | ||
| echo.>> directories_config.bat | ||
| echo rem Qt installation directory>> directories_config.bat | ||
| echo set QT_INSTALL_DIR=%QT_INSTALL_DIR%>> directories_config.bat | ||
| echo.>> directories_config.bat | ||
| echo rem Fritzing workspace directory>> directories_config.bat | ||
| echo set FRITZING_WORKSPACE_DIR=%FRITZING_WORKSPACE_DIR%>> directories_config.bat | ||
| echo.>> directories_config.bat | ||
| echo rem Visual Studio installation directory>> directories_config.bat | ||
| echo set VS_INSTALL_DIR=%VS_INSTALL_DIR%>> directories_config.bat | ||
| echo.>> directories_config.bat | ||
| echo rem Created by 00_Download_Script.bat>> directories_config.bat | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this section is not need .
Because directories_config.bat file always exists .
| rem Qt installation directory (default is C:\Qt) | ||
| set QT_INSTALL_DIR=C:\Qt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rem Qt installation directory (default is C:\Qt)
set QT_INSTALL_DIR=C:\Qt
change to
rem Configure Qt installation directory (default is C:\Qt)
if "%QT_INSTALL_DIR%" == "" set QT_INSTALL_DIR=C:\Qt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FRITZING_WORKSPACE_DIR
VS_INSTALL_DIR
Change these as well .
| set VS_INSTALL_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools | ||
|
|
||
| rem Additional configuration variables can be added here | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add
echo Using Qt installation directory: %QT_INSTALL_DIR%
echo Using Fritzing workspace directory: %FRITZING_WORKSPACE_DIR%
echo Using Visual Studio directory: %VS_INSTALL_DIR%
|
|
||
| pause |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


added directories_config.bat