diff --git a/.gitignore b/.gitignore index 5d442ef0..9260acd3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ *.egg-info setup.iss novelwriter.desktop +novelWriter.pyw i18n/*.qm i18n/*.qph diff --git a/setup.py b/setup.py index 826c6f59..d6983c0c 100755 --- a/setup.py +++ b/setup.py @@ -695,6 +695,9 @@ def winInstall(): targetPy = os.path.join(targetDir, "novelWriter.pyw") targetIcon = os.path.join(targetDir, "nw", "assets", "icons", "novelwriter.ico") + if not os.path.isfile(targetPy): + shutil.copy2(os.path.join(targetDir, "novelWriter.py"), targetPy) + print("Collecting Info ...") print("Desktop Folder: %s" % desktopDir) print("Start Menu Folder: %s" % startMenuDir)