add icon, custom installation update

This commit is contained in:
DNLRQ 2024-11-28 14:24:38 -07:00
parent 6216ba5133
commit bfdd2f4b63
6 changed files with 25 additions and 31 deletions

View File

@ -9,7 +9,7 @@ function createWindow() {
const win = new BrowserWindow({
width: 800,
height: 600,
icon: path.join(__dirname, 'public/icon.ico'),
icon: path.join(__dirname, 'public', 'icon.ico') ,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
contextIsolation: true,

View File

@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"main": "main.cjs",
"description": "Application to design database diagrams.",
"description": "Free, simple, and intuitive online database design tool and SQL generator.",
"author": "1ilit",
"scripts": {
"dev": "vite && npm run electron",
@ -57,18 +57,29 @@
"main.cjs",
"preload.js",
"package.json",
"node_modules/**/*"
"node_modules/**/*",
"public/icon.ico"
],
"win": {
"icon": "public/icon.ico",
"target": "nsis",
"signAndEditExecutable": false
},
"nsis": {
"oneClick": false,
"perMachine": true,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "drawDB"
},
"mac": {
"icon": "public/icon.icns",
"target": "dmg"
},
"linux": {
"target": ["AppImage", "deb", "rpm"]
"icon": "public/icon.png",
"target": "AppImage"
}
},
"devDependencies": {

View File

@ -1,12 +0,0 @@
const fs = require('fs');
const path = require('path');
const source = path.join(__dirname, 'node_modules/electron/dist/ffmpeg.dll');
const destination = path.join(__dirname, 'dist/win-unpacked/ffmpeg.dll');
if (fs.existsSync(source)) {
fs.copyFileSync(source, destination);
console.log('ffmpeg.dll copiado exitosamente.');
} else {
console.error('No se encontró ffmpeg.dll en el directorio de Electron.');
}

BIN
public/icon.icns Normal file

Binary file not shown.

BIN
public/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -1,30 +1,25 @@
import { useLocation } from 'react-router-dom';
export default function NotFound() {
const location = useLocation(); // Obtiene la ubicación actual
return (
<div className="p-3 space-y-2">
<p>Hey there!</p>
<p>hey there!</p>
<p>Looking for something you couldn&apos;t find?</p>
<p>looking for something you couldn&apos;t find?</p>
<p>
<a className="text-blue-600" href="mailto:drawdb@outlook.com">
Shoot us an email
shoot us an email
</a>{" "}
or{" "}
<a className="text-blue-600" href="https://discord.gg/BrjZgNrmR6">
a message on Discord
<a
className="text-blue-600"
href="https://discord.gg/BrjZgNrmR6"
>
a message on discord
</a>
</p>
<br />
<p className="opacity-70">
The page you were looking for: <strong>{location.pathname}</strong> does not exist.
</p>
<br />
<p className="opacity-70">
* To create a relationship, hold the blue dot of a field and drag it
towards the field you want to connect it to.
* to create a relationship hold the blue dot of a field and drag it
towards the field you want to connect it to
</p>
</div>
);