Skip to content

Instantly share code, notes, and snippets.

@zew13
Created February 18, 2022 04:11
Show Gist options
  • Save zew13/722433589a857599387e4e00b6c21743 to your computer and use it in GitHub Desktop.
Save zew13/722433589a857599387e4e00b6c21743 to your computer and use it in GitHub Desktop.
❯ ./sign.coffee ../../release/帧享-darwin-x64/帧享.app
(node:65148) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
at emitExperimentalWarning (node:internal/util:224:11)
at initializeLoader (node:internal/process/esm_loader:59:3)
at loadESM (node:internal/process/esm_loader:87:11)
at runMainESM (node:internal/modules/run_main:51:21)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:74:5)
at node:internal/main/run_main_module:17:47
sign /Users/z/git/rv/ci/release/帧享-darwin-x64/帧享.app
undefined
signed
开始公证
/Users/z/git/rv/ci/pkg/mac/node_modules/electron-notarize/lib/staple.js:22
throw new Error(`Failed to staple your application with code: ${result.code}\n\n${result.output}`);
^
Error: Failed to staple your application with code: 65
Processing: /Users/z/git/rv/ci/release/帧享-darwin-x64/帧享.app
Properties are {
NSURLIsDirectoryKey = 1;
NSURLIsPackageKey = 1;
NSURLIsSymbolicLinkKey = 0;
NSURLLocalizedTypeDescriptionKey = Application;
NSURLTypeIdentifierKey = "com.apple.application-bundle";
"_NSURLIsApplicationKey" = 1;
}
Props are {
cdhash = {length = 20, bytes = 0xa4c0474abfeec6826f63f7bd3d6eb9d0030b7521};
digestAlgorithm = 2;
flags = 0;
secureTimestamp = "2022-02-18 03:59:02 +0000";
signingId = "izhenxiang.com";
teamId = 7TS2RS4LP5;
}
JSON Data is {
records = (
{
recordName = "2/2/a4c0474abfeec6826f63f7bd3d6eb9d0030b7521";
}
);
}
Headers: {
"Content-Type" = "application/json";
}
Domain is api.apple-cloudkit.com
Response is <NSHTTPURLResponse: 0x6000034901a0> { URL: https://api.apple-cloudkit.com/database/1/com.apple.gk.ticket-delivery/production/public/records/lookup } { Status Code: 200
, Headers {
"Apple-Originating-System" = (
UnknownOriginatingSystem
);
Connection = (
"keep-alive"
);
"Content-Encoding" = (
gzip
);
"Content-Type" = (
"application/json; charset=UTF-8"
);
Date = (
"Fri, 18 Feb 2022 04:00:54 GMT"
);
Server = (
"AppleHttpServer/f6f00135a2e1"
);
"Strict-Transport-Security" = (
"max-age=31536000; includeSubDomains;"
);
"Transfer-Encoding" = (
Identity
);
Via = (
"xrail:st53p00ic-qujn14040702.me.com:8301:22R81:grp60,631194250daa17e24277dea86cf30319:1d708da0640329d9f45ee5cc7723bbdb:hktko1"
);
"X-Apple-CloudKit-Version" = (
"1.0"
);
"X-Apple-Edge-Response-Time" = (
219
);
"X-Apple-Request-UUID" = (
"bc842e4e-7558-4437-81b9-2921e3ee43d7"
);
"X-Responding-Instance" = (
"ckdatabasews:16306501:st42p63ic-ztfb05113501:8807:2208B449:b06ee534c004b4e2df0037833a902bfeb0e5937f"
);
"access-control-expose-headers" = (
"X-Apple-Request-UUID,X-Responding-Instance,Via"
);
"apple-seq" = (
0
);
"apple-tk" = (
false
);
"x-apple-user-partition" = (
63
);
} }
Size of data is 165
JSON Response is: {
records = (
{
reason = "Record not found";
recordName = "2/2/a4c0474abfeec6826f63f7bd3d6eb9d0030b7521";
serverErrorCode = "NOT_FOUND";
}
);
}
CloudKit query for 帧享.app (2/a4c0474abfeec6826f63f7bd3d6eb9d0030b7521) failed due to "Record not found".
Could not find base64 encoded ticket in response for 2/a4c0474abfeec6826f63f7bd3d6eb9d0030b7521
The staple and validate action failed! Error 65.
at Object.<anonymous> (/Users/z/git/rv/ci/pkg/mac/node_modules/electron-notarize/lib/staple.js:22:19)
at Generator.next (<anonymous>:null:null)
at fulfilled (/Users/z/git/rv/ci/pkg/mac/node_modules/electron-notarize/lib/staple.js:4:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
❯ pkgutil --check-signature 帧享.app/Contents/MacOS/帧享
Package does not exist: 帧享.app/Contents/MacOS/帧享
❯ pkgutil --check-signature 帧享.app
Package does not exist: 帧享.app
❯ pkgutil --check-signature ../../release/帧享-darwin-x64/帧享.app
Package "帧享.app":
Status: signed by a certificate trusted by macOS
Certificate Chain:
1. Developer ID Application: Beijing Dalukuankuan Technology Co., Ltd. (7TS2RS4LP5)
Expires: 2027-02-01 22:12:15 +0000
SHA256 Fingerprint:
E2 FC 29 16 F2 D1 55 3C 96 63 98 58 22 5F 67 C8 19 95 07 88 D7 10
8E 9C D0 46 0C 60 C1 32 D3 01
------------------------------------------------------------------------
2. Developer ID Certification Authority
Expires: 2027-02-01 22:12:15 +0000
SHA256 Fingerprint:
7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03
F2 9C 88 CF B0 B1 BA 63 58 7F
------------------------------------------------------------------------
3. Apple Root CA
Expires: 2035-02-09 21:40:36 +0000
SHA256 Fingerprint:
B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C
68 C5 BE 91 B5 A1 10 01 F0 24
❯ ./sign.coffee ../../release/帧享-darwin-x64/帧享.app
❯ clear
~/git/rv/ci/pkg/mac master* 12:07:26
❯ pkgutil --check-signature ../../release/帧享-darwin-x64/帧享.app
❯ pkgutil --check-signature ../../release/帧享-darwin-x64/帧享.app
Package "帧享.app":
Status: signed by a certificate trusted by macOS
Certificate Chain:
1. Developer ID Application: Beijing Dalukuankuan Technology Co., Ltd. (7TS2RS4LP5)
Expires: 2027-02-01 22:12:15 +0000
SHA256 Fingerprint:
E2 FC 29 16 F2 D1 55 3C 96 63 98 58 22 5F 67 C8 19 95 07 88 D7 10
8E 9C D0 46 0C 60 C1 32 D3 01
------------------------------------------------------------------------
2. Developer ID Certification Authority
Expires: 2027-02-01 22:12:15 +0000
SHA256 Fingerprint:
7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03
F2 9C 88 CF B0 B1 BA 63 58 7F
------------------------------------------------------------------------
3. Apple Root CA
Expires: 2035-02-09 21:40:36 +0000
SHA256 Fingerprint:
B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C
68 C5 BE 91 B5 A1 10 01 F0 24
❯ ./sign.coffee ../../release/帧享-darwin-x64/帧享.app
(node:69427) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
at emitExperimentalWarning (node:internal/util:224:11)
at initializeLoader (node:internal/process/esm_loader:59:3)
at loadESM (node:internal/process/esm_loader:87:11)
at runMainESM (node:internal/modules/run_main:51:21)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:74:5)
at node:internal/main/run_main_module:17:47
sign /Users/z/git/rv/ci/release/帧享-darwin-x64/帧享.app
^C
❯ clear
~/git/rv/ci/pkg/mac master* 12:08:04
❯ pkgutil --check-signature ../../release/帧享-darwin-x64/帧享.app
❯ pkgutil --check-signature ../../release/帧享-darwin-x64/帧享.app
Package "帧享.app":
Status: signed by a certificate trusted by macOS
Certificate Chain:
1. Developer ID Application: Beijing Dalukuankuan Technology Co., Ltd. (7TS2RS4LP5)
Expires: 2027-02-01 22:12:15 +0000
SHA256 Fingerprint:
E2 FC 29 16 F2 D1 55 3C 96 63 98 58 22 5F 67 C8 19 95 07 88 D7 10
8E 9C D0 46 0C 60 C1 32 D3 01
------------------------------------------------------------------------
2. Developer ID Certification Authority
Expires: 2027-02-01 22:12:15 +0000
SHA256 Fingerprint:
7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03
F2 9C 88 CF B0 B1 BA 63 58 7F
------------------------------------------------------------------------
3. Apple Root CA
Expires: 2035-02-09 21:40:36 +0000
SHA256 Fingerprint:
B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C
68 C5 BE 91 B5 A1 10 01 F0 24
❯ ./sign.coffee ../../release/帧享-darwin-x64/帧享.app > log.txt
(node:70136) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
at emitExperimentalWarning (node:internal/util:224:11)
at initializeLoader (node:internal/process/esm_loader:59:3)
at loadESM (node:internal/process/esm_loader:87:11)
at runMainESM (node:internal/modules/run_main:51:21)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:74:5)
at node:internal/main/run_main_module:17:47
^[^H^H
/Users/z/git/rv/ci/pkg/mac/node_modules/electron-notarize/lib/staple.js:22
throw new Error(`Failed to staple your application with code: ${result.code}\n\n${result.output}`);
^
Error: Failed to staple your application with code: 65
Processing: /Users/z/git/rv/ci/release/帧享-darwin-x64/帧享.app
Properties are {
NSURLIsDirectoryKey = 1;
NSURLIsPackageKey = 1;
NSURLIsSymbolicLinkKey = 0;
NSURLLocalizedTypeDescriptionKey = Application;
NSURLTypeIdentifierKey = "com.apple.application-bundle";
"_NSURLIsApplicationKey" = 1;
}
Props are {
cdhash = {length = 20, bytes = 0xb5fba8fe2496ca996ebf4dbb82e134ed777fca0b};
digestAlgorithm = 2;
flags = 0;
secureTimestamp = "2022-02-18 04:08:46 +0000";
signingId = "izhenxiang.com";
teamId = 7TS2RS4LP5;
}
JSON Data is {
records = (
{
recordName = "2/2/b5fba8fe2496ca996ebf4dbb82e134ed777fca0b";
}
);
}
Headers: {
"Content-Type" = "application/json";
}
Domain is api.apple-cloudkit.com
Response is <NSHTTPURLResponse: 0x6000024796c0> { URL: https://api.apple-cloudkit.com/database/1/com.apple.gk.ticket-delivery/production/public/records/lookup } { Status Code: 200
, Headers {
"Apple-Originating-System" = (
UnknownOriginatingSystem
);
Connection = (
"keep-alive"
);
"Content-Encoding" = (
gzip
);
"Content-Type" = (
"application/json; charset=UTF-8"
);
Date = (
"Fri, 18 Feb 2022 04:10:28 GMT"
);
Server = (
"AppleHttpServer/f6f00135a2e1"
);
"Strict-Transport-Security" = (
"max-age=31536000; includeSubDomains;"
);
"Transfer-Encoding" = (
Identity
);
Via = (
"xrail:st53p00ic-qujn15050702.me.com:8301:22R81:grp60,631194250daa17e24277dea86cf30319:323f606ad31a9e29894d5f81e35dee13:hktko1"
);
"X-Apple-CloudKit-Version" = (
"1.0"
);
"X-Apple-Edge-Response-Time" = (
214
);
"X-Apple-Request-UUID" = (
"fe4eaaeb-bff8-4d70-bacf-c5b6dffec39b"
);
"X-Responding-Instance" = (
"ckdatabasews:16308501:st42p63ic-ztfb18191701:8807:2208B449:b06ee534c004b4e2df0037833a902bfeb0e5937f"
);
"access-control-expose-headers" = (
"X-Apple-Request-UUID,X-Responding-Instance,Via"
);
"apple-seq" = (
0
);
"apple-tk" = (
false
);
"x-apple-user-partition" = (
63
);
} }
Size of data is 165
JSON Response is: {
records = (
{
reason = "Record not found";
recordName = "2/2/b5fba8fe2496ca996ebf4dbb82e134ed777fca0b";
serverErrorCode = "NOT_FOUND";
}
);
}
CloudKit query for 帧享.app (2/b5fba8fe2496ca996ebf4dbb82e134ed777fca0b) failed due to "Record not found".
Could not find base64 encoded ticket in response for 2/b5fba8fe2496ca996ebf4dbb82e134ed777fca0b
The staple and validate action failed! Error 65.
at Object.<anonymous> (/Users/z/git/rv/ci/pkg/mac/node_modules/electron-notarize/lib/staple.js:22:19)
at Generator.next (<anonymous>:null:null)
at fulfilled (/Users/z/git/rv/ci/pkg/mac/node_modules/electron-notarize/lib/staple.js:4:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment