[Backport release-26.05] freetube: fix Darwin code signing (#551964)

This commit is contained in:
Fernando Rodrigues
2026-08-13 03:05:08 +00:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
makeShellWrapper,
copyDesktopItems,
electron,
darwin,
nixosTests,
}:
@@ -67,6 +68,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
pnpm
makeShellWrapper
copyDesktopItems
]
++ lib.optionals stdenvNoCC.hostPlatform.isDarwin [
darwin.autoSignDarwinBinariesHook
];
installPhase = ''

View File

@@ -11,3 +11,12 @@ index bef1f6f1d..d2ee86611 100644
appId: `io.freetubeapp.${packageDetails.name}`,
copyright: 'Copyleft © 2020-2026 freetubeapp@protonmail.com',
// asar: false,
@@ -99,7 +101,7 @@ export default {
// Enable ad-hoc signing
// If we skip signing entirely, macOS says that the application is damaged, which makes users open bug reports.
// With an ad-hoc signature it still refuses to launch by default but with the reason that it cannot verify the signature
- identity: '-'
+ identity: null
},
win: {
icon: '_icons/icon.ico',