Linux: create Debian package

This commit is contained in:
grunjol
2016-03-29 00:34:45 -03:00
parent 0271b41996
commit a40ab460da
6 changed files with 48 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ function initLinux () {
installIconFile()
function installDesktopFile () {
var templatePath = path.join(config.STATIC_PATH, 'webtorrent.desktop')
var templatePath = path.join(config.STATIC_PATH, 'linux', 'webtorrent-desktop.desktop')
fs.readFile(templatePath, 'utf8', writeDesktopFile)
}
@@ -53,7 +53,7 @@ function initLinux () {
'.local',
'share',
'applications',
'webtorrent.desktop'
'webtorrent-desktop.desktop'
)
mkdirp(path.dirname(desktopFilePath))
fs.writeFile(desktopFilePath, desktopFile, function (err) {
@@ -74,7 +74,7 @@ function initLinux () {
'.local',
'share',
'icons',
'webtorrent.png'
'webtorrent-desktop.png'
)
mkdirp(path.dirname(iconFilePath))
fs.writeFile(iconFilePath, iconFile, function (err) {