From fd5395d8ae8e727ddbe4e3011e91d29029f7ca36 Mon Sep 17 00:00:00 2001 From: Marcin Raba Date: Tue, 27 Aug 2024 16:48:19 +0200 Subject: [PATCH] SNOW-1055755: build_snowflake_cli.bat 2 --- scripts/packaging/win/build_snowflake_cli.bat | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/packaging/win/build_snowflake_cli.bat b/scripts/packaging/win/build_snowflake_cli.bat index 03caa14661..97411a0e98 100644 --- a/scripts/packaging/win/build_snowflake_cli.bat +++ b/scripts/packaging/win/build_snowflake_cli.bat @@ -1,5 +1,18 @@ @echo on echo %PATH% -where /r C:\Program Files python.exe + + "C:\Program Files\Python310\python.exe" --version "C:\Program Files\Python310\python.exe" -m pip install --upgrade pip uv hatch + + + +@ECHO OFF +@SET CLI_VERSION = +FOR /F %%I IN ('C:\Program Files\Python310\python.exe -m hatch version') DO @SET "CLI_VERSION=%%I" +@ECHO ON + +echo %CLI_VERSION% + + +REM "C:\Program Files\Python310\python.exe" -m hatch -e packaging run pyinstaller --name snow --onedir --clean --noconfirm --noconsole --contents-directory-snowflake-cli