mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-11 04:32:07 -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
|
import sys
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import List
|
from typing import List
|
||||||
|
import shutil
|
||||||
|
|
||||||
# Constants
|
# Constants
|
||||||
AVAILABLE_TARGETS = ["linux", "windows", "macos"]
|
AVAILABLE_TARGETS = ["linux", "windows", "macos"]
|
||||||
|
|
@ -86,7 +87,7 @@ def run_build(target, arch):
|
||||||
# Move assets to dist
|
# Move assets to dist
|
||||||
print('Assets:', ', '.join(builder.assets))
|
print('Assets:', ', '.join(builder.assets))
|
||||||
for asset in builder.assets:
|
for asset in builder.assets:
|
||||||
os.rename(asset, f'dist/{asset}')
|
shutil.move(asset, f'dist/{asset}')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue