Fix resources paths for packaged app
This commit is contained in:
parent
9972421f18
commit
ab1bbff252
7
main.js
7
main.js
|
@ -8,7 +8,8 @@ let mainWindow
|
||||||
let tray = null;
|
let tray = null;
|
||||||
|
|
||||||
function initApp() {
|
function initApp() {
|
||||||
tray = new Tray('./images/icon.png')
|
let iconPath = __dirname + '/images/icon.png'
|
||||||
|
tray = new Tray(iconPath)
|
||||||
tray.setToolTip('Chimeverse')
|
tray.setToolTip('Chimeverse')
|
||||||
createWindow();
|
createWindow();
|
||||||
tray.on('click', function() {
|
tray.on('click', function() {
|
||||||
|
@ -79,11 +80,11 @@ app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');
|
||||||
* Export functions
|
* Export functions
|
||||||
*/
|
*/
|
||||||
function showEnvelope() {
|
function showEnvelope() {
|
||||||
tray.setImage('./images/envelope.png')
|
tray.setImage(__dirname + '/images/envelope.png')
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideEnvelope() {
|
function hideEnvelope() {
|
||||||
tray.setImage('./images/icon.png')
|
tray.setImage(__dirname + '/images/icon.png')
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.showEnvelope = showEnvelope;
|
exports.showEnvelope = showEnvelope;
|
||||||
|
|
|
@ -68,7 +68,7 @@ angApp.factory('SystemService', () => {
|
||||||
let systemService = {}
|
let systemService = {}
|
||||||
|
|
||||||
systemService.playAudio = () => {
|
systemService.playAudio = () => {
|
||||||
var audio = new Audio('sounds/graceful.ogg')
|
var audio = new Audio(__dirname + '/sounds/graceful.ogg')
|
||||||
audio.play()
|
audio.play()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue