mirror of
https://github.com/heyman/heynote.git
synced 2025-06-20 17:47:42 +02:00
Fix Electron build stuff.
Add icon. Upgrade som packages.
This commit is contained in:
parent
77d457bdee
commit
1852ea7a03
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
node_modules
|
node_modules
|
||||||
bundle.js
|
bundle.js
|
||||||
|
heynote-electron/dist
|
||||||
|
heynote-electron/dist-electron
|
||||||
|
heynote-electron/release
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
* @see https://www.electron.build/configuration/configuration
|
* @see https://www.electron.build/configuration/configuration
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
"appId": "YourAppID",
|
"appId": "com.heynote.app",
|
||||||
"asar": true,
|
"asar": true,
|
||||||
"icon": "public/favicon.ico",
|
//"icon": "public/favicon.ico",
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "release/${version}"
|
"output": "release/${version}",
|
||||||
|
"buildResources": "resources"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist-electron",
|
"dist-electron",
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
|
||||||
<title>heynote</title>
|
<title>heynote</title>
|
||||||
<link rel="stylesheet" href="/src/editor/styles.css" />
|
<link rel="stylesheet" href="src/editor/styles.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="editor" style="width:100%; height:100%;"></div>
|
<div id="editor" style="width:100%; height:100%;"></div>
|
||||||
<!--<div id="app"></div>-->
|
<!--<div id="app"></div>-->
|
||||||
<!--<script type="module" src="/src/main.ts"></script>-->
|
<!--<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
1739
heynote-electron/package-lock.json
generated
1739
heynote-electron/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,26 +1,26 @@
|
|||||||
{
|
{
|
||||||
"name": "electron-vue-vite",
|
"name": "Heynote",
|
||||||
"version": "2.0.0",
|
"version": "0.0.1",
|
||||||
"main": "dist-electron/main/index.js",
|
"main": "dist-electron/main/index.js",
|
||||||
"description": "Really simple Electron + Vue + Vite boilerplate.",
|
"description": "A dedicated scratch pad",
|
||||||
"author": "草鞋没号 <308487730@qq.com>",
|
"author": "Jonatan Heyman (https://heyman.info)",
|
||||||
"license": "MIT",
|
"license": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"keywords": [
|
"keywords": [],
|
||||||
"electron",
|
|
||||||
"rollup",
|
|
||||||
"vite",
|
|
||||||
"vue3",
|
|
||||||
"vue"
|
|
||||||
],
|
|
||||||
"debug": {
|
"debug": {
|
||||||
"env": {
|
"env": {
|
||||||
"VITE_DEV_SERVER_URL": "http://127.0.0.1:3344/"
|
"VITE_DEV_SERVER_URL": "http://127.0.0.1:3344/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"build": {
|
||||||
|
"appId": "com.heynote.app",
|
||||||
|
"directories": {
|
||||||
|
"buildResources": "resources"
|
||||||
|
}
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"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",
|
"preview": "vite preview",
|
||||||
"build_grammar": "lezer-generator src/editor/lang-heynote/heynote.grammar -o src/editor/lang-heynote/parser.js"
|
"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",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"codemirror": "^6.0.1",
|
"codemirror": "^6.0.1",
|
||||||
"electron": "^22.0.0",
|
"electron": "^22.0.0",
|
||||||
"electron-builder": "^22.10.3",
|
"electron-builder": "^23.6.0",
|
||||||
"typescript": "^4.9.4",
|
"typescript": "^4.9.4",
|
||||||
"vite": "^4.0.3",
|
"vite": "^4.0.3",
|
||||||
"vite-plugin-electron": "^0.11.1",
|
"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": "^3.2.45",
|
||||||
"vue-tsc": "^1.0.16"
|
"vue-tsc": "^1.0.16"
|
||||||
}
|
}
|
||||||
|
BIN
heynote-electron/resources/icon.png
Normal file
BIN
heynote-electron/resources/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
x
Reference in New Issue
Block a user