mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
remove conhost from windows install process
This commit is contained in:
parent
39e66ec934
commit
72c891bbac
@ -24,7 +24,8 @@ read -e -p "Tag this repo with '${VERSION}' and '${LATEST_TAG}'? [n]: " input
|
|||||||
RESPONSE=${input:='n'}
|
RESPONSE=${input:='n'}
|
||||||
if [ "$RESPONSE" == 'y' ]; then
|
if [ "$RESPONSE" == 'y' ]; then
|
||||||
|
|
||||||
if ! git tag $VERSION ; then
|
git push origin :refs/tags/$VERSION
|
||||||
|
if ! git tag -fa $VERSION ; then
|
||||||
echo "Existing/invalid tag"
|
echo "Existing/invalid tag"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
@ -38,7 +38,7 @@ echo https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist
|
|||||||
echo.
|
echo.
|
||||||
echo See %INSTRUCTIONS% for more details.
|
echo See %INSTRUCTIONS% for more details.
|
||||||
echo.
|
echo.
|
||||||
echo "For the best user experience we suggest enlarging or maximizing this window now."
|
echo FOR THE BEST USER EXPERIENCE WE SUGGEST MAXIMIZING THIS WINDOW NOW.
|
||||||
pause
|
pause
|
||||||
|
|
||||||
@rem ---------------------------- check Python version ---------------
|
@rem ---------------------------- check Python version ---------------
|
||||||
|
@ -28,17 +28,7 @@ def set_terminal_size(columns: int, lines: int, launch_command: str=None):
|
|||||||
|
|
||||||
OS = platform.uname().system
|
OS = platform.uname().system
|
||||||
if OS == "Windows":
|
if OS == "Windows":
|
||||||
# The new Windows Terminal doesn't resize, so we relaunch in a CMD window.
|
_set_terminal_size_powershell(width,height)
|
||||||
# Would prefer to use execvpe() here, but somehow it is not working properly
|
|
||||||
# in the Windows 10 environment.
|
|
||||||
if 'IA_RELAUNCHED' not in os.environ:
|
|
||||||
args=['conhost']
|
|
||||||
args.extend([launch_command] if launch_command else [sys.argv[0]])
|
|
||||||
args.extend(sys.argv[1:])
|
|
||||||
os.environ['IA_RELAUNCHED'] = 'True'
|
|
||||||
os.execvp('conhost',args)
|
|
||||||
else:
|
|
||||||
_set_terminal_size_powershell(width,height)
|
|
||||||
elif OS in ["Darwin", "Linux"]:
|
elif OS in ["Darwin", "Linux"]:
|
||||||
_set_terminal_size_unix(width,height)
|
_set_terminal_size_unix(width,height)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user