Skip to content

A full-featured download manager.

feat: add torrent to file associations

Dr_rOot16e9c8d848ba
diff --git a/build/torrent.icns b/build/torrent.icns
new file mode 100644
index 00000000..6d8e3156
Binary files /dev/null and b/build/torrent.icns differ
diff --git a/build/torrent.ico b/build/torrent.ico
new file mode 100644
index 00000000..7bdcbf8b
Binary files /dev/null and b/build/torrent.ico differ
diff --git a/package.json b/package.json
index ee3be3ff..73c159ca 100644
--- a/package.json
+++ b/package.json
@@ -32,6 +32,16 @@
"build": {
"productName": "Motrix",
"appId": "net.agalwood.Motrix",
+ "fileAssociations": [
+ {
+ "ext": [
+ "torrent"
+ ],
+ "mimeType": "application/x-bittorrent",
+ "name": "Torrent",
+ "role": "Viewer"
+ }
+ ],
"asar": true,
"directories": {
"output": "release"
@@ -138,6 +148,7 @@
"@panter/vue-i18next": "^0.15.0",
"aria2": "^4.0.3",
"axios": "^0.18.0",
+ "blob-util": "^2.0.2",
"clipboard-polyfill": "^2.7.0",
"electron-debug": "^2.1.0",
"electron-is": "^3.0.0",