Created
August 5, 2022 20:52
-
-
Save reversesigh/424de1e1612d3fec3104d65257a77acc to your computer and use it in GitHub Desktop.
test2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nativefier = require('nativefier').default; | |
var options = { | |
name: 'ALTER_desktop', | |
targetUrl: 'https://app.altermail.live/login', | |
platform: 'darwin', | |
arch: 'x64', | |
version: '0.1.0', | |
overwrite: true, | |
asar: true, | |
icon: 'resources/alter.png', | |
inject: [ 'resources/scrollbar.css' ], | |
width: 1280, | |
height: 720, | |
verbose: true, | |
quiet:false, | |
showMenuBar: false, | |
ignoreCertificate: false, | |
ignoreGpuBlacklist: false, | |
enableEs3Apis: false, | |
internalUrls: '.*altermaill.live.*', | |
blockExternalUrls: true, | |
insecure: false, | |
honest: false, | |
zoom: 1.004, | |
userAnget: 'chromium', | |
singleInstance: true, | |
clearCache: true, | |
tray: true, | |
disableDevTools: true, | |
fileDownloadOptions: { | |
saveAs: true, | |
}, | |
webPreferences: { | |
spellcheck: true, | |
}, | |
}; | |
nativefier(options, function (error, appPath) { | |
if (error) { | |
console.error(error); | |
return; | |
} | |
console.log('App has been nativefied to', appPath); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment