diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..294afc4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +I2P-Configuration-for-Chromium +i2pchromium.exe +i2pchromium-darwin +i2pchromium diff --git a/I2P-Configuration-for-Chromium b/I2P-Configuration-for-Chromium index 4e867cd..bf5be2f 100755 Binary files a/I2P-Configuration-for-Chromium and b/I2P-Configuration-for-Chromium differ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5cf49aa --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ + +all: + GOOS=windows go build -o i2pchromium.exe + GOOS=darwin go build -o i2pchromium-darwin + GOOS=linux go build -o i2pchromium \ No newline at end of file diff --git a/main.go b/main.go index 282d327..f519b4d 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,7 @@ func main() { log.Println("Extension error, embedded extension not read.") } else { if _, err := os.Stat("i2pchrome.js"); os.IsNotExist(err) { - os.MkdirAll("i2pchrome.js", os.ModePerm) + os.MkdirAll("i2pchrome.js", FS.Mode()) for _, val := range embedded { //log.Println(val.Name()) ioutil.WriteFile("i2pchrome.js"+val.Name(), val.Sys().([]byte), val.Mode())