To create Linux and Windows builds, you need a Docker installation that can run Linux docker images. Whether you run Docker on Linux, Windows or macOS doesn't matter. All that's needed is that it can run Linux docker images.
To create macOS builds, you can't use Docker, and you need macOS with XCode installed, and it might not work if your system is too different from mine, because Apple are a bunch of elitist hipsters who despise humans since their parents didn't love them enough and now they hate everyone and want to take revenge on innocent people who are not to blame for any of this.
The directory where you downloaded and extracted the Hugor source code will be referred to as HUGOR_SRC_DIR.
Create 64-bit Linux AppImage
Code: Select all
docker run --rm -it -v "HUGOR_SRC_DIR":/hugor/src -w /hugor/build realnc/hugor-build:linux-x64 bash -c 'qmake ../src && make appimage && mv *.AppImage ../src'
Create 32-bit Linux AppImage
Code: Select all
docker run --rm -it -v "HUGOR_SRC_DIR":/hugor/src -w /hugor/build realnc/hugor-build:linux-x86 bash -c 'qmake ../src && make appimage && mv *.AppImage ../src'
Create Windows Build
Code: Select all
docker run --rm -it -v "HUGOR_SRC_DIR":/hugor/src -w /hugor/build realnc/hugor-build:mxe-x86 bash -c 'i686-w64-mingw32.static-qmake-qt5 ../src && make windist && mv Hugor-*.zip ../src'
Create macOS Build
Because hipsters are stuck in the 90s, none of this can really be automated and isolated like the other builds can. So instead of just running one single command to build, you instead get to enjoy the hipster experience of entering a long series of computer gibberish that will probably end up not working anyway, which is normal when dealing with things hipsters made.
You need to install XCode. 12.4 is known to work. Because XCode is the most hipster thing the hipsters ever made, a version that's too old or too new might not work.
If you have Homebrew installed, it can break the build. Move your homebrew installation out of the way first. This is how hipsters design software. You can do something like:
Code: Select all
mkdir ~/homebrew-backup
sudo mv /usr/local/* ~/homebrew-backup/
Code: Select all
sudo rm -rf /usr/local/*
sudo mv ~/homebrew-backup/* /usr/local/
Code: Select all
sudo mkdir /usr/local/bin
curl -L 'https://github.com/realnc/stuff/releases/download/stuff/zstd-macos.tar.xz' | sudo tar x -C /usr/local/bin/
Code: Select all
curl -L 'https://github.com/realnc/stuff/releases/download/stuff/homebrew-qtads-hugor.tar.zst' | zstd -d | tar x -C /Users/Shared/
Code: Select all
export HOMEBREW_NO_AUTO_UPDATE=1
Code: Select all
eval $(/Users/Shared/homebrew-qtads-hugor/bin/brew shellenv)
export PKG_CONFIG_PATH="$HOMEBREW_PREFIX/opt/readline/lib/pkgconfig"
Code: Select all
curl -L 'https://github.com/realnc/stuff/releases/download/stuff/qt-5.15-macos-static.tar.zst' | zstd -d | tar x -C ~
Code: Select all
curl -L 'https://github.com/realnc/stuff/releases/download/stuff/vlc-3.0.16-macos.tar.zst' | zstd -d | sudo tar x -C /usr/local/
Code: Select all
cd "HUGOR_SRC_DIR"/..
mkdir hugor-build
cd hugor-build
Code: Select all
~/qt-5.15/bin/qmake "HUGOR_SRC_DIR"
make macdist