Skip to content

Commit 7deabeb

Browse files
committed
Merge commit 'refs/pull/2727/head' of https://github.com/digitalbitbox/bitbox-wallet-app
2 parents 4ae5721 + 890fda9 commit 7deabeb

File tree

6 files changed

+44
-6
lines changed

6 files changed

+44
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Format amounts using localized decimal and group separator
88
- Support pasting different localized number formats, i.e. dot and comma separated amounts
99
- Fix BitBoxApp crash on GrapheneOS and other phones without Google Play Services when scanning QR codes.
10+
- Add DMG installer for macOS
1011

1112
## 4.42.0
1213
- Preselect backup when there's only one backup available

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ android:
7979
osx-sec-check:
8080
@echo "Checking build output"
8181
./scripts/osx-build-check.sh
82+
osx-create-dmg:
83+
@echo "Creating DMG installer"
84+
./scripts/osx-create-dmg.sh
8285
ci:
8386
./scripts/ci.sh
8487
clean:

docs/BUILD.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ Build artifacts:
5252
Requires Xcode 10+ and macOS 10.13.6+.
5353

5454
```
55-
$ cd frontends/qt/build/osx/
5655
$ # 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
5959
$ # 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
6161
$ # 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
6363
```
6464

6565
If you don't know your TEAM_ID, you can find it in your Apple dev account or with:
247 KB
Loading

scripts/osx-brew.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ if [ $(arch) = "arm64" ]; then
44
# recent M-based apple machines have an arm64 arch, but we need to install x86_64 deps
55
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
66
/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
89
else
910
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
1011
brew install go@1.21
1112
brew install qt@5
13+
brew install create-dmg
1214
fi

scripts/osx-create-dmg.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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"

0 commit comments

Comments
 (0)