File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 77 "enabled" : true ,
88 "rules" : {
99 "recommended" : true ,
10+ "suspicious" : {
11+ "noConsoleLog" : " error"
12+ },
1013 "nursery" : {
1114 "noUnusedFunctionParameters" : " error" ,
1215 "useDefaultSwitchClause" : " error"
Original file line number Diff line number Diff line change @@ -3,20 +3,25 @@ const { notarize } = require('@electron/notarize');
33const packageJson = require ( '../package.json' ) ;
44const appBundleId = packageJson . build . appId ;
55
6+ function logNotarizingProgress ( msg ) {
7+ // biome-ignore lint/suspicious/noConsoleLog: log notarizing progress
8+ console . log ( ` • notarizing ${ msg } ` ) ;
9+ }
10+
611const notarizeApp = async ( context ) => {
712 const { electronPlatformName, appOutDir } = context ;
813 const appName = context . packager . appInfo . productFilename ;
914 const isMacOS = electronPlatformName === 'darwin' ;
1015 const shouldNotarize = process . env . NOTARIZE === 'true' ;
1116
1217 if ( ! shouldNotarize || ! isMacOS ) {
13- console . log (
14- ' • notarizing either should not notarize or not building for macOS' ,
18+ logNotarizingProgress (
19+ 'either should not notarize or not building for macOS' ,
1520 ) ;
1621 return ;
1722 }
1823
19- console . log ( ' • notarizing started') ;
24+ logNotarizingProgress ( 'process started') ;
2025
2126 return await notarize ( {
2227 appBundleId,
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ import Constants from '../constants';
33import { loadState , saveState } from '../storage' ;
44import { getUserData } from './utils' ;
55
6+ export function logMigrationProgress ( msg : string ) {
7+ // biome-ignore lint/suspicious/noConsoleLog: log migration progress
8+ console . log ( `Account Migration: ${ msg } ` ) ;
9+ }
10+
611/**
712 * Migrate authenticated accounts from old data structure to new data structure (v5.7.0+).
813 *
@@ -12,15 +17,15 @@ export async function migrateAuthenticatedAccounts() {
1217 const existing = loadState ( ) ;
1318
1419 if ( hasAccountsToMigrate ( existing . auth ) ) {
15- console . log ( 'Commencing authenticated accounts migration' ) ;
20+ logMigrationProgress ( 'Commencing authenticated accounts migration' ) ;
1621
1722 const migratedAccounts = await convertAccounts ( existing . auth ) ;
1823
1924 saveState ( {
2025 auth : { ...existing . auth , accounts : migratedAccounts } ,
2126 settings : existing . settings ,
2227 } ) ;
23- console . log ( 'Authenticated accounts migration complete' ) ;
28+ logMigrationProgress ( 'Authenticated accounts migration complete' ) ;
2429 }
2530}
2631
You can’t perform that action at this time.
0 commit comments