Dropped from TZipFileStream
This commit is contained in:
parent
ccb9ae2d52
commit
a400987590
2 changed files with 3 additions and 2 deletions
|
|
@ -109,12 +109,13 @@ proc addFile*(z: var ZipArchive, dest: string, src: Stream) =
|
||||||
# -------------- zip file stream ---------------------------------------------
|
# -------------- zip file stream ---------------------------------------------
|
||||||
|
|
||||||
type
|
type
|
||||||
TZipFileStream = object of StreamObj
|
ZipFileStream = object of StreamObj
|
||||||
f: PZipFile
|
f: PZipFile
|
||||||
atEnd: bool
|
atEnd: bool
|
||||||
|
|
||||||
PZipFileStream* =
|
PZipFileStream* =
|
||||||
ref ZipFileStream ## a reader stream of a file within a zip archive
|
ref ZipFileStream ## a reader stream of a file within a zip archive
|
||||||
|
{.deprecated: [TZipFileStream: ZipFileStream].}
|
||||||
|
|
||||||
proc fsClose(s: Stream) = zip_fclose(PZipFileStream(s).f)
|
proc fsClose(s: Stream) = zip_fclose(PZipFileStream(s).f)
|
||||||
proc fsAtEnd(s: Stream): bool = PZipFileStream(s).atEnd
|
proc fsAtEnd(s: Stream): bool = PZipFileStream(s).atEnd
|
||||||
|
|
|
||||||
|
|
@ -538,7 +538,7 @@ when haveZipLib:
|
||||||
var n = "$#.zip" % proj
|
var n = "$#.zip" % proj
|
||||||
if c.outdir.len == 0: n = "build" / n
|
if c.outdir.len == 0: n = "build" / n
|
||||||
else: n = c.outdir / n
|
else: n = c.outdir / n
|
||||||
var z: TZipArchive
|
var z: ZipArchive
|
||||||
if open(z, n, fmWrite):
|
if open(z, n, fmWrite):
|
||||||
addFile(z, proj / buildBatFile32, "build" / buildBatFile32)
|
addFile(z, proj / buildBatFile32, "build" / buildBatFile32)
|
||||||
addFile(z, proj / buildBatFile64, "build" / buildBatFile64)
|
addFile(z, proj / buildBatFile64, "build" / buildBatFile64)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue