mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2024-10-04 08:07:41 +03:00
Fix deps
This commit is contained in:
parent
f5afafdc7d
commit
e6ba415aa0
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,4 +9,5 @@ compiled/*
|
||||
dist/*
|
||||
.cache
|
||||
app/package.json
|
||||
app/package-lock.json
|
||||
app/package-lock.json
|
||||
app/node_modules/*
|
||||
|
13
app/menu.js
13
app/menu.js
@ -2,6 +2,7 @@ const { app, Menu } = require('electron')
|
||||
const { checkForUpdates } = require('./updater')
|
||||
|
||||
const isMac = process.platform === 'darwin'
|
||||
const isLinux = process.platform === 'linux'
|
||||
|
||||
const template = [
|
||||
// { role: 'appMenu' }
|
||||
@ -86,10 +87,14 @@ const template = [
|
||||
{
|
||||
role: 'help',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Check For Updates',
|
||||
click: checkForUpdates
|
||||
},
|
||||
...(isLinux
|
||||
? []
|
||||
: [
|
||||
{
|
||||
label: 'Check For Updates',
|
||||
click: checkForUpdates
|
||||
}
|
||||
]),
|
||||
{
|
||||
label: 'Learn More',
|
||||
click: async () => {
|
||||
|
@ -17,7 +17,7 @@
|
||||
"meta": "node scripts/meta.js",
|
||||
"prepack": "rimraf dist && npm run meta && electron-builder --dir",
|
||||
"pack": "rimraf dist && env-cmd npm run meta && electron-builder",
|
||||
"publish": "electron-builder --publish",
|
||||
"release": "env-cmd electron-builder -- --publish",
|
||||
"test": "jest -c jest.json",
|
||||
"test:watch": "jest -c jest.json --watch",
|
||||
"tsc": "tsc --watch --noEmit"
|
||||
@ -60,7 +60,6 @@
|
||||
"css-loader": "^3.2.0",
|
||||
"electron": "^7.1.4",
|
||||
"electron-builder": "^21.2.0",
|
||||
"electron-updater": "^4.2.0",
|
||||
"env-cmd": "^10.0.1",
|
||||
"error-overlay-webpack-plugin": "^0.4.1",
|
||||
"eslint": "^6.4.0",
|
||||
@ -99,6 +98,7 @@
|
||||
"copy-webpack-plugin": "^5.0.4",
|
||||
"cson-parser": "git+https://github.com/ButteryCrumpet/cson-parser.git",
|
||||
"dotenv": "^8.2.0",
|
||||
"electron-updater": "^4.2.0",
|
||||
"filenamify": "^2.1.0",
|
||||
"hast-util-sanitize": "^2.0.1",
|
||||
"hast-util-to-text": "^1.0.1",
|
||||
@ -143,9 +143,6 @@
|
||||
"build": {
|
||||
"appId": "com.electron.Boost",
|
||||
"copyright": "Copyright © 2016-2017 BoostIO",
|
||||
"files": [
|
||||
"**/*"
|
||||
],
|
||||
"extraResources": [
|
||||
"compiled/**/*"
|
||||
],
|
||||
|
@ -4,10 +4,12 @@ const { pick } = require('ramda')
|
||||
|
||||
const packageJson = require('../package.json')
|
||||
|
||||
const filteredJson = pick(
|
||||
['name', 'productName', 'version', 'author'],
|
||||
packageJson
|
||||
)
|
||||
const filteredJson = {
|
||||
...pick(['name', 'productName', 'version', 'author'], packageJson),
|
||||
dependencies: {
|
||||
'electron-updater': '^4.2.0'
|
||||
}
|
||||
}
|
||||
|
||||
fs.writeFileSync(
|
||||
path.join(__dirname, '../app/package.json'),
|
||||
|
Loading…
Reference in New Issue
Block a user