File tree Expand file tree Collapse file tree 6 files changed +44
-6
lines changed
frontends/qt/resources/MacOS Expand file tree Collapse file tree 6 files changed +44
-6
lines changed Original file line number Diff line number Diff line change 7
7
- Format amounts using localized decimal and group separator
8
8
- Support pasting different localized number formats, i.e. dot and comma separated amounts
9
9
- Fix BitBoxApp crash on GrapheneOS and other phones without Google Play Services when scanning QR codes.
10
+ - Add DMG installer for macOS
10
11
11
12
## 4.42.0
12
13
- Preselect backup when there's only one backup available
Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ android:
79
79
osx-sec-check :
80
80
@echo " Checking build output"
81
81
./scripts/osx-build-check.sh
82
+ osx-create-dmg :
83
+ @echo " Creating DMG installer"
84
+ ./scripts/osx-create-dmg.sh
82
85
ci :
83
86
./scripts/ci.sh
84
87
clean :
Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ Build artifacts:
52
52
Requires Xcode 10+ and macOS 10.13.6+.
53
53
54
54
```
55
- $ cd frontends/qt/build/osx/
56
55
$ # Sign with hardened runtime:
57
- $ codesign -f --deep --strict --timestamp -o runtime --entitlements ../../resources/MacOS/entitlements.plist -s CODESIGN_IDENTITY BitBox.app
58
- $ /usr/bin/ditto -c -k --keepParent BitBox.app BitBox.zip
56
+ $ codesign -f --deep --strict --timestamp -o runtime --entitlements frontends/qt/resources/MacOS/entitlements.plist -s CODESIGN_IDENTITY frontends/qt/build/osx/BitBox.app
57
+ $ # Create DMG installer
58
+ $ make osx-create-dmg
59
59
$ # Notarize
60
- $ xcrun notarytool submit --apple-id "APPLE_ID" --team-id "TEAM_ID" --password "PASSWORD" BitBox.zip
60
+ $ xcrun notarytool submit --apple-id "APPLE_ID" --team-id "TEAM_ID" --password "PASSWORD" frontends/qt/build/osx/BitBox_Installer.dmg
61
61
$ # Check notarization status
62
- $ xcrun notarytool info --apple-id "APPLE_ID" --team-id "TEAM_ID" --password "PASSWORD" NOTARIZATION_ID
62
+ $ xcrun notarytool info --apple-id "APPLE_ID" --team-id "TEAM_ID" --password "PASSWORD" NOTARIZATION_ID
63
63
```
64
64
65
65
If you don't know your TEAM_ID, you can find it in your Apple dev account or with:
Original file line number Diff line number Diff line change @@ -4,9 +4,11 @@ if [ $(arch) = "arm64" ]; then
4
4
# recent M-based apple machines have an arm64 arch, but we need to install x86_64 deps
5
5
arch -x86_64 /bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh) "
6
6
/usr/local/Homebrew/bin/brew install go@1.21
7
- /usr/local/Homebrew/bin/brew instal qt@5
7
+ /usr/local/Homebrew/bin/brew install qt@5
8
+ /usr/local/Homebrew/bin/brew install create-dmg
8
9
else
9
10
/bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh) "
10
11
brew install go@1.21
11
12
brew install qt@5
13
+ brew install create-dmg
12
14
fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ APP=" frontends/qt/build/osx/BitBox.app"
4
+ INSTALLER=" frontends/qt/build/osx/BitBoxApp_Installer.dmg"
5
+
6
+ if ! type create-dmg > /dev/null; then
7
+ echo " create-dmg not available. Install with Homebrew using 'brew install create-dmg'."
8
+ exit 1
9
+ fi
10
+
11
+ if [ ! -d " $APP " ]; then
12
+ echo " No target found at: $APP "
13
+ exit 1
14
+ fi
15
+
16
+ if [ -f " $INSTALLER " ]; then
17
+ echo " Removing existing installer file: $INSTALLER "
18
+ rm " $INSTALLER "
19
+ fi
20
+
21
+ create-dmg \
22
+ --volname " BitBoxApp Installer" \
23
+ --volicon " frontends/qt/resources/MacOS/icon.icns" \
24
+ --background " frontends/qt/resources/MacOS/background.png" \
25
+ --window-pos 200 120 \
26
+ --window-size 800 450 \
27
+ --icon-size 120 \
28
+ --icon " BitBox.app" 200 190 \
29
+ --hide-extension " BitBox.app" \
30
+ --app-drop-link 600 190 \
31
+ " $INSTALLER " \
32
+ " $APP "
You can’t perform that action at this time.
0 commit comments