@@ -1854,30 +1854,30 @@ cli
1854
1854
// Method 2: Additional scan - always check bin directory for any remaining Launchpad shims
1855
1855
if ( fs . existsSync ( binDir ) ) {
1856
1856
try {
1857
- const binFiles = fs . readdirSync ( binDir , { withFileTypes : true } )
1858
- . filter ( dirent => dirent . isFile ( ) )
1859
-
1860
- for ( const file of binFiles ) {
1861
- const filePath = path . join ( binDir , file . name )
1862
- try {
1863
- // Read first few lines to check if it's a Launchpad shim
1864
- const content = fs . readFileSync ( filePath , 'utf8' )
1865
- if ( content . includes ( 'Launchpad shim' ) ) {
1866
- // Check if we already have this binary from metadata
1867
- const alreadyTracked = binaries . some ( b => b . binary === file . name )
1868
- if ( ! alreadyTracked ) {
1869
- binaries . push ( {
1870
- binary : file . name ,
1871
- package : 'unknown' , // We don't have metadata, so package is unknown
1872
- fullPath : filePath ,
1873
- } )
1874
- }
1875
- }
1876
- }
1877
- catch {
1878
- // Ignore files we can't read
1879
- }
1880
- }
1857
+ const binFiles = fs . readdirSync ( binDir , { withFileTypes : true } )
1858
+ . filter ( dirent => dirent . isFile ( ) )
1859
+
1860
+ for ( const file of binFiles ) {
1861
+ const filePath = path . join ( binDir , file . name )
1862
+ try {
1863
+ // Read first few lines to check if it's a Launchpad shim
1864
+ const content = fs . readFileSync ( filePath , 'utf8' )
1865
+ if ( content . includes ( 'Launchpad shim' ) ) {
1866
+ // Check if we already have this binary from metadata
1867
+ const alreadyTracked = binaries . some ( b => b . binary === file . name )
1868
+ if ( ! alreadyTracked ) {
1869
+ binaries . push ( {
1870
+ binary : file . name ,
1871
+ package : 'unknown' , // We don't have metadata, so package is unknown
1872
+ fullPath : filePath ,
1873
+ } )
1874
+ }
1875
+ }
1876
+ }
1877
+ catch {
1878
+ // Ignore files we can't read
1879
+ }
1880
+ }
1881
1881
}
1882
1882
catch {
1883
1883
// Ignore errors reading bin directory
0 commit comments