Nativefier on Windows 10 - No output, creates only win32-x64-template folder
Homework
- [X] I looked at
nativefier --helpand https://github.com/nativefier/nativefier/blob/master/API.md - [X] I checked the Troubleshooting section of the README.
- [X] I searched existing issues, open & closed. Yes, my bug is new.
- [X] I'm using the latest version available at https://github.com/nativefier/nativefier/releases
Bug description
After upgrading Nativefier to latest version (42.3.0) it no longer outputs the folder and files, only directory "win32-x64-template" which contains just one subfolder "locales" and that folder contains "ta.pak".
Steps to reproduce
- Open Node.js command prompt (tested also on cmd/WSL)
- Upgrade nativefier with
npm i nativefier -g -u - Run nativefier with desired site
C:\Users\Rolle>nativefier --name "The Lounge" "https://irc.pulina.fi" --verbose
Running in verbose mode! This will produce a mountain of logs and is recommended only for troubleshooting or if you like Shakespeare.
Performing async options post-processing.
Inferring user agent for electron 11.3.0 / win32
Grabbing electron<->chrome versions file from https://atom.io/download/atom-shell/index.json
Inferring icon for https://irc.pulina.fi/ on win32
Inferring icon from store for https://irc.pulina.fi/ on win32
Allowed icon formats when building for win32 (limited on Windows): [ '.ico' ]
Got name The Lounge from options. No inferring needed
Sanitized filename for The Lounge : The Lounge
Got 249 icons from gitcloud
Max icon match score: 0
No relevant icon in store.
Trying to extract a .ico icon from the page.
Got an icon from the page.
Writing 21.9 kb icon to C:\Users\Rolle\AppData\Local\Temp\nativefier-19-44-47-iconinfer--20624-KrWWKAuJEydO\icon.ico
Associated electron v11.3.0 to chrome v87.0.4280.141
Given chrome 87.0.4280.141 on win32, using user agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Preparing Electron app...
Copying electron app from C:\Users\Rolle\nativefier\app to C:\Users\Rolle\AppData\Local\Temp\nativefier-19-44-47-app--20624-5kF7paAr0U7b
Writing app config to C:\Users\Rolle\AppData\Local\Temp\nativefier-19-44-47-app--20624-5kF7paAr0U7b\nativefier.json
No files to inject, skipping copy.
Updating C:\Users\Rolle\AppData\Local\Temp\nativefier-19-44-47-app--20624-5kF7paAr0U7b\package.json 'name' field to the-lounge-nativefier-78b623
Converting icons...
Building for Windows and icon is already a .ico, no conversion needed
Copying icons if necessary
Copying icon C:\Users\Rolle\AppData\Local\Temp\nativefier-19-44-47-iconinfer--20624-KrWWKAuJEydO\icon.ico to C:\Users\Rolle\AppData\Local\Temp\nativefier-19-44-47-app--20624-5kF7paAr0U7b\icon.ico
Packaging... This will take a few seconds, maybe minutes if the requested Electron isn't cached yet...
electron-packager Electron Packager 15.2.0
electron-packager Node v14.0.0
electron-packager Host Operating system: win32 10.0.19042 (x64) +0ms
electron-packager Packager Options: {"arch":"x64","asar":false,"darwinDarkModeSupport":false,"dir":"C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-19-44-47-app--20624-5kF7paAr0U7b","electronVersion":"11.3.0","icon":"C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-19-44-47-iconinfer--20624-KrWWKAuJEydO\\icon.ico","name":"The Lounge","out":"C:\\Users\\Rolle","overwrite":true,"platform":"win32","targetUrl":"https://irc.pulina.fi/","tmpdir":false,"win32metadata":{"ProductName":"The Lounge","InternalName":"The Lounge","FileDescription":"The Lounge"}} +0ms
electron-packager Target Platforms: win32 +2ms
electron-packager Target Architectures: x64 +0ms
electron-packager Requiring author in package.json, as CompanyName was not specified for win32metadata +0ms
electron-packager Inferring appVersion from version in C:\Users\Rolle\AppData\Local\Temp\nativefier-19-44-47-app--20624-5kF7paAr0U7b\package.json +4ms
electron-packager Inferring win32metadata.CompanyName from author in C:\Users\Rolle\AppData\Local\Temp\nativefier-19-44-47-app--20624-5kF7paAr0U7b\package.json +0ms
electron-packager Application name: The Lounge +6ms
electron-packager Target Electron version: 11.3.0 +1ms
electron-packager Ignored path regular expressions: [
'/package-lock\\.json$',
'/yarn\\.lock$',
'/\\.git($|/)',
'/node_modules/\\.bin($|/)',
'\\.o(bj)?$'
] +0ms
electron-packager Downloading Electron with options {"platform":"win32","arch":"x64","version":"11.3.0","artifactName":"electron"} +0ms
Packaging app for platform win32 x64 using electron v11.3.0
electron-packager Creating C:\Users\Rolle\win32-x64-template +5ms
electron-packager Extracting C:\Users\Rolle\AppData\Local\electron\Cache\ad7d1b1b49693bf7121ef728679aa91bceed390f6a4afb9f94f1cff5be54639b\electron-v11.3.0-win32-x64.zip to C:\Users\Rolle\win32-x64-template +2ms
C:\Users\Rolle>nativefier --version
42.3.0
Expected behavior
It should build the app to the current directory, right?
Actual behavior
It built only win32-x64-template folder with one folder and file inside it.
Context
- Nativefier: 42.3.0
- Node.js: v14.0.0
- Npm: 6.14.11
- OS: Windows 10 Pro 20H2 19042.1110 with Windows Feature Experience Pack 120.2212.3530.0
- Is it a regression? If yes, what's the last working / first broken version? = Can't remember
Side note: For some reason I have older version, should be 45.0.0... It seems to update it with npm install -g [email protected] but --version says otherwise. Strange, will investigate.
Same thing happens on 45.0.0.
C:\Users\Rolle>nativefier --name "The Lounge" "https://irc.pulina.fi" --browserwindow-options "{ \"webPreferences\": { \"spellcheck\": false } }" --verbose
Running in verbose mode! This will produce a mountain of logs and is recommended only for troubleshooting or if you like Shakespeare.
Inferred platform win32
Performing async options post-processing.
Inferring icon for https://irc.pulina.fi/ on win32
Inferring icon from store for https://irc.pulina.fi/ on win32
Allowed icon formats when building for win32 (limited on Windows): [ '.ico' ]
Sanitized filename for The Lounge : The Lounge
Got 249 icons from gitcloud
Max icon match score: 0
No relevant icon in store.
Trying to extract a .ico icon from the page.
Got an icon from the page.
Writing 21.9 kb icon to C:\Users\Rolle\AppData\Local\Temp\nativefier-20-17-52-iconinfer--14220-p7wOBF15vVba\icon.ico
options {
packager: {
appCopyright: undefined,
appVersion: undefined,
arch: 'x64',
asar: false,
buildVersion: undefined,
darwinDarkModeSupport: false,
dir: 'C:\\Users\\Rolle\\AppData\\Roaming\\npm\\node_modules\\nativefier\\app',
electronVersion: '13.1.7',
icon: 'C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-20-17-52-iconinfer--14220-p7wOBF15vVba\\icon.ico',
name: 'The Lounge',
out: 'C:\\Users\\Rolle',
overwrite: true,
platform: 'win32',
portable: false,
targetUrl: 'https://irc.pulina.fi/',
tmpdir: false,
upgrade: false,
upgradeFrom: undefined,
win32metadata: {
ProductName: 'The Lounge',
InternalName: 'The Lounge',
FileDescription: 'The Lounge'
}
},
nativefier: {
accessibilityPrompt: true,
alwaysOnTop: false,
backgroundColor: undefined,
basicAuthPassword: undefined,
basicAuthUsername: undefined,
blockExternalUrls: false,
bookmarksMenu: undefined,
bounce: false,
browserwindowOptions: { webPreferences: [Object] },
clearCache: false,
counter: false,
crashReporter: undefined,
disableContextMenu: false,
disableDevTools: false,
disableGpu: false,
diskCacheSize: undefined,
disableOldBuildWarning: false,
enableEs3Apis: false,
fastQuit: false,
fileDownloadOptions: undefined,
flashPluginDir: undefined,
fullScreen: false,
globalShortcuts: undefined,
hideWindowFrame: false,
ignoreCertificate: false,
ignoreGpuBlacklist: false,
inject: [],
insecure: false,
internalUrls: undefined,
lang: undefined,
maximize: false,
nativefierVersion: '45.0.0',
processEnvs: undefined,
proxyRules: undefined,
showMenuBar: false,
singleInstance: false,
titleBarStyle: undefined,
tray: 'false',
userAgent: undefined,
userAgentHonest: false,
verbose: true,
versionString: undefined,
width: 1280,
height: 800,
minWidth: undefined,
minHeight: undefined,
maxWidth: undefined,
maxHeight: undefined,
widevine: false,
x: undefined,
y: undefined,
zoom: 1
}
}
Preparing Electron app...
Copying electron app from C:\Users\Rolle\AppData\Roaming\npm\node_modules\nativefier\app to C:\Users\Rolle\AppData\Local\Temp\nativefier-20-17-52-app--14220-z0l28bV6w3Vf
Writing app config to C:\Users\Rolle\AppData\Local\Temp\nativefier-20-17-52-app--14220-z0l28bV6w3Vf\nativefier.json
No files to inject, skipping copy.
Updating C:\Users\Rolle\AppData\Local\Temp\nativefier-20-17-52-app--14220-z0l28bV6w3Vf\package.json 'name' field to the-lounge-nativefier-78b623
Converting icons...
Building for Windows and icon is already a .ico, no conversion needed
Copying icons if necessary
Copying icon C:\Users\Rolle\AppData\Local\Temp\nativefier-20-17-52-iconinfer--14220-p7wOBF15vVba\icon.ico to C:\Users\Rolle\AppData\Local\Temp\nativefier-20-17-52-app--14220-z0l28bV6w3Vf\icon.ico
Packaging... This will take a few seconds, maybe minutes if the requested Electron isn't cached yet...
electron-packager Electron Packager 15.3.0
electron-packager Node v14.0.0
electron-packager Host Operating system: win32 10.0.19042 (x64) +0ms
electron-packager Packager Options: {"arch":"x64","asar":false,"darwinDarkModeSupport":false,"dir":"C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-20-17-52-app--14220-z0l28bV6w3Vf","electronVersion":"13.1.7","icon":"C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-20-17-52-iconinfer--14220-p7wOBF15vVba\\icon.ico","name":"The Lounge","out":"C:\\Users\\Rolle","overwrite":true,"platform":"win32","portable":false,"targetUrl":"https://irc.pulina.fi/","tmpdir":false,"upgrade":false,"win32metadata":{"ProductName":"The Lounge","InternalName":"The Lounge","FileDescription":"The Lounge"}} +1ms
electron-packager Target Platforms: win32 +1ms
electron-packager Target Architectures: x64 +1ms
electron-packager Requiring author in package.json, as CompanyName was not specified for win32metadata +0ms
electron-packager Inferring appVersion from version in C:\Users\Rolle\AppData\Local\Temp\nativefier-20-17-52-app--14220-z0l28bV6w3Vf\package.json +4ms
electron-packager Inferring win32metadata.CompanyName from author in C:\Users\Rolle\AppData\Local\Temp\nativefier-20-17-52-app--14220-z0l28bV6w3Vf\package.json +0ms
electron-packager Application name: The Lounge +6ms
electron-packager Target Electron version: 13.1.7 +0ms
electron-packager Ignored path regular expressions: [
'/package-lock\\.json$',
'/yarn\\.lock$',
'/\\.git($|/)',
'/node_modules/\\.bin($|/)',
'\\.o(bj)?$'
] +0ms
electron-packager Downloading Electron with options {"platform":"win32","arch":"x64","version":"13.1.7","artifactName":"electron"} +0ms
Packaging app for platform win32 x64 using electron v13.1.7
electron-packager Creating C:\Users\Rolle\win32-x64-template +6ms
electron-packager Extracting C:\Users\Rolle\AppData\Local\electron\Cache\c02b94db45d0f83639398d95d22e41e09fd3474003678b9f728c6d3f2a93193c\electron-v13.1.7-win32-x64.zip to C:\Users\Rolle\win32-x64-template +1ms
C:\Users\Rolle>nativefier --version
45.0.0
Funny enough, I have just installed it out of curiousity and I am able to get the exe generated. Fresh isntall of v45.0.0 on a Windows 10 x64 machine (Windows 10 Pro 20H2 19042.1110)
@ronilaukkarinen I can't seem to replicate the issue on my Windows 10 machine as well. Can you completely uninstall Nativefier, reinstall, and retry?
I completely reinstalled Nodejs for Windows 10 and removed node_modules, package-lock.json and used npm install nativefier -g --force, usinbg cmd and not Node.js command prompt, then it worked out. Thanks!
C:\Users\Rolle>nativefier --name "The Lounge" "https://irc.pulina.fi" --verbose
Running in verbose mode! This will produce a mountain of logs and is recommended only for troubleshooting or if you like Shakespeare.
Inferred platform win32
Performing async options post-processing.
Inferring icon for https://irc.pulina.fi/ on win32
Inferring icon from store for https://irc.pulina.fi/ on win32
Allowed icon formats when building for win32 (limited on Windows): [ '.ico' ]
Sanitized filename for The Lounge : The Lounge
Got 249 icons from gitcloud
Max icon match score: 0
No relevant icon in store.
Trying to extract a .ico icon from the page.
Got an icon from the page.
Writing 21.9 kb icon to C:\Users\Rolle\AppData\Local\Temp\nativefier-8-25-14-iconinfer--22176-yfqLSmvVeX50\icon.ico
options {
packager: {
appCopyright: undefined,
appVersion: undefined,
arch: 'x64',
asar: false,
buildVersion: undefined,
darwinDarkModeSupport: false,
dir: 'C:\\Users\\Rolle\\AppData\\Roaming\\npm\\node_modules\\nativefier\\app',
electronVersion: '13.1.7',
icon: 'C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-8-25-14-iconinfer--22176-yfqLSmvVeX50\\icon.ico',
name: 'The Lounge',
out: 'C:\\Users\\Rolle',
overwrite: true,
platform: 'win32',
portable: false,
targetUrl: 'https://irc.pulina.fi/',
tmpdir: false,
upgrade: false,
upgradeFrom: undefined,
win32metadata: {
ProductName: 'The Lounge',
InternalName: 'The Lounge',
FileDescription: 'The Lounge'
}
},
nativefier: {
accessibilityPrompt: true,
alwaysOnTop: false,
backgroundColor: undefined,
basicAuthPassword: undefined,
basicAuthUsername: undefined,
blockExternalUrls: false,
bookmarksMenu: undefined,
bounce: false,
browserwindowOptions: undefined,
clearCache: false,
counter: false,
crashReporter: undefined,
disableContextMenu: false,
disableDevTools: false,
disableGpu: false,
diskCacheSize: undefined,
disableOldBuildWarning: false,
enableEs3Apis: false,
fastQuit: false,
fileDownloadOptions: undefined,
flashPluginDir: undefined,
fullScreen: false,
globalShortcuts: undefined,
hideWindowFrame: false,
ignoreCertificate: false,
ignoreGpuBlacklist: false,
inject: [],
insecure: false,
internalUrls: undefined,
lang: undefined,
maximize: false,
nativefierVersion: '45.0.0',
processEnvs: undefined,
proxyRules: undefined,
showMenuBar: false,
singleInstance: false,
titleBarStyle: undefined,
tray: 'false',
userAgent: undefined,
userAgentHonest: false,
verbose: true,
versionString: undefined,
width: 1280,
height: 800,
minWidth: undefined,
minHeight: undefined,
maxWidth: undefined,
maxHeight: undefined,
widevine: false,
x: undefined,
y: undefined,
zoom: 1
}
}
Preparing Electron app...
Copying electron app from C:\Users\Rolle\AppData\Roaming\npm\node_modules\nativefier\app to C:\Users\Rolle\AppData\Local\Temp\nativefier-8-25-14-app--22176-r8hbpbbzUZC2
Writing app config to C:\Users\Rolle\AppData\Local\Temp\nativefier-8-25-14-app--22176-r8hbpbbzUZC2\nativefier.json
No files to inject, skipping copy.
Updating C:\Users\Rolle\AppData\Local\Temp\nativefier-8-25-14-app--22176-r8hbpbbzUZC2\package.json 'name' field to the-lounge-nativefier-78b623
Converting icons...
Building for Windows and icon is already a .ico, no conversion needed
Copying icons if necessary
Copying icon C:\Users\Rolle\AppData\Local\Temp\nativefier-8-25-14-iconinfer--22176-yfqLSmvVeX50\icon.ico to C:\Users\Rolle\AppData\Local\Temp\nativefier-8-25-14-app--22176-r8hbpbbzUZC2\icon.ico
Packaging... This will take a few seconds, maybe minutes if the requested Electron isn't cached yet...
electron-packager Electron Packager 15.3.0
electron-packager Node v14.17.4
electron-packager Host Operating system: win32 10.0.19042 (x64) +0ms
electron-packager Packager Options: {"arch":"x64","asar":false,"darwinDarkModeSupport":false,"dir":"C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-8-25-14-app--22176-r8hbpbbzUZC2","electronVersion":"13.1.7","icon":"C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-8-25-14-iconinfer--22176-yfqLSmvVeX50\\icon.ico","name":"The Lounge","out":"C:\\Users\\Rolle","overwrite":true,"platform":"win32","portable":false,"targetUrl":"https://irc.pulina.fi/","tmpdir":false,"upgrade":false,"win32metadata":{"ProductName":"The Lounge","InternalName":"The Lounge","FileDescription":"The Lounge"}} +0ms
electron-packager Target Platforms: win32 +1ms
electron-packager Target Architectures: x64 +1ms
electron-packager Requiring author in package.json, as CompanyName was not specified for win32metadata +0ms
electron-packager Inferring appVersion from version in C:\Users\Rolle\AppData\Local\Temp\nativefier-8-25-14-app--22176-r8hbpbbzUZC2\package.json +6ms
electron-packager Inferring win32metadata.CompanyName from author in C:\Users\Rolle\AppData\Local\Temp\nativefier-8-25-14-app--22176-r8hbpbbzUZC2\package.json +0ms
electron-packager Application name: The Lounge +7ms
electron-packager Target Electron version: 13.1.7 +1ms
electron-packager Ignored path regular expressions: [
'/package-lock\\.json$',
'/yarn\\.lock$',
'/\\.git($|/)',
'/node_modules/\\.bin($|/)',
'\\.o(bj)?$'
] +0ms
electron-packager Downloading Electron with options {"platform":"win32","arch":"x64","version":"13.1.7","artifactName":"electron"} +0ms
Packaging app for platform win32 x64 using electron v13.1.7
electron-packager Creating C:\Users\Rolle\win32-x64-template +4ms
electron-packager Extracting C:\Users\Rolle\AppData\Local\electron\Cache\c02b94db45d0f83639398d95d22e41e09fd3474003678b9f728c6d3f2a93193c\electron-v13.1.7-win32-x64.zip to C:\Users\Rolle\win32-x64-template +1ms
electron-packager Initializing app in C:\Users\Rolle\The Lounge-win32-x64 from C:\Users\Rolle\win32-x64-template template +0ms
electron-packager Ignored paths based on the out param: [
'C:\\Users\\Rolle\\The Lounge-darwin-x64',
'C:\\Users\\Rolle\\The Lounge-darwin-arm64',
'C:\\Users\\Rolle\\The Lounge-linux-ia32',
'C:\\Users\\Rolle\\The Lounge-linux-x64',
'C:\\Users\\Rolle\\The Lounge-linux-armv7l',
'C:\\Users\\Rolle\\The Lounge-linux-arm64',
'C:\\Users\\Rolle\\The Lounge-linux-mips64el',
'C:\\Users\\Rolle\\The Lounge-mas-x64',
'C:\\Users\\Rolle\\The Lounge-mas-arm64',
'C:\\Users\\Rolle\\The Lounge-win32-ia32',
'C:\\Users\\Rolle\\The Lounge-win32-x64',
'C:\\Users\\Rolle\\The Lounge-win32-arm64'
] +1s
electron-packager Validating bundled Electron app +0ms
electron-packager Checking for a package.json file +0ms
electron-packager Checking for the main entry point file +1ms
electron-packager Validation complete +2ms
electron-packager Renaming electron.exe to The Lounge.exe in C:\Users\Rolle\The Lounge-win32-x64 +21ms
electron-packager Running rcedit with the options {"version-string":{"FileDescription":"The Lounge","InternalName":"The Lounge","OriginalFilename":"The Lounge.exe","ProductName":"The Lounge","CompanyName":"Jia Hao"},"file-version":"1.0.0","product-version":"1.0.0","icon":"C:\\Users\\Rolle\\AppData\\Local\\Temp\\nativefier-8-25-14-iconinfer--22176-yfqLSmvVeX50\\icon.ico"} +0ms
Finalizing build...
App built to C:\Users\Rolle\The Lounge-win32-x64, move to wherever it makes sense for you and run the contained .exe file.