Skip to content

Commit

Permalink
supper macos
Browse files Browse the repository at this point in the history
  • Loading branch information
test committed Jul 30, 2021
1 parent dc83383 commit 5858a01
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cfrida/dylib_tempdll.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows linux
// +build windows linux darwin
// +build tempdll

package cfrida
Expand All @@ -13,7 +13,6 @@ import (
"os"
)


func BytesToFile(destFileName string, input []byte) error {
fi, err := os.Create(destFileName)
if err != nil {
Expand Down Expand Up @@ -43,7 +42,7 @@ func fileExists(path string) bool {
}

func checkAndReleaseDLL() (bool, string) {
crc:=crc32.ChecksumIEEE(libfridabinres.FridaBinRes)
crc := crc32.ChecksumIEEE(libfridabinres.FridaBinRes)
tempDLLDir := fmt.Sprintf("%s/libfrida/%x", os.TempDir(), crc)
// create liblcl: $tempdir/libfrida/{crc32}/libfrida.{ext}
if !fileExists(tempDLLDir) {
Expand All @@ -69,4 +68,4 @@ func checkAndReleaseDLL() (bool, string) {
}
}
return true, tempDLLFileName
}
}

0 comments on commit 5858a01

Please sign in to comment.