forked from rderewianko/caspersuite
-
Notifications
You must be signed in to change notification settings - Fork 1
/
brandSelfService.sh
63 lines (55 loc) · 2.08 KB
/
brandSelfService.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
#
# brandSelfService.sh
#
# Copy pre-made graphic files inside
# of Self Service.app for branding purposes
#
# HOW TO:
# 1: Download Self Service from your JSS (SelfService.tar.gz)
#
# 2: Place this script and SelfService.tar.gz in a folder
# chmod +x this script
# Place assets (see Files Needed below) in a subfolder named icons
#
# 3: Run ./brandSelfService.sh from Terminal
#
# Files Needed:
# Your replacement icon for the app, 256x256: /icons/appicon.icns
# Your Retina replacement icon for the app, 512x512: /icons/[email protected]
# Your replacement for the status area of SS, 84x84: /icons/logo-SelfService.tiff
#
# YOU MUST RUN THIS COMMAND WITH ELEVATED PRIVILEGES (sudo)
#
# For use with the JAMF Casper Suite
#
# Adam Codega, Swipely
#
# Unzip SelfService.tar.gz
tar -zxvf SelfService.tar.gz
# Clear the quarantine from Self Service.app
xattr -r -d com.apple.quarantine Self\ Service.app
# Copy the icon into place
echo "Copying the icon file into place.."
cp icons/appicon.icns Self\ Service.app/Contents/Resources/Self\ Service.icns
chmod 744 Self\ Service.app/Contents/Resources/Self\ Service.icns
# Copy the Retina icon into place
echo "Copying the Retina icon into place.."
cp icons/[email protected] Self\ Service.app/Contents/Resources/Self\ [email protected]
chmod 744 Self\ Service.app/Contents/Resources/Self\ Service.icns
# Copy the status area icon into place
echo "Copying the status area icon into place.."
cp icons/logo-SelfService.tiff Self\ Service.app/Contents/Resources/jsLogo-SelfService.tiff
chmod 744 Self\ Service.app/Contents/Resources/Self\ Service.icns
# Rename Self Service in it's plist
echo "Renaming Self Service in info.plist and chmoding it.."
# Put your preferred app name at the end of this line in double quotes
defaults write Self\ Service.app/Contents/Info CFBundleName "Swipely Service"
chmod 744 Self\ Service.app/Contents/Info.plist
# Rename the app itself
echo "Renaming Self Service the app itself.."
# Put your preferred app name at the end of the next line in double quotes
mv Self\ Service.app "Swipely Service.app"
echo
echo "Done. You've been branded."
echo