Skip to content
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

Add python example #231

Open
rakeshksr opened this issue May 18, 2024 · 3 comments
Open

Add python example #231

rakeshksr opened this issue May 18, 2024 · 3 comments
Labels
enhancement New feature or request invalid This doesn't seem right

Comments

@rakeshksr
Copy link

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.

@naman-crabnebula naman-crabnebula added the invalid This doesn't seem right label Sep 3, 2024
@naman-crabnebula
Copy link
Contributor

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

Thank You

@naman-crabnebula naman-crabnebula added the enhancement New feature or request label Sep 3, 2024
@thewh1teagle
Copy link

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.

@rakeshksr
Copy link
Author

@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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants