Skip to content

Commit a3508b0

Browse files
committed
add version to context menu
1 parent 00c0016 commit a3508b0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

index.js

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ const config = require('./config.js');
1111
const util = require('./util.js');
1212
const API = require('./api.js');
1313

14+
const package_json = require('./package.json');
15+
const VERSION = package_json.version;
16+
1417
let tray;
1518

1619

@@ -100,6 +103,10 @@ app.on('activate', async () => {
100103
tray = new Tray(icon.resize({ width: 24, height: 24 }));
101104

102105
const contextMenu = Menu.buildFromTemplate([
106+
{
107+
label: 'Version: ' + VERSION,
108+
enabled: false
109+
},
103110
{
104111
label: 'API running on port: ' + config.get('apiPort'),
105112
enabled: false

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "spotify-controller",
33
"productName": "Spotify Controller",
4-
"version": "0.1.3",
4+
"version": "0.1.4",
55
"description": "Control Spotify on MacOS over the network",
66
"license": "MIT",
77
"repository": "josephdadams/spotify-controller",

0 commit comments

Comments
 (0)