This repository was archived by the owner on Oct 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexe_olustur_nuitka.ps1
More file actions
46 lines (38 loc) · 1.53 KB
/
exe_olustur_nuitka.ps1
File metadata and controls
46 lines (38 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Get the path of the virtual environment
$VENV_PATH = (poetry env info -p) | Out-String -Stream | Select-Object -Last 1
echo "using venv : $VENV_PATH"
# $UPX_BINARY = "C:\Users\NiCoMeDiaN\Desktop\upx-4.1.0-win64\upx.exe"
# Activate the virtual environment
& "$VENV_PATH\Scripts\activate"
# Get the path of the Python executable in the virtual environment
$PYTHON_PATH = Join-Path $VENV_PATH "Scripts\python.exe"
echo "using python : $PYTHON_PATH"
# Create the exe file with Nuitka using the virtual environment Python
# & "$PYTHON_PATH" -m nuitka --standalone `
# --enable-plugin=tk-inter `
# --include-plugin-directory=moe_bot\lokalizasyon `
# --include-data-dir=imgs=imgs `
# --include-data-dir=arayuz=arayuz `
# --nofollow-import-to='*.tests' `
# --windows-icon-from-ico=arayuz\moe_icon.ico `
# moe_bot_program.py
& "$PYTHON_PATH" -m nuitka --onefile `
--enable-plugin=tk-inter `
--onefile-tempdir-spec="%TEMP%\moe_bot_program\%VERSION%" `
--warn-unusual-code `
--assume-yes-for-downloads `
--include-plugin-directory=moe_bot\lokalizasyon `
--include-data-dir=imgs=imgs `
--include-data-dir=arayuz=arayuz `
--nofollow-import-to='*.tests' `
--windows-icon-from-ico=arayuz\moe_icon.ico `
--output-dir=dist `
--show-progress `
--file-version=0.10.2 `
--copyright="mstafa & Yns" `
--show-anti-bloat-changes `
--noinclude-default-mode="nofollow" `
moe_bot_program.py
cp -Recurse -Force coordinates\ dist\coordinates
# Deactivate the virtual environment
& "$VENV_PATH\Scripts\deactivate"