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({ const win = new BrowserWindow({
width: 800, width: 800,
height: 600, height: 600,
icon: path.join(__dirname, 'public/icon.ico'), icon: path.join(__dirname, 'public', 'icon.ico') ,
webPreferences: { webPreferences: {
preload: path.join(__dirname, 'preload.js'), preload: path.join(__dirname, 'preload.js'),
contextIsolation: true, contextIsolation: true,

View File

@ -4,7 +4,7 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"main": "main.cjs", "main": "main.cjs",
"description": "Application to design database diagrams.", "description": "Free, simple, and intuitive online database design tool and SQL generator.",
"author": "1ilit", "author": "1ilit",
"scripts": { "scripts": {
"dev": "vite && npm run electron", "dev": "vite && npm run electron",
@ -57,18 +57,29 @@
"main.cjs", "main.cjs",
"preload.js", "preload.js",
"package.json", "package.json",
"node_modules/**/*" "node_modules/**/*",
"public/icon.ico"
], ],
"win": { "win": {
"icon": "public/icon.ico", "icon": "public/icon.ico",
"target": "nsis", "target": "nsis",
"signAndEditExecutable": false "signAndEditExecutable": false
}, },
"nsis": {
"oneClick": false,
"perMachine": true,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "drawDB"
},
"mac": { "mac": {
"icon": "public/icon.icns",
"target": "dmg" "target": "dmg"
}, },
"linux": { "linux": {
"target": ["AppImage", "deb", "rpm"] "icon": "public/icon.png",
"target": "AppImage"
} }
}, },
"devDependencies": { "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() { export default function NotFound() {
const location = useLocation(); // Obtiene la ubicación actual
return ( return (
<div className="p-3 space-y-2"> <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> <p>
<a className="text-blue-600" href="mailto:drawdb@outlook.com"> <a className="text-blue-600" href="mailto:drawdb@outlook.com">
Shoot us an email shoot us an email
</a>{" "} </a>{" "}
or{" "} or{" "}
<a className="text-blue-600" href="https://discord.gg/BrjZgNrmR6"> <a
a message on Discord className="text-blue-600"
href="https://discord.gg/BrjZgNrmR6"
>
a message on discord
</a> </a>
</p> </p>
<br /> <br />
<p className="opacity-70"> <p className="opacity-70">
The page you were looking for: <strong>{location.pathname}</strong> does not exist. * to create a relationship hold the blue dot of a field and drag it
</p> towards the field you want to connect it to
<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.
</p> </p>
</div> </div>
); );