Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0dcddef

Browse files
committed
working on macOS build
1 parent76fdcf9 commit0dcddef

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

‎builder/macOS.py‎

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ def build_sdl():
107107
globalvariant
108108

109109
ifvariantisNone:
110-
variant='build-standard'
110+
varnt='build-standard'
111111
else:
112-
variant=f'build-{variant}'
112+
varnt=f'build-{variant}'
113113

114-
dst=f'lib/micropython/ports/unix/{variant}/SDL'
114+
dst=f'lib/micropython/ports/unix/{varnt}/SDL'
115115

116116
ifnotos.path.exists(dst):
117117
os.makedirs(dst)
@@ -216,6 +216,27 @@ def compile(): # NOQA
216216

217217
build_sdl()
218218

219+
ifvariantisNone:
220+
varnt='build-standard'
221+
else:
222+
varnt=f'build-{variant}'
223+
224+
path=f'lib/micropython/ports/unix/{varnt}/SDL'
225+
226+
def_iter_print(p,indent=''):
227+
child=os.path.split(p)[-1]
228+
print(f'{indent}{child}')
229+
230+
forfinos.listdir(p):
231+
file=os.path.join(p,f)
232+
ifos.path.isdir(file):
233+
_iter_print(file,indent+' ')
234+
else:
235+
print(f'{indent}{f}')
236+
print()
237+
238+
_iter_print(path)
239+
219240
return_code,_=spawn(compile_cmd)
220241
ifreturn_code!=0:
221242
sys.exit(return_code)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp