4 Commits

Author SHA1 Message Date
405228f417 fix: build errors 2023-08-23 22:39:56 +02:00
4282b61eaa Merge pull request #4 from sern-handler/ci/build-artifacts
ci: build artifacts
2023-08-23 13:33:37 +02:00
Jacob Nguyen
0d3a36faaa Merge pull request #5 from sern-handler/new-icons
feat: new sern logo
2023-08-22 17:11:31 -05:00
019acb5ba6 feat: new sern logo 2023-08-22 22:29:52 +02:00
6 changed files with 3 additions and 11 deletions

View File

@@ -1,6 +1,5 @@
import * as path from 'node:path'
import { app, BrowserWindow, dialog, ipcMain } from 'electron';
import * as isDev from 'electron-is-dev';
import * as colorette from 'colorette';
import * as fs from 'node:fs'
import * as os from 'node:os'
@@ -19,10 +18,10 @@ function createWindow() {
autoHideMenuBar: true,
title: 'sern',
});
if (isDev) {
mainWindow.loadURL('http://localhost:5173');
} else {
if (app.isPackaged) {
mainWindow.loadFile(path.join(__dirname, '../build/index.html'));
} else {
mainWindow.loadURL('http://localhost:5173');
}
mainWindow.on('ready-to-show', () => {

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -26,7 +26,6 @@
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.13.4",
"colorette": "^2.0.20",
"electron-is-dev": "^2.0.0",
"i18next": "^23.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
@@ -50,7 +49,6 @@
"vite": "^4.4.0"
},
"build": {
"extends": null,
"files": [
"./build/**/*",
"./dist/index.js"

View File

@@ -1801,11 +1801,6 @@ electron-builder@^24.4.0:
simple-update-notifier "^1.1.0"
yargs "^17.6.2"
electron-is-dev@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/electron-is-dev/-/electron-is-dev-2.0.0.tgz#833487a069b8dad21425c67a19847d9064ab19bd"
integrity sha512-3X99K852Yoqu9AcW50qz3ibYBWY79/pBhlMCab8ToEWS48R0T9tyxRiQhwylE7zQdXrMnx2JKqUJyMPmt5FBqA==
electron-publish@24.4.0:
version "24.4.0"
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-24.4.0.tgz#a58f49ecd727620f65372881788ebb1a9b853284"