Skip to content

Commit 5e82420

Browse files
Alexey-AyupovAlexey Ayupov
andauthored
[macOS] Rename build scripts (#8887)
Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
1 parent e1e621e commit 5e82420

File tree

100 files changed

+764
-515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+764
-515
lines changed
File renamed without changes.

images/macos/scripts/build/toolset.ps1 renamed to images/macos/scripts/build/Install-Toolset.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
################################################################################
2-
## File: toolset.ps1
2+
## File: Install-Toolset.ps1
33
## Team: CI-Build
44
## Desc: Install toolset
55
################################################################################
6-
Import-Module "~/image-generation/helpers/Tests.Helpers.psm1"
6+
7+
Import-Module "~/image-generation/tests/Helpers.psm1"
78
Import-Module "~/image-generation/helpers/Common.Helpers.psm1"
89

910
Function Install-Asset {
@@ -55,4 +56,4 @@ foreach ($tool in $tools) {
5556
}
5657
}
5758

58-
Invoke-PesterTests "Toolcache"
59+
Invoke-PesterTests "Toolcache"

images/macos/scripts/build/xcode.ps1 renamed to images/macos/scripts/build/Install-Xcode.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
################################################################################
2+
## File: Install-Xcode.ps1
3+
## Desc: Install Xcode
4+
################################################################################
5+
16
$ErrorActionPreference = "Stop"
27

38
Import-Module "$env:HOME/image-generation/helpers/Common.Helpers.psm1"

images/macos/scripts/build/fix-xcode-simulators.ps1 renamed to images/macos/scripts/build/Update-XcodeSimulators.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
################################################################################
2+
## File: Update-XcodeSimulators.ps1
3+
## Desc: Check available Xcode simulators and create missing ones
4+
################################################################################
5+
16
$ErrorActionPreference = "Stop"
27

38
Import-Module "$env:HOME/image-generation/helpers/Xcode.Helpers.psm1" -DisableNameChecking
@@ -48,4 +53,4 @@ Get-XcodeInfoList | Out-Null
4853
Write-Host "Validating and fixing Xcode simulators..."
4954
Get-BrokenXcodeSimulatorsList | ForEach-Object {
5055
Ensure-SimulatorInstalled -RuntimeId $_.RuntimeId -DeviceId $_.DeviceId -SimulatorName $_.SimulatorName -XcodeVersion $_.XcodeVersion
51-
}
56+
}

images/macos/scripts/build/apache.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

images/macos/scripts/build/bicep.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

images/macos/scripts/build/cleanup-brew.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash -e -o pipefail
2+
################################################################################
3+
## File: configure-auto-updates.sh
4+
## Desc: Disabling automatic updates
5+
################################################################################
26

3-
# Disabling automatic updates
47
sudo softwareupdate --schedule off
58
defaults write com.apple.SoftwareUpdate AutomaticDownload -int 0
69
defaults write com.apple.SoftwareUpdate CriticalUpdateInstall -int 0
710
defaults write com.apple.commerce AutoUpdate -bool false
8-
defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false
11+
defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false

images/macos/scripts/build/autologin.sh renamed to images/macos/scripts/build/configure-autologin.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/bash -e -o pipefail
2-
3-
# This script was taken from https://github.com/timsutton/osx-vm-templates/blob/master/scripts/autologin.sh
4-
# Distributed by MIT license, license can be found at the bottom of this script
2+
################################################################################
3+
## File: configure-autologin.sh
4+
## Desc: add a Daemon to re-detect the attached network interfaces after vm is booted.
5+
## Maintainer: @timsutton
6+
## script was taken from https://github.com/timsutton/osx-vm-templates/blob/master/scripts/autologin.sh
7+
################################################################################
58

69
echo "Enabling automatic GUI login for the '$USERNAME' user.."
710

@@ -15,4 +18,4 @@ Copyright (c) 2013-2017 Timothy Sutton
1518
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1619
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1720
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18-
'
21+
'

images/macos/scripts/build/configure-hostname.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/bin/bash -e -o pipefail
2+
################################################################################
3+
## File: configure-hostname.sh
4+
## Desc: Change the hostname at startup to prevent duplicates
5+
## Hostname and Computername should contain .local in name to avoid name resolution issues
6+
################################################################################
27

3-
# Add script for changing hostname to run on startup to prevent duplicate hostnames across the environment. Hostname and Computername should contain .local in name to avoid name resolution issues
48
tee -a /usr/local/bin/change_hostname.sh > /dev/null <<\EOF
59
#!/bin/bash -e -o pipefail
610
@@ -25,4 +29,4 @@ sudo tee -a /Library/LaunchDaemons/change_hostname.plist > /dev/null <<\EOF
2529
<true/>
2630
</dict>
2731
</plist>
28-
EOF
32+
EOF

0 commit comments

Comments
 (0)