Linux: create Debian package
This commit is contained in:
3
static/linux/postinst
Normal file
3
static/linux/postinst
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
chmod +x /opt/webtorrent-desktop/WebTorrent
|
||||
ln -s /opt/webtorrent-desktop/WebTorrent /usr/bin/webtorrent-desktop
|
||||
2
static/linux/postrm
Normal file
2
static/linux/postrm
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
rm /usr/bin/webtorrent-desktop
|
||||
33
static/linux/webtorrent-desktop.desktop
Normal file
33
static/linux/webtorrent-desktop.desktop
Normal file
@@ -0,0 +1,33 @@
|
||||
[Desktop Entry]
|
||||
Name=$APP_NAME
|
||||
Version=1.0
|
||||
GenericName=BitTorrent Client
|
||||
X-GNOME-FullName=$APP_NAME
|
||||
Comment=Download and share files over BitTorrent
|
||||
Encoding=UTF-8
|
||||
Type=Application
|
||||
Icon=webtorrent-desktop
|
||||
Terminal=false
|
||||
Path=$APP_PATH
|
||||
Exec=$EXEC_PATH %U
|
||||
TryExec=$TRY_EXEC_PATH
|
||||
StartupNotify=false
|
||||
Categories=Network;FileTransfer;P2P;
|
||||
MimeType=application/x-bittorrent;x-scheme-handler/magnet;
|
||||
|
||||
Actions=CreateNewTorrent;OpenTorrentFile;OpenTorrentAddress;
|
||||
|
||||
[Desktop Action CreateNewTorrent]
|
||||
Name=Create New Torrent...
|
||||
Exec=$EXEC_PATH -n
|
||||
Path=$APP_PATH
|
||||
|
||||
[Desktop Action OpenTorrentFile]
|
||||
Name=Open Torrent File...
|
||||
Exec=$EXEC_PATH -o
|
||||
Path=$APP_PATH
|
||||
|
||||
[Desktop Action OpenTorrentAddress]
|
||||
Name=Open Torrent Address...
|
||||
Exec=$EXEC_PATH -u
|
||||
Path=$APP_PATH
|
||||
Reference in New Issue
Block a user