mirror of
https://github.com/lukaszraczylo/go-obfuscation.git
synced 2026-10-14 05:48:22 +00:00
.
This commit is contained in:
@@ -88,6 +88,7 @@ func (t *Transformer) TransformFile(srcPath, dstPath string) error {
|
||||
return fmt.Errorf("encrypt strings %s: %w", srcPath, err)
|
||||
}
|
||||
result = convertConstToVar(result)
|
||||
result = SplitLongStrings(result)
|
||||
}
|
||||
|
||||
if t.config.InjectOpaquePreds {
|
||||
@@ -130,6 +131,8 @@ func (t *Transformer) TransformFile(srcPath, dstPath string) error {
|
||||
result = t.injectJunkStrings(result)
|
||||
}
|
||||
|
||||
result = SplitLongStrings(result)
|
||||
|
||||
if err := os.MkdirAll(filepath.Dir(dstPath), 0755); err != nil {
|
||||
return fmt.Errorf("mkdir %s: %w", filepath.Dir(dstPath), err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user