Skip to content

Commit

Permalink
Merge pull request #7 from SecondSonConsulting/0.5.2-dev
Browse files Browse the repository at this point in the history
0.5.2 dev
  • Loading branch information
BigMacAdmin authored Feb 23, 2023
2 parents 9d9970e + 95fa2ff commit 31d90c7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 32 deletions.
19 changes: 11 additions & 8 deletions Baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -x
# @BigMacAdmin on the MacAdmins Slack
# [email protected]

scriptVersion="v.0.5.1"
scriptVersion="v.0.5.2"

########################################################################################################
########################################################################################################
Expand Down Expand Up @@ -60,7 +60,7 @@ fi
#Variables for our primary Dialog window
dialogTitle="Your computer setup is underway"
dialogMessage="Feel free to step away, this could take 30 minutes or more. \n\nYour computer will restart when it's ready for use."
dialogIcon="/System/Library/CoreServices/Erase Assistant.app"
dialogIcon="/System/Library/CoreServices/KeyboardSetupAssistant.app/Contents/Resources/AppIcon.icns"
dialogAdditionalOptions=(
--blurscreen
--width 900
Expand Down Expand Up @@ -876,20 +876,23 @@ scriptArguments=()
pkgsToInstall=()
pkgValidations=()

##############################
# Process Initial Scripts #
##############################

process_scripts InitialScripts

###################
# Build Arrays #
###################
# Build dialogList array by reading our configuration and looping through things

#build_dialog_array InitialScripts
build_dialog_array Installomator
build_dialog_array Packages
build_dialog_array Scripts

build_dialog_list_options

##############################
# Process Initial Scripts #
##############################

process_scripts InitialScripts

##################################
# Draw our dialog list window #
Expand Down
61 changes: 37 additions & 24 deletions ExampleConfigurationFiles/Baseline-BasicExample.mobileconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDisplayName</key>
<string>Baseline</string>
<key>PayloadIdentifier</key>
<string>com.secondsonconsulting.baseline.D031FEC3-06B0-497A-BC0A-5D24AE8E91AD</string>
<key>PayloadType</key>
<string>com.secondsonconsulting.baseline</string>
<key>PayloadUUID</key>
<string>D031FEC3-06B0-497A-BC0A-5D24AE8E91AD</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>InitialScripts</key>
<array>
<dict>
<key>Arguments</key>
<string>--fdsa</string>
<key>DisplayName</key>
<string>Initial Example Script</string>
<key>MD5</key>
<string>e567257026d6032dd232df75fd3ba500</string>
<key>ScriptPath</key>
<string>ExampleScript.sh</string>
</dict>
</array>
<key>Installomator</key>
<array>
<dict>
Expand All @@ -30,19 +33,6 @@
<string>dockutil</string>
</dict>
</array>
<key>Scripts</key>
<array>
<dict>
<key>DisplayName</key>
<string>Example Script</string>
<key>ScriptPath</key>
<string>ExampleScript.sh</string>
<key>Arguments</key>
<string>--asdf</string>
<key>MD5</key>
<string>e567257026d6032dd232df75fd3ba500</string>
</dict>
</array>
<key>Packages</key>
<array>
<dict>
Expand All @@ -54,6 +44,29 @@
<string>7Q6XP5698G</string>
</dict>
</array>
<key>PayloadDisplayName</key>
<string>Baseline</string>
<key>PayloadIdentifier</key>
<string>com.secondsonconsulting.baseline.D031FEC3-06B0-497A-BC0A-5D24AE8E91AD</string>
<key>PayloadType</key>
<string>com.secondsonconsulting.baseline</string>
<key>PayloadUUID</key>
<string>F46B02DA-FF67-481D-B39C-485F8CC9E39B</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>Scripts</key>
<array>
<dict>
<key>Arguments</key>
<string>--asdf</string>
<key>DisplayName</key>
<string>Example Script</string>
<key>MD5</key>
<string>e567257026d6032dd232df75fd3ba500</string>
<key>ScriptPath</key>
<string>ExampleScript.sh</string>
</dict>
</array>
</dict>
</array>
<key>PayloadDescription</key>
Expand All @@ -69,7 +82,7 @@
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>53C97AF2-0204-476E-BAC9-E805FF698FA3</string>
<string>8A016FF5-057E-4F31-9043-9C715F061433</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
Expand Down

0 comments on commit 31d90c7

Please sign in to comment.