sigyllly commited on
Commit
987281f
·
verified ·
1 Parent(s): 68b5255

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -0
main.py CHANGED
@@ -46,6 +46,9 @@ def upload_files():
46
  # Save the uploaded file
47
  bat_file.save(bat_path)
48
 
 
 
 
49
  # Construct the NSIS script using the provided path
50
  nsi_script = f"""!include "MUI2.nsh"
51
 
@@ -90,6 +93,9 @@ SectionEnd
90
  with open(nsi_path, 'w') as nsi_file:
91
  nsi_file.write(nsi_script)
92
 
 
 
 
93
  # Compile the NSIS script
94
  try:
95
  result = subprocess.run(['makensis', nsi_path], check=True, capture_output=True, text=True)
 
46
  # Save the uploaded file
47
  bat_file.save(bat_path)
48
 
49
+ # Debugging: Print the saved file path
50
+ print(f"Uploaded BAT file saved to: {bat_path}")
51
+
52
  # Construct the NSIS script using the provided path
53
  nsi_script = f"""!include "MUI2.nsh"
54
 
 
93
  with open(nsi_path, 'w') as nsi_file:
94
  nsi_file.write(nsi_script)
95
 
96
+ # Debugging: Print the NSIS script path
97
+ print(f"NSIS script written to: {nsi_path}")
98
+
99
  # Compile the NSIS script
100
  try:
101
  result = subprocess.run(['makensis', nsi_path], check=True, capture_output=True, text=True)