Skip to content

Commit 184bc1b

Browse files
committed
[LW-12086] Restore .productName in the final package.json
1 parent 234dcc0 commit 184bc1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nix/internal/any-darwin.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ in rec {
276276
cp node_modules/"$f" "$pathtoapp"/Contents/Resources/app/build/
277277
done
278278
279-
jq --arg name "xxx" '.productName = $name' "$pathtoapp/Contents/Resources/app/package.json" >tmp-package.json
279+
jq >tmp-package.json <"$pathtoapp/Contents/Resources/app/package.json" \
280+
--arg name ${lib.escapeShellArg launcherConfigs.${cluster}.installerConfig.spacedName} \
281+
'.productName = $name'
280282
mv tmp-package.json "$pathtoapp/Contents/Resources/app/package.json"
281283
282284
dir="$pathtoapp/Contents/MacOS"

0 commit comments

Comments
 (0)