mirror of
https://github.com/sern-handler/gui
synced 2026-06-17 21:32:13 +00:00
Compare commits
8 Commits
localizati
...
fix-builds
| Author | SHA1 | Date | |
|---|---|---|---|
| 405228f417 | |||
| 4282b61eaa | |||
|
|
0d3a36faaa | ||
| 019acb5ba6 | |||
| 2a595746d6 | |||
| 6972abc098 | |||
| d608ff9446 | |||
| 09dbb1cef1 |
@@ -7,6 +7,10 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- run: yarn build-electron-win
|
- run: yarn build-electron-win
|
||||||
|
- run: mkdir /tmp/artifacts
|
||||||
|
- run: mv -t /tmp/artifacts dist/*.exe
|
||||||
|
- store_artifacts:
|
||||||
|
path: /tmp/artifacts
|
||||||
build_linux:
|
build_linux:
|
||||||
docker:
|
docker:
|
||||||
- image: node:lts
|
- image: node:lts
|
||||||
@@ -14,6 +18,10 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- run: yarn build-electron-linux
|
- run: yarn build-electron-linux
|
||||||
|
- run: mkdir /tmp/artifacts
|
||||||
|
- run: mv -t /tmp/artifacts dist/*.snap dist/*.AppImage
|
||||||
|
- store_artifacts:
|
||||||
|
path: /tmp/artifacts
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -13,8 +13,7 @@ module.exports = {
|
|||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaVersion: 'latest',
|
ecmaVersion: 'latest',
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
tsconfigRootDir: __dirname,
|
tsconfigRootDir: __dirname
|
||||||
project: '.swcrc'
|
|
||||||
},
|
},
|
||||||
plugins: ['react-refresh'],
|
plugins: ['react-refresh'],
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import * as path from 'node:path'
|
import * as path from 'node:path'
|
||||||
import { app, BrowserWindow, dialog, ipcMain } from 'electron';
|
import { app, BrowserWindow, dialog, ipcMain } from 'electron';
|
||||||
import * as isDev from 'electron-is-dev';
|
|
||||||
import * as colorette from 'colorette';
|
import * as colorette from 'colorette';
|
||||||
import * as fs from 'node:fs'
|
import * as fs from 'node:fs'
|
||||||
import * as os from 'node:os'
|
import * as os from 'node:os'
|
||||||
@@ -19,10 +18,10 @@ function createWindow() {
|
|||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
title: 'sern',
|
title: 'sern',
|
||||||
});
|
});
|
||||||
if (isDev) {
|
if (app.isPackaged) {
|
||||||
mainWindow.loadURL('http://localhost:5173');
|
|
||||||
} else {
|
|
||||||
mainWindow.loadFile(path.join(__dirname, '../build/index.html'));
|
mainWindow.loadFile(path.join(__dirname, '../build/index.html'));
|
||||||
|
} else {
|
||||||
|
mainWindow.loadURL('http://localhost:5173');
|
||||||
}
|
}
|
||||||
|
|
||||||
mainWindow.on('ready-to-show', () => {
|
mainWindow.on('ready-to-show', () => {
|
||||||
|
|||||||
BIN
icons/icon.icns
BIN
icons/icon.icns
Binary file not shown.
BIN
icons/icon.ico
BIN
icons/icon.ico
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 98 KiB |
BIN
icons/icon.png
BIN
icons/icon.png
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -26,7 +26,6 @@
|
|||||||
"@mui/icons-material": "^5.11.16",
|
"@mui/icons-material": "^5.11.16",
|
||||||
"@mui/material": "^5.13.4",
|
"@mui/material": "^5.13.4",
|
||||||
"colorette": "^2.0.20",
|
"colorette": "^2.0.20",
|
||||||
"electron-is-dev": "^2.0.0",
|
|
||||||
"i18next": "^23.4.4",
|
"i18next": "^23.4.4",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
@@ -50,7 +49,6 @@
|
|||||||
"vite": "^4.4.0"
|
"vite": "^4.4.0"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"extends": null,
|
|
||||||
"files": [
|
"files": [
|
||||||
"./build/**/*",
|
"./build/**/*",
|
||||||
"./dist/index.js"
|
"./dist/index.js"
|
||||||
|
|||||||
@@ -1801,11 +1801,6 @@ electron-builder@^24.4.0:
|
|||||||
simple-update-notifier "^1.1.0"
|
simple-update-notifier "^1.1.0"
|
||||||
yargs "^17.6.2"
|
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:
|
electron-publish@24.4.0:
|
||||||
version "24.4.0"
|
version "24.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-24.4.0.tgz#a58f49ecd727620f65372881788ebb1a9b853284"
|
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-24.4.0.tgz#a58f49ecd727620f65372881788ebb1a9b853284"
|
||||||
|
|||||||
Reference in New Issue
Block a user