From 0fc30a70ca3701e1e0beebb768f151a06edf01f0 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 29 Nov 2020 21:13:27 -0600 Subject: [PATCH] Build unified Windows installer bundles --- README.md | 2 +- appveyor.yml | 15 ++- ...generate-installers.bat => build-arch.bat} | 22 +---- scripts/generate-bundle.bat | 93 +++++++++++++++++++ wix/MoonlightSetup/Bundle.wxs | 32 +++---- wix/MoonlightSetup/MoonlightSetup.wixproj | 10 -- 6 files changed, 117 insertions(+), 57 deletions(-) rename scripts/{generate-installers.bat => build-arch.bat} (87%) create mode 100644 scripts/generate-bundle.bat diff --git a/README.md b/README.md index 54008639..99b0ee46 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ You can follow development on our [Discord server](https://moonlight-stream.org/ 2. Run `git submodule update --init --recursive` from within `moonlight-qt/` 3. Open the project in Qt Creator or build from qmake on the command line. * To build a binary for use on non-development machines, use the scripts in the `scripts` folder. - * For Windows builds, use `scripts\generate-installers.bat`. Execute this script from the root of the repository within a Qt command prompt. Ensure WiX and 7-Zip binary directories are in your `%PATH%`. + * For Windows builds, use `scripts\build-arch.bat` and `scripts\generate-bundle.bat`. Execute these scripts from the root of the repository within a Qt command prompt. Ensure WiX and 7-Zip binary directories are in your `%PATH%`. * For macOS builds, use `scripts/generate-dmg.sh`. Execute this script from the root of the repository and ensure Qt's `bin` folder is in your `$PATH`. * For Steam Link builds, run `scripts/build-steamlink-app.sh` from the root of the repository. * To build from the command line for development use, run `qmake moonlight-qt.pro` then `make debug` or `make release` diff --git a/appveyor.yml b/appveyor.yml index ab0901a1..afa20863 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,13 +5,9 @@ clone_depth: 1 environment: matrix: - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - QTDIR: C:\Qt\5.15\msvc2019_64 - ARCH: x64 + QTDIR: C:\Qt\5.15 - APPVEYOR_BUILD_WORKER_IMAGE: macOS BUILD_TARGET: macos - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - QTDIR: C:\Qt\5.15\msvc2019 - ARCH: x86 - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1604 BUILD_TARGET: steamlink - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1604 @@ -37,13 +33,16 @@ install: before_build: - 'git submodule update --init --recursive' - - cmd: 'set PATH=%PATH%;%QTDIR%\bin;%ProgramFiles(x86)%\WiX Toolset v3.11\bin' + - cmd: 'set OLDPATH=%PATH%' - cmd: 'set /p VERSION= = v6.1]]> - - - VersionNT64 - - - - NOT VersionNT64 - - - - - - - - +