mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
This commit is contained in:
parent
454ab1e7bd
commit
bbb513d420
@ -38,6 +38,10 @@ if (appArgs.ignoreCertificate) {
|
|||||||
app.commandLine.appendSwitch('ignore-certificate-errors');
|
app.commandLine.appendSwitch('ignore-certificate-errors');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (appArgs.disableGpu) {
|
||||||
|
app.disableHardwareAcceleration();
|
||||||
|
}
|
||||||
|
|
||||||
if (appArgs.ignoreGpuBlacklist) {
|
if (appArgs.ignoreGpuBlacklist) {
|
||||||
app.commandLine.appendSwitch('ignore-gpu-blacklist');
|
app.commandLine.appendSwitch('ignore-gpu-blacklist');
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
- [[basic-auth-username]](#basic-auth-username)
|
- [[basic-auth-username]](#basic-auth-username)
|
||||||
- [[basic-auth-password]](#basic-auth-username)
|
- [[basic-auth-password]](#basic-auth-username)
|
||||||
- [[always-on-top]](#always-on-top)
|
- [[always-on-top]](#always-on-top)
|
||||||
|
- [[disable-gpu]](#disable-gpu)
|
||||||
- [Programmatic API](#programmatic-api)
|
- [Programmatic API](#programmatic-api)
|
||||||
|
|
||||||
## Command Line
|
## Command Line
|
||||||
@ -298,6 +299,13 @@ If this flag is passed, it will not override the user agent.
|
|||||||
```
|
```
|
||||||
Forces the packaged app to ignore certificate errors.
|
Forces the packaged app to ignore certificate errors.
|
||||||
|
|
||||||
|
#### [disable-gpu]
|
||||||
|
|
||||||
|
```
|
||||||
|
--disable-gpu
|
||||||
|
```
|
||||||
|
Disable hardware acceleration for the packaged application.
|
||||||
|
|
||||||
#### [ignore-gpu-blacklist]
|
#### [ignore-gpu-blacklist]
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -29,6 +29,7 @@ function selectAppArgs(options) {
|
|||||||
userAgent: options.userAgent,
|
userAgent: options.userAgent,
|
||||||
nativefierVersion: options.nativefierVersion,
|
nativefierVersion: options.nativefierVersion,
|
||||||
ignoreCertificate: options.ignoreCertificate,
|
ignoreCertificate: options.ignoreCertificate,
|
||||||
|
disableGpu: options.disableGpu,
|
||||||
ignoreGpuBlacklist: options.ignoreGpuBlacklist,
|
ignoreGpuBlacklist: options.ignoreGpuBlacklist,
|
||||||
enableEs3Apis: options.enableEs3Apis,
|
enableEs3Apis: options.enableEs3Apis,
|
||||||
insecure: options.insecure,
|
insecure: options.insecure,
|
||||||
|
@ -68,6 +68,7 @@ if (require.main === module) {
|
|||||||
.option('-u, --user-agent <value>', 'set the user agent string for the app')
|
.option('-u, --user-agent <value>', 'set the user agent string for the app')
|
||||||
.option('--honest', 'prevent the nativefied app from changing the user agent string to masquerade as a regular chrome browser')
|
.option('--honest', 'prevent the nativefied app from changing the user agent string to masquerade as a regular chrome browser')
|
||||||
.option('--ignore-certificate', 'ignore certificate related errors')
|
.option('--ignore-certificate', 'ignore certificate related errors')
|
||||||
|
.option('--disable-gpu', 'disable hardware acceleration')
|
||||||
.option('--ignore-gpu-blacklist', 'allow WebGl apps to work on non supported graphics cards')
|
.option('--ignore-gpu-blacklist', 'allow WebGl apps to work on non supported graphics cards')
|
||||||
.option('--enable-es3-apis', 'force activation of WebGl 2.0')
|
.option('--enable-es3-apis', 'force activation of WebGl 2.0')
|
||||||
.option('--insecure', 'enable loading of insecure content, defaults to false')
|
.option('--insecure', 'enable loading of insecure content, defaults to false')
|
||||||
|
@ -38,6 +38,7 @@ export default function (inpOptions) {
|
|||||||
fastQuit: inpOptions.fastQuit || false,
|
fastQuit: inpOptions.fastQuit || false,
|
||||||
userAgent: inpOptions.userAgent,
|
userAgent: inpOptions.userAgent,
|
||||||
ignoreCertificate: inpOptions.ignoreCertificate || false,
|
ignoreCertificate: inpOptions.ignoreCertificate || false,
|
||||||
|
disableGpu: inpOptions.disableGpu || false,
|
||||||
ignoreGpuBlacklist: inpOptions.ignoreGpuBlacklist || false,
|
ignoreGpuBlacklist: inpOptions.ignoreGpuBlacklist || false,
|
||||||
enableEs3Apis: inpOptions.enableEs3Apis || false,
|
enableEs3Apis: inpOptions.enableEs3Apis || false,
|
||||||
insecure: inpOptions.insecure || false,
|
insecure: inpOptions.insecure || false,
|
||||||
|
Loading…
Reference in New Issue
Block a user