Last active
March 29, 2020 12:08
-
-
Save kraxarn/50db28848e776fa21af4fbe910f6fe15 to your computer and use it in GitHub Desktop.
orq build script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build (burningdaylight/docker-mingw-qt5) | |
# Install go | |
sudo pacman -Sy | |
sudo pacman -S go --noconfirm | |
# Install all available Qt libs | |
sudo pacman -S mingw-w64-qt5 --needed --noconfirm | |
# Download and build main application | |
git clone https://gitlab.com/orqapp/orq | |
cd orq | |
x86_64-w64-mingw32-cmake . | |
make | |
# Direcotry for built application | |
mkdir orq | |
mv ./orq.exe ./orq/ | |
# All possibly used core dll files | |
cp /usr/i686-w64-mingw32/bin/*.dll ./orq/ | |
# Plugins copy utility | |
go get github.com/kraxarn/cpsub | |
`go env GOPATH`/bin/cpsub /usr/i686-w64-mingw32/lib/qt/plugins ./orq/ dll | |
# Install MSI Tools from AUR | |
yay -S msitools --noconfirm | |
# Get wixgen tools | |
go get github.com/kraxarn/wixgen | |
VERSION=`git rev-parse --short HEAD` | |
`go env GOPATH`/bin/wixgen --name "orq" --manufacturer "orqapp" --dir "orq" --exec "orq.exe" --out "orq-installer-$VERSION.wxs" | |
# Build installer | |
wixl -v "orq-installer-$VERSION.wxs" | |
# Create portable version (for easier linux testing) | |
cd orq/orq | |
tar zvfc "../orq-portable-$VERSION.tar.gz" . | |
# Done | |
# Installer saved as orq-installer-<build>.msi | |
# Portable saved as orq-portable-<build>.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment