Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit be088c7

Browse files
committed
refine the mac installer
- add pre-requirement check - OS X 10.10.3 - VirtualBox 5.0.0 - add background and logo to the installer Signed-off-by: Wang Xu <[email protected]>
1 parent f996877 commit be088c7

File tree

6 files changed

+57
-31
lines changed

6 files changed

+57
-31
lines changed

Diff for: mac_installer/Makefile.am

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ pkg-local:
44
mkdir -p dist/opt/hyper/examples
55
cp ../hyper ../hyperd dist/opt/hyper/bin/
66
cp ../examples/* dist/opt/hyper/examples/
7-
pkgbuild --identifier sh.hyper.hyper --version 0.3.0beta --ownership recommended --root dist --scripts scripts output.pkg
8-
productbuild --distribution product.xml --resources resources --package-path output.pkg --version 0.3.0beta ../hyper.pkg
7+
pkgbuild --identifier sh.hyper.hyper --version 0.4.0 --ownership recommended --root dist --scripts scripts output.pkg
8+
productbuild --distribution distribution.xml --resources resources --package-path output.pkg --version 0.3.0beta ../hyper.pkg
99
endif

Diff for: mac_installer/distribution.xml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2+
<installer-gui-script minSpecVersion="2">
3+
<welcome file="welcome.html" mime-type="text/html" />
4+
<license file="license.html" mime-type="text/plain" />
5+
<conclusion file="conclusion.html" mime-type="text/html" />
6+
<background file="./background.png" mime-type="image/png" scaling="tofit"/>
7+
<pkg-ref id="sh.hyper.hyper"/>
8+
<options customize="never" require-scripts="false"/>
9+
<volume-check>
10+
<allowed-os-versions>
11+
<os-version min="10.10.3"/>
12+
</allowed-os-versions>
13+
<required-bundles all="true" description="Hyper requires VirtualBox 5.0 or later">
14+
<bundle
15+
CFBundleShortVersionString="5.0.0"
16+
id="org.virtualbox.app.VirtualBox"
17+
path="/Applications/VirtualBox.app" search="false"/>
18+
</required-bundles>
19+
</volume-check>
20+
<domains
21+
enable_anywhere="true"
22+
enable_currentUserHome="false"
23+
enable_localSystem="true"/>
24+
<choices-outline>
25+
<line choice="default">
26+
<line choice="sh.hyper.hyper"/>
27+
</line>
28+
</choices-outline>
29+
<choice id="default"/>
30+
<choice id="sh.hyper.hyper" visible="false">
31+
<pkg-ref id="sh.hyper.hyper"/>
32+
</choice>
33+
<pkg-ref id="sh.hyper.hyper" version="0.4.0" onConclusion="none">output.pkg</pkg-ref>
34+
</installer-gui-script>

Diff for: mac_installer/product.xml

-29
This file was deleted.

Diff for: mac_installer/requirements.plist

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>os</key>
6+
<array>
7+
<string>10.10.3</string>
8+
</array>
9+
<key>bundle</key>
10+
<array>
11+
<dict>
12+
<key>id</key>
13+
<string>org.virtualbox.app.VirtualBox</string>
14+
<key>path</key>
15+
<string>/Applications/VirtualBox.app</string>
16+
<key>CFBundleShortVersionString</key>
17+
<string>5.0.0</string>
18+
</dict>
19+
</array>
20+
</dict>
21+
</plist>

Diff for: mac_installer/resources/background.png

238 KB
Loading

Diff for: mac_installer/resources/logo.png

5.53 KB
Loading

0 commit comments

Comments
 (0)