Skip to content

Commit 52b3d34

Browse files
committed
Move MSI file rather than copying it
1 parent a12eb59 commit 52b3d34

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

constructor/briefcase.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ def create(info, verbose=False):
144144
msi_paths = list(dist_dir.glob("*.msi"))
145145
if len(msi_paths) != 1:
146146
raise RuntimeError(f"Found {len(msi_paths)} MSI files in {dist_dir}")
147-
shutil.copy(msi_paths[0], info["_outpath"])
147+
148+
outpath = Path(info["_outpath"])
149+
outpath.unlink(missing_ok=True)
150+
shutil.move(msi_paths[0], outpath)
148151

149152
if not info.get("_debug"):
150153
shutil.rmtree(tmp_dir)

0 commit comments

Comments
 (0)