@@ -11,9 +11,6 @@ import {
1111 makeDevelopmentEnvironmentScript ,
1212 makeDevelopmentLauncherScript ,
1313 resolveElectronBinaryPath ,
14- resolveMacBundleInfoPlistStrings ,
15- resolveMacCodeSignArguments ,
16- resolveMacLauncherIconPaths ,
1714 resolveMacLauncherPaths ,
1815 writeDevelopmentLauncherScript ,
1916} from "./electron-launcher.mjs" ;
@@ -106,30 +103,6 @@ describe("electron development launcher", () => {
106103 assert . notInclude ( script , "node_modules/electron" ) ;
107104 } ) ;
108105
109- it ( "declares why the macOS app needs protected access" , ( ) => {
110- const values = resolveMacBundleInfoPlistStrings ( "T3 Code (Dev) Launcher" ) ;
111-
112- assert . equal (
113- values . NSScreenCaptureUsageDescription ,
114- "T3 Code captures the active window when you use the snapshot shortcut." ,
115- ) ;
116- assert . equal (
117- values . NSDocumentsFolderUsageDescription ,
118- "T3 Code reads project files you open in the desktop app." ,
119- ) ;
120- } ) ;
121-
122- it ( "ad-hoc signs the complete development app bundle" , ( ) => {
123- assert . deepEqual ( resolveMacCodeSignArguments ( "/runtime/T3 Code (Dev).app" ) , [
124- "--force" ,
125- "--deep" ,
126- "--sign" ,
127- "-" ,
128- "--timestamp=none" ,
129- "/runtime/T3 Code (Dev).app" ,
130- ] ) ;
131- } ) ;
132-
133106 it ( "restores execute permissions on an unchanged launcher" , ( ) => {
134107 const directory = NodeFS . mkdtempSync ( NodePath . join ( NodeOS . tmpdir ( ) , "t3-launcher-" ) ) ;
135108 const launcherPath = NodePath . join ( directory , "launcher" ) ;
@@ -143,16 +116,6 @@ describe("electron development launcher", () => {
143116 NodeFS . rmSync ( directory , { recursive : true , force : true } ) ;
144117 }
145118 } ) ;
146-
147- it ( "derives launcher icons from canonical development and production assets" , ( ) => {
148- const development = resolveMacLauncherIconPaths ( "/runtime" , true ) ;
149- const production = resolveMacLauncherIconPaths ( "/runtime" , false ) ;
150-
151- assert . match ( development . sourceIconPath , / a s s e t s [ \\ / ] d e v [ \\ / ] b l u e p r i n t - m a c o s - 1 0 2 4 \. p n g $ / ) ;
152- assert . equal ( development . generatedIconPath , "/runtime/icon-dev.icns" ) ;
153- assert . match ( production . sourceIconPath , / a s s e t s [ \\ / ] p r o d [ \\ / ] b l a c k - m a c o s - 1 0 2 4 \. p n g $ / ) ;
154- assert . equal ( production . generatedIconPath , "/runtime/icon-prod.icns" ) ;
155- } ) ;
156119} ) ;
157120
158121async function startupCleanupPattern ( desktopDir ) {
0 commit comments