aggiunto script per exe windows
This commit is contained in:
33
SPEx/scripts/SPEx.exe.spec
Normal file
33
SPEx/scripts/SPEx.exe.spec
Normal file
@@ -0,0 +1,33 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(['..\\spex\\guimain.py'],
|
||||
pathex=['./libbananasplit', './UserInterface/compiledUI', 'D:\\Emanuele\\Documenti\\VScode\\bananaSPLIT\\SPEx\\scripts'],
|
||||
binaries=[],
|
||||
datas=[('..\\.venv\\Lib\\site-packages\\text_unidecode\\data.bin', '.\\text_unidecode')],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False)
|
||||
pyz = PYZ(a.pure, a.zipped_data,
|
||||
cipher=block_cipher)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
[],
|
||||
name='SPEx.exe',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
runtime_tmpdir=None,
|
||||
console=False , icon='..\\spex\\logo.ico')
|
||||
15
SPEx/scripts/create_SPEx.bat
Normal file
15
SPEx/scripts/create_SPEx.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
echo off
|
||||
pyinstaller.exe --add-data="..\.venv\Lib\site-packages\text_unidecode\data.bin";.\text_unidecode ^
|
||||
--icon="..\spex\logo.ico" ^
|
||||
--paths ./libbananasplit --paths ./UserInterface/compiledUI ^
|
||||
--name=SPEx.exe ^
|
||||
--onefile ^
|
||||
--windowed -y ^
|
||||
..\spex\guimain.py | rem
|
||||
echo "Copio i file di configurazione..."
|
||||
robocopy /E ..\conf .\dist\conf
|
||||
echo "Sposto la cartella con l'exe"
|
||||
robocopy /E /MOVE .\dist ..\bin\
|
||||
echo "Rimuovo la cartella di build"
|
||||
rmdir /s /q .\build .\dist
|
||||
echo on
|
||||
Reference in New Issue
Block a user