From be2e023100fc3f64db9fa3f9fc38312d90407a80 Mon Sep 17 00:00:00 2001 From: bkdev98 Date: Mon, 15 Feb 2021 08:01:34 +0700 Subject: [PATCH] polaris --- main.js | 5 +---- package.json | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main.js b/main.js index fe70f9a..e59ba7f 100644 --- a/main.js +++ b/main.js @@ -20,13 +20,10 @@ function createWindow() { titleBarStyle: 'hiddenInset', webPreferences: { webSecurity: false, - nativeWindowOpen: true, - nodeIntegration: true, - enableRemoteModule: true, }, }); - mainWindow.webContents.openDevTools(); + // mainWindow.webContents.openDevTools(); mainWindow.loadURL(LOAD_URL); diff --git a/package.json b/package.json index c8f5c57..d15f7ac 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "license": "MIT", "scripts": { "react-build": "rm -rf polar-web && git clone https://github.com/polar-write/polar-web.git && cd polar-web && yarn && yarn build && cd ..", + "react-build-update": "cd polar-web && git pull && yarn && yarn build && cd ..", "build": "yarn react-build && yarn dist:mac && yarn dist:win", + "build-update": "yarn react-build-update && yarn dist:mac && yarn dist:win", "dist:mac": "electron-builder --mac", "dist:win": "electron-builder --win --x64 --ia32", "prebuild": "rm -rf ./polar-web/build && rm -rf ./dist",