Skip to content

Add output dir command line argument #34

Add output dir command line argument

Add output dir command line argument #34

Workflow file for this run

name: MacOS
on: push
jobs:
buildMac:
runs-on: macOS-latest
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: setup Homebrew
shell: bash
run: |
export HOMEBREW_NO_AUTO_UPDATE=1 && export HOMEBREW_NO_INSTALL_CLEANUP=1 && brew update
HOMEBREW_VERBOSE_USING_DOTS=1 brew reinstall --verbose qt5
- name: build Laigter
shell: bash
run: |
export PATH="/usr/local/opt/qt@5/bin:$PATH"
qmake CONFIG+=release PREFIX=/usr
make -j$(nproc)
make INSTALL_ROOT=appdir install
find appdir/
mkdir -p appdir/usr/lib
macdeployqt laigter.app
wget https://raw.githubusercontent.com/arl/macdeployqtfix/master/macdeployqtfix.py && chmod a+x macdeployqtfix.py
./macdeployqtfix.py laigter.app /usr/local/Cellar/qt/*/
zip -r laigter.zip laigter.app
- name: GitHub Releases
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: laigter.zip
tag: ${{ github.ref }}