File tree 2 files changed +16
-6
lines changed
2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,10 @@ jobs:
59
59
# shell: pwsh
60
60
# run: |
61
61
# ./.github/pytools/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/get.exe
62
- # - name: Test binaries
63
- # shell: bash
64
- # run: |
65
- # ./${{ env.DISTPATH }}/get${{ matrix.EXTEN }} -h
62
+ - name : Test binaries
63
+ shell : bash
64
+ run : |
65
+ ./${{ env.DISTPATH }}/get${{ matrix.EXTEN }} -h
66
66
- name : Archive artifact
67
67
uses : actions/upload-artifact@master
68
68
with :
Original file line number Diff line number Diff line change 35
35
if 'Windows' in platform .system ():
36
36
import requests
37
37
38
- current_dir = os .path .dirname (os .path .realpath (unicode (__file__ )))
38
+ # determine if application is a script file or frozen exe
39
+ if getattr (sys , 'frozen' , False ):
40
+ current_dir = os .path .dirname (os .path .realpath (unicode (sys .executable )))
41
+ elif __file__ :
42
+ current_dir = os .path .dirname (os .path .realpath (unicode (__file__ )))
43
+
44
+ #current_dir = os.path.dirname(os.path.realpath(unicode(__file__)))
39
45
dist_dir = current_dir + '/dist/'
40
46
41
47
def sha256sum (filename , blocksize = 65536 ):
@@ -222,7 +228,11 @@ def identify_platform():
222
228
identified_platform = identify_platform ()
223
229
print ('Platform: {0}' .format (identified_platform ))
224
230
tools_to_download = load_tools_list (current_dir + '/../package/package_esp32_index.template.json' , identified_platform )
231
+ is_test = (sys .argv [1 ] == '-h' )
225
232
mkdir_p (dist_dir )
226
233
for tool in tools_to_download :
227
- get_tool (tool )
234
+ if is_test :
235
+ print ('Install: {0}' .format (tool ['archiveFileName' ]))
236
+ else :
237
+ get_tool (tool )
228
238
print ('Platform Tools Installed' )
You can’t perform that action at this time.
0 commit comments