forked from Comp-Labs/Download-macOS
-
Notifications
You must be signed in to change notification settings - Fork 0
196 lines (171 loc) · 8.16 KB
/
dmg.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
name: Generate DMG
on:
workflow_dispatch:
inputs:
macos_version:
type: choice
description: "macOS Version"
required: true
options:
- Monterey v12.5.1
- Big Sur v11.7.1
- Catalina v10.15.7
- Mojave v10.14.6
- High Sierra v10.13.6
- Ventura Beta v13.0
- Monterey Beta v12.5
jobs:
build-dmg:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
# MARK: macOS Version
- if: github.event.inputs.macos_version == 'Monterey v12.5.1'
name: Download macOS Monterey Latest
run: |
sudo "/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil" enroll DeveloperSeed
sleep 5
softwareupdate --fetch-full-installer --full-installer-version 12.5.1
- if: github.event.inputs.macos_version == 'Big Sur v11.7.1'
name: Download macOS BigSur Latest
run: |
sudo "/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil" enroll DeveloperSeed
sleep 5
softwareupdate --fetch-full-installer --full-installer-version 11.7.1
- if: github.event.inputs.macos_version == 'Catalina v10.15.7'
name: Download macOS Catalina Latest
run: |
sudo "/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil" enroll DeveloperSeed
sleep 5
softwareupdate --fetch-full-installer --full-installer-version 10.15.7
- if: github.event.inputs.macos_version == 'Mojave v10.14.6'
name: Download macOS Mojave Latest
run: |
sudo "/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil" enroll DeveloperSeed
sleep 5
softwareupdate --fetch-full-installer --full-installer-version 10.14.6
- if: github.event.inputs.macos_version == 'High Sierra v10.13.6'
name: Download macOS HighSierra Latest
run: |
sudo "/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil" enroll DeveloperSeed
sleep 5
softwareupdate --fetch-full-installer --full-installer-version 10.13.6
- if: github.event.inputs.macos_version == 'Ventura Beta v13.0'
name: Download macOS Ventura Beta Latest
run: |
sudo "/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil" enroll DeveloperSeed
sleep 5
softwareupdate --fetch-full-installer --full-installer-version 13.0
- if: github.event.inputs.macos_version == 'Monterey Beta v12.5'
name: Download macOS Monterey Beta Latest
run: |
sudo "/System/Library/PrivateFrameworks/Seeding.framework/Versions/Current/Resources/seedutil" enroll DeveloperSeed
sleep 5
softwareupdate --fetch-full-installer --full-installer-version 12.5
# Generate DMG
# Monterey
- if: github.event.inputs.macos_version == 'Monterey v12.5.1'
name: Generate Monterey DMG
run: |
sudo hdiutil create -o /tmp/Monterey -size 16384m -volname Monterey -layout SPUD -fs HFS+J
sudo hdiutil attach /tmp/Monterey.dmg -noverify -mountpoint /Volumes/Monterey
sleep 10
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/Monterey --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Monterey
sudo mv /tmp/Monterey.dmg ~/Desktop/Monterey.dmg
- if: github.event.inputs.macos_version == 'Monterey v12.5.1'
name: Upload Monterey DMG
uses: actions/[email protected]
with:
name: macOS Monterey
path: "~/Desktop/Monterey.dmg"
# Big Sur
- if: github.event.inputs.macos_version == 'Big Sur v11.7.1'
name: Generate Big Sur DMG
run: |
sudo hdiutil create -o /tmp/BigSur -size 16384m -volname BigSur -layout SPUD -fs HFS+J
sudo hdiutil attach /tmp/BigSur.dmg -noverify -mountpoint /Volumes/BigSur
sleep 10
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/BigSur --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Big\ Sur
sudo mv /tmp/BigSur.dmg ~/Desktop/BigSur.dmg
- if: github.event.inputs.macos_version == 'Big Sur v11.7.1'
name: Upload Big Sur DMG
uses: actions/[email protected]
with:
name: macOS Big Sur
path: "~/Desktop/BigSur.dmg"
# Catalina
- if: github.event.inputs.macos_version == 'Catalina v10.15.7'
name: Generate Catalina DMG
run: |
sudo hdiutil create -o /tmp/Catalina -size 16384m -volname Catalina -layout SPUD -fs HFS+J
sudo hdiutil attach /tmp/Catalina.dmg -noverify -mountpoint /Volumes/Catalina
sleep 10
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Catalina --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Catalina
sudo mv /tmp/Catalina.dmg ~/Desktop/Catalina.dmg
- if: github.event.inputs.macos_version == 'Catalina v10.15.7'
name: Upload Catalina DMG
uses: actions/[email protected]
with:
name: macOS Catalina
path: "~/Desktop/Catalina.dmg"
# Mojave
- if: github.event.inputs.macos_version == 'Mojave v10.14.6'
name: Generate Mojave DMG
run: |
sudo hdiutil create -o /tmp/Mojave -size 16384m -volname Mojave -layout SPUD -fs HFS+J
sudo hdiutil attach /tmp/Mojave.dmg -noverify -mountpoint /Volumes/Mojave
sleep 10
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Mojave --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Mojave
sudo mv /tmp/Mojave.dmg ~/Desktop/Mojave.dmg
- if: github.event.inputs.macos_version == 'Mojave v10.14.6'
name: Upload Mojave DMG
uses: actions/[email protected]
with:
name: macOS Mojave
path: "~/Desktop/Mojave.dmg"
# High Sierra
- if: github.event.inputs.macos_version == 'High Sierra v10.13.6'
name: Generate High Sierra DMG
run: |
sudo hdiutil create -o /tmp/HighSierra -size 16384m -volname HighSierra -layout SPUD -fs HFS+J
sudo hdiutil attach /tmp/HighSierra.dmg -noverify -mountpoint /Volumes/HighSierra
sleep 10
sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/HighSierra --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ High\ Sierra
sudo mv /tmp/HighSierra.dmg ~/Desktop/HighSierra.dmg
- if: github.event.inputs.macos_version == 'High Sierra v10.13.6'
name: Upload High Sierra DMG
uses: actions/[email protected]
with:
name: macOS High Sierra
path: "~/Desktop/HighSierra.dmg"
# Ventura Beta
- if: github.event.inputs.macos_version == 'Ventura Beta v13.0'
name: Generate Ventura Beta DMG
run: |
sudo hdiutil create -o /tmp/Ventura -size 16384m -volname Ventura -layout SPUD -fs HFS+J
sudo hdiutil attach /tmp/Ventura.dmg -noverify -mountpoint /Volumes/Ventura
sleep 10
sudo /Applications/Install\ macOS\ Ventura\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/Ventura --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Ventura\ Beta
sudo mv /tmp/Ventura.dmg ~/Desktop/Ventura.dmg
- if: github.event.inputs.macos_version == 'Ventura Beta v13.0'
name: Upload Ventura Beta DMG
uses: actions/[email protected]
with:
name: macOS Ventura Beta
path: "~/Desktop/Ventura.dmg"
re-run-failed-jobs:
runs-on: ubuntu-latest
needs: [build-dmg]
if: always() && (needs.build-dmg.result == 'failure')
steps:
- name: Needs Context
env:
NEEDS_CONTEXT: ${{ toJSON(needs) }}
run: |
echo "$NEEDS_CONTEXT"