Skip to content

Commit e72d798

Browse files
committed
ci(release): add ensure temp feature to relase script
1 parent cb34771 commit e72d798

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/release.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,19 @@ def compile_release():
311311
cross_compile_compiler()
312312

313313

314+
def ensure_temp():
315+
temp_path = os.path.join(ROOT, CONFIG.temp)
316+
if os.path.isdir(temp_path):
317+
return
318+
os.mkdir(temp_path)
319+
if not os.path.isdir(temp_path):
320+
print(Colors.fail("Failed to create temp_path:"), temp_path)
321+
322+
314323
if __name__ == "__main__":
315324
# Set work directory to be that of project root.
316325
os.chdir(ROOT)
326+
ensure_temp()
317327
compile_release()
318328
print("-" * 40)
319329
build_releases()

0 commit comments

Comments
 (0)