Removing temporary directory on Windows fails with no error
See original GitHub issueRunning on a Windows Server 2008 build agent the packager fails to generate artifacts with no error
Which version of electron-packager are you using?
Tested on both 7.2.0
and 7.3.0
. The exact same config was working a few days ago so perhaps something has changed in the dependency tree?
What CLI arguments are you passing? Alternatively, if you are using the API, what parameters are you passing to the
packager()
function?
const defaultPackageConf = {
'app-bundle-id': packageJSON.name,
'app-category-type': 'public.app-category.healthcare-fitness',
'app-copyright': `Copyright © ${(new Date()).getFullYear()} ${packageJSON.author.name}, All rights reserved.`, // eslint-disable-line
'app-version': packageJSON.version,
arch: 'ia32',
asar: true,
'build-version': packageJSON.version,
dir: '.',
icon: './build/assets/img/main',
ignore: ignoreFn,
name: packageJSON.productName,
out: './dist/',
overwrite: true,
platform: 'win32',
prune: true,
tmpdir,
version,
'version-string': {
CompanyName: packageJSON.author.name,
FileDescription: packageJSON.productName,
ProductName: packageJSON.productName,
InternalName: packageJSON.productName,
},
};
What version of Electron are you building with?
Tried building with Electron 1.2.x
and 1.3.x
What is the host platform are you running electron-packager on?
Windows Server 2008, x64
What target platform(s)/architecture(s) are you building for?
Windows x86
Is there a stack trace in the error message you’re seeing?
No, there is no error, it just stops. When running with DEBUG
enabled the extract-zip
module declares itself complete then a second later the process exits with exit code 0.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:18 (11 by maintainers)
Top GitHub Comments
We just ran into this issue where one of our Windows 10 machines would stall with no error or any information like @MarshallOfSound. After some extensive debugging we found that
fs-extra
was silently failing when trying to remove thetempBase
folder.We cleared out the
C:\Users\USERNAME\AppData\Local\Temp
folder and it works fine now.Hello This problem happened to me as well, using these versions (windows):
and the solution for me was:
node_modules
folder from my project and reinstallednpm i
.When I rebuilt using electron-packager, the problem disappeared and the project is compiled!