kicad: fix paths inside compressed step files (#495672)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user