Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion electron/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ipcListen } from './ipcEvent';
const electron = require('electron');
const platform = require('os').platform(); // 获取平台:https://nodejs.org/api/os.html#os_os_platform
const version = '0.1.1';
const version = '0.1.2';

// 控制app生命周期.
const app = electron.app;
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "labelbee-client",
"version": "0.1.1",
"version": "0.1.2",
"private": true,
"homepage": "./",
"author": "laoluo <brady_luo.sz@foxmail.com>",
Expand Down Expand Up @@ -103,10 +103,11 @@
},
"scripts": {
"start": "node scripts/start.js",
"build": "npm run build-electron && rm -rf build && node scripts/build.js",
"update:hm": "node scripts/hm/update.js",
"build": "npm run update:hm && npm run build-electron && rm -rf build && node scripts/build.js",
"test": "node scripts/test.js",
"build-electron": "rm -rf electron/dist && tsc -p electron/tsconfig.json",
"electron-dev": "npm run build-electron && ELECTRON_START_URL=http://localhost:3000/ electron electron/dist/electron/main.js",
"electron-dev": "npm run build-electron && ELECTRON_START_URL=http://localhost:8080/ electron electron/dist/electron/main.js",
"packager:mac": "npm run build && rm -rf dist && electron-builder -m",
"packager:win": "npm run build && rm -rf dist && electron-builder -w",
"packager:linux": "npm run build && rm -rf dist && electron-builder -l",
Expand Down
Loading