GithubHelp home page GithubHelp logo

Comments (6)

ihenk avatar ihenk commented on July 4, 2024 1

I did these commands in the project directory. cargo clean worked for us! Thank you so much for your help, we really appreciated it. By the way, 'NativeShell' is amazing, it's our livesaver.

from nativeshell.

knopp avatar knopp commented on July 4, 2024

By default the cargo build doesn't build self-contained bundles.

There is bundle_tool project that you can install using

cargo install bundle_tool

and which can create self contained bundles as well as codesign and notarize them, but I haven't had much time to document it. After installing you can run cargo bundle-tool --help and see the available options.

from nativeshell.

ihenk avatar ihenk commented on July 4, 2024

Hi, there. We tried many times, but we failed. Could you offer us more specific information? What exactly does 'SOURCE_DIR' mean? What exactly does 'OUT_DIR' mean? Thanks in advance.

from nativeshell.

knopp avatar knopp commented on July 4, 2024

Assuming you did cargo build --release and the bundle name is Qtalk.app

cargo bundle-tool -v macos-bundle target/release/Qtalk.app target/

This should create Qtalk.app bundle in the target folder that is self-contained (has no symlink to outside of bundle).

from nativeshell.

ihenk avatar ihenk commented on July 4, 2024

I did cargo bundle-tool -v macos-bundle target/release/Qtalk.app target/ before cargo build release--. It didn't work, here is the reason below.

cargo bundle-tool -v macos-bundle /project/target/release/Qtalk.app target/
DEBUG [cargo_bundle_tool::macos::bundle] "/project/target/release/Qtalk.app/Contents": create directory
DEBUG [cargo_bundle_tool::macos::bundle] "/project/target/release/Qtalk.app/Contents/MacOS": create directory

** Tool failed with error **
File operation failed: Canonicalize, path: "target/Qtalk.app/Contents/MacOS/Qtalk", error: No such file or directory (os error 2)

from nativeshell.

knopp avatar knopp commented on July 4, 2024

Where are you running this? You need to run everything in the project directory.

cargo clean
cargo build --release
cargo bundle-tool -v macos-bundle target/release/Qtalk.app target/

This should create self-contained bundle in target/QTalk.app

from nativeshell.

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.