update save config
|
After Width: | Height: | Size: 4.2 KiB |
BIN
build/icon.icns
BIN
build/icon.png
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 3.2 KiB |
|
|
@ -16,7 +16,7 @@ asarUnpack:
|
||||||
- resources/**
|
- resources/**
|
||||||
|
|
||||||
win:
|
win:
|
||||||
target: nsis
|
target: portable
|
||||||
executableName: ShotcutApp
|
executableName: ShotcutApp
|
||||||
publisherName: apactech
|
publisherName: apactech
|
||||||
|
|
||||||
|
|
|
||||||
|
After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 610 B |
|
|
@ -6,6 +6,7 @@ import fs from 'fs'
|
||||||
import path, { join } from 'path'
|
import path, { join } from 'path'
|
||||||
import ws from 'windows-shortcuts'
|
import ws from 'windows-shortcuts'
|
||||||
import icon from '../../resources/icon.png?asset'
|
import icon from '../../resources/icon.png?asset'
|
||||||
|
import trayIcon from '../../resources/tray-icon.png?asset'
|
||||||
import { registerGlobalShortcuts, unregisterGlobalShortcuts } from './shotcut'
|
import { registerGlobalShortcuts, unregisterGlobalShortcuts } from './shotcut'
|
||||||
|
|
||||||
let mainWindow: null | BrowserWindow = null
|
let mainWindow: null | BrowserWindow = null
|
||||||
|
|
@ -88,7 +89,7 @@ function createWindow(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createTray() {
|
function createTray() {
|
||||||
const tray = new Tray(icon)
|
const tray = new Tray(trayIcon)
|
||||||
|
|
||||||
const contextMenu = Menu.buildFromTemplate([
|
const contextMenu = Menu.buildFromTemplate([
|
||||||
{
|
{
|
||||||
|
|
|
||||||