open-story-teller/story-editor
2024-01-15 11:56:07 +01:00
..
assets New properties window (moved node parameters to this window) 2023-12-16 23:48:50 +01:00
cmake Add Dockerfile + add cross build for WIn32 + Add create node 2023-12-26 17:13:53 +01:00
fonts renamed directory 2023-12-13 13:47:40 +01:00
libs better event, better audio, add QOI to emulator, emulator is executed 2023-12-23 14:33:05 +01:00
scripts renamed directory 2023-12-13 13:47:40 +01:00
src (WIP) Library Manager 2024-01-15 11:56:07 +01:00
CMakeLists.txt (WIP) Library Manager 2024-01-15 11:56:07 +01:00
Dockerfile Add Dockerfile + add cross build for WIn32 + Add create node 2023-12-26 17:13:53 +01:00
icon.rc Build binary, code display, errors management 2023-12-21 22:08:09 +01:00
LICENSE Add Dockerfile + add cross build for WIn32 + Add create node 2023-12-26 17:13:53 +01:00
nsis-installer.nsi Build binary, code display, errors management 2023-12-21 22:08:09 +01:00
README.md Add Dockerfile + add cross build for WIn32 + Add create node 2023-12-26 17:13:53 +01:00
story-editor-logo.ico Build binary, code display, errors management 2023-12-21 22:08:09 +01:00
story-editor-logo.png Build binary, code display, errors management 2023-12-21 22:08:09 +01:00
story-editor.desktop Build binary, code display, errors management 2023-12-21 22:08:09 +01:00

Story Editor

How to generate a Windows executable and setup executable on Ubuntu

All the commands listed here are invoked from this story-editor root directory. Make sure to have Docker installed:

sudo apt install docker.io

Build the Docker image that contains all the necessary development tools:

docker build -t cpp-dev .

Run it:

docker run -it -v $(pwd)/..:/workspace cpp-dev

Make sure to use the POSIX version of MinGW:

update-alternatives --config x86_64-w64-mingw32-g++


  Selection    Path                                   Priority   Status
------------------------------------------------------------
  0            /usr/bin/x86_64-w64-mingw32-g++-win32   60        auto mode
* 1            /usr/bin/x86_64-w64-mingw32-g++-posix   30        manual mode
  2            /usr/bin/x86_64-w64-mingw32-g++-win32   60        manual mode


update-alternatives --config x86_64-w64-mingw32-gcc

  Selection    Path                                   Priority   Status
------------------------------------------------------------
  0            /usr/bin/x86_64-w64-mingw32-gcc-win32   60        auto mode
* 1            /usr/bin/x86_64-w64-mingw32-gcc-posix   30        manual mode
  2            /usr/bin/x86_64-w64-mingw32-gcc-win32   60        manual mode

Cross build, first generate the Makefile:

git config --global http.sslverify false # avoid error during clone
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/mingw-w64-x86_64.cmake ..

Then build the executable and then the installer:

make -j4
make package