Commit 21bfc50d authored by wuyoli's avatar wuyoli
Browse files

kicad: fix paths inside compressed step files

parent da7f1204
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ let

      postInstall =
        lib.optionalString (name == "packages3d") ''
          find $out -type f -name '*.step' | parallel 'stepreduce {} {} ${lib.optionalString compressStep "&& zip -9 {.}.stpZ {} && rm {}"}'
          find $out -type f -name '*.step' | parallel 'stepreduce {} {} ${lib.optionalString compressStep "&& zip -j -9 {.}.stpZ {} && rm {}"}'
        ''
        + lib.optionalString ((name == "footprints") && compressStep) ''
          grep -rl '\.step' $out | xargs sed -i 's/\.step/.stpZ/g'