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

[Task] Add build support for Application, Script, Library, Development Library package types with paket build #8

Open
4 tasks
eminfedar opened this issue Oct 3, 2023 · 0 comments
Assignees
Labels
paket-cli This is related to paket-cli Task a Task in Project

Comments

@eminfedar
Copy link
Contributor

eminfedar commented Oct 3, 2023

Description:
Create a paket regarding to the paket type of these:

  • PackageType::Application
  • PackageType::Script
  • PackageType::Library
  • PackageType::DevelopmentLibrary

Custom Fields for Types:

  • PackageType::Application =>
[application]
executable = "myapp"
icon = "myapp.svg"

assets_folder = "assets" # stores the assets(image,video,sound,binary,text data etc.) in paket folder. like: assets/img/logo.png, assets/sound/intro.ogg, assets/3d_objects/My3DModel.obj
desktop_file = "assets/export/myapp.desktop" # optional, automatically generated if not provided
  • PackageType::Script =>
[script]
executable = "main.py" # To create link `/usr/bin/myapp` -> `/usr/share/paketname/src/main.py`
icon = "myapp.svg"

sources_folder = "src" # stores the scripts in paket folder. like: src/main.py, src/MainWindow.py, src/Utils.py
assets_folder = "assets" # stores the assets(image,video,sound,binary,text data etc.) in paket folder. like: assets/img/logo.png, assets/sound/intro.ogg, assets/3d_objects/My3DModel.obj
desktop_file = "assets/export/myapp.desktop"  # optional, automatically generated if not provided

Acceptance Criteria:

  • Local paket can be builded and created successfully.
  • Different build tactics for different PackageTypes. (maybe?)
  • Tests are passing.
  • Documentations on every struct, property and function is written with ///. There should be a description and a small example usage.

Implementation Details:

// Some example code about how it will work
@eminfedar eminfedar added the Task a Task in Project label Oct 3, 2023
@eminfedar eminfedar added this to the Creating a Paket milestone Oct 3, 2023
eminfedar added a commit that referenced this issue Oct 9, 2023
- added "application" and "script" types.
- added paket::Result for crate level error handling
- added success & err to show user success or error results.
- added tests
- ignore generated .paket files
- removed color-print crate, just used constant chars in a module.

Issue: #8
@eminfedar eminfedar added the paket-cli This is related to paket-cli label Oct 13, 2023
eminfedar added a commit that referenced this issue Oct 13, 2023
eminfedar added a commit that referenced this issue Oct 23, 2023
@eminfedar eminfedar self-assigned this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paket-cli This is related to paket-cli Task a Task in Project
Projects
Status: In Progress
Development

No branches or pull requests

1 participant