Skip to content

Commit 843124f

Browse files
🔥 chore: remove Menu import from 'electron' in main.ts and update build script in package.json
🔖 version: bump package version from 0.0.6 to 0.0.7 In `electron/main.ts`, the `Menu` import from the `electron` package was removed, streamlining the import statement by eliminating an unused component. This change contributes to better code maintainability and performance. In `package.json`, the version was incremented from 0.0.6 to 0.0.7, reflecting the ongoing development and updates made to the application. The build script was also updated to include flags for multiple platforms (`-mwl`), enhancing the build process's versatility and ensuring compatibility across various operating systems.
1 parent 93c19cd commit 843124f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎electron/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { app, BrowserWindow, ipcMain, desktopCapturer, dialog, nativeImage, shell, systemPreferences, Tray, Menu } from 'electron'
1+
import { app, BrowserWindow, ipcMain, desktopCapturer, dialog, nativeImage, shell, systemPreferences, Tray } from 'electron'
22
import os from 'os';
33
import axios from 'axios';
44
const { getWindows, activateWindow } = require('mac-windows');

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "screenlink-desktop",
33
"private": true,
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"author": "Screenlink",
66
"description": "Screenlink Desktop",
77
"scripts": {
88
"dev": "NODE_ENV=development vite",
9-
"build": "tsc && vite build && electron-builder",
9+
"build": "tsc && vite build && electron-builder -mwl",
1010
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1111
"preview": "vite preview"
1212
},

0 commit comments

Comments
 (0)