(src, dst string)
| 120 | } |
| 121 | |
| 122 | func copyFile(src, dst string) error { |
| 123 | b, err := os.ReadFile(src) |
| 124 | if err != nil { |
| 125 | return err |
| 126 | } |
| 127 | return os.WriteFile(dst, b, 0644) |
| 128 | } |
| 129 | |
| 130 | // compressWasm writes path.zst and path.gz next to path. |
| 131 | func compressWasm(path string) error { |