@shopify/react-native-skia 2.3.4 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
 - package/scripts/install-skia.mjs +2 -21
 
    
        package/package.json
    CHANGED
    
    
    
        package/scripts/install-skia.mjs
    CHANGED
    
    | 
         @@ -112,33 +112,14 @@ const downloadToFile = (url, destPath) => { 
     | 
|
| 
       112 
112 
     | 
    
         
             
              });
         
     | 
| 
       113 
113 
     | 
    
         
             
            };
         
     | 
| 
       114 
114 
     | 
    
         | 
| 
       115 
     | 
    
         
            -
            // On Windows, convert paths to avoid tar misinterpreting paths like C:\path
         
     | 
| 
       116 
     | 
    
         
            -
            // as remote host connection specs (C: as hostname)
         
     | 
| 
       117 
     | 
    
         
            -
            const normalizePathForTar = (filePath) => {
         
     | 
| 
       118 
     | 
    
         
            -
              if (process.platform !== "win32") {
         
     | 
| 
       119 
     | 
    
         
            -
                return filePath;
         
     | 
| 
       120 
     | 
    
         
            -
              }
         
     | 
| 
       121 
     | 
    
         
            -
             
     | 
| 
       122 
     | 
    
         
            -
              // Convert backslashes to forward slashes
         
     | 
| 
       123 
     | 
    
         
            -
              let normalized = filePath.replace(/\\/g, "/");
         
     | 
| 
       124 
     | 
    
         
            -
             
     | 
| 
       125 
     | 
    
         
            -
              // Convert C:/path to /c/path for Git Bash tar compatibility
         
     | 
| 
       126 
     | 
    
         
            -
              normalized = normalized.replace(
         
     | 
| 
       127 
     | 
    
         
            -
                /^([A-Za-z]):\//,
         
     | 
| 
       128 
     | 
    
         
            -
                (_, drive) => `/${drive.toLowerCase()}/`
         
     | 
| 
       129 
     | 
    
         
            -
              );
         
     | 
| 
       130 
     | 
    
         
            -
             
     | 
| 
       131 
     | 
    
         
            -
              return normalized;
         
     | 
| 
       132 
     | 
    
         
            -
            };
         
     | 
| 
       133 
     | 
    
         
            -
             
     | 
| 
       134 
115 
     | 
    
         
             
            const extractTarGz = async (archivePath, destDir) => {
         
     | 
| 
       135 
116 
     | 
    
         
             
              fs.mkdirSync(destDir, { recursive: true });
         
     | 
| 
       136 
117 
     | 
    
         | 
| 
       137 
118 
     | 
    
         
             
              const args = [
         
     | 
| 
       138 
119 
     | 
    
         
             
                "-xzf",
         
     | 
| 
       139 
     | 
    
         
            -
                 
     | 
| 
      
 120 
     | 
    
         
            +
                archivePath,
         
     | 
| 
       140 
121 
     | 
    
         
             
                "-C",
         
     | 
| 
       141 
     | 
    
         
            -
                 
     | 
| 
      
 122 
     | 
    
         
            +
                destDir,
         
     | 
| 
       142 
123 
     | 
    
         
             
              ];
         
     | 
| 
       143 
124 
     | 
    
         
             
              const candidates =
         
     | 
| 
       144 
125 
     | 
    
         
             
                process.platform === "win32"
         
     |