Linux .deb file: update symlink on package update

* overwrite symlink on update

* fix size and list definition
This commit is contained in:
grunjol
2016-04-07 00:48:00 -03:00
parent 628c93bc1e
commit 0921f89eb7
4 changed files with 4 additions and 3 deletions

View File

@@ -303,9 +303,10 @@ function buildLinux (packageType, cb) {
info: { info: {
arch: 'amd64', arch: 'amd64',
targetDir: distPath, targetDir: distPath,
depends: 'libc6 (>= 2.4)',
scripts: { scripts: {
postinst: path.join(config.STATIC_PATH, 'linux', 'postinst'), postinst: path.join(config.STATIC_PATH, 'linux', 'postinst'),
postrm: path.join(config.STATIC_PATH, 'linux', 'postrm') prerm: path.join(config.STATIC_PATH, 'linux', 'prerm')
} }
} }
}, [{ }, [{

View File

@@ -44,7 +44,7 @@
"electron-packager": "^6.0.0", "electron-packager": "^6.0.0",
"electron-winstaller": "feross/windows-installer#build", "electron-winstaller": "feross/windows-installer#build",
"gh-release": "^2.0.3", "gh-release": "^2.0.3",
"nobin-debian-installer": "^0.0.6", "nobin-debian-installer": "^0.0.8",
"plist": "^1.2.0", "plist": "^1.2.0",
"standard": "^6.0.5" "standard": "^6.0.5"
}, },

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
set -e set -e
chmod +x /opt/webtorrent-desktop/WebTorrent chmod +x /opt/webtorrent-desktop/WebTorrent
ln -s /opt/webtorrent-desktop/WebTorrent /usr/bin/webtorrent-desktop ln -s -f /opt/webtorrent-desktop/WebTorrent /usr/bin/webtorrent-desktop