Commit Graph

313 Commits

Author SHA1 Message Date
Charlie Fenton 5d9952b403 Mac Manager & client: check Primary Group of users boinc_master, boinc_project; refuse to run if wrong
Mac Installer: always set Primary Group of users boinc_master, boinc_project
2024-01-26 01:42:34 -08:00
Charlie Fenton b025bb8ed1 Continue implementing Dark Mode support on Mac 2023-06-16 07:26:27 -07:00
Charlie Fenton 4969e3812f Mac: Support Dark Mode in Advanced View 2023-06-12 05:28:18 -07:00
Vitalii Koshura 44742026e2
Remove trailing whitespaces. Add CI script to verify in on every commit
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-05-05 20:08:17 +02:00
scribblemaniac 4668590c0b
Add CFBundleShortVersionString to macOS app plist files
Also simplify SetVersion's FixInfoPlistFile(char*) so it just
replaces instances of %VERSION% in the plist template files.
2023-04-27 19:40:08 -06:00
Charlie Fenton 1b347b68d5 Mac: Fix permission errors when running client as a daemon / system service 2023-01-14 01:55:05 -08:00
Charlie Fenton aecfe8ed15 Mac: Fix "Show graphics" from Manager for MacOS 13 2022-11-08 05:49:46 -08:00
Charlie Fenton 8ff6eee9d8 Fix Xcode 13 (Apple clang version 13.1.6) compiler warnings in Mac-specific source files 2022-04-06 01:26:49 -07:00
barton26 9e5ff22dfd
Merge branch 'BOINC:master' into spelling 2021-10-11 03:55:52 -04:00
barton26 1a19a3811f ClientGUI typos 2021-10-06 14:42:17 -04:00
Charlie Fenton 83afef6cc2 Mac: changes for wxWidgets 3.1.5 that affect only macintosh-specific code 2021-09-30 23:47:09 -07:00
Charlie Fenton c04357bc19 Mac: Fix build errors when building BOINC with wxWidgets 3.1.5 2021-09-30 23:36:32 -07:00
Charlie Fenton afde389dd9 Mac: update comments 2021-06-19 01:29:48 -07:00
Charlie Fenton 7710c0fe6f Mac: fix compile errors caused by upgrade to C++11 2021-03-31 03:42:25 -07:00
Charlie Fenton 1bb24bef96 Mac: Fix high CPU use by Simple View when run on MacOS 10.14 and later 2021-02-12 02:49:34 -08:00
Charlie Fenton be82b2e299 Mac: Fix command-line (stand-alone) version for newer MacOS versions.
Code-sign command-line executables, add info.plist file  with identifier to boinccmd, package as DMG instead of Zip so Apple will "notarize" it.
Set minimum MacOS version to OS 10.9 to eliminate most warnings from Xcode version 12.2.
Fix a problem running BOINC screensaver on MacOS 11 Big Sur when built with Xcode version earlier than Xcode 11.
2020-11-23 04:43:14 -08:00
Charlie Fenton f451430bab Update copyright dates in source files I recently modified 2020-08-26 01:10:14 -07:00
Charlie Fenton 58096ce597 Mac: Automatically build Universal x86_64 / arm64 binaries on Xcode versions that support building both architectures, x86_64-only binaries on Xcode versions that support only x86_64 and arm64-only binaries on Xcode versions that support only arm64.
CAUTION #1: I don't have arm64 macintosh hardware so this has been tested only on an x86_64 system.
CAUTION #2: This was developed on MacOS 11.0 beta 3 and Xcode 12.0 beta 2, not final release builds
CAUTION #3: At this time OpenSSL does not yet provide a way to build for MacOS with arm64 architecture, so I implemented a temporary workaround, which may or may not work properly on arm64 Macs.
2020-08-01 23:41:58 -07:00
Vitalii Koshura 65c7ef368e
Fix Mac build. Additional clean-up
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2020-07-14 13:56:26 +02:00
Oliver Behnke 92db9b7058 Update .plist files unconditionally
* Don't check version string, always update
* Less efficient but allows template updates without version changes
* Fixes #3486
2020-03-25 13:27:08 +01:00
Brian Clinkenbeard f5494a21bb
retina display support 2020-02-26 14:44:23 -08:00
Charlie Fenton d77904076e Mac: replace unreliable getlogin() calls with getenv("USER") 2019-12-20 03:59:13 -08:00
lfield 18aa95e084
Merge pull request #2786 from Peppernrino/image-file-compression
Image File Compression
2019-04-12 10:27:35 +02:00
Charlie Fenton e33f384329 Mac: Prevent OS X Mojave from trying to display BOINC Manager in Dark Mode, since BOINC does not yet support Dark Mode. 2019-02-01 04:54:39 -08:00
Peppernrino 95070c01a3 Image File Compression
Ran a series of lossless compression algorithms to make the images smaller. Total reduction of ~13MB.
2018-10-29 16:27:45 -06:00
Charlie Fenton 7ea4a81865 Mac: Consolidate branding strings in one source file and one header file shared among all files which use them; add checks for missing branding strings. 2018-07-11 03:59:34 -07:00
Jonathan Armstrong c98ee539e5 Code changes needed to add the wcg brand for the mac manager,screen saver,installer 2018-05-23 10:10:02 -05:00
Juha Sointusalo fb16e55293 client: show build not OS platform in messages
The client shows what kind of operating system it has detected in startup log message and elsewhere. This is confusing and not helping in troubleshooting when people expect these messages to describe the client itself.

