Fix Electron build stuff.

Add icon.
Upgrade som packages.
This commit is contained in:
Jonatan Heyman 2023-01-13 01:45:14 +01:00
parent 77d457bdee
commit 1852ea7a03
6 changed files with 876 additions and 907 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
node_modules
bundle.js
heynote-electron/dist
heynote-electron/dist-electron
heynote-electron/release

View File

@ -2,11 +2,12 @@
* @see https://www.electron.build/configuration/configuration
*/
{
"appId": "YourAppID",
"appId": "com.heynote.app",
"asar": true,
"icon": "public/favicon.ico",
//"icon": "public/favicon.ico",
"directories": {
"output": "release/${version}"
"output": "release/${version}",
"buildResources": "resources"
},
"files": [
"dist-electron",

View File

@ -6,13 +6,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<title>heynote</title>
<link rel="stylesheet" href="/src/editor/styles.css" />
<link rel="stylesheet" href="src/editor/styles.css" />
</head>
<body>
<div id="editor" style="width:100%; height:100%;"></div>
<!--<div id="app"></div>-->
<!--<script type="module" src="/src/main.ts"></script>-->
<script type="module" src="/src/editor/index.js"></script>
<script type="module" src="src/editor/index.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +1,26 @@
{
"name": "electron-vue-vite",
"version": "2.0.0",
"name": "Heynote",
"version": "0.0.1",
"main": "dist-electron/main/index.js",
"description": "Really simple Electron + Vue + Vite boilerplate.",
"author": "草鞋没号 <308487730@qq.com>",
"license": "MIT",
"description": "A dedicated scratch pad",
"author": "Jonatan Heyman (https://heyman.info)",
"license": "",
"private": true,
"keywords": [
"electron",
"rollup",
"vite",
"vue3",
"vue"
],
"keywords": [],
"debug": {
"env": {
"VITE_DEV_SERVER_URL": "http://127.0.0.1:3344/"
}
},
"build": {
"appId": "com.heynote.app",
"directories": {
"buildResources": "resources"
}
},
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build && electron-builder",
"build": "vue-tsc --noEmit && vite build && electron-builder -c electron-builder.json5",
"preview": "vite preview",
"build_grammar": "lezer-generator src/editor/lang-heynote/heynote.grammar -o src/editor/lang-heynote/parser.js"
},
@ -42,11 +42,11 @@
"@vitejs/plugin-vue": "^4.0.0",
"codemirror": "^6.0.1",
"electron": "^22.0.0",
"electron-builder": "^22.10.3",
"electron-builder": "^23.6.0",
"typescript": "^4.9.4",
"vite": "^4.0.3",
"vite-plugin-electron": "^0.11.1",
"vite-plugin-electron-renderer": "^0.11.3",
"vite-plugin-electron-renderer": "^0.11.4",
"vue": "^3.2.45",
"vue-tsc": "^1.0.16"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB