sigyllly commited on
Commit
c7ce71d
·
verified ·
1 Parent(s): 0bc4997

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +19 -20
main.py CHANGED
@@ -52,26 +52,25 @@ def upload_files():
52
  icon_file.save(icon_path)
53
 
54
  # Construct the NSIS script with the correct paths
55
- nsi_script = f"""
56
- !include nsDialogs.nsh
57
- !include LogicLib.nsh
58
-
59
- Outfile "output.exe"
60
- InstallDir "$PROGRAMFILES\\YourApp"
61
-
62
- Name "Your App"
63
- Caption "Your App Installer"
64
- VIProductVersion "1.0.0"
65
- RequestExecutionLevel admin
66
-
67
- Page instfiles
68
-
69
- Section "Install"
70
- SetOutPath "$INSTDIR"
71
- File "{bat_path.replace('\\', '\\\\')}" # Escape backslashes for NSIS
72
- File "{icon_path.replace('\\', '\\\\')}" # Escape backslashes for NSIS
73
- SectionEnd
74
- """
75
 
76
  nsi_path = os.path.join(app.config['UPLOAD_FOLDER'], 'installer.nsi')
77
  with open(nsi_path, 'w') as nsi_file:
 
52
  icon_file.save(icon_path)
53
 
54
  # Construct the NSIS script with the correct paths
55
+ nsi_script = f"""!include nsDialogs.nsh
56
+ !include LogicLib.nsh
57
+
58
+ Outfile "output.exe"
59
+ InstallDir "$PROGRAMFILES\\YourApp"
60
+
61
+ Name "Your App"
62
+ Caption "Your App Installer"
63
+ VIProductVersion "1.0.0"
64
+ RequestExecutionLevel admin
65
+
66
+ Page instfiles
67
+
68
+ Section "Install"
69
+ SetOutPath "$INSTDIR"
70
+ File "{bat_path.replace('\\', '\\\\')}" # Escape backslashes for NSIS
71
+ File "{icon_path.replace('\\', '\\\\')}" # Escape backslashes for NSIS
72
+ SectionEnd
73
+ """
 
74
 
75
  nsi_path = os.path.join(app.config['UPLOAD_FOLDER'], 'installer.nsi')
76
  with open(nsi_path, 'w') as nsi_file: