Browse Source

Merge branch 'exec' of athos/baangt into master

Bernhard Buhl 4 years ago
parent
commit
8220ef0051
5 changed files with 71 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 24 0
      execMac.sh
  3. 24 0
      execUbuntu.sh
  4. 20 0
      execWindows.bat
  5. 2 1
      requirements.txt

+ 1 - 0
.gitignore

@@ -12,6 +12,7 @@ __pycache__
 *.pyc
 *.db
 *.log
+*.pyo
 venv
 application.sublime-workspace
 /.project

+ 24 - 0
execMac.sh

@@ -0,0 +1,24 @@
+#!/bin/sh
+
+pyinstaller --clean --onedir \
+	--distpath exec_mac/ \
+	--workpath exec_mac/build \
+	--specpath exec_mac \
+	--name baangt \
+	--add-data '../baangt/ressources/baangtLogo2020Small.png:ressources' \
+	--add-data '../examples/:examples/.' \
+	--add-data '../browsermob-proxy:browsermob-proxy/.' \
+	--noconfirm \
+	baangt.py
+
+# Remove Screenshots and Logs
+rm -r exec_mac/baangt/examples/Screenshots
+rm -r exec_mac/baangt/examples/Logs
+
+# Create ZIP-file
+mkdir executables
+rm executables/baangt_mac_executable.zip
+zip -r -X executables/baangt_mac_executable.zip exec_mac/baangt/
+
+# Remove Build-Folder
+rm -r exec_mac

+ 24 - 0
execUbuntu.sh

@@ -0,0 +1,24 @@
+#!/bin/sh
+
+pyinstaller --clean --onedir --noconfirm \
+	--distpath ubuntu/ \
+	--workpath ubuntu/build \
+	--specpath ubuntu \
+	--name baangt \
+	--add-data '../baangt/ressources/baangtLogo2020Small.png:ressources' \
+	--add-data '../examples/:examples/.' \
+	--add-data '../browsermob-proxy:browsermob-proxy/.' \
+	--noconfirm \
+	baangt.py
+
+# Remove Screenshots and Logs
+rm -r ubuntu/baangt/examples/Screenshots
+rm -r ubuntu/baangt/examples/Logs
+
+# Create ZIP-file
+mkdir executables
+rm executables/baangt_ubuntu_executable.tar.gz
+tar -zcvf executables/baangt_ubuntu_executable.tar.gz ubuntu/baangt/
+
+# Remove build folder
+rm -r ubuntu

+ 20 - 0
execWindows.bat

@@ -0,0 +1,20 @@
+
+pyinstaller --clean --onedir --noconfirm ^
+	--distpath windows/ ^
+	--workpath windows/build ^
+	--specpath windows ^
+	--name baangt ^
+	--add-data "../baangt/ressources/baangtLogo2020Small.png;ressources" ^
+	--add-data '../examples/:examples/.' \
+	--add-data '../browsermob-proxy:browsermob-proxy/.' \
+	--noconfirm \
+	baangt.py
+
+rem Remove Screenshots and Logs
+rm -r windows/baangt/examples/Screenshots
+rm -r windows/baangt/examples/Logs
+
+rem Create ZIP-file
+mkdir executables
+rm executables/baangt_windows_executable.zip
+powershell Compress-Archive windows/. executables/baangt_windows_executable.zip

+ 2 - 1
requirements.txt

@@ -1,9 +1,10 @@
+openpyxl==2.3.5
 pytest
 pydispatch
 alabaster==0.7.12
 Babel==2.8.0
 beautifulsoup4==4.8.2
-bleach==3.1.1
+bleach==3.1.2
 browsermob-proxy==0.8.0
 certifi==2019.11.28
 chardet==3.0.4