Commit Graph

251 Commits

Author SHA1 Message Date
Greg Neagle
199b3babeb update make_swift_munki_pkg.sh to be able to include a component pkg with the python libraries (munkilib) 2025-04-30 15:56:11 -07:00
Greg Neagle
ba2357f550 add installhelper to list of tools that are built 2025-04-30 15:04:13 -07:00
Greg Neagle
b4b7d7f2fb update build scripts for supervisor binary 2025-04-28 13:41:05 -07:00
Greg Neagle
5dd1608031 Some build script updates 2025-04-28 10:14:15 -07:00
Greg Neagle
cc53e46c84 Rewrite autorun pkg postinstall script in sh because Pythom modules will not be available 2025-04-28 09:57:01 -07:00
Greg Neagle
8ea37eaf7b build_swift_munki.sh: more robust location of munki.xcodeproj 2025-04-27 08:30:04 -07:00
Greg Neagle
2de54138b2 Update build_swift_munki.sh to build manifestutil 2025-04-26 19:54:38 -07:00
Greg Neagle
aeacb51183 New location for build artifacts from build_swift_munki.sh 2025-04-13 16:11:57 -07:00
Greg Neagle
c666725a7d Update build_swift_munki.sh script to ensure Universal binaries are built 2025-03-30 10:37:56 -07:00
Greg Neagle
2b1fba27f9 Update build script to also build logouthelper 2025-01-07 13:27:35 -08:00
Greg Neagle
25505f868a Update build_swift_munki.sh script to build authrestartd 2025-01-06 14:38:41 -08:00
Greg Neagle
d100df9230 build_swift_munki.sh now builds with the 'Release' configuration 2025-01-04 08:10:23 -08:00
Greg Neagle
c626a2e08a Modify build_swift_munki to build all tools in a loop 2025-01-04 08:01:41 -08:00
Nate Walck
a2846f26a8 Add build script scaffold for swift munki (#1234) 2025-01-04 07:50:00 -08:00
Rob Renstrom
cc7252d0dc Update make_munki_mpkg.sh (#1223)
norestart for launchd component package
2024-07-18 10:22:51 -07:00
macmule
d746c046cb Changes made to installhelper and make_munki_pkg.sh (#1216)
* Update installhelper

• Amended the user bootout and bootstrap commands to not be ran via `launchctl asuser`

* Update MainMenu.xib

• Centered the MunkiStatus.app window icon
• Changed the icon from AppIcon to NSApplicationIcon (which then allows for changing the icon via NSWorkspace's setIcon)

* Corrections to installhelper

* Update installhelper

---------

Co-authored-by: Greg Neagle <Gregneagle@mac.com>
2024-05-02 08:04:22 -07:00
macmule
dc2725e4e7 Relocate MunkiStatus.app and Munki-notifier.app to ../Contents/Helpers/ from ../Contents/Resources/ - Munki6dev base (#1207)
* Relocate MunkiStatus.app and Munki-notifier.app to ../Contents/Helpers/ from ../Contents/Resources/

- Updated location of munki-notifier in code/apps/Managed Software Center/Managed Software Center/Controllers/MainWindowController.swift
- Added code/client/installhelper script
- Amended code/tools/make_munki_mpkg.sh with new locations for munki-notifier and MunkiStatus as well as changes required to leverage `installhelper`
- Amended code/tools/pkgresources/Scripts_app_usage/postinstall to leverage `installhelper`
- Deleted code/tools/pkgresources/Scripts_app_usage/preinstall as the actions within should be handled now by `installhelper`
- Amended code/tools/pkgresources/Scripts_launchd/postinstall to leverage `installhelper`
- Amended launchd/LaunchAgents/com.googlecode.munki.munki-notifier.plist to use the new path to munki-notifier.app
- Amended launchd/LaunchAgents/com.googlecode.munki.MunkiStatus.plist to use the new path to MunkiStatus.app

This is a resubmission of https://github.com/munki/munki/pull/1203, which needed it's base branch changing from `main` to `Munki6dev`

* Update installhelper

 - Removed CHECK_TIME global - 374fbaf922 (r1515000516)
- Remove erroneous login window comments - 374fbaf922 (r1515006835) and 374fbaf922 (r1515006962)
- Simplified IF condition - 374fbaf922 (r1515005565) this was in place incase LimitLoadToSessionType contained multiple values (as it can).

* Update installhelper

- Reverted changes made for - 374fbaf922 (r1515005565)
- Changed constant/global PASSED_ARG to local: launchd_group - https://github.com/munki/munki/pull/1207#discussion_r1515002646 and https://github.com/munki/munki/pull/1207#discussion_r1515002968

* Update installhelper

* Update installhelper

* Update installhelper

* Update installhelper

* Update make_munki_mpkg.sh

Amended so that the launchd pkg is installed by default
2024-03-26 11:04:26 -07:00
Greg Neagle
bf91a80072 Modernize launchctl syntax for launchd pkg postinstall; load authrestartd daemon 2024-03-03 19:47:56 -08:00
Greg Neagle
47992f885b Switch app_usage pkg scripts to /bin/sh from /bin/bash 2024-02-28 10:25:11 -08:00
Greg Neagle
0954498f5d Tweak what process we're looking for to identify currently logged in users 2024-02-27 11:11:30 -08:00
Greg Neagle
15de9eea80 Modernize launchctl commands in app_usage pkg pre- and postinstall scripts. (Dropping support for pre-macOS 10.10) 2024-02-27 10:11:06 -08:00
Greg Neagle
9e541a8e1a Update Python build script and packaging bits to support Python 3.12; update Python requirements 2024-02-23 11:18:58 -08:00
Greg Neagle
36769cdbbc Revert "Change all shebangs in prep for Python 3.12 (where symlinks to the Python executable are broken)"
This reverts commit fdec07b615.
2024-02-23 10:49:00 -08:00
Greg Neagle
df25ade13a Change where munki-python symlink points for compatibility with Python 3.12 framework (and possiblt Python 3.11) 2024-02-23 09:35:26 -08:00
Greg Neagle
fdec07b615 Change all shebangs in prep for Python 3.12 (where symlinks to the Python executable are broken) 2024-02-23 09:05:16 -08:00
Greg Neagle
35d24d11e9 Address minor output issue when building a Munki pkg 2023-12-05 09:37:29 -08:00
Greg Neagle
1025673bae Ensure dist pkg declares a minimum os version of 10.13 2023-11-22 12:42:31 -08:00
Greg Neagle
268171ae19 Adjust Python pkg scripts to work properly when package is installed to a volume other than the boot volume. 2023-07-05 09:02:15 -07:00
Greg Neagle
5f64d7941a Bump Python to 3.10.11. Bump PyObjC to 9.1.1. 2023-06-07 16:46:45 -07:00
Erik Gomez
6c27df4831 properly codesign all applications and python (#1174) 2023-04-05 14:26:45 -07:00
Greg Neagle
42feda2204 Bug fix for Python preinstall script 2023-03-21 09:41:34 -07:00
Greg Neagle
5671590888 Merge branch 'munkishim' into Munki6dev 2023-03-21 09:08:14 -07:00
Greg Neagle
f275bc9267 Add pre and postinstall scripts to Python component package to prevent active Python from being removed during an upgrade 2023-03-21 09:07:20 -07:00
Greg Neagle
e5eda229ae Move Python version to 3.10.10 to avoid a nasty upstream bug in 3.11.x 2023-03-21 09:06:26 -07:00
Kory Prince
9006c818e8 add munkishim signing to make_munki_mpkg.sh (#1170) 2023-03-20 15:08:04 -07:00
Greg Neagle
6b0bd81b6f Bump Python version to 3.11.2; PyObjC version to 9.0.1, etc 2023-03-15 16:56:19 -07:00
Greg Neagle
62a75d6384 Update build script to shim only managedsoftwareupdate 2023-03-13 13:13:41 -07:00
Greg Neagle
36acee5cde Update make_munki_mpkg.sh to build munkishim and build core tools with the shim in place of managedsoftwareupdate and supervisor 2023-02-10 15:22:11 -08:00
Greg Neagle
d39cb523b2 Revert to Python 3.9.13 since there is no macOS package download for 3.9.14. 2022-10-05 16:46:05 -07:00
Greg Neagle
3db57a287c Bump Python version to 3.9.14. 2022-10-05 08:14:42 -07:00
Greg Neagle
a82732dcd7 Remove standalone adminopen tool; embed it in the Python so it's not easily available for mischief 2022-08-29 20:56:11 -07:00
Greg Neagle
b6be68b1e9 Add adminopen to core pkg 2022-08-25 15:44:18 -07:00
eholtam
701f6bcbb3 Update make_munki_mpkg_from_git flags to match the changes in make_muinki_mpkg.sh. (#1144)
Authored-by: eholtam <(none)>
2022-06-16 11:56:24 -07:00
Greg Neagle
60cfd69bb7 Build a Python 3.9.13 framework instead of 3.10.x to avoid issue #1136 2022-05-20 09:00:56 -07:00
Greg Neagle
84f3c6f3fe Reduce included PyObjC modules to reduce build time, installation size, and maintenance tasks 2022-05-10 13:34:27 -07:00
Greg Neagle
8a2f4d191b update the list of PyObjC modules to be a superset of what is part of the 5.6.4 release 2022-05-04 16:08:04 -07:00
Greg Neagle
01568e15d2 Bump PyObjC version to 8.5; don't attempt to build pyobjc-framework-ScreenCaptureKit (not needed by Munki; errors on attempt) 2022-05-04 14:33:29 -07:00
Greg Neagle
878484e81b Restore restart postinstall-action for 'standalone' launchd pkg 2022-05-03 09:15:46 -07:00
Greg Neagle
bf78ccd971 Update pkg build script to build a single package that should work for both MDM-style and most non-MDM scenarios 2022-05-02 21:24:05 -07:00
Greg Neagle
876060448b Update Munki uninstall script to reflect current install 2022-05-02 21:16:16 -07:00