1
0
Fork 0

Fix special target value for Mac App Store.

This commit is contained in:
John Preston 2020-01-23 12:49:37 +03:00
parent 67cf2a5abd
commit 94bdb64c38
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
set(DESKTOP_APP_SPECIAL_TARGET "" CACHE STRING "Use special platform target, like 'mas' for Mac App Store.")
set(DESKTOP_APP_SPECIAL_TARGET "" CACHE STRING "Use special platform target, like 'macstore' for Mac App Store.")
function(report_bad_special_target)
if (NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "")
@ -25,7 +25,7 @@ if (WIN32)
endif()
elseif (APPLE)
if (NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "osx"
AND NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "mas"
AND NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "macstore"
AND NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "mac")
report_bad_special_target()
endif()

View file

@ -27,7 +27,7 @@ option(DESKTOP_APP_USE_PACKAGED_FONTS "Use preinstalled fonts instead of bundled
if (DESKTOP_APP_SPECIAL_TARGET STREQUAL ""
OR DESKTOP_APP_SPECIAL_TARGET STREQUAL "uwp"
OR DESKTOP_APP_SPECIAL_TARGET STREQUAL "mas")
OR DESKTOP_APP_SPECIAL_TARGET STREQUAL "macstore")
set(disable_autoupdate 1)
endif()
@ -43,7 +43,7 @@ if (WIN32)
elseif (APPLE)
if (DESKTOP_APP_SPECIAL_TARGET STREQUAL "osx")
set(build_osx 1)
elseif (DESKTOP_APP_SPECIAL_TARGET STREQUAL "mas")
elseif (DESKTOP_APP_SPECIAL_TARGET STREQUAL "macstore")
set(build_macstore 1)
endif()
else()