Skip to content

Commit f121496

Browse files
committed
Fix tar.gz archiving
1 parent 5982892 commit f121496

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

electron/lib/packaging.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ const rename = (ext, name, done) => {
109109
fs.rename(R.when(R.is(Array), R.head)(findPackage(ext)), paths.release(`installers/${name}`), done)
110110
}
111111
const finalName = (ext) => `${pkg.name}-${pkg.version}-${pkgOptions.platform}-x${pkgOptions.arch}.${ext || pkgOptions.type}`
112-
const zipPackage = (type, done) => {
113-
const output = fs.createWriteStream(paths.release(`installers/${finalName(type)}`))
114-
const archive = archiver(type)
112+
const zipPackage = (options, done) => {
113+
const output = fs.createWriteStream(paths.release(`installers/${finalName(options.type)}`))
114+
const archive = archiver(options.type, options)
115+
115116
output.on('close', done)
116117
output.on('error', done)
117118

@@ -164,7 +165,7 @@ const createInstaller = (done) => {
164165
case 'deb':
165166
series([
166167
apply(linuxInstaller, debInstaller),
167-
apply(zipPackage, 'tar.gz')
168+
apply(zipPackage, { type: 'tar', gzip: true})
168169
], done)
169170
break
170171
case 'rpm':
@@ -173,7 +174,7 @@ const createInstaller = (done) => {
173174
case 'dmg':
174175
series([
175176
darwinInstaller,
176-
apply(zipPackage, 'zip')
177+
apply(zipPackage, { type: 'zip' })
177178
], done)
178179
break
179180
case 'exe':

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"electron-installer-dmg": "^0.2.1",
2929
"electron-installer-redhat": "^0.4.0",
3030
"electron-packager": "^8.6.0",
31-
"electron-winstaller": "^2.5.2",
31+
"electron-winstaller": "^2.6.3",
3232
"gh-release": "^3.1.1",
3333
"glob": "^7.0.5",
3434
"gulp": "github:gulpjs/gulp#4.0",

0 commit comments

Comments
 (0)