From 0921f89eb7cccb86cacb4f18bc1a5e35a7828ee4 Mon Sep 17 00:00:00 2001 From: grunjol Date: Thu, 7 Apr 2016 00:48:00 -0300 Subject: [PATCH] Linux .deb file: update symlink on package update * overwrite symlink on update * fix size and list definition --- bin/package.js | 3 ++- package.json | 2 +- static/linux/postinst | 2 +- static/linux/{postrm => prerm} | 0 4 files changed, 4 insertions(+), 3 deletions(-) rename static/linux/{postrm => prerm} (100%) diff --git a/bin/package.js b/bin/package.js index e3423832..2b90990d 100755 --- a/bin/package.js +++ b/bin/package.js @@ -303,9 +303,10 @@ function buildLinux (packageType, cb) { info: { arch: 'amd64', targetDir: distPath, + depends: 'libc6 (>= 2.4)', scripts: { postinst: path.join(config.STATIC_PATH, 'linux', 'postinst'), - postrm: path.join(config.STATIC_PATH, 'linux', 'postrm') + prerm: path.join(config.STATIC_PATH, 'linux', 'prerm') } } }, [{ diff --git a/package.json b/package.json index 99eed43d..6ffbbf90 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "electron-packager": "^6.0.0", "electron-winstaller": "feross/windows-installer#build", "gh-release": "^2.0.3", - "nobin-debian-installer": "^0.0.6", + "nobin-debian-installer": "^0.0.8", "plist": "^1.2.0", "standard": "^6.0.5" }, diff --git a/static/linux/postinst b/static/linux/postinst index 19145082..59f2fdf0 100644 --- a/static/linux/postinst +++ b/static/linux/postinst @@ -1,4 +1,4 @@ #!/bin/sh set -e 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 diff --git a/static/linux/postrm b/static/linux/prerm similarity index 100% rename from static/linux/postrm rename to static/linux/prerm