Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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)
|