Change the messages to use client's build platform instead.

Startup log message, output of --version and user agent string should be safe to change without breaking anything. The client still uses OS platform in various places but changing these would break stuff:

- Scheduler request XML. Scheduler expects scheduler_request.platform_name to be OS primary platform.
- client_state.xml. Client writes OS primary platform and alt platforms separately to client_state.xml. The client reads primary platform only to see if it has changed. The client doesn't read alt platforms but some other program might and depends on the platforms being as they are now. Not changing this means the client won't be able to detect when its own platform has changed. OS platform changes are still detected.
- get_state GUI RPC. The client writes primary platform to client_state.platform_name and all platforms, including primary, to client_state.platform. BOINC Manager only reads client_state.platform. As such, client_state.platform_name could be changed to client's build platform but some 3rd party manager might depend on it being OS primary platform.
- time_stats_log. The client writes platform info there. Unclear who uses that information.

Closes #2386.
2018-03-30 11:23:11 +03:00
Juha Sointusalo 6e2204c082 build: check for per-thread locale support
Allows fixing and cleaning up per-thread locale support in Manager and
libboinc.

locale.h and xlocale.h were checked for libboinc_graphics. Move
xlocale.h check to correct place and remove locale.h check. locale.h has
been part of C standard library since C89.

The support for per-thread locales cannot be reliably inferred from the
existence of different headers. Some systems declare uselocale() in
locale.h, others in xlocale.h and xlocale.h is no longer included in GNU
libc. Instead explicitly check for uselocale() and
_configthreadlocale().

Add uselocale() check result to Mac config.h so that the #ifdef mazes
can be simplified.

