cargo-packager icon indicating copy to clipboard operation
cargo-packager copied to clipboard

Add python example

Open rakeshksr opened this issue 1 year ago • 3 comments

cargo-packager working well with python projects with combination of pyinstaller. Adding python example will significantly benefit to python developers for packaging their python projects.

rakeshksr avatar May 18 '24 13:05 rakeshksr

Hi @rakeshksr , I don't think we are currently planning to add Python support to the Cargo Packager.

Thank You

naman-crabnebula avatar Sep 03 '24 19:09 naman-crabnebula

I'm interested in the same thing. If it has beforePackageCommand, all we need is to point the packager to execute the right exe in the right location. it would be awesome to add example for it or at least some inputs here.

thewh1teagle avatar Sep 10 '24 11:09 thewh1teagle

@thewh1teagle, Packager.toml of my python project

name = "<project name>"
product-name = "<Long Name>"
version = "1.0.0"
authors = ["<author name>"]
publisher = "<publisher name>"
binaries = [{ path = "<main binary path>", main = true }]
identifier = "com.project.name"
before-packaging-command = "pyinstaller --clean --onefile --windowed --name <name> --add-data src/<name>/assets:assets --icon src/<name>/assets/app_icon.png src/<name>/__main__.py"
out-dir = "dist/bin"
binaries-dir = "dist"
icons = ["src/<name>/assets/app_icon.png"]

rakeshksr avatar Sep 13 '24 12:09 rakeshksr