mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-14 19:25:50 +00:00
Bump version 4.2.3
This commit is contained in:
parent
5aaa4e4a02
commit
c829b11587
@ -34,68 +34,6 @@ files:
|
|||||||
- "core/"
|
- "core/"
|
||||||
- "plugins/"
|
- "plugins/"
|
||||||
|
|
||||||
# Mac OS configuration
|
|
||||||
mac:
|
|
||||||
icon: "./img/icons/icns/256x256.icns"
|
|
||||||
hardenedRuntime: true
|
|
||||||
gatekeeperAssess: false
|
|
||||||
entitlements: "./build/entitlements.mac.plist"
|
|
||||||
entitlementsInherit: "./build/entitlements.mac.plist"
|
|
||||||
category: "public.app-category.utilities"
|
|
||||||
asarUnpack: "**/*.node"
|
|
||||||
target:
|
|
||||||
- { target: dmg }
|
|
||||||
- { target: pkg }
|
|
||||||
|
|
||||||
# Config for OSX dmg
|
|
||||||
dmg:
|
|
||||||
sign: false
|
|
||||||
artifactName: "Qortal-Setup-macOS.${ext}"
|
|
||||||
icon: "./img/icons/icns/256x256.icns"
|
|
||||||
iconSize: 100
|
|
||||||
contents:
|
|
||||||
- x: 130
|
|
||||||
y: 220
|
|
||||||
- x: 410
|
|
||||||
y: 220
|
|
||||||
type: "link"
|
|
||||||
path: "/Applications"
|
|
||||||
|
|
||||||
# Config for OSX pkg
|
|
||||||
pkg:
|
|
||||||
artifactName: "Qortal-Setup-macOS.${ext}"
|
|
||||||
installLocation: "/Applications"
|
|
||||||
background: {
|
|
||||||
file: "./build/logo.png",
|
|
||||||
alignment: "bottomleft",
|
|
||||||
scaling: "none"
|
|
||||||
}
|
|
||||||
allowAnywhere: true
|
|
||||||
allowCurrentUserHome: true
|
|
||||||
allowRootDirectory: true
|
|
||||||
isVersionChecked: true
|
|
||||||
isRelocatable: false
|
|
||||||
overwriteAction: "upgrade"
|
|
||||||
|
|
||||||
# Windows configuration
|
|
||||||
win:
|
|
||||||
legalTrademarks: "QORTAL.ORG"
|
|
||||||
icon: "./img/icons/ico/256x256.ico"
|
|
||||||
target:
|
|
||||||
- "nsis"
|
|
||||||
|
|
||||||
# Config for the windows installer
|
|
||||||
nsis:
|
|
||||||
artifactName: "Qortal-Setup-win64.${ext}"
|
|
||||||
oneClick: false
|
|
||||||
perMachine: false
|
|
||||||
installerSidebar: "./img/win-installer-sidebar.bmp"
|
|
||||||
uninstallerSidebar: "./img/win-uninstaller-sidebar.bmp"
|
|
||||||
runAfterFinish: true
|
|
||||||
deleteAppDataOnUninstall: true
|
|
||||||
createDesktopShortcut: true
|
|
||||||
createStartMenuShortcut: true
|
|
||||||
|
|
||||||
# Linux configuration
|
# Linux configuration
|
||||||
linux:
|
linux:
|
||||||
icon: "./img/icons/png/"
|
icon: "./img/icons/png/"
|
||||||
@ -105,28 +43,18 @@ linux:
|
|||||||
StartupWMClass: qortal-ui
|
StartupWMClass: qortal-ui
|
||||||
executableArgs:
|
executableArgs:
|
||||||
- --no-sandbox
|
- --no-sandbox
|
||||||
- '--js-flags="--max-old-space-size=3584"'
|
|
||||||
target:
|
target:
|
||||||
- "deb"
|
- "deb"
|
||||||
- "AppImage"
|
- "AppImage"
|
||||||
- "snap"
|
|
||||||
- "rpm"
|
|
||||||
|
|
||||||
deb:
|
deb:
|
||||||
artifactName: "Qortal-Setup-amd64.${ext}"
|
artifactName: "Qortal-Setup-arm64.${ext}"
|
||||||
synopsis: "Qortal UI for Linux"
|
synopsis: "Qortal UI for Linux"
|
||||||
afterInstall: "./scripts/add-debian-apt-repo.sh"
|
afterInstall: "./scripts/add-debian-apt-repo.sh"
|
||||||
afterRemove: "./scripts/uninstall-debian-conf.sh"
|
afterRemove: "./scripts/uninstall-debian-conf.sh"
|
||||||
|
|
||||||
appImage:
|
appImage:
|
||||||
artifactName: "Qortal-Setup-amd64.${ext}"
|
artifactName: "Qortal-Setup-arm64.${ext}"
|
||||||
|
|
||||||
snap:
|
|
||||||
artifactName: "Qortal-Setup-amd64.${ext}"
|
|
||||||
synopsis: "Qortal UI for Linux"
|
|
||||||
|
|
||||||
rpm:
|
|
||||||
artifactName: "Qortal-Setup-amd64.${ext}"
|
|
||||||
|
|
||||||
directories:
|
directories:
|
||||||
output: dist
|
output: dist
|
||||||
|
41
electron.js
41
electron.js
@ -1,4 +1,18 @@
|
|||||||
const { app, BrowserWindow, ipcMain, ipcRenderer, Menu, Notification, Tray, nativeImage, dialog, webContents, nativeTheme } = require('electron')
|
const {
|
||||||
|
app,
|
||||||
|
BrowserWindow,
|
||||||
|
ipcMain,
|
||||||
|
ipcRenderer,
|
||||||
|
Menu,
|
||||||
|
Notification,
|
||||||
|
Tray,
|
||||||
|
nativeImage,
|
||||||
|
dialog,
|
||||||
|
webContents,
|
||||||
|
nativeTheme,
|
||||||
|
crashReporter
|
||||||
|
} = require('electron')
|
||||||
|
|
||||||
const { autoUpdater } = require('electron-updater')
|
const { autoUpdater } = require('electron-updater')
|
||||||
const server = require('./server.js')
|
const server = require('./server.js')
|
||||||
const log = require('electron-log')
|
const log = require('electron-log')
|
||||||
@ -13,31 +27,42 @@ const fetch = require('node-fetch')
|
|||||||
const execFile = require('child_process').execFile
|
const execFile = require('child_process').execFile
|
||||||
const exec = require('child_process').exec
|
const exec = require('child_process').exec
|
||||||
const spawn = require('child_process').spawn
|
const spawn = require('child_process').spawn
|
||||||
|
const homePath = app.getPath('home')
|
||||||
|
const downloadPath = app.getPath('downloads')
|
||||||
|
const store = new Store()
|
||||||
|
|
||||||
|
crashReporter.start({
|
||||||
|
productName: 'Qortal-UI',
|
||||||
|
uploadToServer: false
|
||||||
|
})
|
||||||
|
|
||||||
const myMemory = os.totalmem()
|
const myMemory = os.totalmem()
|
||||||
|
|
||||||
app.commandLine.appendSwitch('enable-experimental-web-platform-features')
|
|
||||||
if (myMemory > 16000000000) {
|
if (myMemory > 16000000000) {
|
||||||
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=8192')
|
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=8192')
|
||||||
log.info("Memory Size Is 16GB Using JS Memory Heap Size 8GB")
|
log.info("Memory Size Is 16GB Using JS Memory Heap Size 8GB")
|
||||||
} else if (myMemory > 12000000000) {
|
} else if (myMemory > 12000000000) {
|
||||||
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=6144')
|
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=6144')
|
||||||
log.info("Memory Size Is 12GB Using JS Memory Heap Size 6GB")
|
log.info("Memory Size Is 12GB Using JS Memory Heap Size 6GB")
|
||||||
} else {
|
} else if (myMemory > 7000000000) {
|
||||||
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=4096')
|
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=4096')
|
||||||
log.info("Memory Size Is 8GB Using JS Memory Heap Size 4GB")
|
log.info("Memory Size Is 8GB Using JS Memory Heap Size 4GB")
|
||||||
|
} else {
|
||||||
|
app.commandLine.appendSwitch('js-flags', '--max-old-space-size=2048')
|
||||||
|
log.info("Memory Size Is 4GB Using JS Memory Heap Size 2GB")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app.commandLine.appendSwitch('enable-experimental-web-platform-features')
|
||||||
|
app.commandLine.appendSwitch('disable-renderer-backgrounding')
|
||||||
|
app.commandLine.appendSwitch('enable-gpu-rasterization', true)
|
||||||
app.commandLine.appendSwitch('disable-http-cache')
|
app.commandLine.appendSwitch('disable-http-cache')
|
||||||
app.disableHardwareAcceleration()
|
app.commandLine.appendSwitch('log-file', 'qortal-ui.log')
|
||||||
|
app.commandLine.appendSwitch('enable-logging')
|
||||||
app.enableSandbox()
|
app.enableSandbox()
|
||||||
electronDl()
|
electronDl()
|
||||||
|
|
||||||
process.env['APP_PATH'] = app.getAppPath()
|
process.env['APP_PATH'] = app.getAppPath()
|
||||||
|
|
||||||
const homePath = app.getPath('home')
|
|
||||||
const downloadPath = app.getPath('downloads')
|
|
||||||
const store = new Store()
|
|
||||||
|
|
||||||
autoUpdater.autoDownload = false
|
autoUpdater.autoDownload = false
|
||||||
autoUpdater.autoInstallOnAppQuit = false
|
autoUpdater.autoInstallOnAppQuit = false
|
||||||
autoUpdater.logger = log
|
autoUpdater.logger = log
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "qortal-ui",
|
"name": "qortal-ui",
|
||||||
"version": "4.2.2",
|
"version": "4.2.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "qortal-ui",
|
"name": "qortal-ui",
|
||||||
"version": "4.2.2",
|
"version": "4.2.3",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hapi/hapi": "21.3.2",
|
"@hapi/hapi": "21.3.2",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "qortal-ui",
|
"name": "qortal-ui",
|
||||||
"version": "4.2.2",
|
"version": "4.2.3",
|
||||||
"description": "Qortal Project - decentralize the world - Data storage, communications, web hosting, decentralized trading, complete infrastructure for the future blockchain-based Internet",
|
"description": "Qortal Project - decentralize the world - Data storage, communications, web hosting, decentralized trading, complete infrastructure for the future blockchain-based Internet",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"QORT",
|
"QORT",
|
||||||
@ -19,11 +19,11 @@
|
|||||||
"dev": "node server.js",
|
"dev": "node server.js",
|
||||||
"prebuild": "node -p \"'export const UI_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > core/src/redux/app/version.js",
|
"prebuild": "node -p \"'export const UI_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > core/src/redux/app/version.js",
|
||||||
"build-dev": "node --max-old-space-size=8192 build.js",
|
"build-dev": "node --max-old-space-size=8192 build.js",
|
||||||
"build": "NODE_ENV=production node --max-old-space-size=8192 build.js",
|
"build": "NODE_ENV=production node build.js",
|
||||||
"server": "NODE_ENV=production node --max-old-space-size=8192 server.js",
|
"server": "NODE_ENV=production node --max-old-space-size=8192 server.js",
|
||||||
"watch": "node --max-old-space-size=8192 watch.js",
|
"watch": "node --max-old-space-size=8192 watch.js",
|
||||||
"watch-inline": "node --max-old-space-size=8192 watch-inline.js",
|
"watch-inline": "node --max-old-space-size=8192 watch-inline.js",
|
||||||
"start-electron": "NODE_ENV=production electron --js-flags=--max-old-space-size=8192 .",
|
"start-electron": "NODE_ENV=production electron .",
|
||||||
"build-electron": "electron-builder build --publish never",
|
"build-electron": "electron-builder build --publish never",
|
||||||
"deploy-electron": "electron-builder build --win --publish never",
|
"deploy-electron": "electron-builder build --win --publish never",
|
||||||
"release": "NODE_ENV=production electron-builder build --publish never",
|
"release": "NODE_ENV=production electron-builder build --publish never",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user