Also correct quoting in AC_CHECK_FUNCS and AC_CHECK_HEADERS calls.
2018-03-28 16:07:54 +03:00
Charlie Fenton b6e4995e7c Manager: Fixes to allow building 64-bit application on Macintosh. 2017-10-20 18:31:49 +02:00
Charlie Fenton ed9737215b Manager: Fixes to allow building 64-bit application on Macintosh. 2017-10-20 18:27:29 +02:00
Charlie Fenton 0106635756 Manager: Fixes to allow building 64-bit application on Macintosh. 2017-10-20 18:27:29 +02:00
Charlie Fenton 0a5381789d Manager: Fixes to allow building 64-bit application on Macintosh. 2017-10-20 18:27:29 +02:00
Charlie Fenton 5d12d626c2 MGR: Mac: finish replacing all Mac APIs deprecated in OS 10.12, except in MacAccessibility.mm as explained in commit 75179d8, but replace one API in MacAccessibility.mm that was deprecated in OS 10.6. 2017-03-07 05:58:34 -08:00
Charlie Fenton 75179d8ca1 Mac replace all Mac APIs deprecated in OS 10.10, except in MacAccessibility.mm. Updating the accessibility support will require a complete rewrite to use Apple's new NSAccessibility APIs, which are not available on systems prior to OS 10.10, while retaining the current code for use with older versions of OS X. This will require far more time and effort than I can spend at this time.
Note also that Apple has deprecated the UNIX standard call system(const char *) as ofd OS 10.10 and says to use posix_spawn() calls instead. I have added a macro to the precompiled header MacGUI.pch for the Manager builds that converts the calls automatically, but have not been able to do so for the other BOINC modules. If future code in the client, libraries, etc. calls system(), this will have to be handled on a case by case basis, as I have done in boinc_rename_aux() in lib/filesys.cpp and CLIENT_STATE::write_state_file() in client/cs_statefile.cpp.
2017-03-03 06:05:09 -08:00
Charlie Fenton 451b0296ba MGR: Mac: use a macro in Mac Manager precompiled header to substitute posix_spawn() calls for all system() calls, since system() is deprecated in Mac OS 10.10 and Apple says to use posix_spawn() instead. 2017-03-01 04:59:17 -08:00
Charlie Fenton d6ff95d1ec Mac installer & uninstaller: replace all deprecated Mac APIs as of OS 10.12 2017-01-06 01:53:47 -08:00
Charlie Fenton d348e46144 MGR: Mac: continue replacing deprecated Mac APIs 2016-12-16 04:30:39 -08:00
Charlie Fenton e0c3d65705 MGR: Mac: continue replacing deprecated Mac APIs
All Mac APIs deprecated through OS 10.6 have now been replaced
2016-12-07 07:58:43 -08:00
Charlie Fenton c314bf23dd MGR: Mac: begin replacing deprecated Mac APIs 2016-12-02 04:08:43 -08:00
Charlie Fenton 775b12ad84 MGR: Fix a couple of small bugs in selectively hidden list columns. 2014-12-11 06:47:51 -08:00
Charlie Fenton a14253b069 MGR: Fix localization of menu item labels in BOINC Manager menu on Mac for wxWidgets 3.0; restore use of mac-specific UTF-8 ellipsis character so as not to invalidate old localizations of "Preferences..." menu item. 2014-09-04 20:48:27 -07:00
Rom Walton 85ec190356 MGR: Remove non-ASCII Ellipse. I'm not sure the code chunk is even used anymore. 2014-09-03 12:52:32 -04:00
Charlie Fenton 9ca8330aae Mac: update for compatibility (fix compile breaks) with Apple LLVM 5.0 compiler under Xcode 5. 2014-08-11 04:09:12 -07:00
Charlie Fenton aba26d3564 Mac: Use the current date when building BOINC Client and Manager to automatically set the copyright year which will be shown in Mac's Get Info display for this build. 2014-06-16 03:02:04 -07:00
Charlie Fenton a93cc30e59 Mac: Update version string to 2014 2014-06-14 03:31:58 -07:00
Charlie Fenton 37ec67de46 MGR: Fix cursor adjustment when moving mouse over wxListCtrl header column separators in Event Log. 2014-06-11 02:19:42 -07:00
Charlie Fenton 2f9f44aacf MGR: One more efficiency tweak to my previous commit dcc0afa 2014-06-10 05:34:52 -07:00
Charlie Fenton dcc0afaaa0 MGR: eliminate almost all overhead from my commit a8cc13f unless assistive software is in use 2014-06-10 04:40:33 -07:00
Charlie Fenton 6aab68fdc9 MGR: optimize my changes of commit a8cc13f for better efficiency 2014-06-10 03:55:16 -07:00