Commit Graph

7 Commits

Author SHA1 Message Date
Greg Neagle
b19e9e748e Move 'internal' tools to /usr/local/munki/libexec 2025-09-11 14:21:13 -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
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
053e3eac9e Update pkg pre and postinstall scripts to use os version comparision compatible with Big Sur 2021-01-19 09:46:18 -08:00
Greg Neagle
03c822ece2 Move pkg scripts into code/tools/pkgresources 2020-08-22 15:33:38 -07:00