sigyllly commited on
Commit
9a7bb01
·
verified ·
1 Parent(s): fa19af4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -174,11 +174,11 @@ def finish():
174
  with open(script_path, 'w') as file:
175
  file.write(modified_cs)
176
 
177
- compile_command = [
178
- 'mcs', '-target:winexe', '-out:' + exe_name, script_path,
179
- '-win32icon:app.ico', '-win32manifest:app.manifest',
180
- '/reference:System.Net.Http.dll'
181
- ]
182
 
183
  # Run the compilation command
184
  try:
 
174
  with open(script_path, 'w') as file:
175
  file.write(modified_cs)
176
 
177
+ # Compile the C# script using mcs with the manifest for admin privileges
178
+ compile_command = [
179
+ 'mcs', '-target:winexe', '-out:' + exe_name, script_path,
180
+ '-win32icon:app.ico', '-win32manifest:app.manifest','/reference:System.Net.Http.dll'
181
+ ]
182
 
183
  # Run the compilation command
184
  try: