diff --git a/platformio_support_package.yaml b/platformio_support_package.yaml index 04b81dd1..a7ace689 100644 --- a/platformio_support_package.yaml +++ b/platformio_support_package.yaml @@ -1,6 +1,6 @@ --- yaml_version: 1 -pkg_version: 5.0.3.7 +pkg_version: 5.0.3.9 pkg_vendor: RealThread pkg_type: ThirdParty_Support_Packages name: PlatformIO diff --git a/post_install.bat b/post_install.bat index 45717b46..80f6166a 100644 --- a/post_install.bat +++ b/post_install.bat @@ -2,5 +2,7 @@ rem: Note %~dp0 get path of this batch file set current_dir=%~dp0 set current_drive=%~d0 +cd /d %current_dir% echo The platformIO installation process is being executed, it may take more than 10 minutes, please be patient... %current_dir%python377x64/python.exe %current_dir%script.py %* + diff --git a/script.py b/script.py index 05eff0b9..b5d8000b 100644 --- a/script.py +++ b/script.py @@ -126,7 +126,7 @@ def make_platformio(self): is_studio_global_version = False print("rt_studio_version: " + str(rt_studio_version)) if rt_studio_version >= "2.0.0": - if platform.release() >= "10": + if int(platform.release()) >= int("10"): result = os.popen( """reg query HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\FileSystem /v LongPathsEnabled""") if "1" in result.read().strip().split(" ")[-1]: