4988 Commits

Author SHA1 Message Date
Greg Neagle
5bf7c04eca Merge remote-tracking branch 'refs/remotes/origin/main' 2026-01-27 07:11:30 -08:00
Greg Neagle
2328a906e8 Move a preference check to a higher-level function v7.0.7 2026-01-21 18:46:16 -08:00
Greg Neagle
15ce43c4c0 Bump CLI tools version for future release 2026-01-21 17:32:28 -08:00
Greg Neagle
e2cc41a7ca If configured to install Apple Sotware Updates, don't show Major OS Upgrades unless AppleSoftwareUpdatesIncludeMajorOSUpdates preference is True. Match behavior of Munki 6. 2026-01-21 17:31:00 -08:00
Greg Neagle
68c3e5f9b0 Update Contributor License Agreement link and instructions
Updated the link to the Contributor License Agreement and added instructions for selecting 'munki' in the PDF.
2026-01-21 10:27:00 -08:00
Greg Neagle
d2adff8cd1 Update needed source files for installhelper v7.0.6 2026-01-20 16:44:11 -08:00
Greg Neagle
a7f9d3886b Make sure log directory exists before attempting to create a missing log file. Addresses an issue with installhelper logging on a new install 2026-01-19 12:17:49 -08:00
Greg Neagle
a74da8f5ec managedsoftwareupdate: when deciding whether to skip notification, treat a consoleUser of '' the same as a consoleUser of 'loginwindow' 2026-01-19 12:00:17 -08:00
Greg Neagle
997c860510 installhelper: when checking if we're at the loginwindow, accept both 'loginwindow'
and '' as valid indicators
2026-01-19 11:54:57 -08:00
Greg Neagle
572f2cf7a5 Add a test for a function in shared/updatecheck/download.swift 2026-01-18 17:45:47 -08:00
Greg Neagle
6be968cd52 When we don't have an expected filesize and are just reporting bytes received, don't spam the logs or terminal output. Instead display bytes received info much like we do percent done info. 2026-01-16 10:59:44 -08:00
Greg Neagle
cebff54903 Add more tests for fileUtils 2026-01-13 11:19:22 -08:00
Greg Neagle
81ff3b3f5b Restructure pathIsDirectory tests 2026-01-13 10:34:46 -08:00
Greg Neagle
14f1e09aea findIconForApp(appPath) now works as expected if appPath is a symlink to an application bundle 2026-01-13 09:42:03 -08:00
Greg Neagle
f062bdbcd5 Add more tests for pathIsDirectory 2026-01-13 09:40:40 -08:00
Greg Neagle
9bebe27cac pathIsDirectory now properly handles symlinks when the content of the symlink is a relative path 2026-01-13 09:40:06 -08:00
Greg Neagle
5f37fdb826 When looking for icon file name in app Info.plist, prefer CFBundleIconFile to CFBundleIconName. Addresses #1301 2026-01-12 19:55:55 -08:00
Greg Neagle
6f3d4025dd Add tests for timeouts for runCliAsync 2026-01-11 08:27:08 -08:00
Greg Neagle
5772c38b66 cliutils: Some significant changes to the various functions to run other processes
- Add a timeout when waiting for the stdout and stderr pipes to clear after the process has terminated. Prevents an infinite loop that might happen if other things go wrong.
- Explicitly close the filehandles for stdout and stderr's pipes when we're done so that the pipes get cleaned up. Prior to this, pipes stuck around, and if there were a lot of attempts to run subprocesses (building the receipt database could trigger hundreds or over a thousand such calls), the number of pipes could exceed the number of open files, leading to very bad behavior.
- More careful processing of stdout and stderr data: previously it was possible for the attempt to decode a string from the data to fail because the end of the data only had partial bytes for a non-ASCII character. This failure was not handled and could result in a run-time crash. More careful handling prevents this error and eliminates a force-unwrap, which was always dangerous.
2026-01-09 16:42:04 -08:00
Greg Neagle
cf708d87fd More efficient methods to get installed package information for processing removals. Speeds up generating the receipt database. 2026-01-09 15:59:53 -08:00
Greg Neagle
85c79b8ca0 Bump version for future release 2026-01-06 17:09:36 -08:00
Greg Neagle
4c79aef026 Update another copyright message 2026-01-06 17:08:42 -08:00
Greg Neagle
46e630ccf9 Remove debugging print statement :-( v7.0.5 2026-01-05 16:43:34 -08:00
Greg Neagle
88b200ac11 Standardize created/copyright comment formatting 2026-01-05 16:26:21 -08:00
Greg Neagle
a7f56f87b3 Fix Managed Software Center version 2026-01-05 16:16:19 -08:00
Greg Neagle
6323f639c4 Add more tests for functions in shared/updatecheck/analyze.swift 2026-01-04 18:59:27 -08:00
Greg Neagle
227be3b520 swiftformat fix 2026-01-04 18:57:12 -08:00
Greg Neagle
fc96e7f8d3 Update licensing info 2026-01-01 12:32:17 -08:00
Greg Neagle
18e8cafee9 Update copyright info 2026-01-01 12:24:05 -08:00
Greg Neagle
2bab0816c8 Update copyright info 2026-01-01 12:15:40 -08:00
Greg Neagle
3d2f05a9d0 Update copyright info 2026-01-01 12:05:54 -08:00
Greg Neagle
73e7e45b2d Update copyright info 2026-01-01 12:03:58 -08:00
Greg Neagle
0caf882fae Update copyright info 2026-01-01 12:00:56 -08:00
Greg Neagle
bbb95e58e8 Update copyright info 2026-01-01 11:58:40 -08:00
Greg Neagle
9af3d0a8b8 Remove a long-abandoned source file 2026-01-01 11:58:06 -08:00
Greg Neagle
ae952ac856 Update version for future release; update copyright dates 2026-01-01 11:35:26 -08:00
Greg Neagle
8b0d875c74 On app launch, display the page of the first sidebar item. Addresses #1299 2026-01-01 11:34:42 -08:00
Greg Neagle
00d12c7e79 makepkginfo/munkiimport: Add '--uninstallpkg' as another alias for '--uninstalleritem'. Addresses #1300 2025-12-30 10:05:44 -08:00
Greg Neagle
11db018bb7 Update target membership for shared/utils/stringutils.swift so that all cli tools will actually build 2025-12-30 10:03:44 -08:00
Greg Neagle
96c5a1bb63 Don't log errors and warnings to Apple Unified Logging twice; add logging level to messages logged to Apple Unified Logging 2025-12-26 21:18:50 -08:00
Greg Neagle
a612055a67 Fix issue with warning messages in the main log where they are prepended with 'WARNING: WARNING: ' 2025-12-26 21:15:39 -08:00
Greg Neagle
db904b7eb3 More tweaks to output and logging when runScript has an error when running a script 2025-12-26 09:56:06 -08:00
Greg Neagle
8fe7105e31 Fix issue with error messages in the main log where they are prepended with 'ERROR: ERROR: ' 2025-12-26 09:21:22 -08:00
Greg Neagle
818d7b9113 Simplify implementation of ScriptRunner class and make runScript's output in case of error more specific 2025-12-26 09:01:11 -08:00
Greg Neagle
69c78cdc19 Restructure plistutilsTests 2025-12-25 09:19:40 -08:00
Greg Neagle
e49f07482a Restructure fetchTests 2025-12-25 09:14:27 -08:00
Greg Neagle
17017b863f Restructure scriptutilsTests 2025-12-25 09:11:27 -08:00
Greg Neagle
78b2941576 Restructure cliutilsTests 2025-12-25 09:04:40 -08:00
Greg Neagle
db40de9605 Some restructuring of urlsTests 2025-12-25 08:59:06 -08:00
Greg Neagle
5d4091cf00 Add tests for comparing versions in plists 2025-12-25 08:58:21 -08:00