Giter Club home page Giter Club logo

Comments (10)

acristoffers avatar acristoffers commented on August 27, 2024

Thanks for the bug report.
As you don't say what platform or tool you are using, I'm assuming it is macOS. The reasong the bundle is so big is because it copies the CEF framework 5 times. I changed the CMake script so it removes 4 of the copies and points the executables to the remaining copy, bringing the size down to about 200MB. I don't know how to instruct Xcode to do it automatically, but either adding a post-build script or doing it manually aftewards should work.
The changed CMakeLists.txt is already published, just update your local copy and run make again.
If it is another platform, tell me which, and also which tool you're using to build.

from cef3simplesample.

a1726015841 avatar a1726015841 commented on August 27, 2024

Thank you for answering my questions during your busy schedule! I used Xcode to build the macos environment, and then used your latest CMakeList.txt script, recompiled under the new folder build, and found a new error, Error copying directory from "/Volumes/data/ TestSimple/CEF3SimpleSample-master/build/CEF3SimpleSample Helper.app" to "/Volumes/data/TestSimple/CEF3SimpleSample-master/build/CEF3SimpleSample.app/Contents/Frameworks/CEF3SimpleSample Helper.app".
Command PhaseScriptExecution failed with a nonzero exit code
How should I deal with it?

from cef3simplesample.

acristoffers avatar acristoffers commented on August 27, 2024

from cef3simplesample.

a1726015841 avatar a1726015841 commented on August 27, 2024

/Volumes/data/ TestSimple/CEF3SimpleSample-master/build/CEF3SimpleSample Helper.app. This file exists after recompiling cmakelist.txt. Xcode prompts this error

from cef3simplesample.

a1726015841 avatar a1726015841 commented on August 27, 2024

Can you tell me how to manually remove the cef framework included in xcode 4 times?

from cef3simplesample.

acristoffers avatar acristoffers commented on August 27, 2024

Inside CEF3SimpleSample.app (right-click and select Show Package Contents) there is a folder Contents/Frameworks with 4 helper apps. You have to open them and remove their Contents/Frameworks folder. After that you have to run

install_name_tool -change "@executable_path/../Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework" "@executable_path/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework" EXEC_PATH

for each of the helper app's executable (inside Contents/MacOS - replace EXEC_PATH with the actual executable path)

from cef3simplesample.

a1726015841 avatar a1726015841 commented on August 27, 2024

Ok. Thank you very much! I will use your method to study this one. Thank you

from cef3simplesample.

acristoffers avatar acristoffers commented on August 27, 2024

I just pushed an update to the Xcode project that should correctly pack by default. It runs those commands for you and does not embed the extra copies.
The copy not working error, however, is kinda linked to your setup. I believe your data drive is not APFS nor HPFS+, and that may be what is causing problems. Try creating the build folder in an APFS driver to see if that is it. Hope it is, as I have no idea what else might be going on there.

from cef3simplesample.

a1726015841 avatar a1726015841 commented on August 27, 2024

thank you very much! Let me try

from cef3simplesample.

a1726015841 avatar a1726015841 commented on August 27, 2024

Already, thank you very much!

from cef3simplesample.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.