try a win32 config

This commit is contained in:
idk
2020-05-15 19:03:06 -04:00
parent 7c0c7ff219
commit a16c24e3f6
15 changed files with 1 additions and 111 deletions

View File

@ -71,7 +71,7 @@ zero-assets:
I2PD_VERSION=2.31.0
i2pd-clean:
rm -rf i2pdbundle/osx i2pdbundle/win_amd64 i2pdbundle/win_386
rm -rf i2pdbundle/osx i2pdbundle/win_amd64 i2pdbundle/win_386 i2pdbundle/linux_amd64 i2pdbundle/test i2pdbundle/test_files
i2pd-zip: i2pd-clean i2pd-linux
mkdir -p i2pdbundle/mac i2pdbundle/win_amd64 i2pdbundle/win_386 i2pdbundle/test i2pdbundle/test/subtest i2pdbundle/test/subtest/subsubtest i2pdbundle/test/subsubsubtest

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
test

View File

@ -1 +0,0 @@
test

View File

@ -1 +0,0 @@
test

View File

@ -1 +0,0 @@
test

View File

@ -1 +0,0 @@
test

View File

@ -1 +0,0 @@
test

View File

@ -1 +0,0 @@
test

View File

@ -1 +0,0 @@
test

View File

@ -1,30 +0,0 @@
package i2pdtest
import (
"github.com/eyedeekay/checki2cp/i2pdbundle"
"testing"
)
func TestFSListFiles(t *testing.T) {
list, err := i2pd.FindAllFiles(FS)
if err != nil {
t.Fatal(err)
}
t.Log(list)
}
func TestFSListDirs(t *testing.T) {
list, err := i2pd.FindAllDirectories(FS)
if err != nil {
t.Fatal(err)
}
t.Log(list)
}
func TestFSWriteFiles(t *testing.T) {
err := i2pd.WriteAllFiles(FS, "test-test")
if err != nil {
t.Fatal(err)
}
t.Log("Wrote files")
}

View File

@ -1,72 +0,0 @@
// Code generated by Lorca. DO NOT EDIT.
package i2pdtest
import (
"bytes"
"errors"
"net/http"
"os"
"time"
)
var assets = map[string][]byte{}
var FS = &fs{}
type fs struct{}
func (fs *fs) Open(name string) (http.File, error) {
if name == "/" {
return fs, nil
}
b, ok := assets[name]
if !ok {
return nil, os.ErrNotExist
}
return &file{name: name, size: len(b), Reader: bytes.NewReader(b)}, nil
}
func (fs *fs) Close() error { return nil }
func (fs *fs) Read(p []byte) (int, error) { return 0, nil }
func (fs *fs) Seek(offset int64, whence int) (int64, error) { return 0, nil }
func (fs *fs) Stat() (os.FileInfo, error) { return fs, nil }
func (fs *fs) Name() string { return "/" }
func (fs *fs) Size() int64 { return 0 }
func (fs *fs) Mode() os.FileMode { return 0755 }
func (fs *fs) ModTime() time.Time { return time.Time{} }
func (fs *fs) IsDir() bool { return true }
func (fs *fs) Sys() interface{} { return nil }
func (fs *fs) Readdir(count int) ([]os.FileInfo, error) {
files := []os.FileInfo{}
for name, data := range assets {
files = append(files, &file{name: name, size: len(data), Reader: bytes.NewReader(data)})
}
return files, nil
}
type file struct {
name string
size int
*bytes.Reader
}
func (f *file) Close() error { return nil }
func (f *file) Readdir(count int) ([]os.FileInfo, error) { return nil, errors.New("not supported") }
func (f *file) Stat() (os.FileInfo, error) { return f, nil }
func (f *file) Name() string { return f.name }
func (f *file) Size() int64 { return int64(f.size) }
func (f *file) Mode() os.FileMode { return 0644 }
func (f *file) ModTime() time.Time { return time.Time{} }
func (f *file) IsDir() bool { return false }
func (f *file) Sys() interface{} { return nil }
func init() {
assets["/subsubsubtest/test.txt"] = []byte{0x74, 0x65, 0x73, 0x74}
assets["/subsubsubtest/test_other.txt"] = []byte{0x74, 0x65, 0x73, 0x74}
assets["/subtest/subsubtest/test.txt"] = []byte{0x74, 0x65, 0x73, 0x74}
assets["/subtest/subsubtest/test_other.txt"] = []byte{0x74, 0x65, 0x73, 0x74}
assets["/subtest/test.txt"] = []byte{0x74, 0x65, 0x73, 0x74}
assets["/subtest/test_other.txt"] = []byte{0x74, 0x65, 0x73, 0x74}
assets["/test.txt"] = []byte{0x74, 0x65, 0x73, 0x74}
assets["/test_other.txt"] = []byte{0x74, 0x65, 0x73, 0x74}
}

Binary file not shown.

Binary file not shown.