Skip to content

Commit 46f5df0

Browse files
authored
macOS notarization (keybase#17811)
1 parent 64b3531 commit 46f5df0

20 files changed

Lines changed: 91 additions & 33 deletions

File tree

‎go/chat/attachments/preview_darwin.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,5 @@ func previewVideo(ctx context.Context, log utils.DebugLabeler, src io.Reader,
105105
PreviewWidth: imagePreview.PreviewWidth,
106106
}, nil
107107
}
108+
109+
func LinkNoop() {}

‎go/kbnm/hostmanifest/whitelist_darwin.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ import (
66
"fmt"
77
"os"
88
"path/filepath"
9+
10+
"github.com/keybase/client/go/chat/attachments"
911
)
1012

1113
func wrapWriteErr(err error, hostsPath string) error {
14+
// we do this temporarily to get the macOS SDK version to 10.14
15+
// see https://github.com/keybase/client/pull/17811
16+
attachments.LinkNoop()
1217
if !os.IsPermission(err) {
1318
return err
1419
}

‎osx/Fuse/build.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ tar zcvpf $dir/fsbundle.tgz .
3131

3232
# Sign the kext
3333
cd $dir
34-
codesign --verbose --sign "Developer ID Application: Keybase, Inc." kbfuse.bundle/Contents/Extensions/10.11/kbfuse.kext
35-
codesign --verbose --sign "Developer ID Application: Keybase, Inc." kbfuse.bundle/Contents/Resources/mount_kbfuse
36-
codesign --verbose --sign "Developer ID Application: Keybase, Inc." kbfuse.bundle/Contents/Resources/load_kbfuse
37-
codesign --verbose --force --deep --sign "Developer ID Application: Keybase, Inc." kbfuse.bundle
34+
codesign --verbose --timestamp --options runtime --sign "Developer ID Application: Keybase, Inc." kbfuse.bundle/Contents/Extensions/10.11/kbfuse.kext
35+
codesign --verbose --timestamp --options runtime --sign "Developer ID Application: Keybase, Inc." kbfuse.bundle/Contents/Resources/mount_kbfuse
36+
codesign --verbose --timestamp --options runtime --sign "Developer ID Application: Keybase, Inc." kbfuse.bundle/Contents/Resources/load_kbfuse
37+
codesign --verbose --force --deep --timestamp --options runtime --sign "Developer ID Application: Keybase, Inc." kbfuse.bundle
3838

3939
# Verify
4040
codesign --verbose --verify kbfuse.bundle/Contents/Extensions/10.11/kbfuse.kext
Binary file not shown.
20.8 KB
Binary file not shown.
16.8 KB
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

‎osx/Fuse/kbfuse.bundle/Contents/_CodeSignature/CodeResources‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
</data>
1515
<key>Resources/load_kbfuse</key>
1616
<data>
17-
CcktCW88gGkCOgyY7n0Nckg8zWQ=
17+
Y0QqN8yNXvRM/UfpDIQKEGI+TVQ=
1818
</data>
1919
<key>Resources/mount_kbfuse</key>
2020
<data>
21-
xc0iCWtWWDLudb7A5iCSmJynwRQ=
21+
RdTYNJDcxGXt+NsT2YRi+USIaQw=
2222
</data>
2323
<key>version.plist</key>
2424
<data>
@@ -42,11 +42,11 @@
4242
<dict>
4343
<key>hash</key>
4444
<data>
45-
lmUSfjIuBy4vCsYoZYOEcZAH8HU=
45+
Jf9oxAi9h1eW1piXWKjXTZtVL4I=
4646
</data>
4747
<key>hash2</key>
4848
<data>
49-
ZAZXtYXojj+Y9JI8LVk+iqCAhN/N5WdSXm6sg3yAuk0=
49+
st7VE6sGkQ9+RvCKFqjHrpv/+jAX1yHCeSkbYlm61Ko=
5050
</data>
5151
</dict>
5252
<key>Extensions/10.11/kbfuse.kext/Contents/_CodeSignature/CodeResources</key>
@@ -101,22 +101,22 @@
101101
<dict>
102102
<key>hash</key>
103103
<data>
104-
CcktCW88gGkCOgyY7n0Nckg8zWQ=
104+
Y0QqN8yNXvRM/UfpDIQKEGI+TVQ=
105105
</data>
106106
<key>hash2</key>
107107
<data>
108-
R1FXtAHG6dDpbMwWbYpeNBY1X/U/RPNfPDrZHzCAdbg=
108+
RS3eUy2AYIeDLYi/NH+g8dqwK1eeNo+3quZaKsjF+rs=
109109
</data>
110110
</dict>
111111
<key>Resources/mount_kbfuse</key>
112112
<dict>
113113
<key>hash</key>
114114
<data>
115-
xc0iCWtWWDLudb7A5iCSmJynwRQ=
115+
RdTYNJDcxGXt+NsT2YRi+USIaQw=
116116
</data>
117117
<key>hash2</key>
118118
<data>
119-
FXZMzDkQAvtf9P5stss5wa7+ItwRZV+Lxrc5mzqfK+E=
119+
LBZzNYvc2BQG1o2o3sCnW7DaWD4jqGq6EACLNX64PvE=
120120
</data>
121121
</dict>
122122
<key>version.plist</key>
93 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)