Skip to content

Commit 7e6cdb4

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Add macOS 26 icon for RNDT (#56149)
Summary: Pull Request resolved: #56149 Add `React Native DevTools.icon` file (Icon Composer) for macOS 26 Tahoe. Also rename previous `.icns` file for consistency. `electron/packager` is updated to `^18.4.4`, as `.icon` support was added in `18.4.0`. Changelog: [Internal] Differential Revision: D97292364
1 parent 7ee5275 commit 7e6cdb4

8 files changed

Lines changed: 77 additions & 8 deletions

File tree

.github/workflows/test-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ jobs:
624624
run: yarn test-generated-typescript
625625

626626
build_debugger_shell:
627-
runs-on: ubuntu-latest
627+
runs-on: macos-26
628628
needs: check_code_changes
629629
if: needs.check_code_changes.outputs.debugger_shell == 'true'
630630
steps:

flow-typed/npm/electron-packager_v18.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ declare module '@electron/packager' {
118118
};
119119
extraResource?: string | string[];
120120
helperBundleId?: string;
121-
icon?: string;
121+
icon?: string | string[];
122122
ignore?: RegExp | (string | RegExp)[] | IgnoreFunction;
123123
junk?: boolean;
124124
name?: string;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@babel/plugin-transform-regenerator": "^7.24.7",
5454
"@babel/preset-env": "^7.25.3",
5555
"@babel/preset-flow": "^7.24.7",
56-
"@electron/packager": "^18.3.6",
56+
"@electron/packager": "^18.4.4",
5757
"@expo/spawn-async": "^1.7.2",
5858
"@jest/create-cache-key-function": "^29.7.0",
5959
"@microsoft/api-extractor": "^7.52.2",

packages/debugger-shell/src/electron/resources/icon.icns renamed to packages/debugger-shell/src/electron/resources/React Native DevTools.icns

File renamed without changes.
Lines changed: 12 additions & 0 deletions
Loading
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"fill" : {
3+
"linear-gradient" : [
4+
"display-p3:0.21574,0.21966,0.23974,1.00000",
5+
"display-p3:0.13729,0.14116,0.15294,1.00000"
6+
]
7+
},
8+
"groups" : [
9+
{
10+
"blur-material" : null,
11+
"layers" : [
12+
{
13+
"glass" : false,
14+
"image-name" : "logo_light.svg",
15+
"name" : "logo_light",
16+
"position" : {
17+
"scale" : 1.37,
18+
"translation-in-points" : [
19+
0,
20+
0
21+
]
22+
}
23+
}
24+
],
25+
"shadow" : {
26+
"kind" : "neutral",
27+
"opacity" : 0.5
28+
},
29+
"specular" : true,
30+
"translucency" : {
31+
"enabled" : false,
32+
"value" : 0.5
33+
}
34+
}
35+
],
36+
"supported-platforms" : {
37+
"squares" : [
38+
"macOS"
39+
]
40+
}
41+
}

scripts/debugger-shell/build-binary.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,16 @@ async function main() {
7575

7676
await packager({
7777
dir: PACKAGE_ROOT,
78-
icon: path.join(PACKAGE_ROOT, 'src/electron/resources/icon'),
78+
icon: [
79+
path.join(
80+
PACKAGE_ROOT,
81+
'src/electron/resources/React Native DevTools.icns',
82+
),
83+
path.join(
84+
PACKAGE_ROOT,
85+
'src/electron/resources/React Native DevTools.icon',
86+
),
87+
],
7988
platform: ['win32', 'darwin', 'linux'],
8089
arch: ['x64', 'arm64'],
8190
name: APP_NAME,

yarn.lock

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,17 +1123,18 @@
11231123
minimist "^1.2.6"
11241124
plist "^3.0.5"
11251125

1126-
"@electron/packager@^18.3.6":
1127-
version "18.3.6"
1128-
resolved "https://registry.yarnpkg.com/@electron/packager/-/packager-18.3.6.tgz#3596399334866737bc33ab663e90376d7aad89e4"
1129-
integrity sha512-1eXHB5t+SQKvUiDpWGpvr90ZSSbXj+isrh3YbjCTjKT4bE4SQrKSBfukEAaBvp67+GXHFtCHjQgN9qSTFIge+Q==
1126+
"@electron/packager@^18.4.0":
1127+
version "18.4.4"
1128+
resolved "https://registry.yarnpkg.com/@electron/packager/-/packager-18.4.4.tgz#708458f73639c2aa919ce5f6250ac519fa53ee5c"
1129+
integrity sha512-fTUCmgL25WXTcFpM1M72VmFP8w3E4d+KNzWxmTDRpvwkfn/S206MAtM2cy0GF78KS9AwASMOUmlOIzCHeNxcGQ==
11301130
dependencies:
11311131
"@electron/asar" "^3.2.13"
11321132
"@electron/get" "^3.0.0"
11331133
"@electron/notarize" "^2.1.0"
11341134
"@electron/osx-sign" "^1.0.5"
11351135
"@electron/universal" "^2.0.1"
11361136
"@electron/windows-sign" "^1.0.0"
1137+
"@malept/cross-spawn-promise" "^2.0.0"
11371138
debug "^4.0.1"
11381139
extract-zip "^2.0.0"
11391140
filenamify "^4.1.0"
@@ -1143,6 +1144,7 @@
11431144
junk "^3.1.0"
11441145
parse-author "^2.0.0"
11451146
plist "^3.0.0"
1147+
prettier "^3.4.2"
11461148
resedit "^2.0.0"
11471149
resolve "^1.1.6"
11481150
semver "^7.1.3"
@@ -7832,6 +7834,11 @@ prettier@3.6.2:
78327834
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393"
78337835
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
78347836

7837+
prettier@^3.4.2:
7838+
version "3.8.1"
7839+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.8.1.tgz#edf48977cf991558f4fcbd8a3ba6015ba2a3a173"
7840+
integrity sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==
7841+
78357842
pretty-format@^29.0.0, pretty-format@^29.7.0:
78367843
version "29.7.0"
78377844
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812"

0 commit comments

Comments
 (0)