mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01: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
|
||||
bundle.js
|
||||
heynote-electron/dist
|
||||
heynote-electron/dist-electron
|
||||
heynote-electron/release
|
||||
|
@ -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",
|
||||
|
@ -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>
|
||||
|
||||
|
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",
|
||||
"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"
|
||||
}
|
||||
|
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…
Reference in New Issue
Block a user