Skip to content

Commit dcdbe3e

Browse files
fix: codesign doesn't sign frameworks or sidecar, closes #7690 (#7774)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
1 parent 2f8881c commit dcdbe3e

File tree

18 files changed

+322
-54
lines changed

18 files changed

+322
-54
lines changed

.changes/bundler-xattr.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch:bug
3+
---
4+
5+
Remove extended attributes on the macOS app bundle using `xattr -cr $PATH`.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch:bug
3+
---
4+
5+
Code sign sidecars and frameworks on macOS.

core/tests/app-updater/frameworks/test.framework/Headers

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Headers
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Modules

core/tests/app-updater/frameworks/test.framework/Resources

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Resources
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
// Testing that a header can be included
1+
//
2+
// test.h
3+
// test
4+
//
5+
// Created by Trey Smith on 9/15/23.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
//! Project version number for test.
11+
FOUNDATION_EXPORT double testVersionNumber;
12+
13+
//! Project version string for test.
14+
FOUNDATION_EXPORT const unsigned char testVersionString[];
15+
16+
// In this header, you should import all the public headers of your framework using statements like #import <test/PublicHeader.h>
17+
18+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module test {
2+
umbrella header "test.h"
3+
4+
export *
5+
module * { export * }
6+
}

core/tests/app-updater/frameworks/test.framework/Versions/A/Resources/Info.plist

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,45 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>BuildMachineOSBuild</key>
6+
<string>22D68</string>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>en</string>
79
<key>CFBundleExecutable</key>
810
<string>test</string>
911
<key>CFBundleIdentifier</key>
10-
<string>com.tauri.test.framework</string>
12+
<string>com.tauri.test</string>
1113
<key>CFBundleInfoDictionaryVersion</key>
1214
<string>6.0</string>
1315
<key>CFBundleName</key>
1416
<string>test</string>
1517
<key>CFBundlePackageType</key>
1618
<string>FMWK</string>
1719
<key>CFBundleShortVersionString</key>
18-
<string>1.0.0</string>
19-
<key>CFBundleVersion</key>
20-
<string>1.0.0</string>
21-
<key>CFBundleSignature</key>
22-
<string>????</string>
23-
<key>LSMinimumSystemVersion</key>
24-
<string>10.15</string>
20+
<string>1.0</string>
2521
<key>CFBundleSupportedPlatforms</key>
2622
<array>
2723
<string>MacOSX</string>
2824
</array>
29-
<key>NSPrincipalClass</key>
25+
<key>CFBundleVersion</key>
26+
<string>1</string>
27+
<key>DTCompiler</key>
28+
<string>com.apple.compilers.llvm.clang.1_0</string>
29+
<key>DTPlatformBuild</key>
3030
<string></string>
31+
<key>DTPlatformName</key>
32+
<string>macosx</string>
33+
<key>DTPlatformVersion</key>
34+
<string>13.3</string>
35+
<key>DTSDKBuild</key>
36+
<string>22E245</string>
37+
<key>DTSDKName</key>
38+
<string>macosx13.3</string>
39+
<key>DTXcode</key>
40+
<string>1431</string>
41+
<key>DTXcodeBuild</key>
42+
<string>14E300c</string>
43+
<key>LSMinimumSystemVersion</key>
44+
<string>13.2</string>
3145
</dict>
3246
</plist>

0 commit comments

Comments
 (0)