アーカイバーを使用して、ディレクトリを nodejs/node-webkit の zip ファイルとしてエクスポートしています。
var file_system = require("fs")
var archiver = require("archiver")
var output = file_system.createWriteStream("files.zip")
var archive = archiver("zip")
output.on("close", function() {
console.log(archive.pointer() + " total bytes")
console.log("archiver has been finalized and the output file descriptor has closed.")
})
archive.on("error", function(err) {
throw err
})
archive.pipe(output)
archive.bulk([
{ expand: true, cwd: "./content/project/", src: ["**"], dest: "./content/project/"}
])
archive.finalize()
ただし、従来の SaveFileDialog を使用して zip ファイルをエクスポートする場所をユーザーに設定させる方法については何も見つかりません。
node-webkitのSaveFileDialogを使用してzipファイルをエクスポートする場所をユーザーに設定させる方法を知っている人はいますか?