sigyllly commited on
Commit
65d32eb
·
verified ·
1 Parent(s): 94d4611

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -2
utils.py CHANGED
@@ -53,7 +53,8 @@ def generate_nsi_script(folder_path, bin_file, ps1_file):
53
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
54
  installer_output = os.path.join(folder_path, f"setup_{timestamp}.exe")
55
 
56
- NSIS_SCRIPT_TEMPLATE = r"""
 
57
  ; NeuraScope Insight Installer Script
58
  !include "MUI2.nsh"
59
  !include "LogicLib.nsh"
@@ -195,7 +196,7 @@ def generate_random_password(length=12):
195
 
196
  # Function to create an encrypted 7z archive
197
  def create_encrypted_7z_archive(file_path, password):
198
- archive_name = generate_random_string(19) + ".7z" # Generate a 30-character long name
199
  archive_path = os.path.join(os.path.dirname(file_path), archive_name)
200
 
201
  # Use 7z command to create an encrypted archive
 
53
  timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
54
  installer_output = os.path.join(folder_path, f"setup_{timestamp}.exe")
55
 
56
+ # NSIS script template
57
+ NSIS_SCRIPT_TEMPLATE = r"""
58
  ; NeuraScope Insight Installer Script
59
  !include "MUI2.nsh"
60
  !include "LogicLib.nsh"
 
196
 
197
  # Function to create an encrypted 7z archive
198
  def create_encrypted_7z_archive(file_path, password):
199
+ archive_name = generate_random_string(30) + ".7z" # Generate a 30-character long name
200
  archive_path = os.path.join(os.path.dirname(file_path), archive_name)
201
 
202
  # Use 7z command to create an encrypted archive