Skip to content

Windows and macOS Build from Git

Karel Slaný requested to merge build-from-git into develop

Build packages from Git.

Addresses #469 (closed). Closes #469 (closed).

The building procedure resembles the OBS building procedure where a source archive must be created before building actual packages.

Added the -c option to the script build_git_archive.sh. This can be used to generate source archive from a specific commit. It behaves similarly to the -b option.

Added the -v option to scripts build_macos_dmgs.sh and build_windows_bundle.sh.

> ./scripts/build_git_archive.sh -c 90bd2fb92783468f19852140d0080cc2273fa385
Building archive version '4.15.1' from commit '90bd2fb92783468f19852140d0080cc2273fa385'.
Updating '/home/karel/git_repos/datovka/tmp.SRcmNlLy/datovka-4.15.1.9999.20200716.140039.90bd2fb92783468f/locale/datovka_en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 1756 untranslated source text(s)
Updating '/home/karel/git_repos/datovka/tmp.SRcmNlLy/datovka-4.15.1.9999.20200716.140039.90bd2fb92783468f/locale/datovka_cs.qm'...
    Generated 1756 translation(s) (1756 finished and 0 unfinished)
Checksum comparison OK.
File size of 'datovka-4.15.1.9999.20200716.140039.90bd2fb92783468f.tar.xz.sha256' OK.
datovka-4.15.1.9999.20200716.140039.90bd2fb92783468f.tar.xz

Once the source archive is available use the -v parameter to pass the package version (here it is 4.15.1.9999.20200716.140039.90bd2fb92783468f) to build package bundles:

> QT_VER="5.15.0" ./scripts/build_macos_dmgs.sh --x86_64 --shared -s 10.15 -v 4.15.1.9999.20200716.140039.90bd2fb92783468f -d
> QT_VER=5.7.1 ./scripts/build_macos_dmgs.sh -s 10.12 --i386 --shared -v 4.15.1.9999.20200716.140039.90bd2fb92783468f -d
> ./scripts/build_windows_bundle.sh -v 4.15.1.9999.20200716.140039.90bd2fb92783468f -p
> ./scripts/build_windows_bundle.sh -v 4.15.1.9999.20200716.140039.90bd2fb92783468f -p --portable-data

Windows packages built from git cannot be built from sources preceding this branch. This is because the building procedure has been extended and the extensions are not compatible with older sources.

Edited by Karel Slaný

Merge request reports