Jelajahi Sumber

update to 5.0.3.9

yaxing.chen 5 tahun lalu
induk
melakukan
0638083e92
3 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 1 1
      platformio_support_package.yaml
  2. 2 0
      post_install.bat
  3. 1 1
      script.py

+ 1 - 1
platformio_support_package.yaml

@@ -1,6 +1,6 @@
 ---
 ---
 yaml_version: 1
 yaml_version: 1
-pkg_version: 5.0.3.7
+pkg_version: 5.0.3.9
 pkg_vendor: RealThread
 pkg_vendor: RealThread
 pkg_type: ThirdParty_Support_Packages
 pkg_type: ThirdParty_Support_Packages
 name: PlatformIO
 name: PlatformIO

+ 2 - 0
post_install.bat

@@ -2,5 +2,7 @@
 rem: Note %~dp0 get path of this batch file
 rem: Note %~dp0 get path of this batch file
 set current_dir=%~dp0
 set current_dir=%~dp0
 set current_drive=%~d0
 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...
 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 %*
 %current_dir%python377x64/python.exe %current_dir%script.py %*
+

+ 1 - 1
script.py

@@ -126,7 +126,7 @@ if len(sys.argv) > 2:
         is_studio_global_version = False
         is_studio_global_version = False
     print("rt_studio_version: " + str(rt_studio_version))
     print("rt_studio_version: " + str(rt_studio_version))
     if rt_studio_version >= "2.0.0":
     if rt_studio_version >= "2.0.0":
-        if platform.release() >= "10":
+        if int(platform.release()) >= int("10"):
             result = os.popen(
             result = os.popen(
                 """reg query HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\FileSystem /v LongPathsEnabled""")
                 """reg query HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\FileSystem /v LongPathsEnabled""")
             if "1" in result.read().strip().split(" ")[-1]:
             if "1" in result.read().strip().split(" ")[-1]: