-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing files after extracting osx build of NW.js in Windows #715
Comments
Since |
I was able to reproduce this in v4.1.0-beta-3: PS C:\Users\Ayush\Desktop\nw-builder> npm run demo:esm
> [email protected] demo:esm
> cd e2e && node demo.js
[ DEBUG ] 2023-03-01T20:19:06.318Z nwbuild property is not defined in package.json
./tmp
[ DEBUG ] 2023-03-01T20:19:06.326Z Manifest file already exists locally under C:\Users\Ayush\Desktop\nw-builder\e2e\tmp
[ DEBUG ] 2023-03-01T20:19:06.327Z Store manifest metadata in memory
[ DEBUG ] 2023-03-01T20:19:06.331Z Search for latest specific release data
[ DEBUG ] 2023-03-01T20:19:06.333Z Download relevant NW.js binaries
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100% | ETA: 0s | 158038700/158038700
[ ERROR ] 2023-03-01T20:21:57.730Z ENOENT: no such file or directory, link 'C:\Users\Ayush\Desktop\nw-builder\e2e\Versions\Current\Resources' -> 'C:\Users\Ayush\Desktop\nw-builder\e2e\tmp\nwjs-sdk-v0.73.0-osx-x64\nwjs.app\Contents\Frameworks\nwjs Framework.framework\Resources'
[ ERROR ] 2023-03-01T20:21:57.730Z ENOENT: no such file or directory, link 'C:\Users\Ayush\Desktop\nw-builder\e2e\Versions\Current\Resources' -> 'C:\Users\Ayush\Desktop\nw-builder\e2e\tmp\nwjs-sdk-v0.73.0-osx-x64\nwjs.app\Contents\Frameworks\nwjs Framework.framework\Resources'
[ ERROR ] 2023-03-01T20:21:57.730Z ENOENT: no such file or directory, link 'C:\Users\Ayush\Desktop\nw-builder\e2e\Versions\Current\Resources' -> 'C:\Users\Ayush\Desktop\nw-builder\e2e\tmp\nwjs-sdk-v0.73.0-osx-x64\nwjs.app\Contents\Frameworks\nwjs Framework.framework\Resources'
[ ERROR ] 2023-03-01T20:21:57.730Z ENOENT: no such file or directory, link 'C:\Users\Ayush\Desktop\nw-builder\e2e\Versions\Current\Resources' -> 'C:\Users\Ayush\Desktop\nw-builder\e2e\tmp\nwjs-sdk-v0.73.0-osx-x64\nwjs.app\Contents\Frameworks\nwjs Framework.framework\Resources'
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, link 'C:\Users\Ayush\Desktop\nw-builder\e2e\Versions\Current\Resources' -> 'C:\Users\Ayush\Desktop\nw-builder\e2e\tmp\nwjs-sdk-v0.73.0-osx-x64\nwjs.app\Contents\Frameworks\nwjs Framework.framework\Resources'] {
errno: -4058,
code: 'ENOENT',
[Symbol(message)]: "[ ERROR ] 2023-03-01T20:21:57.730Z ENOENT: no such file or directory, link 'C:\\Users\\Ayush\\Desktop\\nw-builder\\e2e\\Versions\\Current\\Resources' -> 'C:\\Users\\Ayush\\Desktop\\nw-builder\\e2e\\tmp\\nwjs-sdk-v0.73.0-osx-x64\\nwjs.app\\Contents\\Frameworks\\nwjs Framework.framework\\Resources'"
} Related: |
This should be fixed by #819 (comment) |
Assuming this works now if glob is disabled? Tracking that in #836 |
No, this is not resolved. In fact, it's even worse now. Attempting to build for "osx" in Windows results in the following error:
Two issues:
|
Probably just need to document that osx and linux builds need to happen in osx/linux. Otherwise, there will be all sorts of permission issues (missing +x) and other problems. |
Issue Type
Current/Missing Behaviour
When attempting to create an
osx
build from in Windows, files are missing from the extractednwjs.app
package. There may be more, but the most obvious are:nwjs.app/Contents/Info.plist
nwjs.app/Contents/PkgInfo
nwjs.app/Contents/Frameworks/nwjs Framework.framework/*
Since these files are then missing from the final "built" package, the app won't run.
Expected/Proposed Behaviour
All files should be extracted (and included in the final package), no matter which OS is being used for building.
Additionally, error handling needs to be added to
osxCfg.js
(many try/catch blocks around all the disk I/O. The build script fails silently, when it can't find theInfo.plist
and other framework files.Additional Info
osx
build in WindowsThe text was updated successfully, but these errors were encountered: