Browse Source

Windows build instructions updated

Bernhard 4 years ago
parent
commit
ee77f7f8b4
3 changed files with 19 additions and 15 deletions
  1. 10 11
      docs/Developer.rst
  2. 8 3
      execWindows.bat
  3. 1 1
      windows/baangtSetupWindows.iss

+ 10 - 11
docs/Developer.rst

@@ -76,7 +76,9 @@ Building Executables
 ^^^^^^^^^^^^^^^^^^^^
 
 * Checkout ``https://github.com/Athos1972/baangt-executables``
-* On a Windows computer: ``execWindow.bat``
+* Checkout ``https://gogs.earthsquad.global/athos/baangt``
+* Change to /baangt directory
+* On a Windows computer: ``execWindow.bat`` (Takes about 5 Minutes)
 * Move ``/executables/baangt_windows_executable.zip`` to checked out ``baangt-executables`` ideally with this line:
 
     ``mv executables/baangt_mac_executable.zip ../baangt-executables``
@@ -92,14 +94,11 @@ Windows bundle executables:
 * Install innosetup-qsp (QuickStartPack) Version 6 from https://jrsoftware.org/isdl.php
 * Open Inno Setup
 * Use Script ``/windows/baangtSetupWindows.iss``
+* Check that the path for the LICENSE is correct on your computer (most probably it isn't!)
+* Execute the script using the "Compile"-Button (takes about 3-5 Minutes)
+* Copy the file from ``/baangt/windows/output/baangtsetup.exe`` to ``baangt-executables`` folder
+* ``git add .`` in the folder ``baangt-executables``
+* ``git commit -m <version>``
+* ``git push``
+
 
-If the Script doesn't work, it's mostly due to outdated dependencies. In this case it seems to be fastest to re-create
-the script from scratch:
-* Create new Script in Inno Setup with Wizard
-* Fill in mandatory Info (Version, ProgramName, etc.) in first screen
-* Find exe in Path baangt/dist/baangt/baangt.exe
-* Click "Add files" and select all files in the same folder (/baangt/dist/baangt)
-* Click "Add Folder" for each folder in /baangt/dist/baangt
-    * When asked, whether sub-folders should be included click on "Yes"
-* Save the Script in ``/windows/baangtSetupWindows.iss``
-* Execute Inno Setup as described above

+ 8 - 3
execWindows.bat

@@ -1,11 +1,16 @@
+rm -r dist
+rm -r build
+rm -r executables
 
 pyinstaller --noconfirm windows/baangtWindows.spec
 
 rem Remove Screenshots and Logs ^
 rm -r dist/baangt/examples/Screenshots
 rm -r dist/baangt/examples/Logs
+rm -r dist/baangt/examples/1testoutput
+rm -r dist/baangt/Logs
 
 rem Create ZIP-file
-rem mkdir executables
-rem rm executables/baangt_windows_executable.zip
-rem powershell Compress-Archive dist/baangt/. executables/baangt_windows_executable.zip
+mkdir executables
+rm executables/baangt_windows_executable.zip
+powershell Compress-Archive dist/baangt/. executables/baangt_windows_executable.zip

+ 1 - 1
windows/baangtSetupWindows.iss

@@ -16,7 +16,7 @@ AppUpdatesURL=https://baangt.org
 DefaultDirName={pf}\baangt
 DefaultGroupName=baangt
 AllowNoIcons=yes
-LicenseFile=C:\Users\Akash\PycharmProjects\baangt\LICENSE
+LicenseFile=C:\Users\buhl\git\baangt\LICENSE
 OutputBaseFilename=baangtsetup
 Compression=lzma
 SolidCompression=yes