mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 09:12:05 -08:00
Use shutil to move files (supports cross-env moves)
This commit is contained in:
parent
64180472e2
commit
17b528489b
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ import os
|
|||
import sys
|
||||
from dataclasses import dataclass
|
||||
from typing import List
|
||||
import shutil
|
||||
|
||||
# Constants
|
||||
AVAILABLE_TARGETS = ["linux", "windows", "macos"]
|
||||
|
|
@ -86,7 +87,7 @@ def run_build(target, arch):
|
|||
# Move assets to dist
|
||||
print('Assets:', ', '.join(builder.assets))
|
||||
for asset in builder.assets:
|
||||
os.rename(asset, f'dist/{asset}')
|
||||
shutil.move(asset, f'dist/{asset}')
|
||||
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue