Linux: create Debian package
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user