Commit Graph

5 Commits (4462b61a08abf8228862564679192ae99a7cce9b)

Author SHA1 Message Date
Jordan Orelli 938f3e2f33 construct zip in memory
I don't like this but I want to get on with my day
3 years ago
Jordan Orelli 5e951ab46a move temp file into place (broken)
this doens't work if os.TempDir and the current directory are in
different filesystems because it's a cross-filesystem move. Annoying af
honestly. I think I have to use zip.Create instead of zip.CreateFromDir
and handle the file exclusion myself.

I could in theory create the zip into memory and then write it to avoid
CreateFromDir trying to circularly zip up its own output but I don't
like that.
3 years ago
Jordan Orelli 953ffbdef4 create zip archive in temp dir
ok so there are some problems when you're creating the archive but
you're at the root of the project. Namely, the mod package tries to put
the zip inside of itself. So we have to go around that by creating the
zip somewhere else and moving it. This is the first step in that
process.
3 years ago
Jordan Orelli a33a47e940 improve zip path handling 3 years ago
Jordan Orelli 208bb98577 organize 3 years ago