-
Notifications
You must be signed in to change notification settings - Fork 127
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
Chromium resources build fails when nwjs_sdk=false. #145
Comments
It appears that patching If you want, I can submit a PR with the |
When I build the non SDK versions of nwjs with the following parameters: export GYP_CHROMIUM_NO_ACTION=0
export GYP_DEFINES="building_nw=1 nwjs_sdk=0 disable_nacl=1 buildtype=Official clang=1 OS=linux target_arch=arm target_cpu=arm arm_float_abi=hard"
export GN_ARGS="is_debug=false target_os=\"linux\" is_component_ffmpeg=true ffmpeg_branding=\"Chrome\" symbol_level=1 enable_nacl=false enable_nacl=false target_cpu=\"arm\" arm_float_abi=\"hard\"" the resulting artifacts are still sdk artifacts. Creating packages...
Making "nwjs-sdk-v0.44.3-linux-arm.tar.gz"
Making "nwjs-sdk-symbol-v0.44.3-linux-arm.tar.gz"
Copying nw-headers-v0.44.3.tar.gz
Copying SHASUMS256.txt How is this possible? |
@LeonardLaszlo You have |
@llamasoft I encountered the same error when building the win32 flavors version. I will try your solution for a temporary fix. |
When configured with
gn gen "out/nw" '--args=is_debug=false is_component_ffmpeg=true target_cpu="x64" symbol_level=1 is_component_build=false nwjs_sdk=false ffmpeg_branding="Chromium"'
(taken directly from this nw44_linux64 buildbot step), building thechrome/browser:resources_grit
results in the following error:This was done from a clean working environment building off of the nw44 branch.
@LeonardLaszlo was encountering a similar grit-related error as well.
The cause seems to be that the
nwjs_sdk
flag causes a different set of resources to be build. This is taken fromchrome/browser/BUILD.gn
:The specific case regarding
graph_tab.html
seems to stem from the commit updating to Chromium 80.0.3987.0. It removes thegraph_tab.html
output fromchrome/browser/resources/discards/BUILD.gn
in favor ofgraph_tab.js
instead.Again, I think the reason this isn't an issue for
nwjs_sdk=true
builds is becausebrowser_resources.grd
only requiresgraph_tab.js
, butnwjs_resources.grd
requiresgraph_tab.js
andgraph_tab.html
. I haven't done much digging aside from that, but it wouldn't surprise me if other resources are missing as well.The text was updated successfully, but these errors were encountered: