Skip to content

Commit

Permalink
paths problems
Browse files Browse the repository at this point in the history
  • Loading branch information
NetherMC committed Jan 28, 2023
1 parent ad66ce8 commit 696a6cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deezer-discord-rpc",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Discord RPC for Deezer",
"main": "./src/index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/functions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Menu, Tray, BrowserWindow, Notification } from 'electron';
import { USE_AS_MAIN_APP } from './variables';
import * as RPC from 'discord-rpc';
import { resolve } from 'path';
import { resolve, join } from 'path';
import { version } from '../package.json';
import axios from 'axios';

Expand Down Expand Up @@ -39,7 +39,7 @@ export async function initTrayIcon(app: Electron.App) {
let tray: Tray | null = null;

app?.whenReady().then(() => {
tray = new Tray(resolve('src', 'img', 'icon.ico'));
tray = new Tray(join(__dirname, 'img', 'icon.ico'));
const contextMenu = Menu.buildFromTemplate([
{ label: 'Deezer Discord RPC', type: 'normal', enabled: false },
{ label: `Version: ${version}`, type: 'normal', enabled: false },
Expand All @@ -50,7 +50,7 @@ export async function initTrayIcon(app: Electron.App) {
const notification = new Notification({
title: 'Deezer Discord RPC',
body: 'New update available, click to update',
icon: resolve('src', 'img', 'icon.png')
icon: join(__dirname, 'img', 'icon.png')
});
notification.on('click', () => {

Expand Down

0 comments on commit 696a6cd

Please sign in to comment.