Skip to content

Commit

Permalink
Mac: Build universal binary (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
vogelsgesang authored Jul 28, 2022
1 parent 6597803 commit a843732
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export PATH="~/Qt/6.4.0/macos/bin":$PATH
mkdir build-release && cd build-release

# Build
qmake -spec macx-clang CONFIG+=x86_64 -Wall ../src/tableau-log-viewer.pro
qmake -spec macx-clang -Wall ../src/tableau-log-viewer.pro
make

# Make a self-contained app
Expand Down Expand Up @@ -99,7 +99,7 @@ git clone https://github.com/tableau/tableau-log-viewer.git
# Make build directory and run QMake
mkdir build-release
cd build-release
C:\Qt\6.4.0\msvc2019_64\bin\qmake -spec win32-msvc CONFIG+=x86_64 -Wall ../src/tableau-log-viewer.pro
C:\Qt\6.4.0\msvc2019_64\bin\qmake -spec win32-msvc -Wall ../src/tableau-log-viewer.pro
# Build it
nmake
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ build_script:
- '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64'
- mkdir %BUILDDIR%
- cd /d %BUILDDIR%
- C:\Qt\6.3.0\msvc2019_64\bin\qmake -spec win32-msvc CONFIG+=x86_64 -Wall ..\src\tableau-log-viewer.pro
- C:\Qt\6.3.0\msvc2019_64\bin\qmake -spec win32-msvc -Wall ..\src\tableau-log-viewer.pro
- nmake
3 changes: 3 additions & 0 deletions src/tableau-log-viewer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ win32:RC_ICONS += ../resources/images/tlv.ico
ICON = ../resources/images/tlv.icns

CONFIG += c++17
CONFIG += x86_64

QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64

VERSION = 1.2.2.0
DEFINES += APP_VERSION=\\\"$$VERSION\\\"

0 comments on commit a843732

Please sign in to comment.