mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: keep exe and dll files in project folder
This commit is contained in:
@@ -46,6 +46,15 @@ def prepare_project(project_name, settings):
|
||||
continue
|
||||
if file.startswith("."):
|
||||
continue
|
||||
if file.endswith(".exe"):
|
||||
# keep all exes except:
|
||||
if file != "main.exe" and not file.endswith(".infected.exe"):
|
||||
continue
|
||||
if file.endswith(".dll"):
|
||||
# keep all dlls except:
|
||||
if not file.endswith(".infected.dll"):
|
||||
continue
|
||||
|
||||
os.remove(dst + file)
|
||||
|
||||
# copy *.c *.h files from src directory to dst directory
|
||||
|
||||
Reference in New Issue
Block a user