Skip to content

Commit

Permalink
🔖 0.0.1版本发布
Browse files Browse the repository at this point in the history
  • Loading branch information
hczs committed Sep 28, 2023
1 parent 8199df5 commit a029664
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 198 deletions.
91 changes: 0 additions & 91 deletions README.md

This file was deleted.

91 changes: 0 additions & 91 deletions README.zh-CN.md

This file was deleted.

8 changes: 0 additions & 8 deletions e2e/example.spec.ts

This file was deleted.

Binary file removed e2e/screenshots/example.png
Binary file not shown.
2 changes: 1 addition & 1 deletion electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @see https://www.electron.build/configuration/configuration
*/
{
"appId": "YourAppID",
"appId": "icu.sunnyc",
"asar": true,
"directories": {
"output": "release/${version}"
Expand Down
Binary file removed electron-vite-react-debug.gif
Binary file not shown.
Binary file removed electron-vite-react.gif
Binary file not shown.
2 changes: 1 addition & 1 deletion electron/electron-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare namespace NodeJS {
interface ProcessEnv {
VSCODE_DEBUG?: 'true'
VSCODE_DEBUG?: 'false'
DIST_ELECTRON: string
DIST: string
/** /dist/ or /public/ */
Expand Down
7 changes: 6 additions & 1 deletion electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ let store = new Store();

async function createWindow() {
win = new BrowserWindow({
title: 'Main window',
title: 'KafkaDesktop',
icon: join(process.env.VITE_PUBLIC, 'favicon.ico'),
height: 800,
width: 1100,
webPreferences: {
preload,
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
Expand All @@ -59,6 +61,9 @@ async function createWindow() {
},
})

// 隐藏顶部按钮
win.setMenu(null);

if (url) { // electron-vite-vue#298
win.loadURL(url)
// Open devTool if the app is not packaged
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<title>Electron + Vite + React</title>
<title>KafkaDesktop</title>
</head>
<body>
<div id="root"></div>
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "electron-vite-react",
"version": "2.2.0",
"name": "kafka-desktop",
"version": "0.0.1",
"main": "dist-electron/main/index.js",
"description": "Electron Vite React boilerplate.",
"author": "草鞋没号 <[email protected]>",
"description": "kafka desktop",
"author": "houcheng",
"license": "MIT",
"private": true,
"debug": {
Expand Down

0 comments on commit a029664

Please sign in to comment.