diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6c1dd2c..0d4e17b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ on: tags: - '*' branches: - - 'macos-appbundle' + - 'macos-docs-build' jobs: build: @@ -15,6 +15,12 @@ jobs: include: - os: macos-12 name: macos + qt_ver: 5 + qt_host: mac + qt_version: '5.15.2' + qt_modules: '' + qt_tools: '' + runs-on: ${{ matrix.os }} steps: @@ -33,12 +39,37 @@ jobs: ver_novelwriter=`awk '/^__version__/{print substr($NF,2,length($NF)-2)}' novelwriter/__init__.py` echo "VERSION=$ver_novelwriter" >> $GITHUB_ENV echo "VERSION_SHORT=$ver_short" >> $GITHUB_ENV + + - name: Install Qt (Linux) + if: runner.os == 'Linux' && matrix.qt_ver != 6 + run: | + sudo apt-get -y install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5core5a libqt5network5 libqt5gui5 + + - name: Install Qt (macOS, AppImage & Windows MSVC) + if: runner.os == 'Linux' && matrix.qt_ver == 6 || runner.os == 'macOS' || (runner.os == 'Windows' && matrix.msystem == '') + uses: jurplel/install-qt-action@v3 + with: + version: ${{ matrix.qt_version }} + host: ${{ matrix.qt_host }} + target: 'desktop' + arch: ${{ matrix.qt_arch }} + modules: ${{ matrix.qt_modules }} + tools: ${{ matrix.qt_tools }} + cache: true + + - name: Setup TeX Live + uses: teatimeguest/setup-texlive-action@v2 + with: + packages: >- + scheme-basic + collection-latexextra + latexmk + tex-gyre - name: Install Dependencies (macOS) if: runner.os == 'macOS' run: | - brew update - brew install create-dmg + pip3 install sphinx ## # BUILD @@ -53,16 +84,16 @@ jobs: # UPLOAD BUILDS ## - - name: Upload binary zip (macOS) - if: runner.os == 'macOS' - uses: actions/upload-artifact@v3 - with: - name: novelWriter-${{ matrix.name }}-${{ env.VERSION }}.app.zip - path: novelWriter.app.zip + # - name: Upload binary zip (macOS) + # if: runner.os == 'macOS' + # uses: actions/upload-artifact@v3 + # with: + # name: novelWriter-${{ matrix.name }}-${{ env.VERSION }}.app.zip + # path: novelWriter.app.zip - - name: Upload dmg (macOS) - if: runner.os == 'macOS' - uses: actions/upload-artifact@v3 - with: - name: novelWriter-${{ matrix.name }}-${{ env.VERSION }}.dmg - path: novelWriter-${{ env.VERSION }}.dmg + # - name: Upload dmg (macOS) + # if: runner.os == 'macOS' + # uses: actions/upload-artifact@v3 + # with: + # name: novelWriter-${{ matrix.name }}-${{ env.VERSION }}.dmg + # path: novelWriter-${{ env.VERSION }}.dmg diff --git a/macos/build.sh b/macos/build.sh index 79acc276..4faa875e 100755 --- a/macos/build.sh +++ b/macos/build.sh @@ -25,6 +25,13 @@ OLD_CWD="$(pwd)" VERSION="$(awk '/^__version__/{print substr($NF,2,length($NF)-2)}' $SCRIPT_DIR/../novelwriter/__init__.py)" +pushd "$SCRIPT_DIR/../" || exit 1 + +python3 setup.py manual qtlrelease sample + +ls -lah . + +popd || exit 1 pushd "$BUILD_DIR"/ || exit 1 @@ -115,8 +122,6 @@ popd || exit 1 echo "Packageing App ..." - - # generate .dmg brew install create-dmg