This commit is contained in:
Junyoung Choi 2019-12-11 16:11:42 +09:00
parent f5afafdc7d
commit e6ba415aa0
No known key found for this signature in database
GPG Key ID: CE66B3A52D83EBE1
4 changed files with 19 additions and 14 deletions

3
.gitignore vendored
View File

@ -9,4 +9,5 @@ compiled/*
dist/*
.cache
app/package.json
app/package-lock.json
app/package-lock.json
app/node_modules/*

View File

@ -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 () => {

View File

@ -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/**/*"
],

View File

@ -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'),